4f7d9e6ab29a37bf44d76a0bc5e4f48ac85269c3
[gnulib.git] / ChangeLog
1 2008-09-14  Bruno Haible  <bruno@clisp.org>
2
3         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
4         yvec_edit_count.
5         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
6         (fstrcmp_bounded): Simplify result computation accordingly.
7
8 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9
10         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
11         (fstrcmp): Define in terms of fstrcmp_bounded.
12         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add lower_bound argument.
13         Return quickly if the result is certainly < lower_bound.
14         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
15
16 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17
18         * lib/diffseq.h (EARLY_ABORT): New macro.
19         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20         evaluates to true.
21
22 2008-09-14  Bruno Haible  <bruno@clisp.org>
23
24         * modules/perror-tests: New file.
25         * tests/test-perror.sh: New file.
26         * tests/test-perror.c: New file.
27
28         New module 'perror'.
29         * lib/stdio.in.h (perror): New declaration.
30         * lib/perror.c: New file.
31         * m4/perror.m4: New file.
32         * modules/perror: New file.
33         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
34         * doc/posix-functions/perror.texi: Mention the perror module.
35         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36         REPLACE_PERROR.
37         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38         REPLACE_PERROR.
39
40 2008-09-14  Bruno Haible  <bruno@clisp.org>
41
42         * modules/stdio (Makefile.am): Reorder to match the order in
43         lib/stdio.in.h.
44         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45
46 2008-09-13  Bruno Haible  <bruno@clisp.org>
47
48         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49
50 2008-09-13  Bruno Haible  <bruno@clisp.org>
51
52         Extend strerror to cover the added errno values.
53         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54         (rpl_strerror): Provide error messages for the added errno values and
55         for the WSA* values.
56         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58         strerror.
59         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
60         * modules/strerror (Depends-on): Add errno.
61         * doc/posix-functions/strerror.texi: Document the change.
62         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
63         and EOVERFLOW.
64
65 2008-09-13  Bruno Haible  <bruno@clisp.org>
66
67         * modules/EOVERFLOW: Remove file.
68         * m4/eoverflow.m4: Remove file.
69         * modules/EOVERFLOW-tests: Remove file.
70         * tests/test-EOVERFLOW.c: Remove file.
71         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
72         * modules/ftell (Depends-on): Likewise.
73         * modules/getdelim (Depends-on): Likewise.
74         * modules/getugroups (Depends-on): Likewise.
75         * modules/poll (Depends-on): Likewise.
76         * modules/snprintf (Depends-on): Likewise.
77         * modules/sprintf-posix (Depends-on): Likewise.
78         * modules/vasnprintf (Depends-on): Likewise.
79         * modules/vasprintf (Depends-on): Likewise.
80         * modules/vfprintf-posix (Depends-on): Likewise.
81         * modules/vsnprintf (Depends-on): Likewise.
82         * modules/vsprintf-posix (Depends-on): Likewise.
83         * modules/xvasprintf (Depends-on): Likewise.
84         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
85         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
86         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
87         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
90         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
94         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
95         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
96         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
98         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
99         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
101         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
102         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
103         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
104         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
105         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
106         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
107         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
108         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
109         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
110         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
111         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
112         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
113         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
114         * MODULES.html.sh: Remove EOVERFLOW.
115         * NEWS: Mention the change.
116
117 2008-09-13  Bruno Haible  <bruno@clisp.org>
118
119         * modules/errno-tests: New file.
120         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
121
122         * lib/errno.in.h: New file.
123         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
124         * modules/errno: New file.
125         * doc/posix-headers/errno.texi: Update documentation.
126         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
127
128 2008-09-13  Bruno Haible  <bruno@clisp.org>
129
130         * tests/test-poll.c: Use #if for native Windows, rather than testing
131         __MSVCRT__.
132
133 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
134             Bruno Haible  <bruno@clisp.org>
135
136         * lib/glob.c: Don't include <pwd.h> on native Windows.
137         (WINDOWS32): New macro.
138         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
139
140 2008-09-13  Bruno Haible  <bruno@clisp.org>
141
142         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
143         (ETIMEDOUT): Remove macro.
144         (glthread_cond_timedwait_multithreaded): New declaration.
145         (glthread_cond_timedwait): Use it.
146         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
147         (glthread_cond_timedwait_multithreaded): New function.
148
149 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
150
151         * modules/poll-tests: Do not check for io.h.
152         * tests/test-poll.c: Check for __MSVCRT__ instead.
153
154 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
155
156         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
157         * modules/poll-tests: Add inet_pton, stdbool, sockets.
158         * tests/test-poll.c: Use them.  Use _pipe on Windows.
159
160 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
161
162         * modules/poll-tests: New.
163         * tests/test-poll.c: New.
164
165 2008-09-12  Eric Blake  <ebb9@byu.net>
166
167         frexp: test for NetBSD failure on -0.0
168         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
169         not all, bugs from NetBSD 3.0 have been fixed.
170         * doc/posix-functions/frexp.texi (frexp): Document bug.
171         Reported by Thomas Klausner.
172
173         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
174         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
175         literal -0.0.
176         Reported by Jonathan C. Patschke <jp@centtech.com>.
177
178 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
179
180         * lib/glthread/cond.h: Use dummy implementation also if
181         USE_WIN32_THREADS.
182
183 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
184
185         * modules/fnmatch-posix (License): Change to LGPLv2+.
186         * modules/fnmatch-gnu (License): Likewise.
187
188 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
189
190         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
191
192 2008-09-11  Jim Meyering  <meyering@redhat.com>
193
194         * users.txt: Add gtk-vnc.
195
196 2008-09-08  Simon Josefsson  <simon@josefsson.org>
197
198         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
199         rotate amounts.
200
201         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
202         required for 16-bit and 8-bit rotates.
203         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
204         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
205         UINT8_MAX instead of hard-coded constants.
206         Suggested by Paul Eggert.
207
208 2008-09-07  Bruno Haible  <bruno@clisp.org>
209
210         * tests/test-striconveh.c (main): Check behaviour when converting from
211         UTF-7.
212
213         Make striconveh work better with stateful encodings.
214         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
215         that iconv does not increment the inptr when returning -1/EINVAL.
216
217 2008-09-07  Bruno Haible  <bruno@clisp.org>
218
219         * build-aux/config.rpath: Update according to libtool-2.2.6.
220         * build-aux/config.libpath: Likewise.
221
222 2008-09-06  Bruno Haible  <bruno@clisp.org>
223
224         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
225         * lib/freadptr.c (freadptr): Likewise.
226         * lib/freadseek.c (freadptrinc): Likewise.
227         Reported by Simon Josefsson.
228
229 2008-09-06  Bruno Haible  <bruno@clisp.org>
230
231         * modules/freadptr (License): Change to LGPLv2+.
232         * modules/freadseek (License): Likewise.
233         Suggested by Eric Blake.
234
235         * modules/memchr2 (License): Change to LGPLv2+.
236         Approved by Eric Blake.
237
238 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
239             Bruno Haible  <bruno@clisp.org>
240
241         Make gnulib-tool work with native 'sed' on AIX.
242         * gnulib-tool (sed_noop): New variable.
243         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
244         func_add_or_update, func_create_testdir): Use it to initialize sed
245         script variables.
246         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
247
248 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
249             Bruno Haible  <bruno@clisp.org>
250
251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
252         also works after #include directives.
253
254 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
255
256         getdate.y: reject an out-of-range timezone value
257         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
258         the range [-24...+24].  When specified with only one or two digits,
259         * tests/test-getdate.c: Tests for the fix.
260         * doc/getdate.texi: Document this change.
261
262 2008-09-03  Bruno Haible  <bruno@clisp.org>
263
264         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
265
266 2008-09-02  Simon Josefsson  <simon@josefsson.org>
267
268         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
269         <bruce.korb@gmail.com> with ideas from Ben Pfaff
270         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
271         Blake <ebb9@byu.net>.
272
273         * tests/test-bitrotate.c: Add more test vectors.
274
275 2008-09-02  Eric Blake  <ebb9@byu.net>
276
277         vasnprintf-posix: handle large precision via %.*d
278         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
279         when handling it ourselves.
280         * tests/test-vasnprintf-posix.c (test_function): Add test.
281         * tests/test-snprintf-posix.h (test_function): Likewise.
282         * tests/test-sprintf-posix.h (test_function): Likewise.
283         * tests/test-vasprintf-posix.c (test_function): Likewise.
284         Reported by Alain Guibert.
285
286 2008-09-01  Eric Blake  <ebb9@byu.net>
287
288         c-stack: make configure-time check more robust
289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
290         successful sigaction call.
291         Reported by Tom G. Christensen.
292
293 2008-09-01  Bruno Haible  <bruno@clisp.org>
294
295         New module 'findprog-lgpl'.
296         * modules/findprog-lgpl: New file.
297         * lib/findprog-lgpl.c: New file.
298         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
299         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
300         to decide whether to use strdup or xstrdup, concatenated_filename or
301         xconcatenated_filename.
302
303 2008-09-01  Bruno Haible  <bruno@clisp.org>
304
305         Split module 'concat-filename' into 'concat-filename' (LGPL) and
306         'xconcat-filename' (GPL).
307         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
308         (License): Change to LGPLv2+.
309         * modules/xconcat-filename: New file.
310         * lib/concat-filename.h (concatenated_filename): Change specification.
311         (xconcatenated_filename): New declaration.
312         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
313         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
314         memory situations.
315         * lib/xconcat-filename.c: New file.
316         * NEWS: Mention the change.
317         * lib/findprog.c: Include concat-filename.h, not filename.h.
318         (find_in_path): Use xconcatenated_filename instead of
319         concatenated_filename.
320         * lib/javacomp.c: Include concat-filename.h, not filename.h.
321         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
322         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
323         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
324         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
325         instead of concatenated_filename.
326         * lib/javaexec.c: Include concat-filename.h, not filename.h.
327         (execute_java_class): Use xconcatenated_filename instead of
328         concatenated_filename.
329         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
330         * modules/javacomp (Depends-on): Likewise.
331         * modules/javaexec (Depends-on): Likewise.
332
333 2008-09-01  Bruno Haible  <bruno@clisp.org>
334
335         Split module 'filename' into 'filename' and 'concat-filename'.
336         * modules/filename: Keep only lib/filename.h.
337         (License): Change to LGPLv2+.
338         * modules/concat-filename: New file, extracted from modules/filename.
339         * lib/filename.h (concatenated_filename): Remove declaration.
340         * lib/concat-filename.h: New file, extracted from lib/filename.h.
341         * lib/concat-filename.c: Include concat-filename.h.
342         * NEWS: Mention the change.
343
344 2008-09-01  Simon Josefsson  <simon@josefsson.org>
345
346         * lib/bitrotate.h (rotl8, rotr8): Add.
347
348         * modules/bitrotate (configure.ac): Need
349         AC_REQUIRE([AC_C_INLINE]).
350         (Description): Mention stdint.h.  Reported by Bruno Haible
351         <bruno@clisp.org>.
352
353         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
354         Paolo Bonzini <bonzini@gnu.org>.
355
356 2008-08-31  Bruno Haible  <bruno@clisp.org>
357
358         Assume Solaris specific bi-arch conventions on Solaris systems.
359         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
360         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
361         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
362         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
363         like acl_libdirstem.
364         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
365         acl_libdirstem.
366         * NEWS: Mention the change.
367         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
368
369 2008-08-31  Jim Meyering  <meyering@redhat.com>
370
371         * lib/strftime.h: Add comments describing the two added arguments.
372
373         remove duplicate #include directives
374         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
375         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
376
377 2008-08-31  Bruno Haible  <bruno@clisp.org>
378
379         New module 'sigpipe-die'.
380         * modules/sigpipe-die: New file.
381         * lib/sigpipe-die.h: New file.
382         * lib/sigpipe-die.c: New file.
383         * MODULES.html.sh (Signal handling): Add sigpipe-die.
384
385 2008-08-31  Bruno Haible  <bruno@clisp.org>
386
387         Don't override previously installed signal handlers.
388         * lib/fatal-signal.c (saved_sigactions): New variable.
389         (uninstall_handlers): Reset the signal to the saved handler, not
390         to SIG_DFL (except when ignored).
391         (install_handlers): Save the previous handlers.
392
393 2008-08-30  Bruno Haible  <bruno@clisp.org>
394
395         * gnulib-tool (func_reset_sigpipe): New function.
396         (func_get_automake_snippet, func_modules_transitive_closure,
397         func_import): Invoke it before a join command that reads from stdin,
398         to avoid "echo: write error: Broken pipe" error messages on stderr.
399         Reported by Sam Steingold <sds@gnu.org>.
400
401 2008-08-30  Bruno Haible  <bruno@clisp.org>
402
403         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
404         Code copied from m4/open.m4.
405         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
406         access and the filename ends in a slash. Code copied from lib/open.c.
407         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
408         * tests/test-fopen.c (main): Check against bug with trailing slash.
409
410 2008-08-29  Bruno Haible  <bruno@clisp.org>
411
412         Avoid some "gcc -pedantic" warnings.
413         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
414         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
415         * lib/dirent.in.h: Likewise.
416         * lib/fcntl.in.h: Likewise.
417         * lib/float.in.h: Likewise.
418         * lib/iconv.in.h: Likewise.
419         * lib/inttypes.in.h: Likewise.
420         * lib/locale.in.h: Likewise.
421         * lib/math.in.h: Likewise.
422         * lib/netinet_in.in.h: Likewise.
423         * lib/search.in.h: Likewise.
424         * lib/signal.in.h: Likewise.
425         * lib/stdarg.in.h: Likewise.
426         * lib/stdint.in.h: Likewise.
427         * lib/stdio.in.h: Likewise.
428         * lib/stdlib.in.h: Likewise.
429         * lib/string.in.h: Likewise.
430         * lib/strings.in.h: Likewise.
431         * lib/sys_select.in.h: Likewise.
432         * lib/sys_socket.in.h: Likewise.
433         * lib/sys_stat.in.h: Likewise.
434         * lib/sys_time.in.h: Likewise.
435         * lib/sysexits.in.h: Likewise.
436         * lib/time.in.h: Likewise.
437         * lib/unistd.in.h: Likewise.
438         * lib/wchar.in.h: Likewise.
439         * lib/wctype.in.h: Likewise.
440         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
441         * modules/fchdir (Makefile.am): Likewise.
442         * modules/fcntl (Makefile.am): Likewise.
443         * modules/float (Makefile.am): Likewise.
444         * modules/iconv_open (Makefile.am): Likewise.
445         * modules/inttypes (Makefile.am): Likewise.
446         * modules/locale (Makefile.am): Likewise.
447         * modules/math (Makefile.am): Likewise.
448         * modules/netinet_in (Makefile.am): Likewise.
449         * modules/search (Makefile.am): Likewise.
450         * modules/signal (Makefile.am): Likewise.
451         * modules/stdarg (Makefile.am): Likewise.
452         * modules/stdint (Makefile.am): Likewise.
453         * modules/stdio (Makefile.am): Likewise.
454         * modules/stdlib (Makefile.am): Likewise.
455         * modules/string (Makefile.am): Likewise.
456         * modules/strings (Makefile.am): Likewise.
457         * modules/sys_select (Makefile.am): Likewise.
458         * modules/sys_socket (Makefile.am): Likewise.
459         * modules/sys_stat (Makefile.am): Likewise.
460         * modules/sys_time (Makefile.am): Likewise.
461         * modules/sysexits (Makefile.am): Likewise.
462         * modules/time (Makefile.am): Likewise.
463         * modules/unistd (Makefile.am): Likewise.
464         * modules/wchar (Makefile.am): Likewise.
465         * modules/wctype (Makefile.am): Likewise.
466         Reported by Reuben Thomas <rrt@sc3d.org>.
467
468 2008-08-29  Bruno Haible  <bruno@clisp.org>
469
470         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
471         any more.
472
473 2008-08-29  Simon Josefsson  <simon@josefsson.org>
474
475         * MODULES.html.sh (Misc): Add bitrotate.
476
477         * modules/bitrotate: New file.
478
479         * lib/bitrotate.h: New file.
480
481         * modules/bitrotate-tests: New file.
482
483         * tests/test-bitrotate.c: New file.
484
485         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
486         on the bitrotate module.
487
488         * lib/arctwo.c: Use new bitrotate module.
489
490 2008-08-29  Jim Meyering  <meyering@redhat.com>
491
492         bootstrap: merge changes from coreutils
493         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
494         of copied files.  Remove a kludge, now that this is fixed.
495         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
496         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
497         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
498
499 2008-08-29  Bruno Haible  <bruno@clisp.org>
500
501         * MODULES.html.sh: Remove --cvs-urls option.
502
503 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
504
505         maint.mk: adjust to file name change
506         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
507
508 2008-08-28  Jim Meyering  <meyering@redhat.com>
509
510         * modules/getndelim2 (License): Relicense to LGPLv2+.
511         Approved by Richard Stallman for the version of 1995, and by
512         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
513
514 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
515
516         * lib/getdelim.c (flockfile, funlockfile): Make all of them
517         dummy if one is not available.  Do not touch them if
518         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
519         (getc_maybe_unlocked): New.
520         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
521
522 2008-08-26  Eric Blake  <ebb9@byu.net>
523
524         doc/INSTALL: resync from autoconf
525         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
526         (INSTALL_PRELUDE): Delete; this is done more efficiently by
527         moving...
528         * install.texi [!autoconf]: ...here.  Resync from autoconf.
529         * INSTALL: Regenerate.
530         * INSTALL.ISO: New file.
531         * INSTALL.UTF-8: Likewise.
532
533 2008-08-26  Jim Meyering  <meyering@redhat.com>
534
535         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
536         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
537         these definitions conditional, so that they may be overridden, too.
538
539 2008-08-26  Bruno Haible  <bruno@clisp.org>
540
541         Generate INSTALL file variants with prettier quotes.
542         * doc/Makefile (INSTALL_PRELUDE): New macro.
543         (INSTALL): Use it.
544         (INSTALL.ISO, INSTALL.UTF-8): New rules.
545
546 2008-08-26  Bruno Haible  <bruno@clisp.org>
547
548         Run makeinfo in an English locale.
549         * doc/Makefile (MAKEINFO): New variable.
550
551 2008-08-26  Bruno Haible  <bruno@clisp.org>
552
553         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
554         Suggested by Eric Blake.
555
556 2008-08-25  Bruno Haible  <bruno@clisp.org>
557
558         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
559
560 2008-08-25  Eric Blake  <ebb9@byu.net>
561
562         c-stack: test that stack overflow can be caught
563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
564         that platform allows handling stack overflow; at least OS/2 EMX
565         has sigaltstack, but crashes before transferring control to
566         handler on stack overflow.
567         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
568         check for HAVE_STACK_OVERFLOW_HANDLING.
569         Reported by Elbert Pol.
570
571 2008-08-25  Bruno Haible  <bruno@clisp.org>
572
573         * doc/posix-functions/strftime.texi: Fix description of strftime
574         module.
575
576 2008-08-24  Bruno Haible  <bruno@clisp.org>
577
578         * tests/uniwidth/test-uc_width2.c: New file.
579         * tests/uniwidth/test-uc_width2.sh: New file.
580         * modules/uniwidth/width-tests (Files): Add the new files.
581         (TESTS): Add uniwidth/test-uc_width2.sh.
582         (TESTS_ENVIRONMENT): New variable.
583         (check_PROGRAMS): Add test-uc_width2.
584         (test_uc_width2_SOURCES): New variable.
585
586         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
587         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
588         not 0x00AB.
589         Reported by Alexander V. Lukyanov <lav@netis.ru>.
590
591 2008-08-22  Eric Blake  <ebb9@byu.net>
592
593         test-lock, test-tls: mention why a test is skipped
594         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
595         skipped.
596         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
597
598         count-one-bits: relax license
599         * modules/count-one-bits (License): Relicense to LGPLv2+.
600         Suggested by Ludovic Courtès, approved by Ben Pfaff.
601
602 2008-08-22  Andreas Schwab  <schwab@suse.de>
603
604         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
605         Remove spurious space in assignment.
606
607 2008-08-21  Simon Josefsson  <simon@josefsson.org>
608
609         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
610         Paul Eggert <eggert@CS.UCLA.EDU>.
611
612 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
613
614         * modules/gettext: Add m4/threadlib.m4.
615
616 2008-08-19  Eric Blake  <ebb9@byu.net>
617
618         test-c-stack: fix compilation failure on FreeBSD 5.0
619         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
620         headers before <sys/resource.h>.
621         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
622         the bug.
623         Reported by Nelson H. F. Beebe.
624
625         strverscmp: migrate from "strverscmp.h" to <string.h>
626         * modules/string (Makefile.am): Add new hooks.
627         * modules/strverscmp (Files): Remove strverscmp.h.
628         (Depends-on): Add string.
629         (configure.ac): Add indicator.
630         (Include): Mention new header.
631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
632         defaults.
633         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
634         results.
635         * lib/strverscmp.h: Delete.
636         * lib/string.in.h (strverscmp): Provide declaration, when needed.
637         * tests/test-strverscmp.c (includes): Adjust client.
638         * lib/check-version.c (includes): Likewise.
639         * NEWS: Document the change.
640
641         strverscmp: add unit test
642         * modules/strverscmp-tests: New file.
643         * tests/test-strverscmp.c: Likewise.
644
645 2008-08-19  Simon Josefsson  <simon@josefsson.org>
646
647         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
648         regarding Windows crypto stuff, from Mono.
649
650 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
651
652         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
653         if present, for intel RND.  Return error on failures.
654
655 2008-08-18  Ben Pfaff  <blp@gnu.org>
656
657         gitlog-to-changelog: give better diagnostic for failed pipe-open
658         * build-aux/gitlog-to-changelog: Improve error message: suggest
659         that the version of Git may be too old.
660
661 2008-08-18  Simon Josefsson  <simon@josefsson.org>
662
663         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
664         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
665
666 2008-08-18  Bruno Haible  <bruno@clisp.org>
667
668         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
669         pthread_in_use().
670
671 2008-08-18  Bruno Haible  <bruno@clisp.org>
672
673         * lib/glthread/threadlib.c: Include <pthread.h>.
674
675 2008-08-18  Bruno Haible  <bruno@clisp.org>
676
677         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
678         glthread_recursive_lock_* macros.
679         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
680         Fix syntax error.
681
682 2008-08-18  Bruno Haible  <bruno@clisp.org>
683
684         * lib/glthread/thread.c: Avoid forcing a context switch right after
685         thread creation.
686
687 2008-08-17  Bruno Haible  <bruno@clisp.org>
688
689         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
690         * lib/glthread/thread.h: Provide Win32 specific implementation.
691         * modules/thread (Files): Add lib/glthread/thread.c.
692         (Depends-on): Add lock.
693         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
694
695 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
696
697         New module 'yield'.
698         * modules/yield: New file.
699         * lib/glthread/yield.h: New file.
700         * m4/yield.m4: New file.
701         * MODULES.html.sh (Multithreading): Add yield.
702
703 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
704
705         New module 'thread'.
706         * modules/thread: New file.
707         * lib/glthread/thread.h: New file.
708         * m4/thread.m4: New file.
709         * MODULES.html.sh (Multithreading): Add thread.
710
711 2008-08-17  Bruno Haible  <bruno@clisp.org>
712
713         * lib/glthread/lock.h: Include <stdlib.h> always.
714         * lib/glthread/tls.h: Likewise.
715         * lib/glthread/cond.h: Likewise.
716
717 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
718
719         New module 'cond'.
720         * modules/cond: New file.
721         * lib/glthread/cond.h: New file.
722         * lib/glthread/cond.c: New file.
723         * m4/cond.m4: New file.
724         * MODULES.html.sh (Multithreading): Add cond.
725
726 2008-08-16  Eric Blake  <ebb9@byu.net>
727
728         c-stack: fix regression on Irix 5.3 from 2008-06-21
729         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
730         sa_sigaction...
731         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
732         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
733         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
734         * modules/signal (Makefile.am): Use the value.
735         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
736         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
737         * doc/posix-headers/signal.texi (signal.h): Document this
738         portability issue.
739         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
740         Reported by Tom G. Christensen.
741
742 2008-08-17  Bruno Haible  <bruno@clisp.org>
743
744         New module 'threadlib'.
745         * modules/threadlib: New file.
746         * lib/glthread/threadlib.c: New file, extracted from
747         lib/glthread/lock.c.
748         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
749         functions.
750         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
751         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
752         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
753         macros.
754         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
755         (gl_DISABLE_THREADS): Remove macro.
756         * modules/lock (Files): Remove build-aux/config.rpath.
757         (Depends-on): Remove havelib. Add threadlib.
758         (configure.ac-early): Remove section.
759         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
760         * modules/tls (Depends-on): Remove lock. Add threadlib.
761         (Link): New section, copied from threadlib.
762         * MODULES.html.sh (Multithreading): Add threadlib.
763
764 2008-08-14  Bruno Haible  <bruno@clisp.org>
765
766         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
767         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
768         glthread_rwlock_unlock, glthread_rwlock_destroy,
769         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
770         glthread_recursive_lock_destroy): Define as macros always.
771         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
772         glthread_lock_lock.
773         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
774         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
775         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
776         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
777         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
778         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
779         (glthread_recursive_lock_lock_func): Renamed from
780         glthread_recursive_lock_lock.
781         (glthread_recursive_lock_unlock_func): Renamed from
782         glthread_recursive_lock_unlock.
783         (glthread_recursive_lock_destroy_func): Renamed from
784         glthread_recursive_lock_destroy.
785
786 2008-08-14  Bruno Haible  <bruno@clisp.org>
787
788         * lib/glthread/lock.h: Renamed from lib/lock.h.
789         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
790         * lib/glthread/tls.h: Renamed from lib/tls.h.
791         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
792         * lib/fstrcmp.c: Update includes.
793         * lib/strsignal.c: Update includes.
794         * modules/lock (Files, Makefile.am): Update.
795         (Include): Change to "glthread/lock.h".
796         * modules/tls (Files, Makefile.am): Update.
797         (Include): Change to "glthread/tls.h".
798         * tests/test-lock.c: Update includes.
799         * tests/test-tls.c: Update includes.
800         * NEWS: Mention the renamed header files.
801
802 2008-08-11  Jim Meyering  <meyering@redhat.com>
803
804         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
805
806 2008-08-11  Eric Blake  <ebb9@byu.net>
807
808         test-c-stack: avoid C99-ism
809         * tests/test-c-stack.c (main): Fix whitespace, move declaration
810         before statement.
811         Reported by Alain Guibert.
812
813 2008-08-10  Jim Meyering  <meyering@redhat.com>
814
815         ensure that return value of uinttostr et al are not ignored
816         * lib/inttostr.h (__GNUC_PREREQ): Define.
817         (__attribute_warn_unused_result__): Define.
818         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
819
820 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
821
822         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
823         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
824
825 2008-08-07  Jim Meyering  <meyering@redhat.com>
826
827         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
828
829         * modules/mkstemp (License): Relicense under LGPLv2+.
830         * modules/tempname (License): Likewise.
831
832 2008-08-06  Bruno Haible  <bruno@clisp.org>
833
834         * lib/poll.c (poll): Further micro-optimization.
835
836 2008-08-06  Jim Meyering  <meyering@redhat.com>
837
838         inet_pton.c: use locale-independent tolower
839         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
840         (inet_pton6): Use c_tolower rather than tolower.
841         * modules/inet_pton (Depends-on): Add c-ctype.
842
843 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
844
845         * lib/poll.c (poll): Avoid division when timeout is 0, cache
846         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
847
848 2008-08-06  Jim Meyering  <meyering@redhat.com>
849
850         * modules/inet_pton (License): Relicense under LGPLv2+.
851
852 2008-08-03  Bruno Haible  <bruno@clisp.org>
853
854         Additional non-aborting API for lock and tls.
855         * lib/lock.h: Include <errno.h>.
856         (glthread_lock_init): New macro/function.
857         (gl_lock_init): Define as wrapper around glthread_lock_init.
858         (glthread_lock_lock): New macro/function.
859         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
860         (glthread_lock_unlock): New macro/function.
861         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
862         (glthread_lock_destroy): New macro/function.
863         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
864         (glthread_rwlock_init): New macro/function.
865         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
866         (glthread_rwlock_rdlock): New macro/function.
867         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
868         (glthread_rwlock_wrlock): New macro/function.
869         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
870         (glthread_rwlock_unlock): New macro/function.
871         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
872         (glthread_rwlock_destroy): New macro/function.
873         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
874         (glthread_recursive_lock_init): New macro/function.
875         (gl_recursive_lock_init): Define as wrapper around
876         glthread_recursive_lock_init.
877         (glthread_recursive_lock_lock): New macro/function.
878         (gl_recursive_lock_lock): Define as wrapper around
879         glthread_recursive_lock_lock.
880         (glthread_recursive_lock_unlock): New macro/function.
881         (gl_recursive_lock_unlock): Define as wrapper around
882         glthread_recursive_lock_unlock.
883         (glthread_recursive_lock_destroy): New macro/function.
884         (gl_recursive_lock_destroy): Define as wrapper around
885         glthread_recursive_lock_destroy.
886         (glthread_once): New macro/function.
887         (gl_once): Define as wrapper around glthread_once.
888         Update function declarations.
889         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
890         glthread_rwlock_init. Return error code.
891         (glthread_rwlock_rdlock_multithreaded): Renamed from
892         glthread_rwlock_rdlock. Return error code.
893         (glthread_rwlock_wrlock_multithreaded): Renamed from
894         glthread_rwlock_wrlock. Return error code.
895         (glthread_rwlock_unlock_multithreaded): Renamed from
896         glthread_rwlock_unlock. Return error code.
897         (glthread_rwlock_destroy_multithreaded): Renamed from
898         glthread_rwlock_destroy. Return error code.
899         (glthread_recursive_lock_init_multithreaded): Renamed from
900         glthread_recursive_lock_init. Return error code.
901         (glthread_recursive_lock_lock_multithreaded): Renamed from
902         glthread_recursive_lock_lock. Return error code.
903         (glthread_recursive_lock_unlock_multithreaded): Renamed from
904         glthread_recursive_lock_unlock. Return error code.
905         (glthread_recursive_lock_destroy_multithreaded): Renamed from
906         glthread_recursive_lock_destroy. Return error code.
907         (glthread_once_call): Make static.
908         (glthread_once_multithreaded): Renamed from glthread_once.
909         * lib/tls.h: Include <errno.h>.
910         (glthread_tls_key_init): New macro/function.
911         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
912         (glthread_tls_set): New macro/function.
913         (gl_tls_set): Define as wrapper around glthread_tls_set.
914         (glthread_tls_key_destroy): New macro/function.
915         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
916         Update function declarations.
917         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
918         glthread_tls_get.
919         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
920
921 2008-08-04  Eric Blake  <ebb9@byu.net>
922
923         gnumakefile: use space, not TAB, outside of targets
924         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
925
926 2008-08-02  Jim Meyering  <meyering@redhat.com>
927
928         getdate.y: avoid locale-dependent date parsing failure
929         In Turkish locales, getdate would fail to recognize keywords
930         containing a lowercase "i".  The solution is not to rely on
931         locale-sensitive case-conversion.
932         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
933         (lookup_word): Use c_toupper in place of toupper.
934         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
935         Reported by Vefa Bicakci <bicave@superonline.com> in
936         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
937         * modules/getdate (Depends-on): Add c-ctype.
938
939 2008-08-02  Bruno Haible  <bruno@clisp.org>
940
941         * gnulib-tool (func_import): When updating or creating a .gitignore
942         file, prepend each added line with a slash, and ignore leading slashes
943         from the existing lines.
944         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
945
946 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
947
948         Portability fix for GNU make 3.79.1.
949         * top/GNUmakefile: Avoid 'else COND', which older GNU make
950         versions do not understand.
951
952 2008-08-01  Bruno Haible  <bruno@clisp.org>
953
954         Work around bug of HP-UX 10.20 cc with -0.0 literal.
955         * tests/test-isnanf.h (zero): New variable.
956         (main): Avoid literal -0.0f.
957         * tests/test-isnand.h (zero): New variable.
958         (main): Avoid literal -0.0.
959         * tests/test-isnanl.h (zero): New variable.
960         (main): Avoid literal -0.0L.
961         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
962         (test_float, test_double, test_long_double): Avoid literals -0.0f,
963         -0.0, -0.0L.
964         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
965         (test_signbitd): Avoid literal -0.0.
966         (test_signbitl): Avoid literal -0.0L.
967         * tests/test-ceilf1.c (zero): New variable.
968         (main): Avoid literal -0.0f.
969         * tests/test-ceill.c (zero): New variable.
970         (main): Avoid literal -0.0L.
971         * tests/test-floorf1.c (zero): New variable.
972         (main): Avoid literal -0.0f.
973         * tests/test-floorl.c (zero): New variable.
974         (main): Avoid literal -0.0L.
975         * tests/test-roundf1.c (zero): New variable.
976         (main): Avoid literal -0.0f.
977         * tests/test-round1.c (zero): New variable.
978         (main): Avoid literal -0.0.
979         * tests/test-roundl.c (zero): New variable.
980         (main): Avoid literal -0.0L.
981         * tests/test-truncf1.c (zero): New variable.
982         (main): Avoid literal -0.0f.
983         * tests/test-trunc1.c (zero): New variable.
984         (main): Avoid literal -0.0.
985         * tests/test-truncl.c (zero): New variable.
986         (main): Avoid literal -0.0L.
987         * tests/test-frexp.c (zero): New variable.
988         (main): Avoid literal -0.0.
989         * tests/test-frexpl.c (zero): New variable.
990         (main): Avoid literal -0.0L.
991         * tests/test-ldexpl.c (zero): New variable.
992         (main): Avoid literal -0.0L.
993         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
994         (zerod, zerol): New variables.
995         (test_function): Avoid literals -0.0, -0.0L.
996         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
997         (zerod, zerol): New variables.
998         (test_function): Avoid literals -0.0, -0.0L.
999         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1000         (zerod, zerol): New variables.
1001         (test_function): Avoid literals -0.0, -0.0L.
1002         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
1003         (zerod, zerol): New variables.
1004         (test_function): Avoid literals -0.0, -0.0L.
1005         * tests/test-strtod.c (zero): New variable.
1006         (main): Avoid literal -0.0.
1007         Reported by Jonathan C. Patschke <jp@centtech.com>.
1008
1009 2008-07-31  Jim Meyering  <meyering@redhat.com>
1010
1011         sha256.h: correct definition of SHA224_DIGEST_SIZE
1012         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
1013         Reported by Paulie Pena IV <paulie4@gmail.com>.
1014         Define as 224 / 8, rather than as a literal.
1015         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
1016         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
1017         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
1018
1019 2008-07-31  Bruno Haible  <bruno@clisp.org>
1020
1021         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
1022         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
1023         Reported by Jonathan Patschke <jp@centtech.com>.
1024
1025 2008-07-31  Bruno Haible  <bruno@clisp.org>
1026
1027         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
1028         Reported by Paolo Bonzini <bonzini@gnu.org>.
1029
1030 2008-07-30  Eric Blake  <ebb9@byu.net>
1031
1032         test-strtod: allow compilation without -lm
1033         * tests/test-strtod.c (main): Avoid link dependence on fabs.
1034         Reported by Dennis Clarke <blastwave@gmail.com>.
1035
1036 2008-07-28  Jim Meyering  <meyering@redhat.com>
1037
1038         bootstrap: work also when there are no .po files in po/
1039         * build-aux/bootstrap (update_po_files): Complete the change
1040         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
1041
1042 2008-07-27  Jim Meyering  <meyering@redhat.com>
1043
1044         * users.txt: Add zile.
1045
1046 2008-07-26  Ben Pfaff  <blp@gnu.org>
1047
1048         Add missing dependencies on new m4/exponent[fdl].m4 files.
1049         * modules/isnanf-nolibm: Add m4/exponentf.m4.
1050         * modules/isnand-nolibm: Add m4/exponentd.m4.
1051         * modules/isnanl-nolibm: Add m4/exponentl.m4.
1052         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
1053         m4/isnan[fdl].m4, because the macros actually used moved.
1054         Reported by Jim Meyering.
1055
1056 2008-07-14  Ben Pfaff  <blp@gnu.org>
1057
1058         Add isinf module.
1059         * lib/isinf.c: New file.
1060         * lib/math.in.h: Define isinf macro if we have decided to replace
1061         it.
1062         * m4/isinf.m4: New file.
1063         * m4/math_h.m4: Initialize and substitute variables for isinf
1064         module.
1065         * modules/isinf: New file.
1066         * modules/isinf-tests: New file.
1067         * modules/math: Add substitutions for new module.
1068         * tests/test-isinf.c: New file.
1069         * doc/posix-functions/isinf.texi: Mention new module.
1070         * MODULES.html.sh: Mention new module.
1071
1072 2008-07-14  Ben Pfaff  <blp@gnu.org>
1073
1074         Factor out some macros for use by additional modules.
1075         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
1076         exponentf.m4.
1077         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
1078         exponentd.m4.
1079         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
1080         file exponentl.m4.
1081         * m4/exponentf.m4: New file.
1082         * m4/exponentd.m4: New file.
1083         * m4/exponentl.m4: New file.
1084         * modules/isnanf: Use new file m4/exponentf.m4.
1085         * modules/isnand: Use new file m4/exponentd.m4.
1086         * modules/isnanl: Use new file m4/exponentl.m4.
1087
1088 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
1089
1090         mktime.c: normalize tp->tm_isdst value to -1/0/1.
1091         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
1092         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
1093         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
1094
1095         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
1096         readlink on platforms without PATH_MAX.
1097
1098 2008-07-21  Eric Blake  <ebb9@byu.net>
1099
1100         Warn, not fail, on stale version.
1101         * top/GNUmakefile (_curr-ver): Tone down previous patch.
1102
1103         Don't allow installation with stale devel version number.
1104         * top/GNUmakefile (_is-install-target): New macro.
1105         (_curr-ver): Forbid installation with stale version number.
1106
1107 2008-07-20  Bruno Haible  <bruno@clisp.org>
1108
1109         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
1110         TESTS_ENVIRONMENT.
1111         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
1112
1113 2008-07-20  Bruno Haible  <bruno@clisp.org>
1114
1115         * lib/c-stack.h (c_stack_action): Add documentation.
1116         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
1117
1118 2008-07-20  Bruno Haible  <bruno@clisp.org>
1119
1120         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1121         * modules/readlink (License): Likewise.
1122
1123 2008-07-17  Eric Blake  <ebb9@byu.net>
1124
1125         * modules/c-stack (Link): Fix typo.
1126
1127         Make c-stack use libsigsegv, when available.
1128         * modules/c-stack (Depends-on): Add libsigsegv.
1129         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1130         needed.
1131         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1132         (segv_handler, overflow_handler, c_stack_action)
1133         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1134         implementation when libsigsegv is available, but only when using
1135         the library is necessary.
1136         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1137         comment, explaining why XSI check fails on Linux.
1138         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1139         * tests/test-c-stack2.sh: Tweak skip message.
1140         * NEWS: Document new link-time requirements.
1141
1142 2008-07-16  Eric Blake  <ebb9@byu.net>
1143
1144         c-stack: Expose false positives when not using libsigsegv.
1145         * modules/c-stack-tests (Files): Expand test.
1146         * tests/test-c-stack.c (main): Add means to conditionally trigger
1147         non-overflow SIGSEGV.
1148         * tests/test-c-stack2.sh: New file.
1149
1150 2008-07-14  Bruno Haible  <bruno@clisp.org>
1151
1152         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1153         Reported by Eric Blake.
1154
1155 2008-07-14  Sam Steingold  <sds@gnu.org>
1156             Bruno Haible  <bruno@clisp.org>
1157
1158         New module libsigsegv.
1159         * modules/libsigsegv: New file.
1160         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1161         modifications.
1162         * MODULES.html.sh (Signal handling): New section.
1163
1164 2008-07-14  Bruno Haible  <bruno@clisp.org>
1165
1166         * modules/unictype/ctype-* (Description): Add the word "function".
1167         Improves the resulting doc in MODULES.html.
1168
1169 2008-07-12  Ben Pfaff  <blp@gnu.org>
1170
1171         Add longlong module.
1172         * modules/longlong: New file.
1173
1174 2008-07-12  Bruno Haible  <bruno@clisp.org>
1175
1176         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1177         to empty.
1178
1179 2008-07-10  Ben Pfaff  <blp@gnu.org>
1180
1181         Add isnan module.
1182         * doc/posix-functions/isnan.texi: Mention new module.
1183         * lib/math.in.h: Define isnan macro if we have decided to replace
1184         it.
1185         * m4/isnan.m4: New file.
1186         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1187         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1188         also.
1189         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1190         redundancy.
1191         * m4/math_h.m4: Initialize and substitute variables for isnan
1192         module.
1193         * modules/isnan: New file.
1194         * modules/isnan-tests: New file.
1195         * modules/math: Add substitutions for new module.
1196         * tests/test-isnan.c: New file.
1197         * MODULES.html.sh: Mention new module.
1198
1199 2008-07-10  Ben Pfaff  <blp@gnu.org>
1200
1201         Add isnanf module.
1202         * lib/isnanf.m4: New file.
1203         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1204         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1205         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1206         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1207         * modules/isnanf: New file.
1208         * modules/isnanf-tests: New file.
1209         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1210         files.
1211         * tests/test-isnanf-nolibm.c: factored most of its contents into
1212         new file tests/test-isnanf.h.
1213         * tests/test-isnanf.h: New file.
1214         * tests/test-isnanf.c: New file.
1215         * MODULES.html.sh: Mention new module.
1216         * doc/glibc-functions/isnanf.texi: Mention new module.
1217
1218 2008-07-10  Ben Pfaff  <blp@gnu.org>
1219
1220         Add isnand module.
1221         * lib/isnand.h: New file.
1222         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1223         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1224         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1225         functionality also.
1226         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1227         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1228         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1229         * modules/isnand: New file.
1230         * modules/isnand-tests: New file.
1231         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1232         files.
1233         * tests/test-isnand-nolibm.c: factored most of its contents into
1234         new file tests/test-isnand.h.
1235         * tests/test-isnand.h: New file.
1236         * tests/test-isnand.c: New file.
1237         * MODULES.html.sh: Mention new module.
1238
1239 2008-07-10  Ben Pfaff  <blp@gnu.org>
1240
1241         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1242         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1243         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1244         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1245         * modules/isnanf-nolibm: Update references to renamed files.
1246         * modules/isnand-nolibm: Likewise.
1247         * modules/isnanf-nolibm-tests: Likewise.
1248         * modules/isnand-nolibm-tests: Likewise.
1249         * lib/frexp.c: Likewise.
1250         * lib/isfinite.c: Likewise.
1251         * lib/signbitd.c: Likewise.
1252         * lib/signbitf.c: Likewise.
1253         * lib/vasnprintf.c: Likewise.
1254         * tests/test-ceilf1.c: Likewise.
1255         * tests/test-ceilf2.c: Likewise.
1256         * tests/test-floorf1.c: Likewise.
1257         * tests/test-floorf2.c: Likewise.
1258         * tests/test-frexp.c: Likewise.
1259         * tests/test-round1.c: Likewise.
1260         * tests/test-round2.c: Likewise.
1261         * tests/test-roundf1.c: Likewise.
1262         * tests/test-strtod.c: Likewise.
1263         * tests/test-trunc1.c: Likewise.
1264         * tests/test-trunc2.c: Likewise.
1265         * tests/test-truncf1.c: Likewise.
1266         * tests/test-truncf2.c: Likewise.
1267         * NEWS: Mention the renamed header files.
1268
1269 2008-07-11  Jim Meyering  <meyering@redhat.com>
1270
1271         vc-list-files: make the last-resort awk code more portable
1272         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1273         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1274         does not support it.
1275
1276 2008-07-10  Eric Blake  <ebb9@byu.net>
1277
1278         Work with tar's bootstrap.
1279         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1280         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1281         an m4 comment.
1282
1283 2008-07-09  Jim Meyering  <meyering@redhat.com>
1284
1285         posix-shell.m4: fix typo that made this test malfunction
1286         * m4/posix-shell.m4: Remove capitalization in variable name.
1287
1288 2008-07-08  Bruno Haible  <bruno@clisp.org>
1289
1290         * m4/onceonly.m4: Update comments.
1291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1292
1293 2008-07-04  Jim Meyering  <meyering@redhat.com>
1294
1295         * users.txt: Add vc-dwim.
1296         (bison, coreutils): Use the gitweb URL.
1297
1298 2008-07-03  Jim Meyering  <meyering@redhat.com>
1299
1300         * users.txt: Add libffcall.  From Sam Steingold.
1301
1302 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
1303
1304         getdate.y: do not ignore TZ with relative day, month or year offset
1305         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1306         relative-date-handling, since otherwise, the latter would clobber the
1307         sole output (an updated Start value) of the tz-handling block.
1308         * tests/test-getdate.c: Tests for the fix
1309
1310 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1311
1312         Recognize 'foo_LIBRARIES += libgnu.a'.
1313         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1314         makefile snippet has already specified an installation location,
1315         also using '+='.
1316
1317 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
1318
1319         getdate.y: factor out common actions
1320         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1321         Use them in place of open-coded actions.
1322
1323 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1324
1325         Add self-test for getdate module.
1326         * modules/getdate-tests: New file.
1327         * tests/test-getdate.c: New file.
1328
1329 2008-06-29  Bruno Haible  <bruno@clisp.org>
1330
1331         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1332         .gitignore.
1333         Reported by Sylvain Beucler <beuc@beuc.net>.
1334
1335 2008-06-29  Bruno Haible  <bruno@clisp.org>
1336
1337         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1338         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1339
1340 2008-06-29  Bruno Haible  <bruno@clisp.org>
1341
1342         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1343         EXTRA_DIST.
1344         Reported by Sylvain Beucler <beuc@beuc.net>.
1345
1346 2008-06-26  Jim Meyering  <meyering@redhat.com>
1347
1348         make several modules depend on the "open" module
1349         This provides slightly increased consistency when opening-for-write
1350         the name of a non-directory spelled with a trailing slash.
1351         * modules/chdir-safer: Likewise.
1352         * modules/chown: Likewise.
1353         * modules/clean-temp: Likewise.
1354         * modules/copy-file: Likewise.
1355         * modules/fchdir: Likewise.
1356         * modules/fcntl-safer: Likewise.
1357         * modules/pipe: Likewise.
1358         * modules/utime: Likewise.
1359         Prompted by Eric Blake and Bruno Haible.
1360
1361 2008-06-24  Andreas Schwab  <schwab@suse.de>
1362
1363         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1364         literals can be used as initializers for global variables.
1365
1366 2008-06-23  Eric Blake  <ebb9@byu.net>
1367
1368         Make gnulib-cache.m4 easier to diff.
1369         * gnulib-tool (func_import): Allow newlines when reading cached
1370         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1371
1372 2008-06-23  Bruno Haible  <bruno@clisp.org>
1373
1374         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1375         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1376         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1377         m4/signalblocking.m4.
1378         (gl_PREREQ_SIGACTION): Don't invoke it.
1379         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1380         gl_PREREQ_SIG_HANDLER_H.
1381         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1382         Don't check for sigaction here.
1383
1384 2008-06-23  Bruno Haible  <bruno@clisp.org>
1385
1386         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1387         (install_handlers): Don't set the SA_RESETHAND flag.
1388
1389 2008-06-23  Bruno Haible  <bruno@clisp.org>
1390
1391         * m4/sigaction.m4: Comment fixes.
1392         * lib/signal.in.h: Likewise.
1393
1394 2008-06-23  Eric Blake  <ebb9@byu.net>
1395
1396         Fix typo.
1397         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1398
1399         Avoid SA_ namespace.
1400         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1401         Reported by Ralf Wildenhues.
1402
1403         Avoid test failure due to SA_RESTORER.
1404         * tests/test-sigaction.c (SA_MASK): New macro.
1405         (main): Avoid failing due to extension flags being set.
1406         Reported by Jim Meyering.
1407
1408         Revert use of sig-handler.h in sigprocmask.c.
1409         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1410         it requires the existence of struct sigaction.
1411         * lib/sigprocmask.c (handler_t): Restore typedef.
1412         (rpl_signal, old_handlers): Use local type.
1413
1414 2008-06-22  Bruno Haible  <bruno@clisp.org>
1415
1416         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1417         conditionally.
1418         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1419
1420 2008-06-22  Bruno Haible  <bruno@clisp.org>
1421
1422         * doc/posix-functions/siginterrupt.texi: Move note.
1423
1424         * lib/signal.in.h (SA_RESTART): New macro.
1425         * lib/sigaction.c: Update comment.
1426
1427         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1428
1429         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1430         (gl_PREREQ_SIGPROCMASK): Invoke it.
1431         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1432
1433         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1434
1435         * lib/sigprocmask.c: Update a comment.
1436
1437 2008-06-21  Eric Blake  <ebb9@byu.net>
1438
1439         Use sigaction module rather than signal().
1440         * modules/c-stack (Depends-on): Add sigaction.
1441         * modules/fatal-signal (Depends-on): Likewise.
1442         * modules/nanosleep (Depends-on): Likewise.
1443         * modules/sigprocmask (Files): Add sig-handler.h.
1444         * modules/sigaction (Files): Likewise.
1445         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1446         Eggert.
1447         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1448         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1449         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1450         (init_fatal_signals): Likewise.
1451         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1452         (siginterrupt): Delete fallback.
1453         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1454         instead.
1455         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1456         siginterrupt.
1457
1458         New module sigaction, for mingw.
1459         * modules/sigaction: New module...
1460         * modules/sigaction-tests: ...and its test.
1461         * m4/sigaction.m4: New file.
1462         * lib/sigaction.c: Likewise.
1463         * tests/test-sigaction.c: Likewise.
1464         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1465         * modules/signal (Makefile.am): Likewise.
1466         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1467         needed.
1468         * doc/posix-headers/signal.texi (signal.h): Mention provided
1469         types.
1470         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1471         that sigaction is preferable.
1472         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1473         module.
1474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1475         sigaction.
1476
1477         Improve robustness of sigprocmask by overriding signal.
1478         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1479         is in use.
1480         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1481         (SIGKILL, SIGSTOP): Provide fallbacks.
1482         (rpl_signal): Implement.
1483         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1484         signal can be called inside handlers.
1485
1486         Fix nanosleep module on mingw.
1487         * modules/nanosleep (Depends-on): Add sys_select.
1488         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1489
1490         Fix licensing of sigprocmask.
1491         * modules/raise (License): Relicense as LGPL.
1492
1493 2008-06-21  Bruno Haible  <bruno@clisp.org>
1494
1495         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1496         result if it contains question marks.
1497         Reported by Michael Geng <linux@michaelgeng.de>.
1498
1499 2008-06-19  Bruno Haible  <bruno@clisp.org>
1500
1501         Fix CVS-ism.
1502         * doc/gnulib.texi: Include updated-stamp.texi.
1503         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1504         (updated-stamp.texi): New rule.
1505         (gnulib.info): Depend on it.
1506         * doc/.gitignore: Add updated-stamp.texi.
1507         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1508
1509 2008-06-19  Bruno Haible  <bruno@clisp.org>
1510
1511         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1512         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1513
1514 2008-06-19  Eric Blake  <ebb9@byu.net>
1515
1516         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1517         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1518         Reported by Stepan Kasal.
1519
1520 2008-06-18  Bruno Haible  <bruno@clisp.org>
1521
1522         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1523         Reported by Eric Blake.
1524
1525 2008-06-18  Eric Blake  <ebb9@byu.net>
1526
1527         Work around cygwin 1.5.25 strsignal bug.
1528         * tests/test-strsignal.c: Allow for const char *.
1529         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1530
1531 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1532
1533         * users.txt: Update URL to article and add author/date
1534         information.
1535
1536 2008-06-17  Bruno Haible  <bruno@clisp.org>
1537
1538         New macro gl_DISABLE_THREADS.
1539         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1540         if the user did not pass --enable-threads or --disable-threads option.
1541         (gl_DISABLE_THREADS): New macro.
1542         Reported by Eric Blake <ebb9@byu.net>.
1543
1544 2008-06-17  Bruno Haible  <bruno@clisp.org>
1545
1546         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1547         when the macro ignores it.
1548         Based on a patch by Eric Blake <ebb9@byu.net>.
1549
1550 2008-06-17  Bruno Haible  <bruno@clisp.org>
1551
1552         * modules/tls (License): Change to LGPLv2+.
1553         Reported by Eric Blake.
1554
1555 2008-06-17  Eric Blake  <ebb9@byu.net>
1556
1557         Simplify c-stack prerequisites.
1558         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1560         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1561         check.
1562         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1563         <sys/resource.h>.
1564
1565         Move c-stack test into testsuite.
1566         * modules/c-stack-tests: New file.
1567         * lib/c-stack.c [DEBUG]: Move test program...
1568         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1569         fail test if sigaltstack is lacking.
1570         * tests/test-c-stack.sh: New driver file.
1571
1572 2008-06-16  Eric Blake  <ebb9@byu.net>
1573
1574         Use raise module consistently.
1575         * modules/fatal-signal (Depends-on): Add raise.
1576         * modules/sigprocmask (Depends-on): Likewise.
1577         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1578         * lib/sigprocmask.c (sigprocmask): Likewise.
1579         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1580         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1581
1582         Fix compliance bug in sigpending.
1583         * lib/sigprocmask.c (sigpending): Return pending array via
1584         parameter, not return value.
1585
1586 2008-06-14  Eric Blake  <ebb9@byu.net>
1587
1588         Improve obstack-printf test code.
1589         * tests/test-obstack-printf.c (test_function): Fix comment, and
1590         simplify usage of obstack_* in macros.  Add a test for coverage.
1591         Reported by Bruno Haible.
1592
1593 2008-06-14  Bruno Haible  <bruno@clisp.org>
1594
1595         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1596         array size as a constant, not as a const variable.
1597         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1598         AC_USE_SYSTEM_EXTENSIONS.
1599         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1600         Test whether the obstack_printf function actually exists.
1601         * modules/obstack-printf (Depends-on): Add extensions.
1602         (Include): Remove obstack.h.
1603         * modules/obstack-printf-posix (Depends-on): Add extensions.
1604         (Include): Remove obstack.h.
1605
1606 2008-06-13  Eric Blake  <ebb9@byu.net>
1607
1608         Add obstack-printf and obstack-printf-posix modules.
1609         * modules/obstack-printf: New file.
1610         * modules/obstack-printf-posix: Likewise.
1611         * MODULES.html.sh (Misc): Mention them.
1612         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1613         Likewise.
1614         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1615         Likewise.
1616         * modules/stdio (Makefile.am): Accomodate new modules.
1617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1618         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1619         Declare.
1620         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1621         functions.
1622         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1623         (gl_REPLACE_OBSTACK_PRINTF): New macros
1624         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1625         * tests/test-obstack-printf.c: New file.
1626         * modules/obstack-printf-tests: Likewise.
1627         * modules/obstack-printf-posix-tests: Likewise.
1628
1629 2008-06-11  Bruno Haible  <bruno@clisp.org>
1630
1631         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1632         * lib/open.c: Include errno.h.
1633         (open): Fail when attempting to write to a file that has a trailing
1634         slash.
1635         * tests/test-open.c (main): Test against trailing slash bug.
1636         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1637
1638 2008-06-10  Bruno Haible  <bruno@clisp.org>
1639
1640         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1641         for $? to work inside the trap command, with various /bin/sh-s.
1642         * tests/test-vc-list-files-cvs.sh: Likewise.
1643
1644 2008-06-10  Bruno Haible  <bruno@clisp.org>
1645
1646         * lib/acl-internal.h: Don't include gettext.h here.
1647         * lib/set-mode-acl.c: Include gettext.h here.
1648         * lib/copy-acl.c: Likewise.
1649
1650 2008-06-10  Bruno Haible  <bruno@clisp.org>
1651
1652         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1653         * lib/wait-process.c (wait_subprocess): Likewise.
1654         * lib/execute.h (execute): Add termsigp argument.
1655         * lib/execute.c (execute): Likewise.
1656         * lib/csharpcomp.c (compile_csharp_using_pnet,
1657         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1658         * lib/csharpexec.c (execute_csharp_using_pnet,
1659         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1660         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1661         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1662         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1663         is_jikes_present): Update.
1664         * lib/javaexec.c (execute_java_class): Update.
1665         * lib/javaversion.c (execute_and_read_line): Update.
1666         * NEWS: Document the changes.
1667         Reported by Eric Blake.
1668
1669 2008-06-10  Eric Blake  <ebb9@byu.net>
1670
1671         Add missing include.
1672         * tests/test-strstr.c (includes): Add <signal.h>.
1673         * tests/test-strcasestr.c (includes): Likewise.
1674         * tests/test-memmem.c (includes): Likewise.
1675
1676 2008-06-10  Bruno Haible  <bruno@clisp.org>
1677
1678         * lib/wait-process.c (wait_subprocess): Add an assertion.
1679
1680 2008-06-10  Bruno Haible  <bruno@clisp.org>
1681
1682         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1683
1684 2008-06-10  Bruno Haible  <bruno@clisp.org>
1685
1686         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1687         using alarm().
1688         * tests/test-strcasestr.c (main): Likewise.
1689         * tests/test-strstr.c (main): Likewise.
1690
1691 2008-06-09  Bruno Haible  <bruno@clisp.org>
1692
1693         Work around the Solaris 10 ACE ACLs ABI change.
1694         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1695         declare if ACL_NO_TRIVIAL is present.
1696         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1697         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1698         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1699         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1700         define if ACL_NO_TRIVIAL is present.
1701         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1702         and use the current ABI.
1703         (file_has_acl): Use same #if condition as elsewhere.
1704         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1705         in use, and use the current ABI.
1706         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1707         Reported by Jim Meyering.
1708
1709 2008-06-09  Eric Blake  <ebb9@byu.net>
1710
1711         Work around environments that (stupidly) ignore SIGALRM.
1712         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1713         before using alarm().
1714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1715         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1716         Reported by Ian Beckwith <ianb@erislabs.net>.
1717
1718         Produce autobuild blurb earlier in log.
1719         * modules/autobuild (configure.ac-early): Move AB_INIT here.
1720
1721 2008-06-09  Jim Meyering  <meyering@redhat.com>
1722         and Ondřej Vašík  <ovasik@redhat.com>
1723
1724         utimens.c: correct kernel bug work-around
1725         Ondřej Vašík found that the invalid return value of 280 indicates
1726         failure, not success, and the kernel bug we're trying to work
1727         around affects not just the utimensat call, but also the fallback
1728         futimens call.
1729         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
1730         not success.
1731         [HAVE_FUTIMENS]: Use the same work-around, here.
1732
1733 2008-06-09  Jim Meyering  <meyering@redhat.com>
1734
1735         add more guards around definition of ACE_-related code
1736         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
1737         ALLOW and ACE_OWNER are also defined.
1738
1739 2008-06-08  Bruno Haible  <bruno@clisp.org>
1740
1741         * lib/acl-internal.h: Add me as co-author.
1742         * lib/file-has-acl.c: Likewise.
1743         * lib/set-mode-acl.c: Likewise.
1744         * lib/copy-acl.c: Likewise.
1745
1746 2008-06-08  Bruno Haible  <bruno@clisp.org>
1747
1748         Add support for AIX ACLs.
1749         * lib/acl-internal.h (acl_nontrivial): New declaration.
1750         * lib/file-has-acl.c (acl_nontrivial): New function.
1751         (file_has_acl): Add implementation using AIX 4 ACL API.
1752         * lib/set-mode-acl.c (qset_acl): Likewise.
1753         * lib/copy-acl.c (qcopy_acl): Likewise.
1754
1755 2008-06-08  Bruno Haible  <bruno@clisp.org>
1756
1757         Add support for HP-UX ACLs.
1758         * lib/acl-internal.h (acl_nontrivial): New declaration.
1759         * lib/file-has-acl.c (acl_nontrivial): New function.
1760         (file_has_acl): Add implementation using HP-UX 11 ACL API.
1761         * lib/set-mode-acl.c (qset_acl): Likewise.
1762         * lib/copy-acl.c (qcopy_acl): Likewise.
1763
1764 2008-06-08  Bruno Haible  <bruno@clisp.org>
1765
1766         Add support for Cygwin ACLs.
1767         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
1768         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
1769         the chmod_or_fchmod call.
1770         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
1771
1772 2008-06-08  Bruno Haible  <bruno@clisp.org>
1773
1774         Fix bug with setuid modes in Solaris 10+ code.
1775         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
1776         succeeded, when the mode contains some special bits.
1777
1778 2008-06-08  Bruno Haible  <bruno@clisp.org>
1779
1780         Add support for Solaris 7..10 ACLs.
1781         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
1782         declarations.
1783         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
1784         functions.
1785         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
1786         * lib/set-mode-acl.c (qset_acl): Likewise.
1787         * lib/copy-acl.c (qcopy_acl): Likewise.
1788
1789 2008-06-08  Bruno Haible  <bruno@clisp.org>
1790
1791         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
1792         declaration.
1793         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
1794         (acl_access_nontrivial): Remove MacOS X case.
1795         (file_has_acl): Use acl_extended_nontrivial.
1796         * lib/copy-acl.c (qcopy_acl): Likewise.
1797
1798 2008-06-08  Bruno Haible  <bruno@clisp.org>
1799
1800         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
1801
1802 2008-06-08  Jim Meyering  <meyering@redhat.com>
1803
1804         * modules/acl (Maintainer): Add Bruno Haible.
1805
1806 2008-06-07  Bruno Haible  <bruno@clisp.org>
1807
1808         Improve support for Tru64 ACLs.
1809         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
1810         ACL on OSF/1.
1811
1812 2008-06-07  Bruno Haible  <bruno@clisp.org>
1813
1814         Add support for MacOS X ACLs.
1815         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
1816         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
1817         * lib/set-mode-acl.c (qset_acl): Likewise.
1818         * lib/copy-acl.c (qcopy_acl): Likewise.
1819
1820 2008-06-07  Bruno Haible  <bruno@clisp.org>
1821
1822         Fix memory leak introduced on 2008-05-22.
1823         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
1824         use.
1825
1826 2008-06-07  Bruno Haible  <bruno@clisp.org>
1827
1828         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
1829         to construct an empty ACL.
1830
1831 2008-06-07  Bruno Haible  <bruno@clisp.org>
1832
1833         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
1834         precisely.
1835         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
1836
1837 2008-06-07  Bruno Haible  <bruno@clisp.org>
1838
1839         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
1840         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
1841
1842 2008-06-07  Bruno Haible  <bruno@clisp.org>
1843
1844         * doc/posix-functions/_setjmp.texi: Explain the use of this function
1845         regardless of POSIX.
1846         * doc/posix-functions/_longjmp.texi: Likewise.
1847         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
1848         SystemV platform in this case.
1849
1850 2008-06-06  Eric Blake  <ebb9@byu.net>
1851
1852         Document abort() bugs.
1853         * doc/posix-functions/abort.texi (abort): Mention anomalies.
1854
1855         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
1856         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
1857         sigsetjmp.
1858         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
1859         siglongjmp, but only as a macro.
1860         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
1861         is obsolete.
1862         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
1863
1864         Tweak documentation to cover cygwin argz bugs.
1865         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
1866         argz bug fix; no code change needed since no cygwin releases
1867         occurred between the last fix and the bug being tested.
1868         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
1869         module and recently fixed cygwin bugs.
1870         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
1871         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
1872         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
1873         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
1874         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
1875         Likewise.
1876         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
1877         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
1878         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
1879         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
1880         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
1881         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
1882         Likewise.
1883
1884         Avoid gcc warning on cygwin.
1885         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
1886         !ACL_NO_TRIVIAL]: Avoid unused variable.
1887
1888 2008-06-05  Eric Blake  <ebb9@byu.net>
1889
1890         Be tolerant of UNKNOWN version in gnulib-tool test dir.
1891         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
1892         git-version-gen fails to come up with a version.
1893         Reported by Simon Josefsson.
1894
1895 2008-06-05  Jim Meyering  <meyering@redhat.com>
1896             Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         utimens.c: work around a probable Linux kernel bug
1899         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
1900         appears to be a kernel bug that causes utimensat to return 280
1901         instead of 0, indicating success.
1902
1903 2008-06-04  Bruno Haible  <bruno@clisp.org>
1904
1905         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
1906         2008-06-01 commit.
1907
1908 2008-06-04  Bruno Haible  <bruno@clisp.org>
1909
1910         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
1911         * lib/file-has-acl.c (acl_access_nontrivial): New function.
1912         (file_has_acl): Use it. Save errno afterwards.
1913         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
1914
1915 2008-06-03  Bruno Haible  <bruno@clisp.org>
1916
1917         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
1918         draft code. Simplify #ifs.
1919         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
1920         Put Solaris code after POSIX-draft code. Fix comments regarding
1921         Solaris 10, HP-UX. Mention Cygwin.
1922         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
1923
1924 2008-06-03  Eric Blake  <ebb9@byu.net>
1925
1926         Provide fallback for older kernels.
1927         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
1928         Provide runtime fallback if kernel lacks support.
1929         Reported by Mike Frysinger.
1930
1931 2008-06-02  Bruno Haible  <bruno@clisp.org>
1932
1933         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
1934         it exists.
1935
1936 2008-06-02  Bruno Haible  <bruno@clisp.org>
1937
1938         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
1939         * lib/copy-acl.c (qcopy_acl): Update comment.
1940
1941 2008-06-02  Bruno Haible  <bruno@clisp.org>
1942
1943         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
1944         like ACL APIs.
1945
1946 2008-06-02  Bruno Haible  <bruno@clisp.org>
1947
1948         * tests/test-file-has-acl.sh: Use different code for Cygwin.
1949         * tests/test-set-mode-acl.sh: Likewise.
1950         * tests/test-copy-acl.sh: Likewise.
1951         * tests/test-copy-file.sh: Likewise.
1952
1953 2008-06-02  Bruno Haible  <bruno@clisp.org>
1954
1955         * tests/test-file-has-acl.sh: Remove unused code.
1956
1957 2008-06-01  Bruno Haible  <bruno@clisp.org>
1958
1959         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
1960         (copy_acl): Just a wrapper around qcopy_acl that emits the error
1961         messages.
1962         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
1963
1964 2008-06-01  Bruno Haible  <bruno@clisp.org>
1965
1966         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
1967         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
1968         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
1969         APIs.
1970         * modules/acl-tests (configure.ac): Remove tests now contained in
1971         m4/acl.m4.
1972
1973 2008-06-02  Jim Meyering  <meyering@redhat.com>
1974
1975         announce-gen: use a better key-server host name
1976         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
1977         it may be more consistently reliable.  Suggested by Werner Koch
1978         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
1979
1980 2008-06-01  Bruno Haible  <bruno@clisp.org>
1981
1982         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
1983         Reported by Voroskoi Andras <voroskoi@gmail.com>.
1984
1985 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
1986
1987         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
1988
1989 2008-06-01  Bruno Haible  <bruno@clisp.org>
1990
1991         New ACL tests.
1992         * tests/test-file-has-acl.sh: New file.
1993         * tests/test-file-has-acl.c: New file.
1994         * tests/test-set-mode-acl.sh: New file.
1995         * tests/test-set-mode-acl.c: New file.
1996         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
1997         * tests/test-copy-acl.c: New file.
1998         * modules/acl-tests: New file, based on modules/copy-file-tests.
1999         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
2000         (Depends-on): Add acl-tests.
2001         (configure.ac): Remove checks.
2002         (Makefile.am): Don't create test-sameacls program here any more.
2003
2004 2008-06-01  Bruno Haible  <bruno@clisp.org>
2005
2006         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
2007         * tests/test-sameacls.c: Include progname.h.
2008         (main): Invoke set_program_name. Portability fixes for MacOS X,
2009         Solaris, HP-UX.
2010
2011 2008-06-01  Bruno Haible  <bruno@clisp.org>
2012
2013         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
2014         function.
2015         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
2016
2017 2008-06-01  Bruno Haible  <bruno@clisp.org>
2018
2019         * modules/rpmatch (Depends-on): Add strdup.
2020
2021 2008-06-01  Bruno Haible  <bruno@clisp.org>
2022
2023         * lib/pipe.c: Include unistd-safer.h.
2024         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
2025         * modules/pipe (Depends-on): Add unistd-safer.
2026
2027 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2028
2029         * modules/autobuild (configure.ac): Call AB_INIT.
2030
2031 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2032
2033         * tests/test-getaddrinfo.c: Don't print debug messages by default.
2034         Suggested by Bruno Haible <bruno@clisp.org>.
2035
2036 2008-05-30  Simon Josefsson  <simon@josefsson.org>
2037
2038         * tests/test-base64.c: Cast size_t to unsigned long when invoking
2039         printf.  Use %lu instead of %d.  Reported by Bruno Haible
2040         <bruno@clisp.org>.
2041
2042 2008-05-29  Eric Blake  <ebb9@byu.net>
2043
2044         Prefer new POSIX 200x interfaces over futimesat.
2045         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
2046         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
2047         when available.
2048         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
2049
2050 2008-05-28  Bruno Haible  <bruno@clisp.org>
2051
2052         * modules/stpcpy (License): Change to LGPLv2+.
2053         Requested by David Lutterkort <dlutter@redhat.com>.
2054
2055 2008-05-27  Bruno Haible  <bruno@clisp.org>
2056
2057         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
2058         current mingw.
2059         Reported by Jose E. Marchesi <jemarch@gnu.org>.
2060
2061 2008-05-27  Bruno Haible  <bruno@clisp.org>
2062
2063         * modules/iconv_open (Link): New section, from module 'iconv'.
2064         * modules/striconv (Link): Likewise.
2065         * modules/striconveh (Link): Likewise.
2066         * modules/xstriconv (Link): Likewise.
2067         * modules/unicodeio (Link): Likewise.
2068         * modules/propername (Link): Likewise.
2069         Reported by Jim Meyering.
2070
2071 2008-05-26  Jim Meyering  <meyering@redhat.com>
2072
2073         sha256: do not artificially restrict buffer length to be < 2^32
2074         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
2075         uint32_t to size_t.
2076         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
2077         to match.
2078
2079         avoid unaligned access errors, e.g., on sparc
2080         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
2081         direct access through a possibly-unaligned uint64* pointer.
2082         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
2083         direct access through a possibly-unaligned uint32* pointer.
2084         Prompted by this patch from Tom "spot" Callaway:
2085         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
2086
2087         sha512.c: fix typo in comment
2088         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
2089
2090 2008-05-25  Bruno Haible  <bruno@clisp.org>
2091
2092         * lib/set-mode-acl.c: Renamed from lib/acl.c.
2093         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
2094         (Makefile.am): Update lib_SOURCES.
2095
2096 2008-05-25  Bruno Haible  <bruno@clisp.org>
2097
2098         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
2099
2100 2008-05-25  Jim Meyering  <meyering@redhat.com>
2101
2102         useless-if-before-free: freed expr may have white-space differences
2103         * build-aux/useless-if-before-free: Recognize cases in which the
2104         freed expression differs from the tested one in embedded white
2105         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
2106         $1 was used, so we can't make any regexp shy.  Improved tests now
2107         detect this.
2108
2109         useless-if-before-free: accept white space in the expression.
2110         * build-aux/useless-if-before-free: For now, any white space
2111         in the expression must be identical in the free argument.
2112
2113         useless-if-before-free: efficiency tweak
2114         * build-aux/useless-if-before-free: Make the expression-matching
2115         regexp "shy".
2116         Make the *outer* regexp shy, not the expr-matching one.
2117
2118         update code-in-comment to accept cast of free arg
2119         * build-aux/useless-if-before-free: Update regexp.
2120
2121 2008-05-25  Bruno Haible  <bruno@clisp.org>
2122
2123         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2124         * modules/copy-file-tests (Files, Makefile.am): Update.
2125         * tests/test-copy-file.c (func_test_copy): Update.
2126
2127 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2128
2129         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2130
2131 2008-05-23  Bruno Haible  <bruno@clisp.org>
2132
2133         Improve support for ACLs on OSF/1.
2134         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2135         Remove fallback for unknown flavors of ACLs.
2136
2137 2008-05-22  Bruno Haible  <bruno@clisp.org>
2138
2139         Add support for ACLs on OSF/1.
2140         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2141         replacements.
2142         (acl_free_text): New macro fallback.
2143         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2144         acl_free.
2145         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2146         acl_free_text function. Require AC_C_INLINE.
2147
2148 2008-05-22  Bruno Haible  <bruno@clisp.org>
2149
2150         Make copy_acl work on MacOS X 10.5.
2151         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2152         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2153         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2154         If MODE_INSIDE_ACL, don't assume that every system has the same text
2155         representation for ACLs as FreeBSD.
2156         * lib/copy-acl.c (copy_acl): Add support for platforms with
2157         !MODE_INSIDE_ACL.
2158         * lib/file-has-acl.c (file_has_acl): Likewise.
2159         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2160         FreeBSD, MacOS X, or IRIX, respectively.
2161
2162 2008-05-22  Bruno Haible  <bruno@clisp.org>
2163
2164         * lib/acl.h: Don't include <sys/acl.h>.
2165         (GETACLCNT): Move fallback to lib/acl-internal.h.
2166         * lib/acl-internal.h: Include <sys/acl.h> here.
2167         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2168
2169 2008-05-22  Bruno Haible  <bruno@clisp.org>
2170
2171         Split off copy_acl function to separate file.
2172         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2173         * lib/acl.c (copy_acl): Moved function to separate file.
2174         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2175         * modules/acl (Files): Add lib/copy-acl.c.
2176         (Makefiles.am): Augment lib_SOURCES.
2177
2178 2008-05-22  Bruno Haible  <bruno@clisp.org>
2179
2180         * modules/copy-file-tests: New file.
2181         * tests/test-copy-file.sh: New file.
2182         * tests/test-copy-file.c: New file.
2183         * tests/test-copy-file-sameacls.c: New file.
2184
2185 2008-05-22  Eric Blake  <ebb9@byu.net>
2186
2187         Avoid gcc warning.
2188         * tests/test-memcmp.c (main): Pass NULL indirectly.
2189
2190 2008-05-21  Bruno Haible  <bruno@clisp.org>
2191
2192         Add reference doc about ACLs.
2193         * doc/acl-resources.txt: New file.
2194         * doc/acl-cygwin.txt: New file.
2195
2196 2008-05-21  Bruno Haible  <bruno@clisp.org>
2197
2198         Avoid one more warning from gcc.
2199         * lib/vasnprintf.c (IF_LINT): Update comments.
2200         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2201
2202 2008-05-21  Jim Meyering  <meyering@redhat.com>
2203
2204         avoid a warning from gcc
2205         * lib/vasnprintf.c (IF_LINT): Define.
2206         (scale10_round_decimal_long_double):
2207         Use it to avoid a "may be used uninitialized" warning.
2208         (scale10_round_decimal_double): Likewise.
2209
2210 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2211
2212         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2213         declared.
2214
2215 2008-05-20  Bruno Haible  <bruno@clisp.org>
2216
2217         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2218         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2219
2220 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2221
2222         * modules/memcmp-tests: New file.
2223         * tests/test-memcmp.c: New file.
2224
2225 2008-05-19  Bruno Haible  <bruno@clisp.org>
2226
2227         * modules/propername (Notice, configure.ac): Put quoted "..." into
2228         --keyword option.
2229         * lib/propername.h: Update comments accordingly.
2230         Reported by Eric Blake.
2231
2232 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2233
2234         * modules/getpass-gnu (Depends-on): Add fseeko.
2235
2236 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2237
2238         * modules/base64-tests: New file.
2239
2240 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2241
2242         * lib/base64.c (base64_decode_ctx): If a decode context structure
2243         was passed in use it to ignore newlines.  If a context structure
2244         was _not_ passed in, continue to treat newlines as garbage (this
2245         is the historical behavior).  Formerly base64_decode.
2246         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2247         takes a decode context structure.
2248         * lib/base64.h (base64_decode): Macro for four-argument calls.
2249         (base64_decode_alloc): Likewise.
2250         * lib/base64.c (base64_decode_ctx): If a decode context structure
2251         was passed in use it to ignore newlines.  If a context structure
2252         was _not_ passed in, continue to treat newlines as garbage (this
2253         is the historical behavior).  Formerly base64_decode.
2254         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2255         takes a decode context structure.
2256         * lib/base64.h (base64_decode): Macro for four-argument calls.
2257         (base64_decode_alloc): Likewise.
2258
2259 2008-05-19  Jim Meyering  <meyering@redhat.com>
2260
2261         avoid a warning from gcc
2262         * lib/trim.c (IF_LINT): Define.
2263         (trim2): Use it to avoid a "may be used uninitialized" warning.
2264
2265         Fix doc typo.
2266         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2267
2268 2008-05-19  Bruno Haible  <bruno@clisp.org>
2269
2270         * doc/glibc-functions/getpass.texi: Document limits of other
2271         implementations.
2272
2273 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2274             Bruno Haible <bruno@clisp.org>
2275
2276         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2277
2278 2008-05-18  Bruno Haible  <bruno@clisp.org>
2279
2280         * modules/propername: New file, from GNU gettext.
2281         * lib/propername.h: New file, from GNU gettext.
2282         * lib/propername.c: New file, from GNU gettext.
2283         * MODULES.html.sh (Internationalization functions): Add propername.
2284
2285 2008-05-16  Jim Meyering  <meyering@redhat.com>
2286             Bruno Haible  <bruno@clisp.org>
2287
2288         Avoid some warnings from "gcc -Wshadow".
2289         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2290
2291 2008-05-15  Eric Blake  <ebb9@byu.net>
2292
2293         Extend previous patch to cygwin 1.7.0.
2294         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2295         fast implementation in cygwin >= 1.7.0.
2296         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2298
2299 2008-05-15  Bruno Haible  <bruno@clisp.org>
2300
2301         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2302         implementation in glibc >= 2.9.
2303         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2305
2306 2008-05-15  Bruno Haible  <bruno@clisp.org>
2307
2308         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2309         (Unicode string functions): Add unilbrk/*.
2310         Reported by Karl Berry.
2311
2312 2008-05-15  Eric Blake  <ebb9@byu.net>
2313
2314         Fix violation of <stdbool.h> replacement in regex.
2315         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2316         * lib/regexec.c (re_search_internal): Likewise.
2317         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2318
2319 2008-05-15  Jim Meyering  <meyering@redhat.com>
2320
2321         avoid distracting test output when git or cvs is not found
2322         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2323         * tests/test-vc-list-files-git.sh: Likewise.
2324
2325 2008-05-15  Eric Blake  <ebb9@byu.net>
2326
2327         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2328         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2329         glibc version.
2330         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2331         * doc/posix-functions/strstr.texi (strstr): Likewise.
2332         * lib/str-two-way.h (MAX): Sychronize with glibc.
2333
2334 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2335
2336         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2337         opr.ctx_type.
2338         (calc_first): Initialize constraint field.
2339         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2340         Fix grammar.
2341         (duplicate_node): Merge constraint field for all node types.
2342         (calc_eclosure_iter): Look at constraint field for all node types.
2343         * lib/regex_internal.c (create_cd_newstate): Don't look at
2344         opr.ctx_type.
2345
2346 2008-05-14  Bruno Haible  <bruno@clisp.org>
2347
2348         Help GCC to do better code generation.
2349         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2350         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2351         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2352         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2353         Declare with attribute 'malloc' if supported.
2354
2355 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2356
2357         use "echo STR|wc -c" rather than unportable "expr length STR"
2358         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2359         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2360
2361 2008-05-14  Jim Meyering  <meyering@redhat.com>
2362
2363         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2364         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2365         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2366         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2367         via Collin Lasse.
2368
2369 2008-05-14  Eric Blake  <ebb9@byu.net>
2370
2371         Avoid quadratic growth in gl_LIBSOURCES.
2372         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2373         Suggested by Bruno Haible.
2374
2375         Test xmemdup0.
2376         * modules/xmemdup0-tests: New file.
2377         * tests/test-xmemdup0.c: Likewise.
2378
2379 2008-05-13  Eric Blake  <ebb9@byu.net>
2380
2381         Split xmemdup0 into its own module.
2382         * modules/xmemdup0: New file.
2383         * lib/xmemdup0.h: Likewise.
2384         * lib/xmemdup0.c: Likewise.
2385         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2386         * lib/xalloc.h (xmemdup0): Remove.
2387         * lib/xmalloc.c (xmemdup0): Likewise.
2388
2389 2008-05-13  Eric Blake  <ebb9@byu.net>
2390             Bruno Haible  <bruno@clisp.org>
2391
2392         Reduce number of forks required during autoconf.
2393         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2394         and gl_LIBSOURCES_DIR.
2395         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2396         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2397         m4_syscmd per file.
2398         <m4_foreach_w>: Move...
2399         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2400
2401 2008-05-13  Eric Blake  <ebb9@byu.net>
2402
2403         * gnulib-tool: Fix various comment typos.
2404
2405 2008-05-12  Bruno Haible  <bruno@clisp.org>
2406
2407         Tailor the linebreaking algorithm.
2408         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2409
2410 2008-05-12  Bruno Haible  <bruno@clisp.org>
2411
2412         Update to Unicode 5.0.0.
2413         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2414         LBP_JV, LBP_JT. Redistribute values.
2415         (unilbrk_table): Change size.
2416         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2417         Unicode TR#14 rev. 22.
2418         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2419         LBP_JV, LBP_JT. Redistribute values.
2420         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2421         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2422         Update.
2423         * lib/unilbrk/lbrkprop1.h: Regenerated.
2424         * lib/unilbrk/lbrkprop2.h: Regenerated.
2425         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2426         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2427         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2428         Likewise.
2429         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2430         Likewise.
2431         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2432         result.
2433         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2434         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2435         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2436         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2437         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2438         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2439
2440 2008-05-11  Bruno Haible  <bruno@clisp.org>
2441
2442         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2443
2444 2008-05-11  Bruno Haible  <bruno@clisp.org>
2445
2446         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2447         * modules/unilbrk/gen-lbrk: New file.
2448
2449 2008-05-11  Bruno Haible  <bruno@clisp.org>
2450
2451         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2452         * m4/sha512.m4 (gl_SHA512): Likewise.
2453
2454 2008-05-11  Jim Meyering  <meyering@redhat.com>
2455
2456         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2457         * modules/crypto/sha256: New file.
2458         * modules/crypto/sha512: Likewise.
2459         * lib/sha256.c: Likewise.
2460         * lib/sha256.h: Likewise.
2461         * lib/sha512.c: Likewise.
2462         * lib/sha512.h: Likewise.
2463         * lib/u64.h: Likewise.
2464         * m4/sha256.m4: Likewise.
2465         * m4/sha512.m4: Likewise.
2466         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2467
2468 2008-05-10  Bruno Haible  <bruno@clisp.org>
2469
2470         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2471         (Input/Output <stdio.h>): Add xprintf.
2472         (Signal handling <signal.h>): Add strsignal.
2473         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2474         (Core language properties): Add func.
2475         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2476         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2477         strings.
2478         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2479         (Input/output): New section.
2480         (File system functions): Add openat-die, stat-macros.
2481         (Networking functions): Add sockets.
2482         (Unicode string functions): Add unictype/*.
2483         (Support for building libraries and executables): Add gperf.
2484         (Support for building documentation): Add agpl-3.0.
2485         (Misc): Add nocrash.
2486
2487 2008-05-10  Bruno Haible  <bruno@clisp.org>
2488
2489         * modules/unictype/gen-ctype: New file.
2490
2491 2008-05-10  Jim Meyering  <meyering@redhat.com>
2492
2493         Make chdir-safer.c more efficient on a system with no symlinks.
2494         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2495         also if ELOOP is zero.  Suggested by Bruno Haible.
2496
2497         Make chdir-safer.c slightly safer.
2498         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2499         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2500
2501         Avoid compile failure on systems without ELOOP (like mingw).
2502         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2503         Reported by Bruno Haible.
2504
2505 2008-05-10  Bruno Haible  <bruno@clisp.org>
2506
2507         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2508         (is_utf8_encoding): Use a case-insensitive comparison.
2509         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2510         streq.
2511
2512 2008-05-10  Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2515         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2516         * lib/unilbrk/ulc-common.h (iconv_string_length,
2517         iconv_string_keeping_offsets): Remove declarations.
2518         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2519         Don't include <iconv.h>, streq.h, xsize.h.
2520         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2521         conversion.
2522         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2523         <iconv.h>, streq.h, xsize.h.
2524         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2525         conversion.
2526         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2527         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2528         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2529         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2530
2531 2008-05-10  Bruno Haible  <bruno@clisp.org>
2532
2533         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2534         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2535
2536         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2537         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2538
2539         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2540         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2541
2542         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2543         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2544
2545         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2546         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2547
2548         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2549         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2550
2551         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2552         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2553
2554         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2555         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2556
2557 2008-05-10  Bruno Haible  <bruno@clisp.org>
2558
2559         Split up 'linebreak' module.
2560         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2561         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2562         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2563         modifications.
2564         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2565         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2566         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2567         lib/linebreak.c.
2568         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2569         lib/linebreak.c.
2570         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2571         lib/linebreak.c.
2572         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2573         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2574         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2575         lib/linebreak.c.
2576         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2577         lib/linebreak.c.
2578         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2579         lib/linebreak.c.
2580         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2581         lib/linebreak.c.
2582         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2583         lib/linebreak.c.
2584         * modules/unilbrk/base: New file.
2585         * modules/unilbrk/tables: New file.
2586         * modules/unilbrk/u8-possible-linebreaks: New file.
2587         * modules/unilbrk/u16-possible-linebreaks: New file.
2588         * modules/unilbrk/u32-possible-linebreaks: New file.
2589         * modules/unilbrk/ulc-common: New file.
2590         * modules/unilbrk/ulc-possible-linebreaks: New file.
2591         * modules/unilbrk/u8-width-linebreaks: New file.
2592         * modules/unilbrk/u16-width-linebreaks: New file.
2593         * modules/unilbrk/u32-width-linebreaks: New file.
2594         * modules/unilbrk/ulc-width-linebreaks: New file.
2595         * lib/linebreak.h: Remove file.
2596         * lib/linebreak.c: Remove file.
2597         * m4/linebreak.m4: Remove file.
2598         * modules/linebreak: Remove file.
2599         * NEWS: Mention the changes.
2600
2601 2008-05-09  Eric Blake  <ebb9@byu.net>
2602
2603         Add xmemdup0.
2604         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2605         implementation.
2606         * lib/xmalloc.c (xmemdup0): New C implementation.
2607
2608 2008-05-08  Bruno Haible  <bruno@clisp.org>
2609
2610         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2611
2612 2008-05-07  Eric Blake  <ebb9@byu.net>
2613
2614         Support cross-compilation of <wctype.h>.
2615         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2616         AC_CACHE_CHECK.
2617
2618 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2619
2620         * build-aux/vc-list-files: Add support for bzr.
2621
2622 2008-05-03  Jim Meyering  <meyering@redhat.com>
2623
2624         avoid failed assertion with tight malloc
2625         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2626
2627 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2628
2629         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2630         are needed from arpa/inet.h.
2631         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2632         Reported by Bruno Haible.
2633
2634 2008-05-02  Jim Meyering  <meyering@redhat.com>
2635
2636         avoid compilation error on FreeBSD 6
2637         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2638
2639 2008-05-01  Jim Meyering  <meyering@redhat.com>
2640
2641         useless-if-before-free: correct --help's exit status description
2642         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2643         for one or more matches, etc.  Reported by Bruno Haible.
2644
2645         vc-list-files: make the stand-alone gnulib test work
2646         * modules/vc-list-files-tests (configure.ac):
2647         Define and AC_SUBST abs_aux_dir.
2648         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2649         $(abs_top_srcdir) to each script and having each of them
2650         duplicate the work of setting PATH, set PATH here, using
2651         the new variable, abs_aux_dir instead.
2652         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2653         * tests/test-vc-list-files-git.sh: Likewise.
2654         Reported by Bruno Haible.
2655
2656 2008-05-01  Bruno Haible  <bruno@clisp.org>
2657
2658         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2659         reallocation. Rename 'done' to 'found_delimiter'.
2660
2661 2008-05-01  Jim Meyering  <meyering@redhat.com>
2662
2663         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2664         * build-aux/vc-list-files: Use `...`, not $(...).
2665
2666 2008-04-30  Jim Meyering  <meyering@redhat.com>
2667
2668         add tests for vc-list-files
2669         * modules/vc-list-files-tests: New module.
2670         * tests/test-vc-list-files-cvs.sh: New file.
2671         * tests/test-vc-list-files-git.sh: New file.
2672
2673         avoid a warning from gcc
2674         * lib/getndelim2.c (IF_LINT): Define.
2675         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2676
2677         vc-list-files: work properly with build-aux/cvsu, too
2678         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2679         to all cvs-based clauses.
2680
2681         vc-list-files: work properly in the CVS+awk case, too
2682         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2683
2684         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2685         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2686         take more than one file argument, so .  Add quotes, just in case $dir
2687         ever contains a shell meta-character.  Prompted by Soren Hansen in
2688         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2689
2690 2008-04-29  Eric Blake  <ebb9@byu.net>
2691
2692         Optimize getndelim2 to use block operations when possible.
2693         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2694         freadseek, and memchr2.
2695         * lib/getndelim2.c (getndelim2): Use them for block reads.
2696
2697 2008-04-29  Bruno Haible  <bruno@clisp.org>
2698
2699         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2700         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2701         * modules/inet_ntop (Depends-on): Add extensions.
2702         * modules/inet_pton (Depends-on): Likewise.
2703         Reported by Simon Josefsson.
2704
2705 2008-04-29  Jim Meyering  <meyering@redhat.com>
2706
2707         When the is more than one match in a block, match all of them.
2708         * build-aux/useless-if-before-free: Iterate through each block
2709         until there are no more matches.
2710
2711         Fix broken useless-if-before-free script.
2712         * build-aux/useless-if-before-free: Fix typo: missing "?" after
2713         the expression to match cast of argument to free-like function.
2714
2715 2008-04-29  Eric Blake  <ebb9@byu.net>
2716
2717         Use new header.
2718         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2719
2720 2008-04-29  Jim Meyering  <meyering@redhat.com>
2721
2722         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
2723         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
2724         by gnulib to exist and to declare e.g., inet_ntop.
2725         Don't include "inet_ntop.h", now removed.
2726
2727         * m4/arpa_inet_h.m4: Remove trailing blanks.
2728
2729 2008-04-29  Eric Blake  <ebb9@byu.net>
2730
2731         Silence valgrind on safe reads beyond potential array bounds.
2732         * lib/rawmemchr.valgrind: New file.
2733         * lib/strchrnul.valgrind: Likewise.
2734         * modules/rawmemchr (Files): Distribute new file.
2735         * modules/strchrnul (Files): Likewise.
2736         Suggested by Bruno Haible.
2737
2738 2008-04-29  Bruno Haible  <bruno@clisp.org>
2739
2740         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
2741         (inet_ntop, inet_pton): Change portability warning's wording.
2742         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
2743         Invoke gl_CHECK_NEXT_HEADERS.
2744         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
2745         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
2746         set ARPA_INET_H.
2747         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2748         * modules/arpa_inet (Description): No longer only for systems that
2749         lack it.
2750         (Depends-on): Add include_next.
2751         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
2752         HAVE_ARPA_INET_H.
2753
2754 2008-04-29  Jim Meyering  <meyering@redhat.com>
2755
2756         * modules/mkdir (License): Re-license as LGPLv2+.
2757
2758 2008-04-29  Bruno Haible  <bruno@clisp.org>
2759
2760         * modules/rawmemchr (Maintainer): Set to Eric.
2761         * modules/strchrnul (Maintainer): Likewise.
2762
2763 2008-04-29  Simon Josefsson  <simon@josefsson.org>
2764
2765         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
2766         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
2767
2768         * modules/arpa_inet (arpa/inet.h): Use them.
2769
2770 2008-04-28  Eric Blake  <ebb9@byu.net>
2771
2772         Test getndelim2.
2773         * modules/getndelim2-tests: New file.
2774         * tests/test-getndelim2.c: Likewise.
2775         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
2776         stream.
2777         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
2778
2779         * MODULES.html.sh: Document new module.
2780
2781 2008-04-20  Bruno Haible  <bruno@clisp.org>
2782
2783         * lib/c-stack.c (die): Use raise.
2784         * modules/c-stack (Depends-on): Add raise.
2785
2786 2008-04-28  Bruno Haible  <bruno@clisp.org>
2787
2788         Expect rpmatch to be declared.
2789         * lib/yesno.c (rpmatch): Remove declaration.
2790
2791         Declare rpmatch.
2792         * lib/stdlib.in.h (rpmatch): New declaration.
2793         * lib/rpmatch.c: Include <stdlib.h> first.
2794         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
2795         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
2796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
2797         HAVE_RPMATCH.
2798         * modules/rpmatch (Depends-on): Add stdlib, extensions.
2799         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2800         (Include): Set to <stdlib.h>.
2801         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
2802         HAVE_RPMATCH.
2803         * NEWS: Document the change.
2804
2805 2008-04-28  Bruno Haible  <bruno@clisp.org>
2806
2807         Change rpmatch to use nl_langinfo when appropriate.
2808         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
2809         (N_): New macro.
2810         (localized_pattern): New function/macro.
2811         (try): Remove match, nomatch arguments. Copy the pattern into safe
2812         memory before caching it.
2813         (rpmatch): Use localized_pattern. Add translator comments.
2814         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
2815         Suggested by Eric Blake.
2816         * modules/rpmatch (Depends-on): Add stdbool.
2817
2818 2008-04-28  Eric Blake  <ebb9@byu.net>
2819
2820         Add rawmemchr module, matching glibc.
2821         * modules/string (Makefile.am): New indicator.
2822         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
2823         * lib/string.in.h (rawmemchr): Declare when appropriate.
2824         * modules/rawmemchr: New file.
2825         * m4/rawmemchr.m4: Likewise.
2826         * lib/rawmemchr.c: Likewise.
2827         * modules/rawmemchr-tests: Likewise.
2828         * tests/test-rawmemchr.c: Likewise.
2829         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
2830         module.
2831         * modules/strchrnul (Depends-on): Add rawmemchr.
2832         * lib/strchrnul.c (strchrnul): Optimize a corner case.
2833
2834         Whitespace cleanup.
2835         * tests/test-strchrnul.c: Reindent.
2836         * lib/strchrnul.c: Likewise.
2837
2838         Optimize and test strchrnul.
2839         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
2840         * modules/strchrnul-tests: New file.
2841         * tests/test-strchrnul.c: Likewise.
2842
2843         Remove intprops dependency.
2844         * modules/memchr (Depends-on): Remove intprops.
2845         * modules/memrchr (Depends-on): Likewise.
2846         * modules/memchr2 (Depends-on): Likewise.
2847         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
2848         * lib/memrchr.c (__memrchr): Likewise.
2849         * lib/memrchr2.c (memchr2): Likewise.
2850         Reported by Simon Josefsson.
2851
2852 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2853
2854         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
2855         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2856
2857 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2858
2859         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
2860
2861         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
2862
2863         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
2864
2865         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
2866         declarations.
2867         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
2868
2869         * m4/inet_pton.m4: Don't check for header files.
2870
2871         * m4/inet_ntop.m4: Don't check for header files.
2872
2873 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2874
2875         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
2876         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
2877         trigger for cygwin).
2878         Reported by Bruno Haible  <bruno@clisp.org>.
2879
2880 2008-04-28  Bruno Haible  <bruno@clisp.org>
2881
2882         * doc/posix-functions/strdup.texi: Mention mingw problem.
2883
2884 2008-04-27  Bruno Haible  <bruno@clisp.org>
2885
2886         * modules/stat-time-tests (Depends-on): Add sleep.
2887         * tests/test-stat-time.c (force_unlink): New function.
2888         (cleanup): Use it.
2889         (test_mtime): Remove the ctime related tests.
2890         (test_ctime): New function, containing the ctime related tests.
2891         (main): Call test_ctime, except on native Windows platforms.
2892
2893 2008-04-27  Bruno Haible  <bruno@clisp.org>
2894
2895         * lib/rpmatch.c (rpmatch): Add some comments.
2896         Reported by James Youngman <jay@gnu.org>.
2897
2898 2008-04-27  Bruno Haible  <bruno@clisp.org>
2899
2900         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
2901         quiet NaNs.
2902
2903 2008-04-27  Bruno Haible  <bruno@clisp.org>
2904
2905         Make test-yesno.sh work on mingw.
2906         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
2907         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
2908         (main): Set stdin to binary mode.
2909         * modules/yesno-tests (Depends-on): Add binary-io.
2910
2911 2008-04-27  Bruno Haible  <bruno@clisp.org>
2912
2913         Fix 'isfinite' on x86, x86_64, ia64 platforms.
2914         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
2915         argument that lie outside the IEEE 854 domain.
2916         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
2917         (gl_ISFINITE): Use it.
2918         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
2919
2920 2008-04-27  Bruno Haible  <bruno@clisp.org>
2921
2922         Allow local renaming in config.h.
2923         * lib/memrchr.c (memrchr): Don't undefine outside libc.
2924
2925 2008-04-27  Bruno Haible  <bruno@clisp.org>
2926
2927         * lib/memchr.c (__memchr): Change type of 'i'.
2928         * lib/memchr2.c (memchr2): Likewise.
2929
2930 2008-04-26  Eric Blake  <ebb9@byu.net>
2931         and Bruno Haible  <bruno@clisp.org>
2932
2933         Optimize and test memrchr.
2934         * modules/memrchr (Depends-on): Add intprops.
2935         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
2936         * modules/memrchr-tests: New file.
2937         * tests/test-memrchr.c: New file.
2938
2939 2008-04-26  Bruno Haible  <bruno@clisp.org>
2940
2941         Add tentative support for DragonFly BSD.
2942         * lib/stdio-impl.h: Add macros for DragonFly BSD.
2943         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
2944         fp.
2945         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2946         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
2947         * lib/fpurge.c (fpurge): Likewise.
2948         * lib/freadable.c (freaadable): Likewise.
2949         * lib/freadahead.c (freadahead): Likewise.
2950         * lib/freading.c (freading): Likewise.
2951         * lib/freadptr.c (freadptr): Likewise.
2952         * lib/freadseek.c (freadptrinc): Likewise.
2953         * lib/fseeko.c (fseeko): Likewise.
2954         * lib/fseterr.c (fseterr): Likewise.
2955         * lib/fwritable.c (fwritable): Likewise.
2956         * lib/fwriting.c (fwriting): Likewise.
2957
2958 2008-04-26  Bruno Haible  <bruno@clisp.org>
2959
2960         * lib/stdio-impl.h: New file.
2961         * lib/fbufmode.c: Include stdio-impl.h.
2962         (fbufmode): Use fp_, remove redundant #defines.
2963         * lib/fflush.c: Include stdio-impl.h.
2964         (clear_ungetc_buffer): Remove redundant #defines.
2965         * lib/fpurge.c: Include stdio-impl.h.
2966         (fpurge): Remove redundant #defines.
2967         * lib/freadable.c: Include stdio-impl.h.
2968         (freadable): Remove redundant #defines.
2969         * lib/freadahead.c: Include stdio-impl.h.
2970         (freadahead): Remove redundant #defines.
2971         * lib/freading.c: Include stdio-impl.h.
2972         (freading): Remove redundant #defines.
2973         * lib/freadptr.c: Include stdio-impl.h.
2974         (freadptr): Remove redundant #defines.
2975         * lib/freadseek.c: Include stdio-impl.h.
2976         (freadptrinc): Remove redundant #defines.
2977         * lib/fseeko.c: Include stdio-impl.h.
2978         (rpl_fseeko): Remove redundant #defines.
2979         * lib/fseterr.c: Include stdio-impl.h.
2980         (fseterr): Remove redundant #defines.
2981         * lib/fwritable.c: Include stdio-impl.h.
2982         (fwritable: Remove redundant #defines.
2983         * lib/fwriting.c: Include stdio-impl.h.
2984         (fwriting): Remove redundant #defines.
2985         * modules/fbufmode (Files): Add lib/stdio-impl.h.
2986         * modules/fflush (Files): Likewise.
2987         * modules/fpurge (Files): Likewise.
2988         * modules/freadable (Files): Likewise.
2989         * modules/freadahead (Files): Likewise.
2990         * modules/freading (Files): Likewise.
2991         * modules/freadptr (Files): Likewise.
2992         * modules/freadseek (Files): Likewise.
2993         * modules/fseeko (Files): Likewise.
2994         * modules/fseterr (Files): Likewise.
2995         * modules/fwritable (Files): Likewise.
2996         * modules/fwriting (Files): Likewise.
2997
2998 2008-04-26  Bruno Haible  <bruno@clisp.org>
2999
3000         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
3001         restore_seek_optimization, update_fpos_cache): New functions, extracted
3002         from rpl_fflush.
3003         (rpl_fflush): Use them.
3004         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
3005         (gl_REPLACE_FFLUSH): Use it.
3006
3007 2008-04-26  Bruno Haible  <bruno@clisp.org>
3008
3009         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
3010         on Solaris.
3011         * tests/test-xstrtoimax.sh: Likewise.
3012         * tests/test-xstrtoumax.sh: Likewise.
3013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3014
3015 2008-04-26  Bruno Haible  <bruno@clisp.org>
3016
3017         * modules/memchr-tests: New file.
3018         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
3019
3020 2008-04-26  Eric Blake  <ebb9@byu.net>
3021             Bruno Haible  <bruno@clisp.org>
3022
3023         * lib/memchr.c: Include intprops.h.
3024         (__memchr): Optimize parallel detection of matching bytes. Rename local
3025         variables. Add explanatory comments.
3026
3027 2008-04-26  Bruno Haible  <bruno@clisp.org>
3028
3029         Fix module 'memchr', broken since 2000-10-28.
3030         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
3031
3032 2008-04-26  Bruno Haible  <bruno@clisp.org>
3033
3034         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
3035         comments.
3036
3037 2008-04-25  Eric Blake  <ebb9@byu.net>
3038
3039         Use native fstatat on cygwin 1.7.0.
3040         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
3041         first.
3042
3043 2008-04-23  Eric Blake  <ebb9@byu.net>
3044
3045         Improve memchr2 performance.
3046         * lib/memchr2.c (memchr2): Further optimize parallel detection of
3047         NUL bytes.
3048         * modules/memchr2 (Depends-on): Use intprops.h.
3049
3050 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3051
3052         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
3053         an inline function instead of a CPP macro.  Patch by Ben Pfaff
3054         <blp@cs.stanford.edu>.
3055
3056 2008-04-23  Simon Josefsson  <simon@josefsson.org>
3057
3058         * lib/arpa_inet.in.h: New file.
3059
3060         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
3061         (Makefile.am): Sed in substitute header file.
3062
3063         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
3064         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
3065
3066         * modules/inet_ntop (configure.ac): Use
3067         gl_ARPA_INET_MODULE_INDICATOR.
3068
3069         * modules/inet_pton (configure.ac): Use
3070         gl_ARPA_INET_MODULE_INDICATOR.
3071
3072 2008-04-22  Jim Meyering  <meyering@redhat.com>
3073
3074         * modules/verify (License): Re-license as LGPLv2+.
3075
3076 2008-04-22  Simon Josefsson  <simon@josefsson.org>
3077
3078         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
3079         parameter to void* as per POSIX standard (MinGW uses char*).
3080
3081 2008-04-21  Bruno Haible  <bruno@clisp.org>
3082
3083         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3084         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
3085         Define to replacements if REPLACE_ISWCNTRL is 1.
3086         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
3087         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
3088         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
3089         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
3090         what it fixes.
3091         * doc/posix-functions/iswalpha.texi: Likewise.
3092         * doc/posix-functions/iswblank.texi: Likewise.
3093         * doc/posix-functions/iswcntrl.texi: Likewise.
3094         * doc/posix-functions/iswdigit.texi: Likewise.
3095         * doc/posix-functions/iswgraph.texi: Likewise.
3096         * doc/posix-functions/iswlower.texi: Likewise.
3097         * doc/posix-functions/iswprint.texi: Likewise.
3098         * doc/posix-functions/iswpunct.texi: Likewise.
3099         * doc/posix-functions/iswspace.texi: Likewise.
3100         * doc/posix-functions/iswupper.texi: Likewise.
3101         * doc/posix-functions/iswxdigit.texi: Likewise.
3102         Reported by Alain Guibert.
3103
3104 2008-04-21  Bruno Haible  <bruno@clisp.org>
3105
3106         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
3107         Patch by Alain Guibert.
3108
3109 2008-04-21  Bruno Haible  <bruno@clisp.org>
3110
3111         Fix test failures on mingw.
3112         * tests/test-xstrtol.c (print_no_progname): New function.
3113         (main): Install it in error_print_progname hook.
3114         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
3115         * tests/test-xstrtoimax.sh: Likewise.
3116         * tests/test-xstrtoumax.sh: Likewise.
3117
3118 2008-04-21  Bruno Haible  <bruno@clisp.org>
3119
3120         Fix test failure on mingw.
3121         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3122
3123 2008-04-21  Bruno Haible  <bruno@clisp.org>
3124
3125         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3126         Actually assign a value.
3127
3128 2008-04-20  Bruno Haible  <bruno@clisp.org>
3129
3130         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3131         take 2.
3132         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3133         'canonicalize-lgpl' module is also used.
3134         * lib/canonicalize-lgpl.c: Undo last change.
3135         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3136
3137 2008-04-20  Bruno Haible  <bruno@clisp.org>
3138
3139         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3140         config.h. Provide _mkdir based fallback for mingw.
3141         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3142         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3143         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3144         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3145         rather than defining mkdir in config.h.
3146         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3147         (gl_SYS_STAT_H_DEFAULTS): New macro.
3148         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3149         HAVE_IO_H any more.
3150         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3151         HAVE_DECL_MKDIR and HAVE_IO_H.
3152
3153 2008-04-20  Bruno Haible  <bruno@clisp.org>
3154
3155         * lib/isapipe.c: Port to native Windows platforms.
3156
3157 2008-04-20  Bruno Haible  <bruno@clisp.org>
3158
3159         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3160
3161 2008-04-21  Eric Blake  <ebb9@byu.net>
3162
3163         Work around preprocessors that don't handle UINTMAX_MAX.
3164         * lib/memchr2.c (memchr2): Avoid embedded #if.
3165         Reported by Alain Guibert, fix suggested by Bruno Haible.
3166
3167 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3168
3169         * doc/posix-functions/strftime.texi (strftime): Explain better
3170         Windows incompatibility.  Suggested by Micah Cowan
3171         <micah@cowan.name>.
3172
3173 2008-04-20  Bruno Haible  <bruno@clisp.org>
3174
3175         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3176         unistr/u8-mblen.
3177
3178 2008-04-20  Bruno Haible  <bruno@clisp.org>
3179
3180         Fix test failure on platforms with non-GNU iconv.
3181         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3182         (U_TO_U8): Use it, rather than u16_to_u8.
3183         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3184         units at the end of the input string.
3185         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3186
3187 2008-04-20  Bruno Haible  <bruno@clisp.org>
3188
3189         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3190         when the resulting length is 0.
3191         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3192
3193 2008-04-20  Bruno Haible  <bruno@clisp.org>
3194
3195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3196         works.
3197         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3198
3199 2008-04-20  Bruno Haible  <bruno@clisp.org>
3200
3201         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3202         * modules/tsearch-tests (configure.ac): Test for initstate function.
3203
3204 2008-04-20  Bruno Haible  <bruno@clisp.org>
3205
3206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3207         for nlink_t if missing.
3208         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3209
3210 2008-04-19  Bruno Haible  <bruno@clisp.org>
3211
3212         Work around snprintf bug on Linux libc5.
3213         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3215         gl_SNPRINTF_SIZE1.
3216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3217         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3218         that test failed.
3219         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3220         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3221         * modules/snprintf (Files): Add m4/printf.m4.
3222         * modules/vsnprintf (Files): Likewise.
3223         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3224         * doc/posix-functions/vsnprintf.texi: Likewise.
3225
3226 2008-04-19  Bruno Haible  <bruno@clisp.org>
3227
3228         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3229         from 0.0058 to less than 10^-7.
3230
3231 2008-04-19  Bruno Haible  <bruno@clisp.org>
3232
3233         Fix rounding when a precision is given.
3234         * lib/vasnprintf.c (is_borderline): New function.
3235         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3236         9...9x.
3237         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3238         %e, %g.
3239         * tests/test-vasprintf-posix.c (test_function): Likewise.
3240         * tests/test-snprintf-posix.h (test_function): Likewise.
3241         * tests/test-sprintf-posix.h (test_function): Likewise.
3242         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3243         * tests/test-printf-posix.h (test_function): Likewise.
3244         * tests/test-printf-posix.output: Update.
3245         Reported by John Darrington <john@darrington.wattle.id.au> via
3246         Ben Pfaff <blp@cs.stanford.edu>.
3247
3248 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3249
3250         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3251         Suggested by Bruno Haible <bruno@clisp.org>.
3252
3253 2008-04-17  Bruno Haible  <bruno@clisp.org>
3254
3255         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3256         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3257         implementation.
3258         Patch by Bruce Merry <bmerry@gmail.com>.
3259
3260 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3261
3262         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3263         doesn't work under Windows.
3264
3265 2008-04-16  Bruno Haible  <bruno@clisp.org>
3266
3267         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3268         New macros.
3269         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3270         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3271         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3272         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3273         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3274         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3275         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3276         macros.
3277         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3278         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3279         Northern Sotho, Uighur.
3280
3281 2008-04-16  Bruno Haible  <bruno@clisp.org>
3282
3283         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3284         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3285         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3286         Reported by Daniel Bergström <daniel@octocode.com>.
3287
3288 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3289             Bruno Haible  <bruno@clisp.org>
3290
3291         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3292         function.
3293         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3294         New functions, mostly extracted from gl_locale_name_default.
3295         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3296
3297 2008-04-16  Eric Blake  <ebb9@byu.net>
3298
3299         Adjust strtod detection to catch glibc 2.7 bug.
3300         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3301         Reported by John Gatewood Ham.
3302
3303 2008-04-16  Bruno Haible  <bruno@clisp.org>
3304
3305         Add tentative support for Linux libc5.
3306         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3307         * lib/fpurge.c (fpurge): Likewise.
3308         * lib/freadable.c (freadable): Likewise.
3309         * lib/freadahead.c (freadahead): Likewise.
3310         * lib/freading.c (freading): Likewise.
3311         * lib/freadptr.c (freadptr): Likewise.
3312         * lib/freadseek.c (freadptrinc): Likewise.
3313         * lib/fseeko.c (rpl_fseeko): Likewise.
3314         * lib/fseterr.c (fseterr): Likewise.
3315         * lib/fwritable.c (fwritable): Likewise.
3316         * lib/fwriting.c (fwriting): Likewise.
3317         Reported by Alain Guibert <alguibert+bts@free.fr>.
3318
3319 2008-04-15  Bruno Haible  <bruno@clisp.org>
3320
3321         * modules/mathl (configure.ac): Define module indicator.
3322
3323 2008-04-15  Bruno Haible  <bruno@clisp.org>
3324
3325         * lib/logl.c (logl): Remove unused variables.
3326
3327 2008-04-15  Bruno Haible  <bruno@clisp.org>
3328
3329         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3330         fails.
3331
3332 2008-04-15  Bruno Haible  <bruno@clisp.org>
3333
3334         * lib/trim.c (trim2): Fix argument of isspace() macro.
3335
3336 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3337
3338         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3339         to 0.
3340         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3341
3342 2008-04-14  Bruno Haible  <bruno@clisp.org>
3343
3344         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3345         AC_LANG_PROGRAM argument.
3346         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3347         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3349         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3350         * m4/math_h.m4 (gl_MATH_H): Likewise.
3351         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3353         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3354         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3355         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3356         * m4/regex.m4 (gl_REGEX): Likewise.
3357         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3358         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3362         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3364         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3365
3366 2008-04-14  Jim Meyering  <meyering@redhat.com>
3367
3368         test-strtod: fix typos: s/abs/fabs/
3369         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3370
3371 2008-04-13  Bruno Haible  <bruno@clisp.org>
3372
3373         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3374         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3375         module is also used and while not building the reloc-wrapper.
3376
3377 2008-04-13  Bruno Haible  <bruno@clisp.org>
3378
3379         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3380
3381 2008-04-13  Bruno Haible  <bruno@clisp.org>
3382
3383         Fix AIX compilation failure introduced on 2008-04-02.
3384         * tests/test-frexp.c (exp): Undefine before redefining.
3385         * tests/test-frexpl.c (exp): Likewise.
3386
3387 2008-04-13  Bruno Haible  <bruno@clisp.org>
3388
3389         Work around a HP-UX stdio bug.
3390         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3391         * tests/test-ftello.c (main): Likewise.
3392         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3393         * doc/posix-functions/ftello.texi: Likewise.
3394
3395 2008-04-13  Bruno Haible  <bruno@clisp.org>
3396
3397         Make test-signbit pass on HP-UX/hppa.
3398         * tests/test-signbit.c (minus_zerol): New variable.
3399         (test_signbitl): Use it.
3400
3401 2008-04-13  Bruno Haible  <bruno@clisp.org>
3402
3403         Make truncl work on OSF/1 4.0.
3404         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3405         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3406         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3408         HAVE_DECL_TRUNCL.
3409         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3410         HAVE_DECL_TRUNCL.
3411         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3412
3413 2008-04-13  Bruno Haible  <bruno@clisp.org>
3414
3415         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3416
3417 2008-04-13  Bruno Haible  <bruno@clisp.org>
3418
3419         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3420         expression, so as to avoid HP-UX 11 cc compiler bug.
3421
3422 2008-04-13  Bruno Haible  <bruno@clisp.org>
3423
3424         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3425
3426 2008-04-13  Bruno Haible  <bruno@clisp.org>
3427
3428         * lib/git-merge-changelog.c: Remove empty declaration outside of
3429         functions.
3430
3431 2008-04-13  Bruno Haible  <bruno@clisp.org>
3432
3433         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3434
3435 2008-04-13  Bruno Haible  <bruno@clisp.org>
3436
3437         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3438         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3440         also if it exists but lacks definitions of the SHUT_* macros.
3441         * modules/sys_socket (Description): Update.
3442         Reported by Elbert Pol <e.pol@chello.nl>.
3443
3444 2008-04-13  Bruno Haible  <bruno@clisp.org>
3445
3446         * lib/localcharset.c (OS2): Don't redefine if already defined.
3447         Reported by Elbert Pol <e.pol@chello.nl>.
3448
3449 2008-04-13  Bruno Haible  <bruno@clisp.org>
3450
3451         * lib/binary-io.h [__EMX__]: Include <io.h>.
3452         Reported by Elbert Pol <e.pol@chello.nl>.
3453
3454 2008-04-12  Bruno Haible  <bruno@clisp.org>
3455
3456         * lib/fpucw.h: Enable the definitions also for x86_64.
3457         Needed for NetBSD/x86_64.
3458         Reported by Thomas Klausner <tk@giga.or.at>.
3459
3460 2008-04-12  Bruno Haible  <bruno@clisp.org>
3461
3462         * tests/test-strtod.c: Include isnand.h.
3463         (main): Use isnand instead of isnan.
3464         Reported by Jim Meyering.
3465
3466 2008-04-12  Bruno Haible  <bruno@clisp.org>
3467
3468         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3469         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3470
3471 2008-04-12  Jim Meyering  <meyering@redhat.com>
3472
3473         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3474
3475 2008-04-12  Bruno Haible  <bruno@clisp.org>
3476
3477         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3478         Reported by Elbert Pol <e.pol@chello.nl>.
3479
3480 2008-04-12  Eric Blake  <ebb9@byu.net>
3481
3482         Work around Solaris 10 math.h bug.
3483         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3484         (gl_MATH_H_DEFAULTS): Set up default.
3485         * modules/math (Makefile.am): Replace new indicators.
3486         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3487         * tests/test-math.c (main): Test this.
3488         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3489         * doc/posix-headers/math.texi (math.h): Mention bug.
3490         Reported by Nelson H. F. Beebe and Jim Meyering.
3491
3492 2008-04-11  Bruno Haible  <bruno@clisp.org>
3493
3494         Adapt to future versions of Apple GCC.
3495         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3496         Reported by Peter O'Gorman <peter@pogma.com>.
3497
3498 2008-04-11  Bruno Haible  <bruno@clisp.org>
3499
3500         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3501
3502 2008-04-11  Bruno Haible  <bruno@clisp.org>
3503
3504         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3505
3506         * modules/getaddrinfo-tests (Makefile.am): Define
3507         test_getaddrinfo_LDADD.
3508
3509 2008-04-11  Bruno Haible  <bruno@clisp.org>
3510
3511         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3512         (init): Fix syntax error.
3513         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3514         is declared.
3515
3516 2008-04-11  Bruno Haible  <bruno@clisp.org>
3517
3518         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3519         * modules/glob (Depends-on): Add stdbool.
3520
3521 2008-04-11  Bruno Haible  <bruno@clisp.org>
3522
3523         * lib/trim.c: Include <string.h>.
3524
3525 2008-04-11  Eric Blake  <ebb9@byu.net>
3526
3527         Avoid compile failure on OS/2.
3528         * lib/regex_internal.h (internal_function): Disable optimization
3529         on OS/2 (__EMX__), where it caused compiler error.
3530         Reported by Elbert Pol.
3531
3532 2008-04-11  Bruno Haible  <bruno@clisp.org>
3533
3534         Flush the standard error stream before aborting. Needed on mingw.
3535         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3536         * tests/test-array_list.c (ASSERT): Likewise.
3537         * tests/test-array_oset.c (ASSERT): Likewise.
3538         * tests/test-avltree_list.c (ASSERT): Likewise.
3539         * tests/test-avltree_oset.c (ASSERT): Likewise.
3540         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3541         * tests/test-binary-io.c (ASSERT): Likewise.
3542         * tests/test-byteswap.c (ASSERT): Likewise.
3543         * tests/test-c-ctype.c (ASSERT): Likewise.
3544         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3545         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3546         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3547         * tests/test-c-strstr.c (ASSERT): Likewise.
3548         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3549         * tests/test-canonicalize.c (ASSERT): Likewise.
3550         * tests/test-carray_list.c (ASSERT): Likewise.
3551         * tests/test-ceilf1.c (ASSERT): Likewise.
3552         * tests/test-ceilf2.c (ASSERT): Likewise.
3553         * tests/test-ceill.c (ASSERT): Likewise.
3554         * tests/test-count-one-bits.c (ASSERT): Likewise.
3555         * tests/test-fbufmode.c (ASSERT): Likewise.
3556         * tests/test-fflush2.c (ASSERT): Likewise.
3557         * tests/test-floorf1.c (ASSERT): Likewise.
3558         * tests/test-floorf2.c (ASSERT): Likewise.
3559         * tests/test-floorl.c (ASSERT): Likewise.
3560         * tests/test-fopen.c (ASSERT): Likewise.
3561         * tests/test-fpending.c (ASSERT): Likewise.
3562         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3563         * tests/test-fpurge.c (ASSERT): Likewise.
3564         * tests/test-freadable.c (ASSERT): Likewise.
3565         * tests/test-freadahead.c (ASSERT): Likewise.
3566         * tests/test-freading.c (ASSERT): Likewise.
3567         * tests/test-freadptr.c (ASSERT): Likewise.
3568         * tests/test-freadptr2.c (ASSERT): Likewise.
3569         * tests/test-freadseek.c (ASSERT): Likewise.
3570         * tests/test-freopen.c (ASSERT): Likewise.
3571         * tests/test-frexp.c (ASSERT): Likewise.
3572         * tests/test-frexpl.c (ASSERT): Likewise.
3573         * tests/test-fseek.c (ASSERT): Likewise.
3574         * tests/test-fseeko.c (ASSERT): Likewise.
3575         * tests/test-fstrcmp.c (ASSERT): Likewise.
3576         * tests/test-ftell.c (ASSERT): Likewise.
3577         * tests/test-ftello.c (ASSERT): Likewise.
3578         * tests/test-func.c (ASSERT): Likewise.
3579         * tests/test-fwritable.c (ASSERT): Likewise.
3580         * tests/test-fwriting.c (ASSERT): Likewise.
3581         * tests/test-getdelim.c (ASSERT): Likewise.
3582         * tests/test-getline.c (ASSERT): Likewise.
3583         * tests/test-i-ring.c (ASSERT): Likewise.
3584         * tests/test-iconv-utf.c (ASSERT): Likewise.
3585         * tests/test-iconv.c (ASSERT): Likewise.
3586         * tests/test-isfinite.c (ASSERT): Likewise.
3587         * tests/test-isnand.c (ASSERT): Likewise.
3588         * tests/test-isnanf.c (ASSERT): Likewise.
3589         * tests/test-isnanl.h (ASSERT): Likewise.
3590         * tests/test-ldexpl.c (ASSERT): Likewise.
3591         * tests/test-linked_list.c (ASSERT): Likewise.
3592         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3593         * tests/test-localename.c (ASSERT): Likewise.
3594         * tests/test-lseek.c (ASSERT): Likewise.
3595         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3596         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3597         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3598         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3599         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3600         * tests/test-mbschr.c (ASSERT): Likewise.
3601         * tests/test-mbscspn.c (ASSERT): Likewise.
3602         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3603         * tests/test-mbspbrk.c (ASSERT): Likewise.
3604         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3605         * tests/test-mbsrchr.c (ASSERT): Likewise.
3606         * tests/test-mbsspn.c (ASSERT): Likewise.
3607         * tests/test-mbsstr1.c (ASSERT): Likewise.
3608         * tests/test-mbsstr2.c (ASSERT): Likewise.
3609         * tests/test-mbsstr3.c (ASSERT): Likewise.
3610         * tests/test-memchr2.c (ASSERT): Likewise.
3611         * tests/test-memmem.c (ASSERT): Likewise.
3612         * tests/test-open.c (ASSERT): Likewise.
3613         * tests/test-printf-frexp.c (ASSERT): Likewise.
3614         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3615         * tests/test-printf-posix.c (ASSERT): Likewise.
3616         * tests/test-quotearg.c (ASSERT): Likewise.
3617         * tests/test-rbtree_list.c (ASSERT): Likewise.
3618         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3619         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3620         * tests/test-round1.c (ASSERT): Likewise.
3621         * tests/test-roundf1.c (ASSERT): Likewise.
3622         * tests/test-roundl.c (ASSERT): Likewise.
3623         * tests/test-signbit.c (ASSERT): Likewise.
3624         * tests/test-sleep.c (ASSERT): Likewise.
3625         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3626         * tests/test-snprintf.c (ASSERT): Likewise.
3627         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3628         * tests/test-stat-time.c (ASSERT): Likewise.
3629         * tests/test-strcasestr.c (ASSERT): Likewise.
3630         * tests/test-strerror.c (ASSERT): Likewise.
3631         * tests/test-striconv.c (ASSERT): Likewise.
3632         * tests/test-striconveh.c (ASSERT): Likewise.
3633         * tests/test-striconveha.c (ASSERT): Likewise.
3634         * tests/test-strsignal.c (ASSERT): Likewise.
3635         * tests/test-strstr.c (ASSERT): Likewise.
3636         * tests/test-strtod.c (ASSERT): Likewise.
3637         * tests/test-trunc1.c (ASSERT): Likewise.
3638         * tests/test-trunc2.c (ASSERT): Likewise.
3639         * tests/test-truncf1.c (ASSERT): Likewise.
3640         * tests/test-truncf2.c (ASSERT): Likewise.
3641         * tests/test-truncl.c (ASSERT): Likewise.
3642         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3643         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3644         * tests/test-vasnprintf.c (ASSERT): Likewise.
3645         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3646         * tests/test-vasprintf.c (ASSERT): Likewise.
3647         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3648         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3649         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3650         * tests/test-vsnprintf.c (ASSERT): Likewise.
3651         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3652         * tests/test-wcwidth.c (ASSERT): Likewise.
3653         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3654         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3655         * tests/test-xvasprintf.c (ASSERT): Likewise.
3656         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3657         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3658         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3659         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3660         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3661         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3662         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3663         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3664         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3665         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3666         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3667         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3668         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3669         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3670         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3671         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3672         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3673         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3674         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3675         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3676         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3677         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3678         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3679         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3680         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3681         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3682         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3683         * tests/unictype/test-combining.c (ASSERT): Likewise.
3684         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3685         * tests/unictype/test-digit.c (ASSERT): Likewise.
3686         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3687         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3688         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3689         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3690         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3691         * tests/unictype/test-scripts.c (ASSERT): Likewise.
3692         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3693         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3694         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3695         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3696         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3697         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3698         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3699         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3700         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3701         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3702         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3703         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3704         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3705         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3706         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3707         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3708         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3709         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3710         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3711         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3712         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3713         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3714         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3715         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3716         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3717         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3718         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3719         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3720         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
3721         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
3722         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
3723         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
3724         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
3725         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
3726         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
3727         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
3728         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
3729         Reported by Eric Blake.
3730
3731 2008-04-11  Bruno Haible  <bruno@clisp.org>
3732
3733         * lib/wchar.in.h: Tweak comment.
3734
3735 2008-04-11  Bruno Haible  <bruno@clisp.org>
3736
3737         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
3738         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
3739         gl_COMMON.
3740         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
3741
3742 2008-04-11  Bruno Haible  <bruno@clisp.org>
3743
3744         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
3745
3746 2008-04-11  Simon Josefsson  <simon@josefsson.org>
3747
3748         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
3749         of attempting to use non-existing /dev/*random.  Based on patch
3750         from Adam Strzelecki <ono@java.pl> in
3751         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
3752
3753 2008-04-08  Bruno Haible  <bruno@clisp.org>
3754
3755         Add tentative support for emx+gcc.
3756         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
3757         * lib/fpurge.c (fpurge): Likewise.
3758         * lib/freadable.c (freadable): Likewise.
3759         * lib/freadahead.c (freadahead): Likewise.
3760         * lib/freading.c (freading): Likewise.
3761         * lib/freadptr.c (freadptr): Likewise.
3762         * lib/freadseek.c (freadptrinc): Likewise.
3763         * lib/fseeko.c (rpl_fseeko): Likewise.
3764         * lib/fseterr.c (fseterr): Likewise.
3765         * lib/fwritable.c (fwritable): Likewise.
3766         * lib/fwriting.c (fwriting): Likewise.
3767         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
3768
3769 2008-04-09  Eric Blake  <ebb9@byu.net>
3770
3771         Avoid some autoconf warnings.
3772         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
3773         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
3774         * m4/afs.m4 (gl_AFS): Likewise.
3775         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
3776         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
3777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3778         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
3779         (gl_INTEGER_TYPE_SUFFIX): Likewise.
3780         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
3781         (AC_CHECK_DECLS_ONCE): Likewise.
3782         Rename file...
3783         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
3784         gnulib-tool requires autoconf 2.59 or better.
3785         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
3786
3787 2008-04-08  Eric Blake  <ebb9@byu.net>
3788
3789         Use 'git describe --match' if present (added in git 1.5.5).
3790         * build-aux/git-version-gen: Limit result to tags that match 'v*'
3791         if possible.
3792
3793 2008-04-08  Bruno Haible  <bruno@clisp.org>
3794
3795         Add tentative support for OpenServer.
3796         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
3797         _ptr, _cnt.
3798         * lib/fpurge.c (fpurge): Likewise.
3799         * lib/freadable.c (freadable): Likewise.
3800         * lib/freadahead.c (freadahead): Likewise.
3801         * lib/freading.c (freading): Likewise.
3802         * lib/freadptr.c (freadptr): Likewise.
3803         * lib/freadseek.c (freadptrinc): Likewise.
3804         * lib/fseeko.c (rpl_fseeko): Likewise.
3805         * lib/fseterr.c (fseterr): Likewise.
3806         * lib/fwritable.c (fwritable): Likewise.
3807         * lib/fwriting.c (fwriting): Likewise.
3808         Reported by Roger Cornelius <rac@tenzing.org> and
3809         Brian K. White <brian@aljex.com>.
3810
3811 2008-04-06  Jim Meyering  <meyering@redhat.com>
3812
3813         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
3814
3815 2008-04-06  Bruno Haible  <bruno@clisp.org>
3816
3817         Avoid possible error with non-ASCII bytes in UTF-8 locales.
3818         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
3819         * tests/test-printf-posix.sh: Likewise.
3820         * tests/test-vfprintf-posix.sh: Likewise.
3821         * tests/test-vprintf-posix.sh: Likewise.
3822         * tests/test-xprintf-posix.sh: Likewise.
3823
3824 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3825
3826         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
3827         hide error from 'ls', needed on OS/2.
3828         Report by Elbert Pol <elbert.pol@gmail.com>.
3829
3830 2008-04-04  Eric Blake  <ebb9@byu.net>
3831
3832         Make test-fseeko.c failures meaningful.
3833         * tests/test-fseeko.c: Print line number on failure.
3834         * tests/test-fseek.c: Likewise.
3835         Reported by Nelson H. F. Beebe.
3836
3837         Improve strtod bug detection check.
3838         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
3839         required for Solaris 10.
3840         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
3841
3842 2008-04-04  Bruno Haible  <bruno@clisp.org>
3843
3844         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
3845         by m4/setenv.m4.
3846
3847 2008-04-03  Eric Blake  <ebb9@byu.net>
3848
3849         Ensure sane .version contents.
3850         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
3851         version string.
3852         * build-aux/git-version-gen: Improve documentation.
3853
3854         Make GNU make output nicer.
3855         * top/GNUmakefile [!_have-Makefile]: Add dependency on
3856         MAKECMDGOALS to enforce message for all command line targets.  Set
3857         srcdir for use in maint.mk.
3858
3859         Another maintainer tweak.
3860         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
3861         a target that regenerates version.
3862
3863 2008-04-03  Jim Meyering  <meyering@redhat.com>
3864
3865         vc-list-files: don't cause coreutils "make po-check" failure
3866         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
3867
3868 2008-04-03  Eric Blake  <ebb9@byu.net>
3869
3870         Allow VPATH usage of vc-list-files.
3871         * build-aux/vc-list-files (scriptversion): Add timestamp.
3872         (options): Add --help, --version, -C.
3873         (CVS): Support installed cvsu.
3874
3875 2008-04-02  Bruno Haible  <bruno@clisp.org>
3876
3877         Avoid some "statement with no effect" warnings from gcc.
3878         * tests/test-wctype.c (main): Explicitly ignore unused values.
3879         Reported by Jim Meyering.
3880
3881 2008-04-02  Jim Meyering  <meyering@redhat.com>
3882
3883         Avoid some warnings from "gcc -Wshadow".
3884         * tests/test-frexp.c (exp): Define to a different identifier.
3885         * tests/test-frexpl.c (exp): Likewise.
3886
3887 2008-04-03  Jim Meyering  <meyering@redhat.com>
3888
3889         bootstrap: remove dangling *.[ch] symlinks from lib
3890         * build-aux/bootstrap [dangling symlink removal]: Move find's
3891         -depth option to precede all others, to avoid a warning.
3892         Remove *.[ch] files too, and from "$source_base" (usually lib/).
3893
3894 2008-04-02  Bruno Haible  <bruno@clisp.org>
3895
3896         Avoid some warnings from "gcc -Wshadow".
3897         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
3898         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
3899         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
3900         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
3901         Reported by Jim Meyering.
3902
3903 2008-04-01  Bruno Haible  <bruno@clisp.org>
3904
3905         Fix test to work on IRIX 6.5 with cc.
3906         * tests/test-math.c (numeric_equal): New function.
3907         (main): Use it.
3908
3909 2008-04-01  Bruno Haible  <bruno@clisp.org>
3910
3911         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
3912
3913 2008-04-01  Bruno Haible  <bruno@clisp.org>
3914
3915         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
3916         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3917         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
3918         (Depends-on): Remove math.
3919
3920         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
3921         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3922         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
3923         (Depends-on): Remove math.
3924
3925         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
3926         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3927         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
3928         (Depends-on): Remove math.
3929         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
3930         (Depends-on): Remove math.
3931
3932         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
3933         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3934         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
3935         (Depends-on): Remove math.
3936         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
3937         (Depends-on): Remove math.
3938
3939         * tests/test-round1.c: Include nan.h.
3940         (main): Use NaNd instead of NAN.
3941         * modules/round-tests (Files): Add tests/nan.h.
3942
3943         * tests/test-trunc1.c: Include nan.h.
3944         (main): Use NaNd instead of NAN.
3945         * modules/trunc-tests (Files): Add tests/nan.h.
3946
3947         * tests/test-roundf1.c: Include nan.h.
3948         (main): Use NaNf instead of NAN.
3949         * modules/roundf-tests (Files): Add tests/nan.h.
3950
3951         * tests/test-truncf1.c: Include nan.h.
3952         (main): Use NaNf instead of NAN.
3953         * modules/truncf-tests (Files): Add tests/nan.h.
3954
3955         * tests/test-ceilf1.c: Include nan.h.
3956         (main): Use NaNf instead of NAN.
3957         * modules/ceilf-tests (Files): Add tests/nan.h.
3958
3959         * tests/test-floorf1.c: Include nan.h.
3960         (main): Use NaNf instead of NAN.
3961         * modules/floorf-tests (Files): Add tests/nan.h.
3962
3963         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
3964         (main): Use NaNf instead of NAN.
3965         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
3966
3967         * tests/test-isnand.c: Include nan.h instead of <math.h>.
3968         (main): Use NaNd instead of NAN.
3969         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
3970
3971         * tests/test-frexp.c: Include nan.h.
3972         (main): Use NaNd instead of NAN.
3973         * modules/frexp-tests (Files): Add tests/nan.h.
3974
3975         * lib/isnan.c: Don't include <math.h>.
3976         (FUNC): Don't use NAN macro.
3977         * modules/isnand-nolibm (Depends-on): Remove math.
3978         * modules/isnanf-nolibm (Depends-on): Remove math.
3979         * modules/isnanl (Depends-on): Remove math.
3980         * modules/isnanl-nolibm (Depends-on): Remove math.
3981
3982         * tests/nan.h: New file.
3983
3984 2008-04-01  Eric Blake  <ebb9@byu.net>
3985
3986         Fix typos.
3987         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
3988         values to be the right type.
3989
3990         For now, cater to gnulib strtod inaccuracies.
3991         * tests/test-strtod.c (main): Allow 1-ulp error on expected
3992         fractional results.  While not as nice from a QoI perspective, it
3993         is a quicker patch than correctly implementing decimal to binary
3994         rounding.
3995
3996 2008-03-31  Eric Blake  <ebb9@byu.net>
3997
3998         Guarantee a definition of NAN.
3999         * lib/math.in.h (NAN): Define if missing.
4000         * tests/test-math.c (main): Test it.
4001         * doc/posix-headers/math.texi (math.h): Document this.
4002         * lib/isnan.c (rpl_isnand): Use it.
4003         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
4004         * tests/test-floorf1.c (NaN): Likewise.
4005         * tests/test-frexp.c (NaN): Likewise.
4006         * tests/test-isnand.c (NaN): Likewise.
4007         * tests/test-isnanf.c (NaN): Likewise.
4008         * tests/test-round1.c (NaN): Likewise.
4009         * tests/test-roundf1.c (NaN): Likewise.
4010         * tests/test-snprintf-posix.h (NaN): Likewise.
4011         * tests/test-sprintf-posix.h (NaN): Likewise.
4012         * tests/test-trunc1.c (NaN): Likewise.
4013         * tests/test-truncf1.c (NaN): Likewise.
4014         * tests/test-vasnprintf-posix.c (NaN): Likewise.
4015         * tests/test-vasprintf-posix.c (NaN): Likewise.
4016         * modules/isnand-nolibm (Depends-on): Add math.
4017         * modules/isnanf-nolibm (Depends-on): Likewise.
4018         * modules/isnanl (Depends-on): Likewise.
4019         * modules/isnanl-nolibm (Depends-on): Likewise.
4020         * modules/snprintf-posix-tests (Depends-on): Likewise.
4021         * modules/sprintf-posix-tests (Depends-on): Likewise.
4022         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
4023         * modules/vsprintf-posix-tests (Depends-on): Likewise.
4024         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
4025         * modules/vasprintf-posix-tests (Depends-on): Likewise.
4026
4027 2008-03-31  Bruno Haible  <bruno@clisp.org>
4028
4029         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
4030         * doc/posix-functions/strtod.texi: Likewise.
4031
4032 2008-03-31  Bruno Haible  <bruno@clisp.org>
4033
4034         * tests/test-strtod.c (main): Don't use C99 syntax.
4035
4036 2008-03-31  Bruno Haible  <bruno@clisp.org>
4037
4038         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
4039         Reported by Eric Blake.
4040
4041 2008-03-31  Jim Meyering  <meyering@redhat.com>
4042
4043         Don't compare actual signbit return values.
4044         * tests/test-strtod.c (main): Rather, compare only their
4045         zero/non-zero nature.
4046
4047 2008-03-31  Eric Blake  <ebb9@byu.net>
4048
4049         More strtod documentation.
4050         * doc/posix-functions/strtod.texi (strtod): Interpret more test
4051         failures as distinct bugs.
4052
4053 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4054
4055         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
4056         Problem reported by Erik Benada in
4057         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
4058
4059 2008-03-30  Bruno Haible  <bruno@clisp.org>
4060
4061         * tests/test-strtod.c: Add comments about which assertion fails on which
4062         platform.
4063         * doc/posix-functions/strtod.texi: Add info about many more platforms.
4064
4065 2008-03-30  Eric Blake  <ebb9@byu.net>
4066
4067         Test signbit behavior on zeros.
4068         * tests/test-signbit.c (test_signbitf): Add tests for zero.
4069         (test_signbitd, test_signbitl): Likewise.
4070
4071         More strtod touchups.
4072         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
4073         sign of negative underflow, for now.  Use .5, not .1.
4074         * doc/posix-functions/strtod.texi (strtod): Mention these
4075         limitations.
4076         Reported by Jim Meyering.
4077
4078 2008-03-30  Bruno Haible  <bruno@clisp.org>
4079
4080         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
4081         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
4082
4083 2008-03-30  Bruno Haible  <bruno@clisp.org>
4084
4085         Avoid failure when attempting to return empty iconv results on some
4086         platforms.
4087         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
4088         allocation, don't report ENOMEM when the resulting string is empty.
4089
4090 2008-03-30  Bruno Haible  <bruno@clisp.org>
4091
4092         Fix buffer overrun.
4093         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
4094         Don't consider the width for tmp_length. Check count against tmp_length
4095         before doing the padding. Ensure enough allocation during padding.
4096
4097 2008-03-30  Eric Blake  <ebb9@byu.net>
4098
4099         strtod touchups.
4100         * lib/strtod.c (strtod): Avoid compiler warnings.
4101         Reported by Jim Meyering.
4102
4103 2008-03-30  Bruno Haible  <bruno@clisp.org>
4104
4105         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
4106         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
4107         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
4108         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
4109         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
4110         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
4111         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
4112         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
4113
4114         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
4115         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
4116         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
4117         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
4118         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4119         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4120         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4121         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4122
4123         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4124         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4125         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4126         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4127         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4128         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4129         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4130         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4131
4132         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4133         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4134
4135         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4136         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4137
4138         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4139         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4140
4141         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4143         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4144
4145         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4147         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4148
4149         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4151         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4152
4153         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4154         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4155         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4156
4157         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4158         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4159         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4160         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4161         (Depends-on): Add EOVERFLOW.
4162         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4163         (Depends-on): Add EOVERFLOW.
4164         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4165         (Depends-on): Add EOVERFLOW.
4166         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4167         (Depends-on): Add EOVERFLOW.
4168         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4169         (Depends-on): Add EOVERFLOW.
4170         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4171         (Depends-on): Add EOVERFLOW.
4172         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4173         (Depends-on): Add EOVERFLOW.
4174         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4175         (Depends-on): Add EOVERFLOW.
4176
4177         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4179         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4180
4181         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4182         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4183         * modules/snprintf (Depends-on): Add EOVERFLOW.
4184
4185         * lib/poll.c (EOVERFLOW): Remove fallback.
4186         * modules/poll (Depends-on): Add EOVERFLOW.
4187
4188         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4189         * modules/getugroups (Depends-on): Add EOVERFLOW.
4190
4191         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4192         * modules/getdelim (Depends-on): Add EOVERFLOW.
4193
4194         * lib/ftell.c (EOVERFLOW): Remove fallback.
4195         * modules/ftell (Depends-on): Add EOVERFLOW.
4196
4197         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4199         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4200
4201         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4202
4203         * modules/EOVERFLOW-tests: New file.
4204         * tests/test-EOVERFLOW.c: New file.
4205
4206         * modules/EOVERFLOW: New file.
4207         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4208
4209 2008-03-30  Bruno Haible  <bruno@clisp.org>
4210
4211         Fix bug introduced on 2007-06-10.
4212         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4213         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4214
4215 2008-03-30  Bruno Haible  <bruno@clisp.org>
4216
4217         Improve freadseek's efficiency after ungetc.
4218         * lib/freadseek.c: Include freadahead.h.
4219         (freadptrinc): New function, extracted from freadseek.
4220         (freadseek): Use it in a loop. Use freadahead to determine the number
4221         of loop iterations.
4222         * modules/freadseek (Depends-on): Add freadahead.
4223         (configure.ac): Require AC_C_INLINE.
4224
4225 2008-03-30  Bruno Haible  <bruno@clisp.org>
4226
4227         * lib/freadseek.c (freadseek): Don't ignore the return value of
4228         freadptr.
4229
4230 2008-03-29  Eric Blake  <ebb9@byu.net>
4231
4232         Add hex float support.
4233         * modules/strtod (Depends-on): Add c-ctype.
4234         (Link): Mention POW_LIB.
4235         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4236         whitespace between 'e' and exponent.
4237         * tests/test-strtod.c (main): Enable hex float tests.
4238         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4239         now provides.
4240
4241         Document various strtod bugs, with some fixes.
4242         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4243         "-0x", "inf", "nan", and hex constants.
4244         * doc/posix-functions/atof.texi (atof): Likewise.
4245         * modules/stdlib (Makefile.am): Support strtod.
4246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4247         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4248         detect additional strtod bugs.
4249         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4250         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4251         bool where appropriate.  Parse 'inf' and 'nan'.
4252         * tests/test-strtod.c: New file.
4253         * modules/strtod (Depends-on): Add stdbool, stdlib.
4254         (configure.ac): Turn on module indicator.
4255         * modules/strtod-tests: New module.
4256
4257 2008-03-29  Eric Blake  <ebb9@byu.net>
4258
4259         Fix ftell on mingw.
4260         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4261         * modules/ftell-tests (Depends-on): Add binary-io.
4262         * modules/ftello-tests (Depends-on): Likewise.
4263         * tests/test-ftell.c (main): Enhance test to cover behavior after
4264         ungetc.  Enforce binary mode.
4265         * tests/test-ftello.c (main): Likewise.
4266
4267         Pass test-freadseek on cygwin.
4268         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4269         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4270         ungetc buffer.
4271
4272         * tests/test-fflush2.c (main): Fix typo.
4273
4274 2008-03-29  Bruno Haible  <bruno@clisp.org>
4275
4276         * tests/test-fflush2.c (main): Temporarily disable the contents of
4277         this test.
4278         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4279         Reported by Eric Blake.
4280
4281 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4282
4283         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4284         (GC_SHA224_DIGEST_SIZE): Add.
4285
4286         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4287         (gc_hash_digest_length): Likewise.
4288         (gc_hash_buffer): Likewise.
4289
4290 2008-03-25  Bruno Haible  <bruno@clisp.org>
4291
4292         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4293         detail which gettext release to use.
4294         Reported by Simon Josefsson.
4295
4296 2008-03-26  Jim Meyering  <meyering@redhat.com>
4297
4298         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4299         * modules/gnumakefile (clean-GNUmakefile): Also, use
4300         test ... && ... || : syntax rather than if-then ... fi.
4301
4302         gnumakefile: Don't double-quote-expand $(VPATH) value.
4303         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4304
4305 2008-03-24  Eric Blake  <ebb9@byu.net>
4306
4307         Alter GNUmakefile to install into top directory.
4308         * modules/maintainer-makefile: Split, and add dependency...
4309         * modules/gnumakefile: to this new module.
4310         * build-aux/GNUmakefile: Move...
4311         * top/GNUmakefile: ...here.
4312         * build-aux/maint.mk: Move...
4313         * top/maint.mk: ...here.
4314         * MODULES.html.sh (Support for maintaining...): Document new
4315         module.
4316
4317 2008-03-23  Bruno Haible  <bruno@clisp.org>
4318
4319         * gnulib-tool: New options --vc-files, --no-vc-files.
4320         (func_usage): Document them.
4321         (vc_files): New variable.
4322         (func_import): Consider vc_files.
4323         (func_create_testdir): Set vc_files to empty.
4324         Suggested by Jim Meyering and Karl Berry.
4325
4326 2008-03-23  Bruno Haible  <bruno@clisp.org>
4327
4328         Fix regex compilation error on HP-UX 11.
4329         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4330         * modules/regex (Files): Add m4/mbstate_t.m4.
4331         Reported by Ton Voon <ton.voon@altinity.com>.
4332
4333 2008-03-23  Bruno Haible  <bruno@clisp.org>
4334
4335         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4336
4337 2008-03-23  Eric Blake  <ebb9@byu.net>
4338             Bruno Haible  <bruno@clisp.org>
4339
4340         Install files from top/ in the destination directory.
4341         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4342         augmentation also for the files from top/.
4343         (func_import, func_create_testdir): Rewrite file names:
4344         top/filename -> filename.
4345
4346 2008-03-23  Bruno Haible  <bruno@clisp.org>
4347
4348         Tweak "gnulib --version" output.
4349         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4350
4351 2008-03-23  Bruno Haible  <bruno@clisp.org>
4352
4353         Tweak "gnulib --version" output.
4354         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4355         rather than contents of ChangeLog, when possible.
4356
4357 2008-03-21  Eric Blake  <ebb9@byu.net>
4358
4359         More --version tweaks.
4360         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4361         date of last ChangeLog entry.
4362
4363 2008-03-21  Jim Meyering  <meyering@redhat.com>
4364
4365         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4366
4367 2008-03-20  Eric Blake  <ebb9@byu.net>
4368
4369         VPATH fix.
4370         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4371
4372 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4373
4374         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4375         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4376
4377 2008-03-20  Eric Blake  <ebb9@byu.net>
4378
4379         Sync GNUmakefile with coreutils.
4380         * build-aux/GNUmakefile (have-Makefile): Rename...
4381         (_have-Makefile): ...to this, for namespace consideration.
4382         (GNUmakefile.cfg): Include, if present.
4383         (_autoreconf): Define a default.
4384         (_is-dist-target): New rule for rebuilds to pick up intra-release
4385         version.
4386         (maint-cfg.mk): Rename...
4387         (cfg.mk): ...to this.
4388
4389 2008-03-18  Jim Meyering  <meyering@redhat.com>
4390
4391         New script and module: mktempd
4392         * MODULES.html.sh (maint+release support): Add mktempd.
4393         * build-aux/mktempd: New file.
4394         * modules/mktempd: New file.
4395
4396 2008-03-15  Jim Meyering  <meyering@redhat.com>
4397
4398         Undo last change.
4399         * lib/sha1.c, lib/md5.c: 63 != ~63.
4400         Reported by Andreas Schwab.
4401
4402         sha1.c, md5.c: Hoist a redundant expression.
4403         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4404         "ctx->buflen" only once, before calling *_process_block.
4405         * lib/md5.c (md5_process_bytes): Likewise.
4406
4407 2008-03-14  Eric Blake  <ebb9@byu.net>
4408
4409         Bump copyright year in files generated by gnulib-tool.
4410         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4411         gnulib-tool, rather than hard-coding it.
4412
4413         Fix 'gnulib-tool --version' output to work with git.
4414         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4415         (startup): ...here.
4416         (func_version): Use it to invoke git-version-gen, rather than
4417         relying on CVS keyword expansion.  Modernize wording.
4418         (cvsdatestamp, last_checkin_date, version): Kill unused
4419         variables.
4420
4421 2008-03-12  Jim Meyering  <meyering@redhat.com>
4422
4423         Recognize optional cast of the argument to free.
4424         * build-aux/useless-if-before-free: Update regexps.
4425
4426         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4427
4428 2008-03-11  Bruno Haible  <bruno@clisp.org>
4429
4430         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4431         by a single package.
4432         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4433         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4434         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4435         Reported by Sam Steingold <sds@gnu.org>.
4436
4437 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4438
4439         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4440         repositories.
4441
4442 2008-03-11  Bruno Haible  <bruno@clisp.org>
4443
4444         Avoid conflicts between local macro definitions.
4445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4446         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4447
4448 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4449             Bruno Haible  <bruno@clisp.org>
4450
4451         Make va_copy work with some version of xlc on AIX 5.1.
4452         * lib/stdarg.in.h: New file.
4453         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4454         On AIX, use a <stdarg.h> file substitute.
4455         * modules/stdarg (Files): Add lib/stdarg.in.h.
4456         (Depends-on): Add include_next.
4457         (Makefile.am): Build a stdarg.h substitute if requested.
4458         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4459
4460 2008-03-10  Bruno Haible  <bruno@clisp.org>
4461
4462         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4464         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4465
4466 2008-03-10  Bruno Haible  <bruno@clisp.org>
4467
4468         * modules/stdlib (Depends-on): Add include_next, remove
4469         absolute-header.
4470
4471 2008-03-09  Bruno Haible  <bruno@clisp.org>
4472
4473         * lib/freadahead.h (freadahead): Document more precisely.
4474         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4475         the sum of both buffer sizes.
4476         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4477         * NEWS: Document the change.
4478
4479 2008-03-09  Bruno Haible  <bruno@clisp.org>
4480
4481         Extend freadptr to return also the buffer size.
4482         * lib/freadptr.h (freadptr): Add sizep argument.
4483         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4484         (freadptr): Add sizep argument. Determine buffer size like freadahead
4485         does.
4486         * tests/test-freadptr.c: Don't include freadahead.h.
4487         (main): Adapt for new calling convention of freadptr.
4488         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4489         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4490         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4491         tests/test-freadptr2.sh.
4492         (Depends): Remove freadahead.
4493         (TESTS): Add test-freadptr2.sh.
4494         (check_PROGRAMS): Add test-freadptr2.
4495
4496 2008-03-09  Bruno Haible  <bruno@clisp.org>
4497
4498         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4499         Report and solution by Simon Josefsson.
4500
4501 2008-03-06  Bruno Haible  <bruno@clisp.org>
4502
4503         Make fflush after ungetc work on BSD platforms.
4504         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4505         * tests/test-fflush2.c: New file.
4506         * tests/test-fflush2.sh: New file.
4507         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4508         tests/test-fflush2.c.
4509         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4510         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4511
4512 2008-03-06  Eric Blake  <ebb9@byu.net>
4513
4514         Likewise for ftello.
4515         * modules/ftello (Dependencies): Add extensions.
4516         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4517
4518 2008-03-06  Bruno Haible  <bruno@clisp.org>
4519
4520         * modules/fseeko (Dependencies): Add extensions.
4521         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4522         Needed on glibc systems.
4523
4524 2008-03-06  Bruno Haible  <bruno@clisp.org>
4525
4526         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4527         email address.
4528         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4529
4530 2008-03-06  Bruno Haible  <bruno@clisp.org>
4531
4532         * users.txt: Add libgnupdf.
4533
4534 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4535
4536         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4537         (Header File Substitutes, Function Substitutes,
4538         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4539         (Build robot for gnulib): Fix typo.
4540
4541 2008-03-06  Bruno Haible  <bruno@clisp.org>
4542
4543         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4544         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4545
4546 2008-03-06  Bruno Haible  <bruno@clisp.org>
4547
4548         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4549         * doc/gnulib.texi: Include it.
4550
4551 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4552
4553         * modules/func (License): Change license to unlimited; there was
4554         no LGPL parts in the module anyway.
4555
4556 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4557
4558         * modules/__func__: Renamed to modules/func.
4559         * modules/__func__-tests: Renamed to modules/func-tests.
4560         * tests/test-__func__.c: Renamed to tests/test-func.c.
4561         * m4/__func__.m4: Renamed to m4/func.m4.
4562         * doc/gnulib.texi (__func__): Section renamed to func.
4563         Suggested by Eric Blake <ebb9@byu.net>.
4564
4565 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4566
4567         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4568         about __func__.  Make example self-contained.  Suggested by Eric
4569         Blake <ebb9@byu.net>.
4570
4571         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4572         Suggested by Eric Blake <ebb9@byu.net>.
4573
4574 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4575
4576         * modules/__func__: New file.
4577         * modules/__func__-tests: New file.
4578         * tests/test-__func__.c: New file.
4579         * m4/__func__.m4: New file.
4580         * doc/gnulib.texi (__func__): Document __func__ module.
4581
4582 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4583
4584         * modules/byteswap (License): Re-license as LGPLv2+.
4585
4586 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4587
4588         * doc/Makefile: Add pdf target.
4589
4590 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4591
4592         * modules/inline (License): Use 'unlimited', since there are only
4593         *.m4 files in this module.
4594
4595 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4596             Bruno Haible  <bruno@clisp.org>
4597
4598         Add support for HP C 7.1 on OpenVMS 8.3.
4599         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4600
4601 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4602
4603         Update VMS specifics.
4604         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4605
4606 2008-03-02  Jim Meyering  <meyering@redhat.com>
4607
4608         Remove the last dependency on the "free" module.
4609         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4610         Reported by Bob Proulx.
4611
4612         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4613
4614         Remove useless "if" tests before free.  Deprecate "free" module.
4615         * doc/posix-functions/free.texi: Mention that this
4616         module is no longer useful.
4617         * modules/free (Notice): Say this module is obsolete.
4618         * modules/readutmp (Depends-on): Remove free.
4619         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4620         * lib/putenv.c (putenv): Likewise.
4621         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4622         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4623         * tests/test-c-strcasestr.c (main): Likewise.
4624         * tests/test-c-strstr.c (main): Likewise.
4625         * tests/test-mbscasestr1.c (main): Likewise.
4626         * tests/test-mbscasestr2.c (main): Likewise.
4627         * tests/test-mbsstr1.c (main): Likewise.
4628         * tests/test-mbsstr2.c (main): Likewise.
4629         * tests/test-memmem.c (main): Likewise.
4630         * tests/test-strcasestr.c (main): Likewise.
4631         * tests/test-striconv.c (main): Likewise.
4632         * tests/test-striconveh.c (main): Likewise.
4633         * tests/test-striconveha.c (main): Likewise.
4634         * tests/test-strstr.c (main): Likewise.
4635
4636         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4637
4638         bootstrap: sync from coreutils again
4639         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4640
4641 2008-03-01  Jim Meyering  <meyering@redhat.com>
4642
4643         bootstrap: sync from coreutils
4644         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4645         also when the target doesn't exist.
4646
4647 2008-03-01  Eric Blake  <ebb9@byu.net>
4648
4649         Fix bugs in last patch.
4650         * lib/memchr2.c (memchr2): Fix typo.
4651         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4652         extension.
4653         Reported by Bruce Korb.
4654
4655         New module 'memchr2'.
4656         * modules/memchr2: New file.
4657         * modules/memchr2-tests: Likewise.
4658         * lib/memchr2.h: Likewise.
4659         * lib/memchr2.c: Likewise, based on memchr.c.
4660         * tests/test-memchr2.c: New test.
4661         * MODULES.html.sh (String handling): Add memchr2.
4662
4663 2008-02-29  Bruno Haible  <bruno@clisp.org>
4664
4665         * modules/freadseek-tests: New file.
4666         * tests/test-freadseek.sh: New file.
4667         * tests/test-freadseek.c: New file.
4668
4669         New module 'freadseek'.
4670         * modules/freadseek: New file.
4671         * lib/freadseek.h: New file.
4672         * lib/freadseek.c: New file.
4673         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4674
4675 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4676
4677         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4678         wydawca.
4679
4680         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4681         program_invocation_name and program_invocation_short_name are
4682         present.
4683
4684 2008-02-28  Bruno Haible  <bruno@clisp.org>
4685
4686         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4687         * tests/test-freadptr.sh: Also test non-seekable stdin.
4688
4689 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4690
4691         * build-aux/bootstrap (source_base, m4_base)
4692         (doc_base, tests_base): New variables.
4693         (gnulib_tool_options): Do not hardcode base directories, use
4694         the above variables instead.
4695
4696 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
4697
4698         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4699
4700 2008-02-28  Bruno Haible  <bruno@clisp.org>
4701
4702         * modules/freadptr-tests: New file.
4703         * tests/test-freadptr.sh: New file.
4704         * tests/test-freadptr.c: New file.
4705
4706         New module 'freadptr'.
4707         * modules/freadptr: New file.
4708         * lib/freadptr.h: New file.
4709         * lib/freadptr.c: New file.
4710         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4711
4712 2008-02-26  Karl Berry  <karl@freefriends.org>
4713
4714         Sync from Libtool:
4715         * libltdl/argz.c (argz_add, argz_count): New functions.
4716         * libltdl/argz.in.h: Declare them.
4717         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4718
4719 2008-02-22  Bruno Haible  <bruno@clisp.org>
4720
4721         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
4722         is a pointer type.  Needed for HP-UX 10.
4723         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
4724         * doc/posix-functions/gmtime_r.texi: Likewise.
4725         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4726
4727 2008-02-24  Bruno Haible  <bruno@clisp.org>
4728
4729         * modules/environ-tests: New file.
4730         * tests/test-environ.c: New file.
4731
4732         New module 'environ'.
4733         * modules/environ: New file.
4734         * lib/unistd.in.h (environ): New declaration.
4735         * m4/environ.m4: New file.
4736         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
4737         after use.
4738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
4739         HAVE_DECL_ENVIRON.
4740         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
4741         HAVE_DECL_ENVIRON.
4742         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
4743         wrong claim that 'environ' is missing on some systems.
4744         * modules/execute (Depends-on): Add environ.
4745         * lib/execute.c (environ): Remove fallback declaration.
4746         * modules/pipe (Depends-on): Add environ.
4747         * lib/pipe.c (environ): Remove fallback declaration.
4748         * modules/setenv (Depends-on): Add environ.
4749         * lib/setenv.c (environ): Remove fallback declaration.
4750         * modules/unsetenv (Depends-on): Add environ.
4751         * lib/unsetenv.c (environ): Remove fallback declaration.
4752         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
4753         m4/environ.m4.
4754         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
4755         (gl_PREREQ_UNSETENV): Likewise.
4756
4757 2008-02-24  Bruno Haible  <bruno@clisp.org>
4758
4759         * doc/posix-functions/environ.texi: Document the MacOS X problem.
4760
4761 2008-02-20  Bob Proulx  <bob@proulx.com>
4762
4763         Enable use of older two part flavor 'git describe'.
4764         * build-aux/git-version-gen: If using the older two part flavor of
4765         git version then recreate the third part now present in the
4766         newer three part flavor of git describe.
4767
4768 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
4769
4770         * lib/fts.c (fts_build): Typo correction to comment.
4771
4772 2008-02-17  Bruno Haible  <bruno@clisp.org>
4773
4774         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
4775         generating no-op conflicts.
4776
4777 2008-02-17  Bruno Haible  <bruno@clisp.org>
4778
4779         Speed up by 10%.
4780         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
4781         result_entries, rather than an index-based loop.
4782
4783 2008-02-17  Bruno Haible  <bruno@clisp.org>
4784
4785         Speed up by 25%.
4786         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
4787         'hashcode_cached'.
4788         (entry_create): New function.
4789         (entry_hashcode): Use the cached hashcode if possible.
4790         (read_changelog_file, try_split_merged_entry): Use entry_create.
4791
4792 2008-02-17  Bruno Haible  <bruno@clisp.org>
4793
4794         Speed up from O(n^2) to O(n) for long ChangeLog files.
4795         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
4796         (read_changelog_file): Change implementation of entries_reversed list
4797         to rbtreehash.
4798         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
4799
4800 2008-02-17  Bruno Haible  <bruno@clisp.org>
4801
4802         New option --split-merged-entry.
4803         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
4804         (find_paragraph_end, try_split_merged_entry): New functions.
4805         (long_options): Add option --split-merged-entry.
4806         (usage): Document option --split-merged-entry.
4807         (main): Implement option --split-merged-entry.
4808         Reported by Eric Blake.
4809
4810 2008-02-17  Bruno Haible  <bruno@clisp.org>
4811
4812         * lib/git-merge-changelog.c: Include c-strstr.h.
4813         (main): Support the "git pull --rebase" situation.
4814         * modules/git-merge-changelog (Depends-on): Add c-strstr.
4815         Reported by Eric Blake.
4816
4817 2008-02-16  Eric Blake  <ebb9@byu.net>
4818
4819         Avoid doubling \ in common case of "c-maybe" quoting style.
4820         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
4821         eliding outer quotes.
4822         * lib/quotearg.h: Document this.
4823         * tests/test-quotearg.c (result_strings, inputs, results_g)
4824         (flag_results, locale_results): Test it by adding a new string to
4825         each test group.
4826         (compare_strings): Test new string.
4827
4828 2008-02-13  Eric Blake  <ebb9@byu.net>
4829
4830         Avoid trigraph quoting in default output.
4831         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
4832         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
4833         unless explicitly requested.
4834         * tests/test-quotearg.c (flag_results, main): Add additional tests.
4835
4836 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
4837
4838         Don't rely on signed integer overflowing to negative value.
4839         * lib/getugroups.c (getugroups): Include <limits.h>.
4840         Instead, compare against INT_MAX, and increment only if the test passes.
4841
4842 2008-02-13  Jim Meyering  <meyering@redhat.com>
4843         and Eric Blake  <ebb9@byu.net>
4844
4845         Avoid shadowing warning and compile errors on Linux.
4846         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
4847         forwarding macros on Linux.
4848         (dcgettext): Define a stub, for Linux.
4849         (results_g, main): Avoid warnings.
4850
4851 2008-02-12  Eric Blake  <ebb9@byu.net>
4852
4853         Silence warning in last patch.
4854         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
4855
4856         Quotearg part 4: add tests, fix c-maybe colon quoting.
4857         * lib/quotearg.h: Improve documentation.
4858         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
4859         escapes when adding outer quotes.  When quoting trigraphs, use
4860         valid C notation.  When quoting NUL, omit extra characters if next
4861         character is not digit.  Alter prototype.
4862         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
4863         callers.
4864         * modules/quotearg-tests: New module.
4865         * tests/test-quotearg.c: New test.
4866
4867 2008-02-07  Eric Blake  <ebb9@byu.net>
4868
4869         Quotearg part 3: add flag to control outer quote elision.
4870         * lib/quotearg.h (c_maybe_quoting_style): New style.
4871         (enum quoting_flags): Better documentation of flags.
4872         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
4873         c-maybe style.
4874         (quotearg_buffer_restyled): Handle new flag to elide outer
4875         quotes.
4876
4877         Quotearg part 2: add flag that can control NUL elision.
4878         * lib/quotearg.h (set_quoting_flags): New prototype.
4879         * lib/quotearg.c (struct quoting_options): Add flag field.
4880         (set_quoting_flags): New function.
4881         (quotearg_buffer_restyled): Add flags parameter.
4882         (quotearg_alloc_mem): Set the flag if length cannot be returned.
4883         (quotearg_n_options): Set the flag, since length cannot be
4884         returned.
4885         (quoting_options_from_style): Default flags correctly.
4886
4887         Quotearg part 1: more wrappers, restore quotearg_char state.
4888         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
4889         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
4890         (quotearg_colon_mem): New wrappers.
4891         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
4892         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
4893         functions.
4894         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
4895         (quotearg_colon_mem): New functions.
4896
4897 2008-02-11  Bruno Haible  <bruno@clisp.org>
4898
4899         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
4900         library in the current directory: it does not work with parallel make.
4901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4902
4903 2008-02-11  Bruno Haible  <bruno@clisp.org>
4904
4905         * .gitattributes: New file.
4906
4907 2008-02-11  Jim Meyering  <meyering@redhat.com>
4908
4909         useless-if-before-free: Fix reversed exit values.
4910         * build-aux/useless-if-before-free: Use correct values
4911         for EXIT_MATCH and EXIT_NO_MATCH.
4912
4913         * build-aux/useless-if-before-free: Close stdout carefully.
4914
4915 2008-02-10  Bruno Haible  <bruno@clisp.org>
4916
4917         New module 'git-merge-changelog'.
4918         * modules/git-merge-changelog: New file.
4919         * lib/git-merge-changelog.c: New file.
4920
4921 2008-02-10  Jim Meyering  <meyering@redhat.com>
4922
4923         useless-if-before-free: New option: --list (-l).
4924
4925         useless-if-before-free: Don't exit immediately upon open failure.
4926         * build-aux/useless-if-before-free: Exit 2 for errors.
4927         Upon failure to open a file, don't exit immediately.
4928         Rather, just warn and continue with any remaining files.
4929
4930 2008-02-10  Bruno Haible  <bruno@clisp.org>
4931
4932         New abstract list operation 'node_set_value'.
4933         * lib/gl_list.h (gl_list_node_set_value): New function.
4934         (struct gl_list_implementation): New field node_set_value.
4935         * lib/gl_list.c (gl_list_node_set_value): New function.
4936         * lib/gl_array_list.c (gl_array_node_set_value): New function.
4937         (gl_array_list_implementation): Update.
4938         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
4939         (gl_carray_list_implementation): Update.
4940         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
4941         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4942         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4943         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
4944         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4945         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4946         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4947         Update.
4948         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4949         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
4950         (gl_sublist_list_implementation): Update.
4951
4952 2008-02-10  Bruno Haible  <bruno@clisp.org>
4953
4954         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
4955         Needed when ELEMENT is #defined to 'some_type *'.
4956
4957 2008-02-10  Jim Meyering  <meyering@redhat.com>
4958
4959         New script and module: useless-if-before-free
4960         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
4961         * build-aux/useless-if-before-free: New file.
4962         * modules/useless-if-before-free: New file.
4963
4964         * build-aux/gitlog-to-changelog: Use committer date, not author date.
4965
4966         xstrtol_error: Fix typo.
4967         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
4968         s/exit_failure/exit_status/.
4969
4970 2008-02-09  Jim Meyering  <meyering@redhat.com>
4971
4972         New script and module: gitlog-to-changelog
4973         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
4974         * modules/gitlog-to-changelog: New file.
4975         * build-aux/gitlog-to-changelog: New file.
4976
4977 2008-02-08  Jim Meyering  <meyering@redhat.com>
4978
4979         Avoid two "parameter unused" warnings.
4980         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4981         Mark "st" as used.
4982
4983         Use "git COMMAND", not "git-COMMAND".
4984         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
4985         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
4986         * build-aux/git-version-gen: Use "git status", not "git-status".
4987
4988 2008-02-07  Bruno Haible  <bruno@clisp.org>
4989
4990         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
4991         Avoids a crash on Windows Vista.
4992         Reported by Adam Strzelecki <ono@java.pl> via
4993         Simon Josefsson <simon@josefsson.org>.
4994
4995 2008-02-06  Bruno Haible  <bruno@clisp.org>
4996
4997         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
4998         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
4999         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
5000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
5001         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5002         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5003         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
5004         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
5005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5006         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5007         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5008         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5009         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5010         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5011         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5012         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
5013         left-adjust flag.
5014         * tests/test-snprintf-posix.h (test_function): Likewise.
5015         * tests/test-sprintf-posix.h (test_function): Likewise.
5016         * tests/test-vasprintf-posix.c (test_function): Likewise.
5017         * doc/posix-functions/fprintf.texi: Update.
5018         * doc/posix-functions/printf.texi: Update.
5019         * doc/posix-functions/snprintf.texi: Update.
5020         * doc/posix-functions/sprintf.texi: Update.
5021         * doc/posix-functions/vfprintf.texi: Update.
5022         * doc/posix-functions/vprintf.texi: Update.
5023         * doc/posix-functions/vsnprintf.texi: Update.
5024         * doc/posix-functions/vsprintf.texi: Update.
5025         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5026
5027 2008-02-06  Bruno Haible  <bruno@clisp.org>
5028
5029         Fix bug introduced on 2008-01-26.
5030         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
5031
5032 2008-02-06  Bruno Haible  <bruno@clisp.org>
5033
5034         Fix bug introduced on 2007-06-10.
5035         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
5036         !NEED_PRINTF_FLAG_ZERO.
5037
5038 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
5039
5040         getloadavg: use libperfstat on AIX5
5041         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
5042
5043 2008-02-03  Bruno Haible  <bruno@clisp.org>
5044
5045         * lib/diffseq.h: Add comments about required #includes.
5046         Reported by Michael Biggs <gnulib@doubleplum.net>.
5047
5048 2008-02-01  Bruno Haible  <bruno@clisp.org>
5049
5050         * users.txt: Add gnuit.
5051
5052 2008-01-31  Bruno Haible  <bruno@clisp.org>
5053
5054         * lib/md4.c (set_uint32): Mark as inline.
5055         * lib/md5.c (set_uint32): Likewise.
5056         * lib/sha1.c (set_uint32): Likewise.
5057         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
5058         * m4/md5.m4 (gl_MD5): Likewise.
5059         * m4/sha1.m4 (gl_SHA1): Likewise.
5060
5061 2008-01-31  Jim Meyering  <meyering@redhat.com>
5062
5063         Use "sizeof VAR", rather than a literal "4".
5064         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
5065         * lib/md4.c (md4_read_ctx): Likewise.
5066         * lib/sha1.c (sha1_read_ctx): Likewise.
5067
5068 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5069
5070         * tests/test-sha1.c: New file, based on test-md5.c.
5071
5072         * modules/crypto/sha1-tests: New file.
5073
5074 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5075
5076         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
5077
5078 2008-01-31  Jim Meyering  <meyering@redhat.com>
5079
5080         Prefer "sizeof v" over the equivalent "4".
5081         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
5082         * lib/md5.c (set_uint32): Likewise.
5083         * lib/sha1.c (set_uint32): Likewise.
5084
5085 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5086
5087         * lib/sha1.c (set_uint32): Mark function as static.
5088
5089 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5090
5091         md2: clarify comments to say that alignment is not required.
5092         * lib/md2.h: Remove warning about alignment in comment.
5093         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
5094         never been required.
5095
5096 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5097
5098         md4: adapt alignment constraint fix from sha1.
5099         * lib/md4.c (set_uint32): New function, from sha1.c
5100         (md4_read_ctx): Use it.
5101         (md4_finish_ctx): Doc fix.
5102         * lib/md4.h: Doc fix.
5103
5104 2008-01-31  Simon Josefsson  <simon@josefsson.org>
5105
5106         md5: adapt alignment constraint fix from sha1.
5107         * lib/md5.c (set_uint32): New function, from sha1.c
5108         (md5_read_ctx): Use it.
5109         (md5_finish_ctx): Doc fix.
5110         * lib/md5.h: Doc fix.
5111
5112 2008-01-30  Peter Palfrader  <weasel@debian.org>
5113
5114         sha1: remove the result buffer alignment constraint
5115         * lib/sha1.c (set_uint32): New function.
5116         (sha1_read_ctx): Rewrite to remove the result buffer alignment
5117         constraint.
5118         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5119         * lib/sha1.h: Likewise.
5120
5121 2008-01-30  Andreas Schwab  <schwab@suse.de>
5122             Bruno Haible  <bruno@clisp.org>
5123
5124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5125         correct definition of LDBL_MIN_EXP.
5126
5127 2008-01-30  Karl Berry  <karl@gnu.org>
5128
5129         * config/srclist-update: try to preserve x bit on updates.
5130         * config/srclistvars.sh: update for karl.
5131
5132 2008-01-29  Jim Meyering  <meyering@redhat.com>
5133
5134         vasnprintf.c: Avoid warning about unused label
5135         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5136         "overflow" label definition and associated code with the
5137         same cpp condition that guards the sole use of that label.
5138
5139 2008-01-26  Bruno Haible  <bruno@clisp.org>
5140
5141         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5142         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5143         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5144         * lib/isnanl-nolibm.h (isnanl): Likewise.
5145         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5146
5147 2008-01-26  Bruno Haible  <bruno@clisp.org>
5148
5149         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5150         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5151
5152 2008-01-26  Bruno Haible  <bruno@clisp.org>
5153
5154         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5155         GCC >= 4.0 built-in.
5156         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5157
5158 2008-01-26  Bruno Haible  <bruno@clisp.org>
5159
5160         Rename isnan, applicable to 'double' only, to isnand.
5161         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5162         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5163         (configure.ac): Update.
5164         (Include): Replace "isnan.h" with "isnand.h".
5165         * m4/isnand.m4: Renamed from m4/isnan.m4.
5166         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5167         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5168         instead of isnan.c.
5169         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5170         instead of HAVE_ISNAN_IN_LIBC.
5171         (isnand): Renamed from isnan.
5172         * lib/isnand.c: New file.
5173         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5174         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5175         (Makefile.am): Update.
5176         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5177         Include isnand.h instead of isnan.h.
5178         (main): Test isnand instead of isnan.
5179         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5180         isnan-nolibm.
5181         * modules/frexp (Depends-on): Likewise.
5182         * modules/frexp-tests (Depends-on): Likewise.
5183         * modules/frexp-nolibm (Depends-on): Likewise.
5184         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5185         * modules/isfinite (Depends-on): Likewise.
5186         * modules/round-tests (Depends-on): Likewise.
5187         * modules/signbit (Depends-on): Likewise.
5188         * modules/signbit-tests (Depends-on): Likewise.
5189         * modules/snprintf-posix (Depends-on): Likewise.
5190         * modules/sprintf-posix (Depends-on): Likewise.
5191         * modules/trunc-tests (Depends-on): Likewise.
5192         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5193         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5194         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5195         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5196         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5197         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5198         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5199         * modules/vasnprintf-posix (Depends-on): Likewise.
5200         * modules/vasprintf-posix (Depends-on): Likewise.
5201         * modules/vfprintf-posix (Depends-on): Likewise.
5202         * modules/vsnprintf-posix (Depends-on): Likewise.
5203         * modules/vsprintf-posix (Depends-on): Likewise.
5204         * lib/frexp.c: Include isnand.h instead of isnan.h.
5205         (ISNAN): Set to isnand instead of isnan.
5206         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5207         (gl_isfinited): Use isnand instead of isnan.
5208         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5209         (gl_signbitd): Use isnand instead of isnan.
5210         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5211         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5212         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5213         (main): Use isnand instead of isnan.
5214         * tests/test-round1.c: Include isnand.h.
5215         (main): Use isnand instead of isnan.
5216         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5217         (ISNAN): Set to isnand instead of isnan.
5218         * tests/test-trunc1.c: Include isnand.h.
5219         (main): Use isnand instead of isnan.
5220         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5221         (equal): Use isnand instead of isnan.
5222         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5223         isnand-nolibm.
5224         * NEWS: Mention the change.
5225
5226 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5227             Bruno Haible  <bruno@clisp.org>
5228
5229         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5230         the GCC builtins for signbits are present and set
5231         REPLACE_SIGNBIT_USING_GCC if so.
5232         * lib/math.in.h (signbit): Define using GCC builtins if
5233         REPLACE_SIGNBIT_USING_GCC is set.
5234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5235         REPLACE_SIGNBIT_USING_GCC.
5236         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5237
5238 2008-01-25  Jim Meyering  <meyering@redhat.com>
5239
5240         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5241         * lib/poll.c: Include <config.h>, not "config.h".
5242         * tests/test-getaddrinfo.c: Likewise.
5243
5244 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5245
5246         * modules/sockets-tests: New file.
5247
5248 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5249
5250         * modules/sockets: New module, can be used to call WSA_Startup and
5251         WSA_Cleanup when needed.
5252
5253         * lib/sockets.h, lib/sockets.c: New files.
5254
5255         * m4/sockets.m4: New file.
5256
5257         * tests/test-sockets.c: New file.
5258
5259 2008-01-19  Bruno Haible  <bruno@clisp.org>
5260
5261         * doc/posix-headers: Renamed from doc/headers.
5262         * doc/posix-functions: Renamed from doc/functions.
5263         * doc/gnulib.texi: Update.
5264
5265 2008-01-19  Bruno Haible  <bruno@clisp.org>
5266
5267         * doc/glibc-functions/strcasestr.texi: Include contents of
5268         doc/functions/strcasestr.texi, fixing the list of platforms.
5269         * doc/functions/strcasestr.texi: Remove file.
5270
5271 2008-01-19  Bruno Haible  <bruno@clisp.org>
5272
5273         * doc/glibc-functions/memmem.texi: Include contents of
5274         doc/functions/memmem.texi.
5275         * doc/functions/memmem.texi: Remove file.
5276
5277 2008-01-18  Bruno Haible  <bruno@clisp.org>
5278
5279         * doc/glibc-functions/*.texi: New files.
5280         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5281         to use the new files.
5282
5283 2008-01-17  Bruno Haible  <bruno@clisp.org>
5284
5285         * tests/test-gethostname.c (main): Fix printf statement.
5286
5287 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5288
5289         * modules/gethostname-tests: New file.
5290
5291         * tests/test-gethostname.c: New file.
5292
5293 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5294
5295         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5296         used by the UNAME case.  Reported by Bruno Haible
5297         <bruno@clisp.org>.
5298
5299 2008-01-17  Eric Blake  <ebb9@byu.net>
5300
5301         Convert c-strcasestr to be more efficient.
5302         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5303         (Depends-on): Add c-strcase, remove malloca, strnlen.
5304         * tests/test-c-strcasestr.c (main): Enhance test.
5305         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5306
5307 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5308
5309         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5310         Use it in creating po/Makevars.
5311
5312 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5313
5314         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5315         Applications that requires it should initialize libgcrypt
5316         manually.
5317
5318 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5319
5320         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5321
5322 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5323
5324         Fix problem with getdate on mingw32 reported by Simon Josefsson
5325         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5326         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5327         tzname", when deciding whether to declare tzname.
5328         * lib/strftime.c (tzname): Likewise.
5329
5330 2008-01-15  Bruno Haible  <bruno@clisp.org>
5331
5332         Work around a MacOS X 10.5 bug in frexpl().
5333         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5334         * doc/functions/frexpl.texi: Document the bug.
5335         Reported by Elias Pipping <pipping@gentoo.org>.
5336
5337 2008-01-14  Eric Blake  <ebb9@byu.net>
5338
5339         Touch up previous patch.
5340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5341         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5342
5343         Convert strcasestr module to use Two-Way algorithm.
5344         * modules/strcasestr-simple: New module, based on the old
5345         strcasestr, but with Two-Way rather than KMP.
5346         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5347         * lib/string.in.h (rpl_strcasestr): Declare.
5348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5349         performance.
5350         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5351         * modules/string (Makefile.am): Support strcasestr.
5352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5353         * modules/strcasestr-tests (Depends-on): Check for alarm.
5354         * tests/test-strcasestr.c: Augment test.
5355         * lib/str-two-way.h: Clean up stray macro.
5356         * NEWS: Document new module.
5357         * MODULES.html.sh (string handling): Likewise.
5358         * doc/functions/strcasestr.texi: New file.
5359         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5360         here, since it is not a POSIX function.
5361
5362 2008-01-14  Colin Watson  <cjwatson@debian.org>
5363             Bruno Haible  <bruno@clisp.org>
5364
5365         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5366         works fine; if not, set REPLACE_STRSIGNAL.
5367         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5369         REPLACE_STRSIGNAL.
5370         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5371         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5372         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5373
5374 2008-01-14  Bruno Haible  <bruno@clisp.org>
5375
5376         * modules/strsignal (Include): Change to <string.h>.
5377
5378 2008-01-14  Colin Watson  <cjwatson@debian.org>
5379
5380         * modules/argp (Notice): Add a notice recommending to change
5381         XGETTEXT_OPTIONS.
5382         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5383
5384 2008-01-13  Colin Watson  <cjwatson@debian.org>
5385
5386         * modules/strsignal-tests: New file.
5387         * tests/test-strsignal.c: New file.
5388
5389         * lib/strsignal.c: New file, from glibc with modifications.
5390         * lib/siglist.h: New file, from glibc with modifications.
5391         * lib/string.in.h (strsignal): New declaration.
5392         * m4/strsignal.m4: New file.
5393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5394         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5395         * modules/strsignal: New file.
5396         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5397         HAVE_DECL_STRSIGNAL.
5398
5399 2008-01-13  Bruno Haible  <bruno@clisp.org>
5400
5401         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5402         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5403         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5404         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5405
5406 2008-01-13  Bruno Haible  <bruno@clisp.org>
5407
5408         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5409         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5410         * lib/argp.h (__attribute__): Likewise.
5411         * lib/c-stack.c (__attribute__): Likewise.
5412         * lib/error.h (__attribute__): Likewise.
5413         * lib/fts.c (__attribute__): Likewise.
5414         * lib/openat.h (__attribute__): Likewise.
5415         * lib/stdio.in.h (__attribute__): Likewise.
5416         * lib/string.in.h (__attribute__): Likewise.
5417         * lib/utimens.c (__attribute__): Likewise.
5418         * lib/vasnprintf.h (__attribute__): Likewise.
5419         * lib/xalloc.h (__attribute__): Likewise.
5420         * lib/xprintf.h (__attribute__): Likewise.
5421         * lib/xstrtol.h (__attribute__): Likewise.
5422         * lib/xvasprintf.h (__attribute__): Likewise.
5423
5424 2008-01-12  Bruno Haible  <bruno@clisp.org>
5425
5426         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5427         * doc/glibc-headers/a.out.texi: New file.
5428         * doc/glibc-headers/aliases.texi: New file.
5429         * doc/glibc-headers/alloca.texi: New file.
5430         * doc/glibc-headers/ar.texi: New file.
5431         * doc/glibc-headers/argp.texi: New file.
5432         * doc/glibc-headers/argz.texi: New file.
5433         * doc/glibc-headers/byteswap.texi: New file.
5434         * doc/glibc-headers/crypt.texi: New file.
5435         * doc/glibc-headers/endian.texi: New file.
5436         * doc/glibc-headers/envz.texi: New file.
5437         * doc/glibc-headers/err.texi: New file.
5438         * doc/glibc-headers/error.texi: New file.
5439         * doc/glibc-headers/execinfo.texi: New file.
5440         * doc/glibc-headers/fpu_control.texi: New file.
5441         * doc/glibc-headers/fstab.texi: New file.
5442         * doc/glibc-headers/fts.texi: New file.
5443         * doc/glibc-headers/getopt.texi: New file.
5444         * doc/glibc-headers/ieee754.texi: New file.
5445         * doc/glibc-headers/ifaddrs.texi: New file.
5446         * doc/glibc-headers/libintl.texi: New file.
5447         * doc/glibc-headers/mcheck.texi: New file.
5448         * doc/glibc-headers/mntent.texi: New file.
5449         * doc/glibc-headers/obstack.texi: New file.
5450         * doc/glibc-headers/paths.texi: New file.
5451         * doc/glibc-headers/printf.texi: New file.
5452         * doc/glibc-headers/pty.texi: New file.
5453         * doc/glibc-headers/resolv.texi: New file.
5454         * doc/glibc-headers/shadow.texi: New file.
5455         * doc/glibc-headers/sysexits.texi: New file.
5456         * doc/glibc-headers/ttyent.texi: New file.
5457
5458 2008-01-12  Jim Meyering  <meyering@redhat.com>
5459
5460         announce-gen: emit Gnulib's git-based version string.
5461         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5462         New option --gnulib-version=V, where V is expected to be
5463         the output of running git describe in the gnulib directory.
5464         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5465         not useful, and plan to stop publishing an xdelta file with each
5466         coreutils release.
5467
5468         * build-aux/announce-gen: Also check for lzma-compressed files.
5469
5470 2008-01-11  Bruno Haible  <bruno@clisp.org>
5471
5472         * tests/test-memmem.c (main): Increase maximum allowed time.
5473         * tests/test-strstr.c (main): Likewise.
5474
5475 2008-01-11  Bruno Haible  <bruno@clisp.org>
5476
5477         * doc/functions/memmem.texi: Add more precisions about platforms.
5478         * doc/functions/strstr.texi: Likewise.
5479
5480 2008-01-10  Eric Blake  <ebb9@byu.net>
5481
5482         * m4/strstr.m4: Delete cruft from copy-n-paste.
5483         Reported by Bruno Haible.
5484
5485 2008-01-10  Bruno Haible  <bruno@clisp.org>
5486
5487         Make c-strstr rely on strstr.
5488         * lib/c-strstr.c: Don't include str-kmp.h.
5489         (c_strstr): Define in terms of strstr.
5490         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5491         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5492
5493 2008-01-10  Bruno Haible  <bruno@clisp.org>
5494
5495         * doc/gnulib.texi (String Functions in C Locale): New section.
5496         * doc/c-ctype.texi: New file.
5497         * doc/c-strcase.texi: New file.
5498         * doc/c-strcaseeq.texi: New file.
5499         * doc/c-strcasestr.texi: New file.
5500         * doc/c-strstr.texi: New file.
5501         * doc/c-strtod.texi: New file.
5502         * doc/c-strtold.texi: New file.
5503
5504 2008-01-10  Eric Blake  <ebb9@byu.net>
5505
5506         * lib/relocatable.h: Fix a comment.
5507
5508 2008-01-10  Eric Blake  <ebb9@byu.net>
5509
5510         Share two-way algorithm.
5511         * lib/str-two-way.h: New file, merged from...
5512         * lib/memmem.c: ...here...
5513         * lib/strstr.c: ...and here.
5514         * modules/memmem (Files): Use it.
5515         * modules/strstr (Files): Likewise.
5516
5517         Avoid quadratic strstr implementations.
5518         * lib/strstr.c: New file.
5519         * m4/strstr.m4: Likewise.
5520         * modules/strstr: Likewise.
5521         * modules/strstr-tests: Likewise.
5522         * tests/test-strstr.c: Likewise.
5523         * lib/string.in.h (rpl_strstr): Declare.
5524         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5526         * modules/string (Makefile.am): Likewise.
5527         * MODULES.html.sh (string handling): Mention new module.
5528         * doc/functions/strstr.texi (strstr): Document the bug.
5529
5530 2008-01-10  Bruno Haible  <bruno@clisp.org>
5531
5532         * lib/relocatable.h (relocate): State whether result is freshly
5533         allocated or not.
5534         * lib/relocatable.c (relocate): Return a freshly allocated string
5535         instead of a pointer to a privately held string.
5536         Reported by Sylvain Beucler <beuc@gnu.org>.
5537
5538 2008-01-10  Colin Watson  <cjwatson@debian.org>
5539
5540         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5541         s/S_ISNLK/S_ISLNK/.
5542
5543 2008-01-09  Bruno Haible  <bruno@clisp.org>
5544
5545         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5546         and other files.
5547         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5548         if it's only a guess.
5549         * modules/memmem: Simplify by depending on memmem-simple.
5550
5551 2008-01-09  Bruno Haible  <bruno@clisp.org>
5552
5553         Work around OpenBSD 4.0 tdelete() bug.
5554         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5555         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5556         macros and don't redefine the enum values.
5557         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5558         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5559         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5560
5561 2008-01-09  Bruno Haible  <bruno@clisp.org>
5562
5563         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5564         (main): Don't perform the tests if setlocale did not install a UTF-8
5565         locale. Needed on OpenBSD 4.0.
5566         * modules/wcwidth-tests (Depends-on): Add localcharset.
5567
5568 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5569
5570         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5571         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5572         * NEWS: announce this.
5573         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5574
5575 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5576         and Eric Blake  <ebb9@byu.net>
5577
5578         Add memmem-simple module.
5579         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5580         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5581         * modules/memmem-simple: New file.
5582         * modules/memmem (Description): Tweak.
5583         * MODULES.html.sh (string handling): Mention new module.
5584         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5585         addressed by memmem-simple.
5586         * NEWS: Document the difference.
5587
5588 2008-01-09  Eric Blake  <ebb9@byu.net>
5589
5590         Give gcc some memmem optimization hints.
5591         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5592         (strcasestr): Declare as pure.
5593         * modules/memmem (Maintainer): Claim my implementation.
5594
5595 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5596
5597         Support AIX 6.1 and higher.
5598         * build-aux/config.libpath: Likewise.
5599         * build-aux/config.rpath: Likewise.
5600
5601 2008-01-08  Jim Meyering  <meyering@redhat.com>
5602             Bruno Haible  <bruno@clisp.org>
5603
5604         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5605         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5606         Reported by Peter Fales in
5607         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5608
5609 2008-01-08  Bruno Haible  <bruno@clisp.org>
5610
5611         * modules/unictype/category-of (Depends-on): Add
5612         unictype/category-none.
5613         * modules/unictype/category-and-tests (Depends-on): Add
5614         unictype/category-{L,N,Lu,Nd}.
5615         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5616         * modules/unictype/category-or-tests (Depends-on): Add
5617         unictype/category-{L,N}.
5618         * modules/unictype/category-name-tests (Depends-on): Add
5619         unictype/category-{Z,Nl}.
5620         Reported by Simon Josefsson.
5621
5622 2008-01-08  Bruno Haible  <bruno@clisp.org>
5623
5624         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5625         convention better.
5626         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5627         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5628         Reported by Peter Miller <millerp@canb.auug.org.au>.
5629
5630 2008-01-08  Eric Blake  <ebb9@byu.net>
5631
5632         Rewrite memmem to guarantee linear complexity without malloc.
5633         * lib/memmem.c (memmem): Use Two-Way rather than
5634         Knuth-Morris-Pratt, to allow O(1) space usage.
5635         (critical_factorization, two_way_short_needle)
5636         (two_way_long_needle): New functions.
5637         (knuth_morris_pratt): Delete.
5638         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5639         Add stdint.
5640         * tests/test-memmem.c (main): Add tests for periodic needle and
5641         sublinear performance.
5642         * doc/functions/memmem.texi (memmem): Document other deficiencies
5643         in cygwin and older glibc.
5644
5645 2008-01-08  Bruno Haible  <bruno@clisp.org>
5646
5647         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5648         augmentation.
5649
5650 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5651
5652         Add a configure time option: --disable-acl.
5653         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5654         AC_ARG_ENABLE(acl).
5655
5656 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5657
5658         * tests/test-localename.c: Don't include obsolete "setenv.h".
5659
5660         * modules/localename-tests (Depends-on): Need unsetenv.
5661
5662 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5663
5664         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5665
5666 2008-01-06  Colin Watson  <cjwatson@debian.org>
5667
5668         * users.txt: Add man-db.
5669
5670 2008-01-07  Bruno Haible  <bruno@clisp.org>
5671
5672         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5673         previous section name.
5674
5675 2008-01-07  Bruno Haible  <bruno@clisp.org>
5676
5677         * lib/progname.c (set_program_name): Don't strip off a leading
5678         "lt-" prefix outside a .libs directory.
5679         Suggested by Paul Eggert.
5680
5681 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5682             Bruno Haible  <bruno@clisp.org>
5683
5684         Improve memory cleanup in 'relocatable' module.
5685         * lib/relocatable.h (compute_curr_prefix): Change return type to
5686         'char *'.
5687         * lib/relocatable.c (compute_curr_prefix): Change return type to
5688         'char *'. Free curr_installdir after use.
5689         (relocate): Free curr_prefix_better after use.
5690         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5691
5692 2008-01-01  Bruno Haible  <bruno@clisp.org>
5693
5694         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5695         failure on older glibc systems.
5696         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5697
5698 2008-01-05  Eric Blake  <ebb9@byu.net>
5699
5700         Avoid quadratic system memmem.
5701         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5702         Reported by Ralf Wildenhues.
5703
5704         Fix memmem test for mingw.
5705         * modules/memmem-tests (configure.ac): Check for alarm.
5706         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5707         it.
5708         * doc/functions/memmem.texi: New file.
5709         * doc/gnulib.texi (Function Substitutes): Add memmem.
5710         Reported by Bruno Haible.
5711
5712 2008-01-04  Bruno Haible  <bruno@clisp.org>
5713
5714         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5715         Require gl_HEADER_STRINGS_H_DEFAULTS, not
5716         gl_HEADER_STRING_H_DEFAULTS.
5717
5718 2008-01-04  Eric Blake  <ebb9@byu.net>
5719
5720         Shorten duration of memmem test.
5721         * tests/test-memmem.c (main): Use alarm to declare failure if test
5722         is taking too long.
5723         Reported by Ralf Wildenhues.
5724
5725 2007-12-21  Simon Josefsson  <simon@josefsson.org>
5726
5727         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
5728         string, needed by strerror.
5729
5730 2008-01-03  Colin Watson  <cjwatson@debian.org>
5731             Bruno Haible  <bruno@clisp.org>
5732
5733         * doc/gnulib-tool.texi (Localization): New section.
5734
5735 2008-01-02  Bruno Haible  <bruno@clisp.org>
5736
5737         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
5738         variables to 'unsigned char *' type.
5739         Reported by Paul Eggert.
5740
5741 2008-01-02  Jim Meyering  <jim@meyering.net>
5742
5743         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
5744
5745 2007-12-31  Jim Meyering  <jim@meyering.net>
5746
5747         Avoid use of private FTS type name.
5748         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
5749
5750 2007-12-30  Karl Berry  <karl@gnu.org>
5751
5752         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
5753         work around defect in Texinfo and/or the standalone Info browser.
5754
5755 2007-12-30  Bruno Haible  <bruno@clisp.org>
5756
5757         Unify 5 copies of the KMP code.
5758         * lib/str-kmp.h: New file.
5759         * lib/c-strcasestr.c: Include str-kmp.h.
5760         (knuth_morris_pratt): Remove function.
5761         (c_strcasestr): Update.
5762         * lib/c-strstr.c: Include str-kmp.h.
5763         (knuth_morris_pratt): Remove function.
5764         (c_strcasestr): Update.
5765         * lib/mbscasestr.c: Include str-kmp.h.
5766         (knuth_morris_pratt_unibyte): Remove function.
5767         * lib/mbsstr.c: Include str-kmp.h.
5768         (knuth_morris_pratt_unibyte): Remove function.
5769         * lib/strcasestr.c: Include str-kmp.h.
5770         (knuth_morris_pratt): Remove function.
5771         (strcasestr): Update.
5772         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
5773         * modules/c-strstr (Files): Likewise.
5774         * modules/mbscasestr (Files): Likewise.
5775         * modules/mbsstr (Files): Likewise.
5776         * modules/strcasestr (Files): Likewise.
5777         Suggested by Paul Eggert.
5778
5779 2007-12-30  Bruno Haible  <bruno@clisp.org>
5780
5781         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
5782         defined.
5783
5784 2007-12-30  Bruno Haible  <bruno@clisp.org>
5785
5786         * lib/xmalloca.h: Include xalloc.h.
5787         (xnmalloca): New macro.
5788
5789 2007-12-30  Bruno Haible  <bruno@clisp.org>
5790
5791         * lib/malloca.h (nmalloca): New macro.
5792         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
5793         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
5794         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
5795         knuth_morris_pratt_multibyte): Likewise.
5796         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
5797         knuth_morris_pratt_multibyte): Likewise.
5798         * lib/memmem.c (knuth_morris_pratt): Likewise.
5799         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
5800
5801 2007-12-25  Bruno Haible  <bruno@clisp.org>
5802
5803         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
5804         * lib/glob.c: Don't include openat.h.
5805         (link_exists2_p): Add back the code that deals with the
5806         !GLOB_ALTDIRFUNC case.
5807         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
5808         let it do the filename concatenation.
5809         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
5810         * modules/glob (Depends-on): Remove openat.
5811
5812 2007-12-31  Bruno Haible  <bruno@clisp.org>
5813
5814         * modules/dirfd (License): Change to LGPLv2+.
5815         Approved by Jim Meyering.
5816
5817 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5818
5819         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
5820         when multiplying M by sizeof (size_t).
5821
5822 2007-12-10  Martin Lambers  <marlam@marlam.de>
5823
5824         Override getpagesize on mingw.
5825         * lib/getpagesize.c: New file.
5826         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
5827         * modules/getpagesize (Files): Add lib/getpagesize.c.
5828         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
5829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5830         REPLACE_GETPAGESIZE.
5831         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
5832
5833 2007-12-25  Bruno Haible  <bruno@clisp.org>
5834
5835         * modules/localcharset (Notice): New field.
5836         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
5837         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5838
5839 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5840             Bruno Haible  <bruno@clisp.org>
5841
5842         Avoid using the syntax symbol() in formatted documentation.
5843         * MODULES.html.sh (func_module): When replacing symbol() with a
5844         hyperlink, remove the parentheses. Show an error if some remain.
5845         Recognize and render the '...' syntax.
5846         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
5847         Rework. Add paragraph about GCC's inlining.
5848         * doc/alloca.texi: Likewise.
5849         * doc/error.texi: Remove parentheses from symbol reference.
5850         * doc/gnulib-intro.texi: Likewise.
5851         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
5852         * modules/fnmatch (Description): Reword to say "the ... function".
5853         * modules/full-read (Description): Likewise.
5854         * modules/full-write (Description): Likewise.
5855         * modules/safe-read (Description): Likewise.
5856         * modules/safe-write (Description): Likewise.
5857         * modules/strchrnul (Description): Likewise.
5858         * modules/trim (Description): Likewise.
5859         * modules/error (Description): Remove parentheses from symbol
5860         references.
5861         * modules/verror (Description): Likewise.
5862         Reported by Karl Berry.
5863
5864 2007-12-25  Bruno Haible  <bruno@clisp.org>
5865
5866         Fixup after 2007-10-16 commit.
5867         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
5868
5869 2007-12-24  Bruno Haible  <bruno@clisp.org>
5870
5871         Make --enable-relocatable work with DESTDIR.
5872         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
5873         to compute installdir from destprog.
5874         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
5875         also set the RELOC_DESTDIR variable.
5876         Reported by Левашев Иван <octagram@bluebottle.com>.
5877
5878 2007-12-24  Bruno Haible  <bruno@clisp.org>
5879
5880         Fix link error due to xalloc_die().
5881         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5882         of xreadlink.
5883         * lib/relocwrapper.c: Update comments.
5884         * build-aux/install-reloc: Remove xreadlink.c from file list.
5885         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
5886         xreadlink.c.
5887         Reported by Левашев Иван <octagram@bluebottle.com>.
5888
5889 2007-12-24  Bruno Haible  <bruno@clisp.org>
5890
5891         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
5892         * lib/setenv.h: Remove file.
5893         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
5894         lib/setenv.h.
5895         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
5896         (Depends-on): Add stdlib.
5897         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
5898         gl_FUNC_UNSETENV.
5899         (Include): Replace setenv.h with <stdlib.h>.
5900         * modules/unsetenv: New file.
5901         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
5902         * lib/unsetenv.c: Include <stdlib.h> first.
5903         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
5904         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
5905         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
5906         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
5907         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
5908         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
5910         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5911         * doc/functions/unsetenv.texi: Update.
5912         * modules/xsetenv (Depends-on): Add unsetenv.
5913         * modules/getdate (Depends-on): Likewise.
5914         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
5915         * lib/xsetenv.c: Don't include setenv.h.
5916         * lib/getdate.y: Likewise.
5917         * lib/relocwrapper.c: Likewise.
5918         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
5919         (Depends-on): Add stdlib.
5920         * NEWS: Mention the changes.
5921         Reported by Левашев Иван <octagram@bluebottle.com>.
5922
5923 2007-12-23  Bruno Haible  <bruno@clisp.org>
5924
5925         * lib/memmem.c (memmem): Use lowercase variable names. Tab
5926         indentation.
5927
5928 2007-12-23  Bruno Haible  <bruno@clisp.org>
5929
5930         * lib/c-strcasestr.c: Add more comments.
5931         * lib/c-strstr.c: Likewise.
5932         * lib/mbscasestr.c: Likewise.
5933         * lib/mbsstr.c: Likewise.
5934         * lib/strcasestr.c: Likewise.
5935         * lib/memmem.c: Likewise.
5936
5937 2007-12-23  Bruno Haible  <bruno@clisp.org>
5938
5939         * tests/test-memmem.c: Include <string.h> first.
5940
5941 2007-12-22  Bruno Haible  <bruno@clisp.org>
5942
5943         * gnulib-tool (func_create_testdir): Change $auxdir while generating
5944         the contents of $testsbase.
5945         Reported by Ralf Wildenhues.
5946
5947 2007-12-22  Bruno Haible  <bruno@clisp.org>
5948
5949         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
5950         two variables local_ldadd_before, local_ldadd_last.
5951
5952 2007-12-20  Eric Blake  <ebb9@byu.net>
5953
5954         Work around circular library issue when cross-compiling.
5955         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
5956         that progname.o does not need to pull in rpl_memcmp.
5957
5958 2007-12-19  Eric Blake  <ebb9@byu.net>
5959
5960         Fix memmem to avoid O(n^2) worst-case complexity.
5961         * lib/memmem.c (knuth_morris_pratt): New function.
5962         (memmem): Use it if first few naive iterations fail.
5963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
5964         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
5965         * modules/memchr (License): Likewise.
5966         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
5967         malloca.
5968         * tests/test-memmem.c: Rewrite, borrowing ideas from
5969         test-mbsstr1.c; the old version wouldn't even compile!
5970         * modules/memmem-tests: New file.
5971         * lib/string.in.h (rpl_memmem): Add declaration.
5972         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
5973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
5974         REPLACE_MEMMEM.
5975
5976 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5977
5978         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
5979         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
5980         before any system include files, and undef after them all.  This
5981         should fix a problem on VMS reported by John E. Malmberg in
5982         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
5983
5984 2007-12-17  Eric Blake  <ebb9@byu.net>
5985
5986         Revert addition of verify, for BSD/OS.
5987         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
5988         can't handle large files, for the sake of obsolete platforms.
5989         * modules/fseeko (Depends-on): Remove verify.
5990         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
5991         * doc/functions/ftello.texi (ftello): Likewise.
5992         * doc/functions/fgetpos.texi (fgetpos): Likewise.
5993         Reported by Larry Jones.
5994
5995 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
5996
5997         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
5998         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
5999
6000 2007-12-17  Jim Meyering  <meyering@redhat.com>
6001
6002         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
6003         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
6004         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
6005         * modules/getcwd (Depends-on): Add openat.
6006         Reported by Petr Salinger.
6007
6008 2007-12-17  Bruno Haible  <bruno@clisp.org>
6009
6010         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
6011         avoid a segmentation fault of the configure test on x86_64 systems.
6012
6013 2007-12-15  Jim Meyering  <meyering@redhat.com>
6014
6015         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
6016
6017 2007-12-13  Eric Blake  <ebb9@byu.net>
6018
6019         Another fseek test.
6020         * tests/test-fseek.c (main): Also test ungetc handling.
6021         * tests/test-fseeko.c (main): Likewise.
6022         * modules/fseeko (Depends-on): Add verify.
6023         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
6024         large.
6025         Reported by Larry Jones.
6026
6027         Fix fseeko on mingw.
6028         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
6029         seek.
6030
6031         Beef up fseek tests.
6032         * tests/test-fseek.c (main): Also test eof handling.
6033         * tests/test-fseeko.c (main): Likewise.
6034         Reported by Larry Jones.
6035
6036 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
6037
6038         Fix fseeko on BSD-based platforms.
6039         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
6040         successful seek.
6041
6042 2007-12-12  Eric Blake  <ebb9@byu.net>
6043
6044         Allow circular dependency of separate libtests.a
6045         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
6046         when use_libtests.
6047
6048 2007-12-11  Eric Blake  <ebb9@byu.net>
6049
6050         Fix bug with -0.0L in previous patch.
6051         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
6052         * tests/test-isnan.c (main): Also test on zeroes.
6053         * tests/test-isnanf.c (main): Likewise.
6054         * tests/test-isnanl.h (main): Likewise.
6055
6056         Detect pseudo-denormals on x86 even when cross-compiling.
6057         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
6058         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
6059         invalid bit patterns that happen to satisfy ==.
6060
6061         Avoid link failures with separate libtests.a.
6062         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
6063         last, to satisfy circular dependencies.
6064
6065 2007-12-11  Eric Blake  <ebb9@byu.net>
6066         and Bruno Haible  <bruno@clisp.org>
6067
6068         Fix OpenBSD 4.0 <float.h> handling of long double.
6069         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
6070         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
6071         * doc/headers/float.texi (float.h): Document OpenBSD bug.
6072
6073 2007-12-11  Jim Meyering  <meyering@redhat.com>
6074
6075         * users.txt: Add libvirt.
6076
6077         Support versions of autoconf prior to 2.59c.
6078         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
6079         if it is not already defined.
6080
6081 2007-12-09  Bruno Haible  <bruno@clisp.org>
6082
6083         Let 'gnulib-tool --import' collect sources needed for the tests in
6084         tests/ rather than in lib/.
6085         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
6086         argument. If true, add rules to generate libtests.a, and put libtests.a
6087         into $(LDADD). Consider source files in subdirectories and set
6088         uses_subdirs.
6089         (func_emit_initmacro_start, func_emit_initmacro_end,
6090         func_emit_initmacro_done): Pass all arguments explicitly.
6091         (func_import): Determine two module lists main_modules,
6092         testsrelated_modules. Determine use_libtests. Determine two variables
6093         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
6094         instead of just sed_transform_lib_file. Determine two variables
6095         main_files and testsrelated_files. Compute 'files' as the union of
6096         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
6097         func_add_or_update. In the generated gnulib-comp.m4, collect the
6098         object files for tests/ in different variables than those for lib/.
6099         Substitute LIBTESTS_LIBDEPS.
6100         (func_create_testdir): Combine the uses_subdirs results from
6101         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
6102
6103 2007-12-09  Bruno Haible  <bruno@clisp.org>
6104
6105         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
6106         the build-aux directory.
6107
6108 2007-12-09  Bruno Haible  <bruno@clisp.org>
6109
6110         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
6111         introduced on 2006-09-09.
6112
6113 2007-12-07  Jim Meyering  <meyering@redhat.com>
6114
6115         Let these macros work also with autoconf-2.59.
6116         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
6117         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
6118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6119
6120 2007-12-06  Jim Meyering  <meyering@redhat.com>
6121
6122         Avoid a configure-time syntax error in gl_FUNC_ACL.
6123         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6124         function in each branch, before testing the cache variable.
6125
6126 2007-12-04  Eric Blake  <ebb9@byu.net>
6127
6128         Make scripts executable.
6129         * build-aux/config.guess: Add execute permissions.
6130         * build-aux/config.sub: Likewise.
6131         * build-aux/gendocs.sh: Likewise.
6132
6133         Fix frexp on mingw.
6134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6135         cross-compiling.
6136         * doc/functions/frexp.texi (frexp): Document the bug.
6137
6138         Make cygwin fseeko check more reliable.
6139         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6140         version numbers, rather than unrelated feature check.
6141         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6142         * doc/functions/ftello.texi (ftello): Likewise.
6143         Reported by Bruno Haible.
6144
6145         * m4/strerror.m4: Bump version number.
6146
6147 2007-12-03  Bruno Haible  <bruno@clisp.org>
6148
6149         * doc/functions/mprotect.texi: Mention the mingw problem.
6150
6151 2007-12-03  Eric Blake  <ebb9@byu.net>
6152
6153         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6154         REPLACE_STRERROR is initialized before this macro.
6155
6156 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6157
6158         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6159         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6160         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6161         put -lsec in even for programs other than 'ls'.  This fixes a problem
6162         for gettext reported by Bruno Haible in
6163         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6164         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6165         Add support for Solaris 10.  This isn't efficient, but should get the
6166         job done for now.
6167
6168 2007-12-03  James Youngman  <jay@gnu.org>
6169
6170         * doc/regexprops-generic.texi: change "an close-group" to "a
6171         close-group" and "illegal" to "not allowed".
6172
6173 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6174
6175         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6176         pr_byname.h. Needed for the rare case when the maintainer has done
6177         "make maintainer-clean" in the source directory and then attempts a
6178         build outside the source directory.
6179         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6180         scripts_byname.h.
6181
6182 2007-12-02  Martin Lambers <marlam@marlam.de>
6183             Bruno Haible  <bruno@clisp.org>
6184
6185         * lib/getpagesize.h: Remove file.
6186         * lib/unistd.in.h: Include declaration of getpagesize here.
6187         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6188         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6189         HAVE_SYS_PARAM_H.
6190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6191         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6192         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6193         (Depends-on): Add unistd.
6194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6195         (Include): Use <unistd.h> instead of getpagesize.h.
6196         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6197         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6198         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6199         gl_GETPAGESIZE invocation, already handled by module dependency.
6200         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6201
6202 2007-12-02  Bruno Haible  <bruno@clisp.org>
6203
6204         * modules/strings-tests: New file.
6205         * tests/test-strings.c: New file.
6206
6207         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6208         * lib/strings.in.h: New file.
6209         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6210         * m4/strings_h.m4: New file.
6211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6212         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6213         * modules/strings: New file.
6214         * modules/string (Makefile.am): Update.
6215         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6216         Reported by Karl Berry.
6217
6218 2007-12-01  Eric Blake  <ebb9@byu.net>
6219
6220         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6221         accomodate fix in cygwin 1.5.25.
6222
6223 2007-12-01  Jim Meyering  <meyering@redhat.com>
6224
6225         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6226         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6227         that would inhibit utf8-optimization of a regexp containing line-
6228         or buffer-anchors, e.g., `^', `$'.
6229
6230 2007-11-30  Bruno Haible  <bruno@clisp.org>
6231
6232         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6233         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6234         glthread_recursive_lock_init.
6235         * lib/lock.c (glthread_recursive_lock_init)
6236         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6237         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6238
6239 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6240
6241         New function qset_acl, like set_acl but with syscall semantics.
6242         * lib/acl.h (qset_acl): New decl.
6243         * lib/acl.c (qset_acl): New function.
6244         (set_acl): Use new function.  Use more-consistent diagnostics.
6245
6246 2007-11-28  Jim Meyering  <meyering@redhat.com>
6247
6248         * modules/physmem (License): Change from GPL to LGPLv2+.
6249
6250 2007-11-26  Bruno Haible  <bruno@clisp.org>
6251
6252         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6253         'long double' type has excess precision.
6254         Reported by Jim Meyering in
6255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6256
6257 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6258
6259         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6260         Sync from <http://gnu.org/licenses>.
6261         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6262         with license text from same location.
6263         * doc/maintain.texi, doc/standards.texi:  Sync from
6264         <http://savannah.gnu.org/projects/gnustandards>.
6265
6266 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
6267         and Jim Meyering  <meyering@redhat.com>
6268
6269         Adjust getdate' grammar to accept a slightly more regular language.
6270         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6271         Before, the former was rejected.
6272         * lib/getdate.y (digits_to_date_time): New function, factored
6273         out of ...
6274         (number): ...here.  Just call digits_to_date_time.
6275         (hybrid): New non-terminal to handle an <unsigned number,
6276         signed relative offset> sequence consistently.
6277
6278 2007-11-18  Jim Meyering  <meyering@redhat.com>
6279
6280         Pull my changes from coreutils:
6281         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6282         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6283         use of $gnulib_tool_option_extras, so that it's separated from the
6284         preceding argument.
6285
6286         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6287         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6288         parent destination directories before copying a file into place.
6289
6290 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6291
6292         bootstrap: work also with 4-argument variant of AC_INIT
6293         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6294
6295 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6296
6297         Port test-getaddrinfo to Solaris.
6298         Problem reported by Bruno Haible in
6299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6300         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6301         explanation of setting 'hints'.
6302         Don't reject an implementation merely because it returns EAI_SERVICE.
6303         (EAI_SERVICE): Define to 0 if not defined.
6304
6305 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6306
6307         The license of gnu-make and posix-shell is now "GPLed build tool".
6308         * modules/gnu-make (License): Likewise.
6309         * modules/posix-shell (License): Likewise.
6310
6311         New module posix-shell, for determining a POSIX shell
6312         or perhaps something that is close enough to a POSIX shell.
6313         * m4/posix-shell.m4: New file.
6314         * modules/posix-shell: New file.
6315
6316         * MODULES.html.sh: Mention new module.
6317
6318         New module gnu-make, for determining whether we're using GNU Make.
6319         * m4/gnu-make.m4: New file.
6320         * modules/gnu-make: New file.
6321         * MODULES.html.sh: Mention new module.
6322
6323 2007-11-14  Jim Meyering  <meyering@redhat.com>
6324
6325         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6326         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6327         use this macro to create a function _definition_.
6328         Remove useless "#undef ARGMATCH_DIE".
6329
6330 2007-11-14  Bruno Haible  <bruno@clisp.org>
6331
6332         * lib/config.charset: Update for OpenBSD 4.1.
6333         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6334
6335 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6336
6337         Document 64-bit #if problems in stdint.texi.
6338         * doc/headers/stdint.texi (stdint.h): Mention problems with
6339         64-bit-#if, and how to work around them.
6340
6341         Don't insist on 'long long int' support in the preprocessor.  It
6342         breaks too many things.  For example, PRIdMAX still uses a 'long
6343         long int' format with the latest Sun compiler, even though
6344         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6345         preprocessor problem.  This causes the latest coreutils to dump
6346         core on Solaris 10 sparc with the Sun C compiler.
6347         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6348         the troublesome expressions at configure-time, not at #if-time.
6349         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6350         preprocessor.
6351         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6352         compile-time C checks, done at 'configure'-time.
6353         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6354         * modules/inttypes (Makefile): Substitute the new symbols that
6355         gl_INTTYPES_H now generates.
6356         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6357
6358 2007-11-12  Bruno Haible  <bruno@clisp.org>
6359
6360         Tests for Unicode character classification functions.
6361
6362         * modules/unictype/bidicategory-byname-tests: New file.
6363         * modules/unictype/bidicategory-name-tests: New file.
6364         * modules/unictype/bidicategory-of-tests: New file.
6365         * modules/unictype/bidicategory-test-tests: New file.
6366         * modules/unictype/block-list-tests: New file.
6367         * modules/unictype/block-of-tests: New file.
6368         * modules/unictype/block-test-tests: New file.
6369         * modules/unictype/category-C-tests: New file.
6370         * modules/unictype/category-Cc-tests: New file.
6371         * modules/unictype/category-Cf-tests: New file.
6372         * modules/unictype/category-Cn-tests: New file.
6373         * modules/unictype/category-Co-tests: New file.
6374         * modules/unictype/category-Cs-tests: New file.
6375         * modules/unictype/category-L-tests: New file.
6376         * modules/unictype/category-Ll-tests: New file.
6377         * modules/unictype/category-Lm-tests: New file.
6378         * modules/unictype/category-Lo-tests: New file.
6379         * modules/unictype/category-Lt-tests: New file.
6380         * modules/unictype/category-Lu-tests: New file.
6381         * modules/unictype/category-M-tests: New file.
6382         * modules/unictype/category-Mc-tests: New file.
6383         * modules/unictype/category-Me-tests: New file.
6384         * modules/unictype/category-Mn-tests: New file.
6385         * modules/unictype/category-N-tests: New file.
6386         * modules/unictype/category-Nd-tests: New file.
6387         * modules/unictype/category-Nl-tests: New file.
6388         * modules/unictype/category-No-tests: New file.
6389         * modules/unictype/category-P-tests: New file.
6390         * modules/unictype/category-Pc-tests: New file.
6391         * modules/unictype/category-Pd-tests: New file.
6392         * modules/unictype/category-Pe-tests: New file.
6393         * modules/unictype/category-Pf-tests: New file.
6394         * modules/unictype/category-Pi-tests: New file.
6395         * modules/unictype/category-Po-tests: New file.
6396         * modules/unictype/category-Ps-tests: New file.
6397         * modules/unictype/category-S-tests: New file.
6398         * modules/unictype/category-Sc-tests: New file.
6399         * modules/unictype/category-Sk-tests: New file.
6400         * modules/unictype/category-Sm-tests: New file.
6401         * modules/unictype/category-So-tests: New file.
6402         * modules/unictype/category-Z-tests: New file.
6403         * modules/unictype/category-Zl-tests: New file.
6404         * modules/unictype/category-Zp-tests: New file.
6405         * modules/unictype/category-Zs-tests: New file.
6406         * modules/unictype/category-and-not-tests: New file.
6407         * modules/unictype/category-and-tests: New file.
6408         * modules/unictype/category-byname-tests: New file.
6409         * modules/unictype/category-name-tests: New file.
6410         * modules/unictype/category-none-tests: New file.
6411         * modules/unictype/category-of-tests: New file.
6412         * modules/unictype/category-or-tests: New file.
6413         * modules/unictype/category-test-withtable-tests: New file.
6414         * modules/unictype/combining-class-tests: New file.
6415         * modules/unictype/ctype-alnum-tests: New file.
6416         * modules/unictype/ctype-alpha-tests: New file.
6417         * modules/unictype/ctype-blank-tests: New file.
6418         * modules/unictype/ctype-cntrl-tests: New file.
6419         * modules/unictype/ctype-digit-tests: New file.
6420         * modules/unictype/ctype-graph-tests: New file.
6421         * modules/unictype/ctype-lower-tests: New file.
6422         * modules/unictype/ctype-print-tests: New file.
6423         * modules/unictype/ctype-punct-tests: New file.
6424         * modules/unictype/ctype-space-tests: New file.
6425         * modules/unictype/ctype-upper-tests: New file.
6426         * modules/unictype/ctype-xdigit-tests: New file.
6427         * modules/unictype/decimal-digit-tests: New file.
6428         * modules/unictype/digit-tests: New file.
6429         * modules/unictype/mirror-tests: New file.
6430         * modules/unictype/numeric-tests: New file.
6431         * modules/unictype/property-alphabetic-tests: New file.
6432         * modules/unictype/property-ascii-hex-digit-tests: New file.
6433         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6434         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6435         * modules/unictype/property-bidi-block-separator-tests: New file.
6436         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6437         * modules/unictype/property-bidi-common-separator-tests: New file.
6438         * modules/unictype/property-bidi-control-tests: New file.
6439         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6440         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6441         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6442         * modules/unictype/property-bidi-european-digit-tests: New file.
6443         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6444         * modules/unictype/property-bidi-left-to-right-tests: New file.
6445         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6446         * modules/unictype/property-bidi-other-neutral-tests: New file.
6447         * modules/unictype/property-bidi-pdf-tests: New file.
6448         * modules/unictype/property-bidi-segment-separator-tests: New file.
6449         * modules/unictype/property-bidi-whitespace-tests: New file.
6450         * modules/unictype/property-byname-tests: New file.
6451         * modules/unictype/property-combining-tests: New file.
6452         * modules/unictype/property-composite-tests: New file.
6453         * modules/unictype/property-currency-symbol-tests: New file.
6454         * modules/unictype/property-dash-tests: New file.
6455         * modules/unictype/property-decimal-digit-tests: New file.
6456         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6457         * modules/unictype/property-deprecated-tests: New file.
6458         * modules/unictype/property-diacritic-tests: New file.
6459         * modules/unictype/property-extender-tests: New file.
6460         * modules/unictype/property-format-control-tests: New file.
6461         * modules/unictype/property-grapheme-base-tests: New file.
6462         * modules/unictype/property-grapheme-extend-tests: New file.
6463         * modules/unictype/property-grapheme-link-tests: New file.
6464         * modules/unictype/property-hex-digit-tests: New file.
6465         * modules/unictype/property-hyphen-tests: New file.
6466         * modules/unictype/property-id-continue-tests: New file.
6467         * modules/unictype/property-id-start-tests: New file.
6468         * modules/unictype/property-ideographic-tests: New file.
6469         * modules/unictype/property-ids-binary-operator-tests: New file.
6470         * modules/unictype/property-ids-trinary-operator-tests: New file.
6471         * modules/unictype/property-ignorable-control-tests: New file.
6472         * modules/unictype/property-iso-control-tests: New file.
6473         * modules/unictype/property-join-control-tests: New file.
6474         * modules/unictype/property-left-of-pair-tests: New file.
6475         * modules/unictype/property-line-separator-tests: New file.
6476         * modules/unictype/property-logical-order-exception-tests: New file.
6477         * modules/unictype/property-lowercase-tests: New file.
6478         * modules/unictype/property-math-tests: New file.
6479         * modules/unictype/property-non-break-tests: New file.
6480         * modules/unictype/property-not-a-character-tests: New file.
6481         * modules/unictype/property-numeric-tests: New file.
6482         * modules/unictype/property-other-alphabetic-tests: New file.
6483         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6484         * modules/unictype/property-other-grapheme-extend-tests: New file.
6485         * modules/unictype/property-other-id-continue-tests: New file.
6486         * modules/unictype/property-other-id-start-tests: New file.
6487         * modules/unictype/property-other-lowercase-tests: New file.
6488         * modules/unictype/property-other-math-tests: New file.
6489         * modules/unictype/property-other-uppercase-tests: New file.
6490         * modules/unictype/property-paired-punctuation-tests: New file.
6491         * modules/unictype/property-paragraph-separator-tests: New file.
6492         * modules/unictype/property-pattern-syntax-tests: New file.
6493         * modules/unictype/property-pattern-white-space-tests: New file.
6494         * modules/unictype/property-private-use-tests: New file.
6495         * modules/unictype/property-punctuation-tests: New file.
6496         * modules/unictype/property-quotation-mark-tests: New file.
6497         * modules/unictype/property-radical-tests: New file.
6498         * modules/unictype/property-sentence-terminal-tests: New file.
6499         * modules/unictype/property-soft-dotted-tests: New file.
6500         * modules/unictype/property-space-tests: New file.
6501         * modules/unictype/property-terminal-punctuation-tests: New file.
6502         * modules/unictype/property-test-tests: New file.
6503         * modules/unictype/property-titlecase-tests: New file.
6504         * modules/unictype/property-unassigned-code-value-tests: New file.
6505         * modules/unictype/property-unified-ideograph-tests: New file.
6506         * modules/unictype/property-uppercase-tests: New file.
6507         * modules/unictype/property-variation-selector-tests: New file.
6508         * modules/unictype/property-white-space-tests: New file.
6509         * modules/unictype/property-xid-continue-tests: New file.
6510         * modules/unictype/property-xid-start-tests: New file.
6511         * modules/unictype/property-zero-width-tests: New file.
6512         * modules/unictype/scripts-tests: New file.
6513         * modules/unictype/syntax-c-ident-tests: New file.
6514         * modules/unictype/syntax-c-whitespace-tests: New file.
6515         * modules/unictype/syntax-java-ident-tests: New file.
6516         * modules/unictype/syntax-java-whitespace-tests: New file.
6517         * tests/unictype/test-bidi_byname.c: New file.
6518         * tests/unictype/test-bidi_name.c: New file.
6519         * tests/unictype/test-bidi_of.c: New file.
6520         * tests/unictype/test-bidi_test.c: New file.
6521         * tests/unictype/test-block_list.c: New file.
6522         * tests/unictype/test-block_of.c: New file.
6523         * tests/unictype/test-block_test.c: New file.
6524         * tests/unictype/test-categ_and.c: New file.
6525         * tests/unictype/test-categ_and_not.c: New file.
6526         * tests/unictype/test-categ_byname.c: New file.
6527         * tests/unictype/test-categ_name.c: New file.
6528         * tests/unictype/test-categ_none.c: New file.
6529         * tests/unictype/test-categ_of.c: New file.
6530         * tests/unictype/test-categ_or.c: New file.
6531         * tests/unictype/test-categ_test_withtable.c: New file.
6532         * tests/unictype/test-combining.c: New file.
6533         * tests/unictype/test-decdigit.c: New file.
6534         * tests/unictype/test-digit.c: New file.
6535         * tests/unictype/test-mirror.c: New file.
6536         * tests/unictype/test-numeric.c: New file.
6537         * tests/unictype/test-pr_byname.c: New file.
6538         * tests/unictype/test-pr_test.c: New file.
6539         * tests/unictype/test-predicate-part1.h: New file.
6540         * tests/unictype/test-predicate-part2.h: New file.
6541         * tests/unictype/test-scripts.c: New file.
6542         * tests/unictype/test-sy_c_ident.c: New file.
6543         * tests/unictype/test-sy_java_ident.c: New file.
6544
6545         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6546         for Unicode 5.0.0.
6547         * tests/unictype/test-categ_Cc.c: Likewise.
6548         * tests/unictype/test-categ_Cf.c: Likewise.
6549         * tests/unictype/test-categ_Cn.c: Likewise.
6550         * tests/unictype/test-categ_Co.c: Likewise.
6551         * tests/unictype/test-categ_Cs.c: Likewise.
6552         * tests/unictype/test-categ_L.c: Likewise.
6553         * tests/unictype/test-categ_Ll.c: Likewise.
6554         * tests/unictype/test-categ_Lm.c: Likewise.
6555         * tests/unictype/test-categ_Lo.c: Likewise.
6556         * tests/unictype/test-categ_Lt.c: Likewise.
6557         * tests/unictype/test-categ_Lu.c: Likewise.
6558         * tests/unictype/test-categ_M.c: Likewise.
6559         * tests/unictype/test-categ_Mc.c: Likewise.
6560         * tests/unictype/test-categ_Me.c: Likewise.
6561         * tests/unictype/test-categ_Mn.c: Likewise.
6562         * tests/unictype/test-categ_N.c: Likewise.
6563         * tests/unictype/test-categ_Nd.c: Likewise.
6564         * tests/unictype/test-categ_Nl.c: Likewise.
6565         * tests/unictype/test-categ_No.c: Likewise.
6566         * tests/unictype/test-categ_P.c: Likewise.
6567         * tests/unictype/test-categ_Pc.c: Likewise.
6568         * tests/unictype/test-categ_Pd.c: Likewise.
6569         * tests/unictype/test-categ_Pe.c: Likewise.
6570         * tests/unictype/test-categ_Pf.c: Likewise.
6571         * tests/unictype/test-categ_Pi.c: Likewise.
6572         * tests/unictype/test-categ_Po.c: Likewise.
6573         * tests/unictype/test-categ_Ps.c: Likewise.
6574         * tests/unictype/test-categ_S.c: Likewise.
6575         * tests/unictype/test-categ_Sc.c: Likewise.
6576         * tests/unictype/test-categ_Sk.c: Likewise.
6577         * tests/unictype/test-categ_Sm.c: Likewise.
6578         * tests/unictype/test-categ_So.c: Likewise.
6579         * tests/unictype/test-categ_Z.c: Likewise.
6580         * tests/unictype/test-categ_Zl.c: Likewise.
6581         * tests/unictype/test-categ_Zp.c: Likewise.
6582         * tests/unictype/test-categ_Zs.c: Likewise.
6583         * tests/unictype/test-ctype_alnum.c: Likewise.
6584         * tests/unictype/test-ctype_alpha.c: Likewise.
6585         * tests/unictype/test-ctype_blank.c: Likewise.
6586         * tests/unictype/test-ctype_cntrl.c: Likewise.
6587         * tests/unictype/test-ctype_digit.c: Likewise.
6588         * tests/unictype/test-ctype_graph.c: Likewise.
6589         * tests/unictype/test-ctype_lower.c: Likewise.
6590         * tests/unictype/test-ctype_print.c: Likewise.
6591         * tests/unictype/test-ctype_punct.c: Likewise.
6592         * tests/unictype/test-ctype_space.c: Likewise.
6593         * tests/unictype/test-ctype_upper.c: Likewise.
6594         * tests/unictype/test-ctype_xdigit.c: Likewise.
6595         * tests/unictype/test-decdigit.h: Likewise.
6596         * tests/unictype/test-digit.h: Likewise.
6597         * tests/unictype/test-numeric.h: Likewise.
6598         * tests/unictype/test-pr_alphabetic.c: Likewise.
6599         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6600         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6601         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6602         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6603         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6604         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6605         * tests/unictype/test-pr_bidi_control.c: Likewise.
6606         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6607         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6608         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6609         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6610         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6611         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6612         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6613         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6614         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6615         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6616         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6617         * tests/unictype/test-pr_combining.c: Likewise.
6618         * tests/unictype/test-pr_composite.c: Likewise.
6619         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6620         * tests/unictype/test-pr_dash.c: Likewise.
6621         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6622         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6623         * tests/unictype/test-pr_deprecated.c: Likewise.
6624         * tests/unictype/test-pr_diacritic.c: Likewise.
6625         * tests/unictype/test-pr_extender.c: Likewise.
6626         * tests/unictype/test-pr_format_control.c: Likewise.
6627         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6628         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6629         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6630         * tests/unictype/test-pr_hex_digit.c: Likewise.
6631         * tests/unictype/test-pr_hyphen.c: Likewise.
6632         * tests/unictype/test-pr_id_continue.c: Likewise.
6633         * tests/unictype/test-pr_id_start.c: Likewise.
6634         * tests/unictype/test-pr_ideographic.c: Likewise.
6635         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6636         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6637         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6638         * tests/unictype/test-pr_iso_control.c: Likewise.
6639         * tests/unictype/test-pr_join_control.c: Likewise.
6640         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6641         * tests/unictype/test-pr_line_separator.c: Likewise.
6642         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6643         * tests/unictype/test-pr_lowercase.c: Likewise.
6644         * tests/unictype/test-pr_math.c: Likewise.
6645         * tests/unictype/test-pr_non_break.c: Likewise.
6646         * tests/unictype/test-pr_not_a_character.c: Likewise.
6647         * tests/unictype/test-pr_numeric.c: Likewise.
6648         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6649         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6650         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6651         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6652         * tests/unictype/test-pr_other_id_start.c: Likewise.
6653         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6654         * tests/unictype/test-pr_other_math.c: Likewise.
6655         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6656         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6657         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6658         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6659         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6660         * tests/unictype/test-pr_private_use.c: Likewise.
6661         * tests/unictype/test-pr_punctuation.c: Likewise.
6662         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6663         * tests/unictype/test-pr_radical.c: Likewise.
6664         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6665         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6666         * tests/unictype/test-pr_space.c: Likewise.
6667         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6668         * tests/unictype/test-pr_titlecase.c: Likewise.
6669         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6670         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6671         * tests/unictype/test-pr_uppercase.c: Likewise.
6672         * tests/unictype/test-pr_variation_selector.c: Likewise.
6673         * tests/unictype/test-pr_white_space.c: Likewise.
6674         * tests/unictype/test-pr_xid_continue.c: Likewise.
6675         * tests/unictype/test-pr_xid_start.c: Likewise.
6676         * tests/unictype/test-pr_zero_width.c: Likewise.
6677         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6678         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6679
6680 2007-11-12  Bruno Haible  <bruno@clisp.org>
6681
6682         Unicode character classification functions.
6683         * lib/unictype.h: New file.
6684         * modules/unictype/base: New file.
6685         * modules/unictype/category-L: New file.
6686         * modules/unictype/category-Lu: New file.
6687         * modules/unictype/category-Ll: New file.
6688         * modules/unictype/category-Lt: New file.
6689         * modules/unictype/category-Lm: New file.
6690         * modules/unictype/category-Lo: New file.
6691         * modules/unictype/category-M: New file.
6692         * modules/unictype/category-Mn: New file.
6693         * modules/unictype/category-Mc: New file.
6694         * modules/unictype/category-Me: New file.
6695         * modules/unictype/category-N: New file.
6696         * modules/unictype/category-Nd: New file.
6697         * modules/unictype/category-Nl: New file.
6698         * modules/unictype/category-No: New file.
6699         * modules/unictype/category-P: New file.
6700         * modules/unictype/category-Pc: New file.
6701         * modules/unictype/category-Pd: New file.
6702         * modules/unictype/category-Ps: New file.
6703         * modules/unictype/category-Pe: New file.
6704         * modules/unictype/category-Pi: New file.
6705         * modules/unictype/category-Pf: New file.
6706         * modules/unictype/category-Po: New file.
6707         * modules/unictype/category-S: New file.
6708         * modules/unictype/category-Sm: New file.
6709         * modules/unictype/category-Sc: New file.
6710         * modules/unictype/category-Sk: New file.
6711         * modules/unictype/category-So: New file.
6712         * modules/unictype/category-Z: New file.
6713         * modules/unictype/category-Zs: New file.
6714         * modules/unictype/category-Zl: New file.
6715         * modules/unictype/category-Zp: New file.
6716         * modules/unictype/category-C: New file.
6717         * modules/unictype/category-Cc: New file.
6718         * modules/unictype/category-Cf: New file.
6719         * modules/unictype/category-Cs: New file.
6720         * modules/unictype/category-Co: New file.
6721         * modules/unictype/category-Cn: New file.
6722         * modules/unictype/category-or: New file.
6723         * modules/unictype/category-of: New file.
6724         * modules/unictype/category-test: New file.
6725         * modules/unictype/category-test-withtable: New file.
6726         * modules/unictype/category-byname: New file.
6727         * modules/unictype/category-none: New file.
6728         * modules/unictype/category-and: New file.
6729         * modules/unictype/category-and-not: New file.
6730         * modules/unictype/category-name: New file.
6731         * modules/unictype/combining-class: New file.
6732         * modules/unictype/category-all: New file.
6733         * modules/unictype/bidicategory-all: New file.
6734         * modules/unictype/bidicategory-byname: New file.
6735         * modules/unictype/bidicategory-name: New file.
6736         * modules/unictype/bidicategory-of: New file.
6737         * modules/unictype/bidicategory-test: New file.
6738         * modules/unictype/decimal-digit: New file.
6739         * modules/unictype/digit: New file.
6740         * modules/unictype/numeric: New file.
6741         * modules/unictype/mirror: New file.
6742         * modules/unictype/property-white-space: New file.
6743         * modules/unictype/property-alphabetic: New file.
6744         * modules/unictype/property-other-alphabetic: New file.
6745         * modules/unictype/property-not-a-character: New file.
6746         * modules/unictype/property-default-ignorable-code-point: New file.
6747         * modules/unictype/property-other-default-ignorable-code-point: New
6748         file.
6749         * modules/unictype/property-deprecated: New file.
6750         * modules/unictype/property-logical-order-exception: New file.
6751         * modules/unictype/property-variation-selector: New file.
6752         * modules/unictype/property-private-use: New file.
6753         * modules/unictype/property-unassigned-code-value: New file.
6754         * modules/unictype/property-uppercase: New file.
6755         * modules/unictype/property-other-uppercase: New file.
6756         * modules/unictype/property-lowercase: New file.
6757         * modules/unictype/property-other-lowercase: New file.
6758         * modules/unictype/property-titlecase: New file.
6759         * modules/unictype/property-soft-dotted: New file.
6760         * modules/unictype/property-id-start: New file.
6761         * modules/unictype/property-other-id-start: New file.
6762         * modules/unictype/property-id-continue: New file.
6763         * modules/unictype/property-other-id-continue: New file.
6764         * modules/unictype/property-xid-start: New file.
6765         * modules/unictype/property-xid-continue: New file.
6766         * modules/unictype/property-pattern-white-space: New file.
6767         * modules/unictype/property-pattern-syntax: New file.
6768         * modules/unictype/property-join-control: New file.
6769         * modules/unictype/property-grapheme-base: New file.
6770         * modules/unictype/property-grapheme-extend: New file.
6771         * modules/unictype/property-other-grapheme-extend: New file.
6772         * modules/unictype/property-grapheme-link: New file.
6773         * modules/unictype/property-bidi-control: New file.
6774         * modules/unictype/property-bidi-left-to-right: New file.
6775         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
6776         * modules/unictype/property-bidi-arabic-right-to-left: New file.
6777         * modules/unictype/property-bidi-european-digit: New file.
6778         * modules/unictype/property-bidi-eur-num-separator: New file.
6779         * modules/unictype/property-bidi-eur-num-terminator: New file.
6780         * modules/unictype/property-bidi-arabic-digit: New file.
6781         * modules/unictype/property-bidi-common-separator: New file.
6782         * modules/unictype/property-bidi-block-separator: New file.
6783         * modules/unictype/property-bidi-segment-separator: New file.
6784         * modules/unictype/property-bidi-whitespace: New file.
6785         * modules/unictype/property-bidi-non-spacing-mark: New file.
6786         * modules/unictype/property-bidi-boundary-neutral: New file.
6787         * modules/unictype/property-bidi-pdf: New file.
6788         * modules/unictype/property-bidi-embedding-or-override: New file.
6789         * modules/unictype/property-bidi-other-neutral: New file.
6790         * modules/unictype/property-hex-digit: New file.
6791         * modules/unictype/property-ascii-hex-digit: New file.
6792         * modules/unictype/property-ideographic: New file.
6793         * modules/unictype/property-unified-ideograph: New file.
6794         * modules/unictype/property-radical: New file.
6795         * modules/unictype/property-ids-binary-operator: New file.
6796         * modules/unictype/property-ids-trinary-operator: New file.
6797         * modules/unictype/property-zero-width: New file.
6798         * modules/unictype/property-space: New file.
6799         * modules/unictype/property-non-break: New file.
6800         * modules/unictype/property-iso-control: New file.
6801         * modules/unictype/property-format-control: New file.
6802         * modules/unictype/property-dash: New file.
6803         * modules/unictype/property-hyphen: New file.
6804         * modules/unictype/property-punctuation: New file.
6805         * modules/unictype/property-line-separator: New file.
6806         * modules/unictype/property-paragraph-separator: New file.
6807         * modules/unictype/property-quotation-mark: New file.
6808         * modules/unictype/property-sentence-terminal: New file.
6809         * modules/unictype/property-terminal-punctuation: New file.
6810         * modules/unictype/property-currency-symbol: New file.
6811         * modules/unictype/property-math: New file.
6812         * modules/unictype/property-other-math: New file.
6813         * modules/unictype/property-paired-punctuation: New file.
6814         * modules/unictype/property-left-of-pair: New file.
6815         * modules/unictype/property-combining: New file.
6816         * modules/unictype/property-composite: New file.
6817         * modules/unictype/property-decimal-digit: New file.
6818         * modules/unictype/property-numeric: New file.
6819         * modules/unictype/property-diacritic: New file.
6820         * modules/unictype/property-extender: New file.
6821         * modules/unictype/property-ignorable-control: New file.
6822         * modules/unictype/property-test: New file.
6823         * modules/unictype/property-byname: New file.
6824         * modules/unictype/property-all: New file.
6825         * modules/unictype/scripts: New file.
6826         * modules/unictype/scripts-all: New file.
6827         * modules/unictype/block-of: New file.
6828         * modules/unictype/block-test: New file.
6829         * modules/unictype/block-list: New file.
6830         * modules/unictype/block-all: New file.
6831         * modules/unictype/syntax-c-whitespace: New file.
6832         * modules/unictype/syntax-java-whitespace: New file.
6833         * modules/unictype/syntax-c-ident: New file.
6834         * modules/unictype/syntax-java-ident: New file.
6835         * modules/unictype/ctype-alnum: New file.
6836         * modules/unictype/ctype-alpha: New file.
6837         * modules/unictype/ctype-cntrl: New file.
6838         * modules/unictype/ctype-digit: New file.
6839         * modules/unictype/ctype-graph: New file.
6840         * modules/unictype/ctype-lower: New file.
6841         * modules/unictype/ctype-print: New file.
6842         * modules/unictype/ctype-punct: New file.
6843         * modules/unictype/ctype-space: New file.
6844         * modules/unictype/ctype-upper: New file.
6845         * modules/unictype/ctype-xdigit: New file.
6846         * modules/unictype/ctype-blank: New file.
6847         * lib/unictype/bidi_byname.c: New file.
6848         * lib/unictype/bidi_name.c: New file.
6849         * lib/unictype/bidi_of.c: New file.
6850         * lib/unictype/bidi_test.c: New file.
6851         * lib/unictype/bitmap.h: New file.
6852         * lib/unictype/block_test.c: New file.
6853         * lib/unictype/blocks.c: New file.
6854         * lib/unictype/categ_C.c: New file.
6855         * lib/unictype/categ_Cc.c: New file.
6856         * lib/unictype/categ_Cf.c: New file.
6857         * lib/unictype/categ_Cn.c: New file.
6858         * lib/unictype/categ_Co.c: New file.
6859         * lib/unictype/categ_Cs.c: New file.
6860         * lib/unictype/categ_L.c: New file.
6861         * lib/unictype/categ_Ll.c: New file.
6862         * lib/unictype/categ_Lm.c: New file.
6863         * lib/unictype/categ_Lo.c: New file.
6864         * lib/unictype/categ_Lt.c: New file.
6865         * lib/unictype/categ_Lu.c: New file.
6866         * lib/unictype/categ_M.c: New file.
6867         * lib/unictype/categ_Mc.c: New file.
6868         * lib/unictype/categ_Me.c: New file.
6869         * lib/unictype/categ_Mn.c: New file.
6870         * lib/unictype/categ_N.c: New file.
6871         * lib/unictype/categ_Nd.c: New file.
6872         * lib/unictype/categ_Nl.c: New file.
6873         * lib/unictype/categ_No.c: New file.
6874         * lib/unictype/categ_P.c: New file.
6875         * lib/unictype/categ_Pc.c: New file.
6876         * lib/unictype/categ_Pd.c: New file.
6877         * lib/unictype/categ_Pe.c: New file.
6878         * lib/unictype/categ_Pf.c: New file.
6879         * lib/unictype/categ_Pi.c: New file.
6880         * lib/unictype/categ_Po.c: New file.
6881         * lib/unictype/categ_Ps.c: New file.
6882         * lib/unictype/categ_S.c: New file.
6883         * lib/unictype/categ_Sc.c: New file.
6884         * lib/unictype/categ_Sk.c: New file.
6885         * lib/unictype/categ_Sm.c: New file.
6886         * lib/unictype/categ_So.c: New file.
6887         * lib/unictype/categ_Z.c: New file.
6888         * lib/unictype/categ_Zl.c: New file.
6889         * lib/unictype/categ_Zp.c: New file.
6890         * lib/unictype/categ_Zs.c: New file.
6891         * lib/unictype/categ_and.c: New file.
6892         * lib/unictype/categ_and_not.c: New file.
6893         * lib/unictype/categ_byname.c: New file.
6894         * lib/unictype/categ_name.c: New file.
6895         * lib/unictype/categ_none.c: New file.
6896         * lib/unictype/categ_of.c: New file.
6897         * lib/unictype/categ_or.c: New file.
6898         * lib/unictype/categ_test.c: New file.
6899         * lib/unictype/combining.c: New file.
6900         * lib/unictype/ctype_alnum.c: New file.
6901         * lib/unictype/ctype_alpha.c: New file.
6902         * lib/unictype/ctype_blank.c: New file.
6903         * lib/unictype/ctype_cntrl.c: New file.
6904         * lib/unictype/ctype_digit.c: New file.
6905         * lib/unictype/ctype_graph.c: New file.
6906         * lib/unictype/ctype_lower.c: New file.
6907         * lib/unictype/ctype_print.c: New file.
6908         * lib/unictype/ctype_punct.c: New file.
6909         * lib/unictype/ctype_space.c: New file.
6910         * lib/unictype/ctype_upper.c: New file.
6911         * lib/unictype/ctype_xdigit.c: New file.
6912         * lib/unictype/decdigit.c: New file.
6913         * lib/unictype/digit.c: New file.
6914         * lib/unictype/identsyntaxmap.h: New file.
6915         * lib/unictype/mirror.c: New file.
6916         * lib/unictype/numeric.c: New file.
6917         * lib/unictype/pr_alphabetic.c: New file.
6918         * lib/unictype/pr_ascii_hex_digit.c: New file.
6919         * lib/unictype/pr_bidi_arabic_digit.c: New file.
6920         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
6921         * lib/unictype/pr_bidi_block_separator.c: New file.
6922         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
6923         * lib/unictype/pr_bidi_common_separator.c: New file.
6924         * lib/unictype/pr_bidi_control.c: New file.
6925         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
6926         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
6927         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
6928         * lib/unictype/pr_bidi_european_digit.c: New file.
6929         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
6930         * lib/unictype/pr_bidi_left_to_right.c: New file.
6931         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
6932         * lib/unictype/pr_bidi_other_neutral.c: New file.
6933         * lib/unictype/pr_bidi_pdf.c: New file.
6934         * lib/unictype/pr_bidi_segment_separator.c: New file.
6935         * lib/unictype/pr_bidi_whitespace.c: New file.
6936         * lib/unictype/pr_byname.c: New file.
6937         * lib/unictype/pr_byname.gperf: New file.
6938         * lib/unictype/pr_combining.c: New file.
6939         * lib/unictype/pr_composite.c: New file.
6940         * lib/unictype/pr_currency_symbol.c: New file.
6941         * lib/unictype/pr_dash.c: New file.
6942         * lib/unictype/pr_decimal_digit.c: New file.
6943         * lib/unictype/pr_default_ignorable_code_point.c: New file.
6944         * lib/unictype/pr_deprecated.c: New file.
6945         * lib/unictype/pr_diacritic.c: New file.
6946         * lib/unictype/pr_extender.c: New file.
6947         * lib/unictype/pr_format_control.c: New file.
6948         * lib/unictype/pr_grapheme_base.c: New file.
6949         * lib/unictype/pr_grapheme_extend.c: New file.
6950         * lib/unictype/pr_grapheme_link.c: New file.
6951         * lib/unictype/pr_hex_digit.c: New file.
6952         * lib/unictype/pr_hyphen.c: New file.
6953         * lib/unictype/pr_id_continue.c: New file.
6954         * lib/unictype/pr_id_start.c: New file.
6955         * lib/unictype/pr_ideographic.c: New file.
6956         * lib/unictype/pr_ids_binary_operator.c: New file.
6957         * lib/unictype/pr_ids_trinary_operator.c: New file.
6958         * lib/unictype/pr_ignorable_control.c: New file.
6959         * lib/unictype/pr_iso_control.c: New file.
6960         * lib/unictype/pr_join_control.c: New file.
6961         * lib/unictype/pr_left_of_pair.c: New file.
6962         * lib/unictype/pr_line_separator.c: New file.
6963         * lib/unictype/pr_logical_order_exception.c: New file.
6964         * lib/unictype/pr_lowercase.c: New file.
6965         * lib/unictype/pr_math.c: New file.
6966         * lib/unictype/pr_non_break.c: New file.
6967         * lib/unictype/pr_not_a_character.c: New file.
6968         * lib/unictype/pr_numeric.c: New file.
6969         * lib/unictype/pr_other_alphabetic.c: New file.
6970         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
6971         * lib/unictype/pr_other_grapheme_extend.c: New file.
6972         * lib/unictype/pr_other_id_continue.c: New file.
6973         * lib/unictype/pr_other_id_start.c: New file.
6974         * lib/unictype/pr_other_lowercase.c: New file.
6975         * lib/unictype/pr_other_math.c: New file.
6976         * lib/unictype/pr_other_uppercase.c: New file.
6977         * lib/unictype/pr_paired_punctuation.c: New file.
6978         * lib/unictype/pr_paragraph_separator.c: New file.
6979         * lib/unictype/pr_pattern_syntax.c: New file.
6980         * lib/unictype/pr_pattern_white_space.c: New file.
6981         * lib/unictype/pr_private_use.c: New file.
6982         * lib/unictype/pr_punctuation.c: New file.
6983         * lib/unictype/pr_quotation_mark.c: New file.
6984         * lib/unictype/pr_radical.c: New file.
6985         * lib/unictype/pr_sentence_terminal.c: New file.
6986         * lib/unictype/pr_soft_dotted.c: New file.
6987         * lib/unictype/pr_space.c: New file.
6988         * lib/unictype/pr_terminal_punctuation.c: New file.
6989         * lib/unictype/pr_test.c: New file.
6990         * lib/unictype/pr_titlecase.c: New file.
6991         * lib/unictype/pr_unassigned_code_value.c: New file.
6992         * lib/unictype/pr_unified_ideograph.c: New file.
6993         * lib/unictype/pr_uppercase.c: New file.
6994         * lib/unictype/pr_variation_selector.c: New file.
6995         * lib/unictype/pr_white_space.c: New file.
6996         * lib/unictype/pr_xid_continue.c: New file.
6997         * lib/unictype/pr_xid_start.c: New file.
6998         * lib/unictype/pr_zero_width.c: New file.
6999         * lib/unictype/scripts.c: New file.
7000         * lib/unictype/sy_c_ident.c: New file.
7001         * lib/unictype/sy_c_whitespace.c: New file.
7002         * lib/unictype/sy_java_ident.c: New file.
7003         * lib/unictype/sy_java_whitespace.c: New file.
7004
7005         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
7006         Unicode 5.0.0.
7007         * lib/unictype/blocks.h: Likewise.
7008         * lib/unictype/categ_C.h: Likewise.
7009         * lib/unictype/categ_Cc.h: Likewise.
7010         * lib/unictype/categ_Cf.h: Likewise.
7011         * lib/unictype/categ_Cn.h: Likewise.
7012         * lib/unictype/categ_Co.h: Likewise.
7013         * lib/unictype/categ_Cs.h: Likewise.
7014         * lib/unictype/categ_L.h: Likewise.
7015         * lib/unictype/categ_Ll.h: Likewise.
7016         * lib/unictype/categ_Lm.h: Likewise.
7017         * lib/unictype/categ_Lo.h: Likewise.
7018         * lib/unictype/categ_Lt.h: Likewise.
7019         * lib/unictype/categ_Lu.h: Likewise.
7020         * lib/unictype/categ_M.h: Likewise.
7021         * lib/unictype/categ_Mc.h: Likewise.
7022         * lib/unictype/categ_Me.h: Likewise.
7023         * lib/unictype/categ_Mn.h: Likewise.
7024         * lib/unictype/categ_N.h: Likewise.
7025         * lib/unictype/categ_Nd.h: Likewise.
7026         * lib/unictype/categ_Nl.h: Likewise.
7027         * lib/unictype/categ_No.h: Likewise.
7028         * lib/unictype/categ_P.h: Likewise.
7029         * lib/unictype/categ_Pc.h: Likewise.
7030         * lib/unictype/categ_Pd.h: Likewise.
7031         * lib/unictype/categ_Pe.h: Likewise.
7032         * lib/unictype/categ_Pf.h: Likewise.
7033         * lib/unictype/categ_Pi.h: Likewise.
7034         * lib/unictype/categ_Po.h: Likewise.
7035         * lib/unictype/categ_Ps.h: Likewise.
7036         * lib/unictype/categ_S.h: Likewise.
7037         * lib/unictype/categ_Sc.h: Likewise.
7038         * lib/unictype/categ_Sk.h: Likewise.
7039         * lib/unictype/categ_Sm.h: Likewise.
7040         * lib/unictype/categ_So.h: Likewise.
7041         * lib/unictype/categ_Z.h: Likewise.
7042         * lib/unictype/categ_Zl.h: Likewise.
7043         * lib/unictype/categ_Zp.h: Likewise.
7044         * lib/unictype/categ_Zs.h: Likewise.
7045         * lib/unictype/categ_of.h: Likewise.
7046         * lib/unictype/combining.h: Likewise.
7047         * lib/unictype/ctype_alnum.h: Likewise.
7048         * lib/unictype/ctype_alpha.h: Likewise.
7049         * lib/unictype/ctype_blank.h: Likewise.
7050         * lib/unictype/ctype_cntrl.h: Likewise.
7051         * lib/unictype/ctype_digit.h: Likewise.
7052         * lib/unictype/ctype_graph.h: Likewise.
7053         * lib/unictype/ctype_lower.h: Likewise.
7054         * lib/unictype/ctype_print.h: Likewise.
7055         * lib/unictype/ctype_punct.h: Likewise.
7056         * lib/unictype/ctype_space.h: Likewise.
7057         * lib/unictype/ctype_upper.h: Likewise.
7058         * lib/unictype/ctype_xdigit.h: Likewise.
7059         * lib/unictype/decdigit.h: Likewise.
7060         * lib/unictype/digit.h: Likewise.
7061         * lib/unictype/mirror.h: Likewise.
7062         * lib/unictype/numeric.h: Likewise.
7063         * lib/unictype/pr_alphabetic.h: Likewise.
7064         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7065         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7066         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7067         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7068         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7069         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7070         * lib/unictype/pr_bidi_control.h: Likewise.
7071         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7072         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7073         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7074         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7075         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7076         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7077         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7078         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7079         * lib/unictype/pr_bidi_pdf.h: Likewise.
7080         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7081         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7082         * lib/unictype/pr_combining.h: Likewise.
7083         * lib/unictype/pr_composite.h: Likewise.
7084         * lib/unictype/pr_currency_symbol.h: Likewise.
7085         * lib/unictype/pr_dash.h: Likewise.
7086         * lib/unictype/pr_decimal_digit.h: Likewise.
7087         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7088         * lib/unictype/pr_deprecated.h: Likewise.
7089         * lib/unictype/pr_diacritic.h: Likewise.
7090         * lib/unictype/pr_extender.h: Likewise.
7091         * lib/unictype/pr_format_control.h: Likewise.
7092         * lib/unictype/pr_grapheme_base.h: Likewise.
7093         * lib/unictype/pr_grapheme_extend.h: Likewise.
7094         * lib/unictype/pr_grapheme_link.h: Likewise.
7095         * lib/unictype/pr_hex_digit.h: Likewise.
7096         * lib/unictype/pr_hyphen.h: Likewise.
7097         * lib/unictype/pr_id_continue.h: Likewise.
7098         * lib/unictype/pr_id_start.h: Likewise.
7099         * lib/unictype/pr_ideographic.h: Likewise.
7100         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7101         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7102         * lib/unictype/pr_ignorable_control.h: Likewise.
7103         * lib/unictype/pr_iso_control.h: Likewise.
7104         * lib/unictype/pr_join_control.h: Likewise.
7105         * lib/unictype/pr_left_of_pair.h: Likewise.
7106         * lib/unictype/pr_line_separator.h: Likewise.
7107         * lib/unictype/pr_logical_order_exception.h: Likewise.
7108         * lib/unictype/pr_lowercase.h: Likewise.
7109         * lib/unictype/pr_math.h: Likewise.
7110         * lib/unictype/pr_non_break.h: Likewise.
7111         * lib/unictype/pr_not_a_character.h: Likewise.
7112         * lib/unictype/pr_numeric.h: Likewise.
7113         * lib/unictype/pr_other_alphabetic.h: Likewise.
7114         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7115         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7116         * lib/unictype/pr_other_id_continue.h: Likewise.
7117         * lib/unictype/pr_other_id_start.h: Likewise.
7118         * lib/unictype/pr_other_lowercase.h: Likewise.
7119         * lib/unictype/pr_other_math.h: Likewise.
7120         * lib/unictype/pr_other_uppercase.h: Likewise.
7121         * lib/unictype/pr_paired_punctuation.h: Likewise.
7122         * lib/unictype/pr_paragraph_separator.h: Likewise.
7123         * lib/unictype/pr_pattern_syntax.h: Likewise.
7124         * lib/unictype/pr_pattern_white_space.h: Likewise.
7125         * lib/unictype/pr_private_use.h: Likewise.
7126         * lib/unictype/pr_punctuation.h: Likewise.
7127         * lib/unictype/pr_quotation_mark.h: Likewise.
7128         * lib/unictype/pr_radical.h: Likewise.
7129         * lib/unictype/pr_sentence_terminal.h: Likewise.
7130         * lib/unictype/pr_soft_dotted.h: Likewise.
7131         * lib/unictype/pr_space.h: Likewise.
7132         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7133         * lib/unictype/pr_titlecase.h: Likewise.
7134         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7135         * lib/unictype/pr_unified_ideograph.h: Likewise.
7136         * lib/unictype/pr_uppercase.h: Likewise.
7137         * lib/unictype/pr_variation_selector.h: Likewise.
7138         * lib/unictype/pr_white_space.h: Likewise.
7139         * lib/unictype/pr_xid_continue.h: Likewise.
7140         * lib/unictype/pr_xid_start.h: Likewise.
7141         * lib/unictype/pr_zero_width.h: Likewise.
7142         * lib/unictype/scripts.h: Likewise.
7143         * lib/unictype/scripts_byname.gperf: Likewise.
7144         * lib/unictype/sy_c_ident.h: Likewise.
7145         * lib/unictype/sy_c_whitespace.h: Likewise.
7146         * lib/unictype/sy_java_ident.h: Likewise.
7147         * lib/unictype/sy_java_whitespace.h: Likewise.
7148
7149         * lib/unictype/Makefile: New file.
7150         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7151         glibc.
7152         * lib/unictype/3level.h: New file, copied from glibc.
7153         * lib/unictype/3levelbit.h: New file.
7154
7155 2007-11-11  Bruno Haible  <bruno@clisp.org>
7156
7157         * modules/gperf: New file.
7158         * modules/iconv_open (Depends-on): Add it.
7159         (Makefile.am): Remove the GPERF definition.
7160
7161 2007-11-11  Bruno Haible  <bruno@clisp.org>
7162
7163         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7164         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7165
7166 2007-11-11  Bruno Haible  <bruno@clisp.org>
7167
7168         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7169         (usage): Remove function.
7170
7171 2007-11-11  Bruno Haible  <bruno@clisp.org>
7172
7173         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7174         gl_FUNC_CEILF_LIBS.
7175         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7176         gl_FUNC_CEIL_LIBS.
7177         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7178         gl_FUNC_CEILL_LIBS.
7179         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7180         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7181         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7182
7183 2007-11-11  Bruno Haible  <bruno@clisp.org>
7184
7185         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7186         roundf were declared but do not exist on functions.
7187         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7188         roundl were declared but do not exist on functions.
7189         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7190         HAVE_FLOORL_AND_CEILL, respectively.
7191         Needed for Sun C on Solaris 10.
7192
7193 2007-11-11  Bruno Haible  <bruno@clisp.org>
7194
7195         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7196         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7197         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7198         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7200         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7201         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7202         HAVE_DECL_ROUNDF.
7203         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7204         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7206         of HAVE_DECL_ROUND*.
7207         * modules/math (Makefile.am): Update.
7208
7209 2007-11-10  Bruno Haible  <bruno@clisp.org>
7210
7211         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7212         ptrdiff_t as m4/intl.m4.
7213
7214 2007-11-10  Jim Meyering  <meyering@redhat.com>
7215
7216         Avoid link failure for the argmatch test.
7217         * tests/test-argmatch.c (usage): Define function to avoid a link
7218         failure: argmatch_die requires a usage function.
7219
7220 2007-11-09  Bruno Haible  <bruno@clisp.org>
7221
7222         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7223         * doc/functions/vsnprintf.texi: Likewise.
7224         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7225         with a size argument < 2.
7226
7227 2007-11-09  Bruno Haible  <bruno@clisp.org>
7228
7229         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7230         buffer. Fixes an inefficiency introduced on 2007-11-03.
7231
7232 2007-11-09  Bruno Haible  <bruno@clisp.org>
7233
7234         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7235         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7236
7237 2007-11-08  Jim Meyering  <meyering@redhat.com>
7238
7239         Change cache variable name prefix "jm_" to "gl_" everywhere.
7240         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7241         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7242         * m4/uptime.m4: s/gl_/jm_/
7243
7244 2007-11-07  Bruno Haible  <bruno@clisp.org>
7245
7246         Update to GNU gettext 0.17.
7247         * m4/intl.m4: Update to GNU gettext 0.17.
7248         * m4/po.m4: Likewise.
7249         * modules/gettext (Files): Remove m4/ulonglong.m4.
7250         (configure.ac): Require gettext infrastructure from version 0.17.
7251
7252 2007-11-06  Bruno Haible  <bruno@clisp.org>
7253
7254         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7255         symbolic values are not defined in a public header.
7256         * lib/freadable.c (freadable) [QNX]: Likewise.
7257         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7258         * lib/freading.c (freading) [QNX]: Likewise.
7259         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7260         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7261         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7262         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7263         Reported by Alain Magloire.
7264
7265         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7266
7267 2007-11-05  Bruno Haible  <bruno@clisp.org>
7268
7269         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7270         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7271         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7272         Reported by Eric Blake.
7273
7274 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7275             Bruno Haible  <bruno@clisp.org>
7276
7277         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7278         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7279         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7280         (malloc): Undefine also before including <stdlib.h>.
7281         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7282         Needed on OSF/1 4.0.
7283
7284 2007-11-05  Jim Meyering  <meyering@redhat.com>
7285
7286         git-version-gen: sync from coreutils.
7287         * build-aux/git-version-gen: Add comments.
7288         Change the first '-' to '.' in the snapshot version string,
7289         e.g., 6.9-377-08144 -> 6.9.377-08144
7290         Remove first parameter.
7291         Don't declare a version "-dirty" merely because a time
7292         stamp has changed.
7293
7294 2007-11-04  Bruno Haible  <bruno@clisp.org>
7295
7296         * lib/lock.h: Protect all macro definitions containing an 'if'
7297         statement through a "do { ... } while (0)".
7298         * lib/tls.h: Likewise.
7299
7300 2007-11-04  Bruno Haible  <bruno@clisp.org>
7301
7302         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7303
7304 2007-11-04  Bruno Haible  <bruno@clisp.org>
7305
7306         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7307         * modules/fprintf-posix (Depends-on): Add nocrash.
7308         * modules/snprintf-posix (Depends-on): Likewise.
7309         * modules/sprintf-posix (Depends-on): Likewise.
7310         * modules/vasnprintf-posix (Depends-on): Likewise.
7311         * modules/vasprintf-posix (Depends-on): Likewise.
7312         * modules/vfprintf-posix (Depends-on): Likewise.
7313         * modules/vsnprintf-posix (Depends-on): Likewise.
7314         * modules/vsprintf-posix (Depends-on): Likewise.
7315         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7316         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7317         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7318         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7319         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7320         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7321         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7322
7323 2007-11-04  Bruno Haible  <bruno@clisp.org>
7324
7325         * modules/nocrash: New file.
7326         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7327         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7328
7329 2007-11-04  Bruno Haible  <bruno@clisp.org>
7330
7331         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7332         precision handling.
7333         * tests/test-vasprintf-posix.c (test_function): Likewise.
7334         * tests/test-snprintf-posix.h (test_function): Likewise.
7335         * tests/test-sprintf-posix.h (test_function): Likewise.
7336
7337         Fix *printf behaviour for large precisions on mingw and BeOS.
7338         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7339         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7341         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7343         gl_PRINTF_PRECISION and test its result. Invoke
7344         gl_PREREQ_VASNPRINTF_PRECISION.
7345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7346         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7347         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7348         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7349         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7351         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7352         * doc/functions/fprintf.texi: Update.
7353         * doc/functions/printf.texi: Update.
7354         * doc/functions/snprintf.texi: Update.
7355         * doc/functions/sprintf.texi: Update.
7356         * doc/functions/vfprintf.texi: Update.
7357         * doc/functions/vprintf.texi: Update.
7358         * doc/functions/vsnprintf.texi: Update.
7359         * doc/functions/vsprintf.texi: Update.
7360
7361 2007-11-04  Bruno Haible  <bruno@clisp.org>
7362
7363         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7364
7365 2007-11-04  Bruno Haible  <bruno@clisp.org>
7366
7367         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7368         Reported by Sylvain Beucler <beuc@gnu.org>.
7369
7370 2007-11-03  Bruno Haible  <bruno@clisp.org>
7371
7372         * tests/test-fprintf-posix2.sh: New file.
7373         * tests/test-fprintf-posix2.c: New file.
7374         * modules/fprintf-posix-tests (Files): Add them.
7375         (TESTS): Add test-fprintf-posix2.sh.
7376         (configure.ac): Check for getrlimit and setrlimit.
7377         (check_PROGRAMS): Add test-fprintf-posix2.
7378
7379         * tests/test-printf-posix2.sh: New file.
7380         * tests/test-printf-posix2.c: New file.
7381         * modules/printf-posix-tests (Files): Add them.
7382         (TESTS): Add test-printf-posix2.sh.
7383         (configure.ac): Check for getrlimit and setrlimit.
7384         (check_PROGRAMS): Add test-printf-posix2.
7385
7386         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7387         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7388         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7389         (decode_double): New function, copied from decode_long_double.
7390         (scale10_round_decimal_decoded): New function, extracted from
7391         scale10_round_decimal_long_double.
7392         (scale10_round_decimal_long_double): Use it.
7393         (scale10_round_decimal_double): New function.
7394         (floorlog10): New function.
7395         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7397         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7399         gl_PRINTF_ENOMEM and test its result. Invoke
7400         gl_PREREQ_VASNPRINTF_ENOMEM.
7401         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7408         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7409         * modules/snprintf-posix (Depends-on): Likewise.
7410         * modules/sprintf-posix (Depends-on): Likewise.
7411         * modules/vasnprintf-posix (Depends-on): Likewise.
7412         * modules/vasprintf-posix (Depends-on): Likewise.
7413         * modules/vfprintf-posix (Depends-on): Likewise.
7414         * modules/vsnprintf-posix (Depends-on): Likewise.
7415         * modules/vsprintf-posix (Depends-on): Likewise.
7416         * doc/functions/fprintf.texi: Update.
7417         * doc/functions/printf.texi: Update.
7418         * doc/functions/snprintf.texi: Update.
7419         * doc/functions/sprintf.texi: Update.
7420         * doc/functions/vfprintf.texi: Update.
7421         * doc/functions/vprintf.texi: Update.
7422         * doc/functions/vsnprintf.texi: Update.
7423         * doc/functions/vsprintf.texi: Update.
7424
7425 2007-11-03  Bruno Haible  <bruno@clisp.org>
7426
7427         * modules/frexp-nolibm-tests: New file.
7428
7429         * modules/frexp-nolibm: New file.
7430         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7431
7432 2007-11-03  Bruno Haible  <bruno@clisp.org>
7433
7434         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7435         value is C99 compliant.
7436         Needed for OSF/1 5.1.
7437
7438 2007-11-03  Bruno Haible  <bruno@clisp.org>
7439
7440         Fix out-of-memory handling of vasnprintf.
7441         * lib/printf-parse.c: Include <errno.h>.
7442         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7443         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7444         is already set.
7445
7446 2007-11-02  Eric Blake  <ebb9@byu.net>
7447
7448         Fix tests on cygwin.
7449         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7450
7451 2007-11-01  Bruno Haible  <bruno@clisp.org>
7452
7453         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7454         warning.
7455         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7456         needed for POSIX compatibility.
7457
7458 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7459
7460         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7461         for compatibility with GNU.
7462
7463 2007-11-01  Bruno Haible  <bruno@clisp.org>
7464
7465         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7466         (putenv): Renamed from rpl_putenv. Change argument type from
7467         'const char *' to 'char *'.
7468         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7469         of defining putenv in config.h, just set REPLACE_PUTENV.
7470         * modules/putenv (Depends-on): Add stdlib.
7471         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7472         (Include): Use <stdlib.h>.
7473         * lib/stdlib.in.h (putenv): New declaration.
7474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7475         REPLACE_PUTENV.
7476         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7477         REPLACE_PUTENV.
7478         Needed for MacOS X 10.5.0.
7479         Reported by Peter O'Gorman <peter@pogma.com>.
7480
7481 2007-11-01  Jim Meyering  <meyering@redhat.com>
7482
7483         Treat an empty date string exactly like "0".
7484         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7485         if the remaining date string (to be parsed) is empty, use "0".
7486         Reported by Mischa Molhoek and discussed in this thread:
7487         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7488
7489 2007-10-31  Bruno Haible  <bruno@clisp.org>
7490
7491         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7492         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7493         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7494         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7495         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7496         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7497
7498 2007-10-31  Bruno Haible  <bruno@clisp.org>
7499
7500         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7501         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7502         (AC_TYPE_LONG_LONG_INT): Use it.
7503         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7504         it as well.
7505         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7506         to m4/longlong.m4.
7507         * modules/stdint (Files): Remove m4/ulonglong.m4.
7508         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7509         m4/ulonglong.m4.
7510         * modules/strtoumax (Files): Likewise.
7511
7512 2007-10-30  Bruno Haible  <bruno@clisp.org>
7513
7514         * modules/xvasprintf-posix: New file.
7515         Suggested by Eric Blake.
7516
7517 2007-10-30  Bruno Haible  <bruno@clisp.org>
7518
7519         * modules/xprintf-posix-tests: New file.
7520         * tests/test-xprintf-posix.sh: New file.
7521         * tests/test-xprintf-posix.c: New file.
7522         * tests/test-xfprintf-posix.c: New file.
7523
7524         * modules/xprintf-posix: New file.
7525
7526 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7527
7528         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7529         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7530         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7531
7532 2007-10-29  Bruno Haible  <bruno@clisp.org>
7533
7534         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7535         contain the special marker '_cv_'.
7536         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7537         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7538         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7539         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7540         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7541         Reported by Ralf Wildenhues.
7542
7543 2007-10-29  Bruno Haible  <bruno@clisp.org>
7544
7545         * gnulib-tool (func_import): When --lgpl is not specified, set
7546         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7547         GPLv3.
7548         Reported by Simon Josefsson.
7549
7550 2007-10-28  Bruno Haible  <bruno@clisp.org>
7551
7552         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7553         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7554         HAVE_DECL_ISFINITE.
7555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7556         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7557         HAVE_DECL_ISFINITE.
7558
7559 2007-10-28  Bruno Haible  <bruno@clisp.org>
7560
7561         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7562         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7563
7564 2007-10-28  Bruno Haible  <bruno@clisp.org>
7565
7566         Fix link errors with Sun C 5.0 on Solaris 10.
7567         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7568         function is declared but not present in the compiler's libm.
7569         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7570         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7571         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7572         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7573         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7574         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7575         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7577         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7578         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7579         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7580         HAVE_DECL_FLOORL.
7581
7582 2007-10-28  Bruno Haible  <bruno@clisp.org>
7583
7584         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7585         gl_FUNC_FLOORL. Cache the result.
7586         (gl_FUNC_FLOORL): Use it.
7587         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7588         gl_FUNC_CEILL. Cache the result.
7589         (gl_FUNC_CEILL): Use it.
7590
7591         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7592         gl_FUNC_FLOOR. Cache the result.
7593         (gl_FUNC_FLOOR): Use it.
7594         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7595         gl_FUNC_CEIL. Cache the result.
7596         (gl_FUNC_CEIL): Use it.
7597
7598         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7599         gl_FUNC_FLOORF. Cache the result.
7600         (gl_FUNC_FLOORF): Use it.
7601         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7602         gl_FUNC_CEILF. Cache the result.
7603         (gl_FUNC_CEILF): Use it.
7604
7605 2007-10-28  Bruno Haible  <bruno@clisp.org>
7606
7607         * gnulib-tool: Allow specifying the LGPL version number through
7608         --lgpl=2 or --lgpl=3.
7609         (func_usage): Document --lgpl with argument.
7610         Handle --lgpl=... arguments.
7611         (func_import): Recognize also gl_LGPL calls with an argument. When
7612         --lgpl=2 is used and the module's license is just LGPL, report an
7613         error. Set sed_transform_lib_file according to the lgpl variable. In
7614         the generated files, use --lgpl or gl_LGPL invocations with argument,
7615         if necessary.
7616         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7617         an LGPv2+ license.
7618         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7619         gl_LGPL macro.
7620
7621 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7622             Bruno Haible  <bruno@clisp.org>
7623
7624         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7625         (u16_uctomb_aux): Likewise.
7626         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7627         !HAVE_INLINE.
7628         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7629
7630 2007-10-28  Bruno Haible  <bruno@clisp.org>
7631
7632         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7633         Invoke AM_GETTEXT_OPTION if it exists.
7634         * modules/vasprintf: Likewise.
7635         * modules/verror: Likewise.
7636         * modules/xprintf: Likewise.
7637         * modules/xvasprintf: Likewise.
7638
7639 2007-10-27  Ben Pfaff  <blp@gnu.org>
7640
7641         * lib/math.in.h: Define isfinite macro and prototypes for
7642         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7643         implementations.
7644         * m4/math_h.m4: New substitutions for isfinite module.
7645         * lib/isfinite.c: New file.
7646         * m4/isfinite.m4: New file.
7647         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7648         * modules/isfinite: New file.
7649         * modules/isfinite-tests: New file.
7650         * tests/tests-isfinite.c: New file.
7651         * doc/functions/isfinite.texi: Mention isfinite module.
7652         * MODULES.html.sh: Mention new module.
7653
7654 2007-10-27  Ben Pfaff  <blp@gnu.org>
7655
7656         Ralf Wildenhues reported that Tru64 4.0D declares the round
7657         functions but does not have definitions.
7658         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7659         cannot be found in any library, set the output variable to
7660         "missing" instead of "".
7661         * m4/round.m4: Also use our substitute if we cannot find round in
7662         any library, even if it is declared.
7663         * m4/roundf.m4: Likewise for roundf.
7664         * m4/roundl.m4: Likewise for roundl.
7665         * lib/math.in.h: Undefine roundf, round, roundl before defining
7666         their replacements, to allow for hypothetical systems where these
7667         may be defined as macros but not available in libraries.
7668
7669 2007-10-27  Bruno Haible  <bruno@clisp.org>
7670
7671         * doc/gnulib.texi: Invoke @firstparagraphindent.
7672         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7673         changes in gnulib.
7674         (Source changes): New section.
7675
7676 2007-10-26  Bruno Haible  <bruno@clisp.org>
7677
7678         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7679         borrowed from autoconf.
7680
7681 2007-10-26  Bruno Haible  <bruno@clisp.org>
7682
7683         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7684         strerror returned the empty string. Needed on HP-UX 11.00.
7685
7686 2007-10-24  Micah Cowan  <micah@cowan.name>
7687
7688         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7689         * build-aux/bootstrap: Remove support for now-unnecessary option,
7690         --cvs-user, and envvars CVS_USER, CVS_RSH.
7691
7692 2007-10-24  Jim Meyering  <meyering@redhat.com>
7693
7694         Avoid diagnostics from sha1sum when there is no cached checksum.
7695         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7696         if the po.s1 file hasn't been created yet.
7697
7698         * build-aux/bootstrap: Sync from coreutils:
7699         2007-10-24  Jim Meyering  <meyering@redhat.com>
7700         Get gnulib from the git repository, not from an obsolete cvs one.
7701         * build-aux/bootstrap: Suggestion from Micah Cowan.
7702         2007-10-04  Jim Meyering  <jim@meyering.net>
7703         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7704         (update_po_files): Work also when there are no .po files in po/.
7705
7706 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7707
7708         * README: Append ".git" to git and cg examples.
7709         Problem reported by Benoit Sigoure.
7710
7711 2007-10-23  Micah Cowan  <micah@cowan.name>
7712
7713         * users.txt: Add wget.
7714
7715 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7716
7717         Fix linking of some unistdio tests on FreeBSD.
7718         * modules/unistdio/u16-vsnprintf-tests
7719         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7720         * modules/unistdio/u16-vsprintf-tests
7721         (test_u16_vsnprintf1_LDADD): Likewise.
7722         * modules/unistdio/u32-vsnprintf-tests
7723         (test_u32_vsnprintf1_LDADD): Likewise.
7724         * modules/unistdio/u32-vsprintf-tests
7725         (test_u32_vsprintf1_LDADD): Likewise.
7726         * modules/unistdio/u8-vsnprintf-tests
7727         (test_u8_vsnprintf1_LDADD): Likewise.
7728         * modules/unistdio/u8-vsprintf-tests
7729         (test_u8_vsprintf1_LDADD): Likewise.
7730         * modules/unistdio/ulc-vsnprintf-tests
7731         (test_ulc_vsnprintf1_LDADD): Likewise.
7732         * modules/unistdio/ulc-vsprintf-tests
7733         (test_ulc_vsprintf1_LDADD): Likewise.
7734
7735         Fix linking of some uniconv tests on FreeBSD.
7736         * modules/uniconv/u16-conv-from-enc-tests
7737         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
7738         * modules/uniconv/u16-conv-to-enc-tests
7739         (test_u16_conv_to_enc_LDADD): Likewise.
7740         * modules/uniconv/u16-strconv-from-enc-tests
7741         (test_u16_strconv_from_enc_LDADD): Likewise.
7742         * modules/uniconv/u16-strconv-to-enc-tests
7743         (test_u16_strconv_to_enc_LDADD): Likewise.
7744         * modules/uniconv/u32-conv-from-enc-tests
7745         (test_u32_conv_from_enc_LDADD): Likewise.
7746         * modules/uniconv/u32-conv-to-enc-tests
7747         (test_u32_conv_to_enc_LDADD): Likewise.
7748         * modules/uniconv/u32-strconv-from-enc-tests
7749         (test_u32_strconv_from_enc_LDADD): Likewise.
7750         * modules/uniconv/u32-strconv-to-enc-tests
7751         (test_u32_strconv_to_enc_LDADD): Likewise.
7752         * modules/uniconv/u8-conv-from-enc-tests
7753         (test_u8_conv_from_enc_LDADD): Likewise.
7754         * modules/uniconv/u8-conv-to-enc-tests
7755         (test_u8_conv_to_enc_LDADD): Likewise.
7756         * modules/uniconv/u8-strconv-from-enc-tests
7757         (test_u8_strconv_from_enc_LDADD): Likewise.
7758         * modules/uniconv/u8-strconv-to-enc-tests
7759         (test_u8_strconv_to_enc_LDADD): Likewise.
7760
7761 2007-10-22  Bruno Haible  <bruno@clisp.org>
7762
7763         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
7764         size.
7765
7766 2007-10-22  Eric Blake  <ebb9@byu.net>
7767
7768         Tweak x*printf documentation.
7769         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
7770         variable name and comments.
7771         Suggested by Bruno Haible.
7772
7773 2007-10-22  Bruno Haible  <bruno@clisp.org>
7774
7775         * lib/acl.c (copy_acl): Fix file name in comment.
7776
7777 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7778
7779         Fix Tru64 problem with stdbool.h.
7780         * lib/stdbool.in.h (false, true):
7781         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
7782         Don't declare as an enum in this situation; it runs afoul of Tru64.
7783         Problem reported by Steven M. Schweda in
7784         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
7785
7786 2007-10-22  Eric Blake  <ebb9@byu.net>
7787
7788         Also wrap vf?printf.
7789         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
7790         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
7791         (xvprintf, xvfprintf): New functions.
7792
7793 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7794
7795         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
7796         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
7797
7798         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
7799         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
7800
7801 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7802
7803         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
7804         by Bruno Haible.
7805
7806 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7807
7808         * lib/getloadavg.c
7809         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
7810         Undef `sys' after including sys/table.h, for Tru64 4.0D.
7811
7812         * tests/test-i-ring.c: Work for C89.
7813
7814 2007-10-22  Bruno Haible  <bruno@clisp.org>
7815
7816         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
7817         -1u, in preprocessor expression, so that we don't test for the bug
7818         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
7819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7820
7821 2007-10-22  Eric Blake  <ebb9@byu.net>
7822
7823         * tests/test-yesno.sh: Silence stderr during test.
7824
7825 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7826
7827         * modules/crypto/gc-camellia: New file.
7828
7829         * m4/gc-camellia.m4: New file.
7830
7831         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
7832
7833         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
7834
7835 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7836
7837         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
7838         --help to stdout.  Reported by sms@antinode.org (Steven
7839         M. Schweda).
7840
7841 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7842
7843         * users.txt: Fix link to libksba.
7844
7845 2007-10-21  Ben Pfaff  <blp@gnu.org>
7846
7847         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
7848         round.c roundf implementation that depends on floorf and ceilf to
7849         be tested unconditionally.
7850
7851 2007-10-21  Ben Pfaff  <blp@gnu.org>
7852
7853         * m4/check-libm-func.m4: Removed.
7854         * m4/check-math-lib.m4: New file.
7855         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
7856         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
7857         definition and lack of AC_LIBOBJ([roundf]).
7858         * m4/roundl.m4: Ditto, and similarly for roundl.
7859         * modules/round: Reference new m4 file.
7860         * modules/roundf: Ditto.
7861         * modules/roundl: Ditto.
7862         * tests/test-round2.c (main): Use ROUND instead of round.
7863         Bug report from Bruno Haible.
7864
7865 2007-10-21  Bruno Haible  <bruno@clisp.org>
7866
7867         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
7868         context.
7869
7870 2007-10-21  Bruno Haible  <bruno@clisp.org>
7871
7872         * tests/test-wcwidth.c (main): Allow negative result for some control
7873         characters.
7874
7875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
7876         Needed on OSF/1 5.1.
7877
7878 2007-10-21  Bruno Haible  <bruno@clisp.org>
7879
7880         * tests/test-floorf1.c: Include isnanf.h.
7881         (main): Use isnanf() instead of isnan().
7882         * tests/test-ceilf1.c: Include isnanf.h.
7883         (main): Use isnanf() instead of isnan().
7884         * tests/test-truncf1.c: Include isnanf.h.
7885         (main): Use isnanf() instead of isnan().
7886         * tests/test-roundf1.c: Include isnanf.h.
7887         (main): Use isnanf() instead of isnan().
7888
7889 2007-10-21  Eric Blake  <ebb9@byu.net>
7890
7891         * users.txt: Update URL for m4.
7892
7893 2007-10-21  Bruno Haible  <bruno@clisp.org>
7894
7895         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
7896
7897 2007-10-21  Bruno Haible  <bruno@clisp.org>
7898
7899         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
7900         Git's management files if the CVS files are not present.
7901
7902 2007-10-20  Bruno Haible  <bruno@clisp.org>
7903
7904         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
7905         gcc-3.4.x.
7906
7907 2007-10-20  Ben Pfaff  <blp@gnu.org>
7908
7909         * lib/math.in.h: Declare round, roundf, roundl if we are providing
7910         implementations.
7911         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
7912         * lib/round.c: New file.
7913         * lib/roundf.c: New file.
7914         * lib/roundl.c: New file.
7915         * m4/round.m4: New file.
7916         * m4/roundf.m4: New file.
7917         * m4/roundl.m4: New file.
7918         * m4/check-libm-func-m4: New file.
7919         * modules/math: Replace round, roundf, roundl related @VARS@ in
7920         math.in.h.
7921         * modules/round: New file.
7922         * modules/round-tests: New file.
7923         * modules/roundf: New file.
7924         * modules/roundf-tests: New file.
7925         * modules/roundl: New file.
7926         * modules/roundl-tests: New file.
7927         * tests/test-round1.c: New file.
7928         * tests/test-round2.c: New file.
7929         * tests/test-roundf1.c: New file.
7930         * tests/test-roundf2.c: New file.
7931         * tests/test-roundl.c: New file.
7932         * doc/functions/round.texi: Mention round module.
7933         * doc/functions/roundf.texi: Mention roundf module.
7934         * doc/functions/roundl.texi: Mention roundl module.
7935         * MODULES.html.sh: Mention new modules.
7936         Thanks to Bruno Haible for suggestions.
7937
7938 2007-10-20  Jim Meyering  <meyering@redhat.com>
7939
7940         * lib/xprintf.c: Include <config.h> unconditionally.
7941
7942         Change xprintf's license to GPL.
7943         * modules/xprintf (License): s/LGPL/GPL/, since this module
7944         depends on modules (exit and exitfail) which are GPL.
7945         Suggestion from Bruno Haible.
7946
7947         xprintf fixes.
7948         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
7949         Use a clearer diagnostic.
7950         Patch from Bruno Haible.
7951
7952 2007-10-20  Bruno Haible  <bruno@clisp.org>
7953
7954         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
7955         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
7956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7957
7958 2007-10-20  Bruno Haible  <bruno@clisp.org>
7959
7960         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
7961         precision in the comparison result > x - 1 or similar.
7962         * tests/test-ceilf2.c (correct_result_p): Likewise.
7963         * tests/test-truncf2.c (correct_result_p): Likewise.
7964         * tests/test-trunc2.c (correct_result_p): Likewise.
7965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7966
7967 2007-10-20  Bruno Haible  <bruno@clisp.org>
7968
7969         * modules/ceil: New file.
7970         * m4/ceil.m4: New file.
7971         * doc/functions/ceil.texi: Mention the 'ceil' module.
7972
7973 2007-10-20  Bruno Haible  <bruno@clisp.org>
7974
7975         * modules/floor: New file.
7976         * m4/floor.m4: New file.
7977         * doc/functions/floor.texi: Mention the 'floor' module.
7978
7979 2007-10-20  Bruno Haible  <bruno@clisp.org>
7980
7981         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
7982         of %a.
7983         * modules/floorf-tests (Depends-on): Likewise.
7984         * modules/truncf-tests (Depends-on): Likewise.
7985         * modules/trunc-tests (Depends-on): Likewise.
7986         Reported by Ben Pfaff.
7987
7988 2007-10-19  Jim Meyering  <meyering@redhat.com>
7989
7990         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
7991         Don't bother testing specific errno values.  Just test ferror.
7992
7993         New module: xprintf
7994         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
7995
7996 2007-10-19  Bruno Haible  <bruno@clisp.org>
7997
7998         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
7999         syntax.
8000         * modules/javaexec (Makefile.am): Likewise.
8001         * modules/relocatable-prog (Makefile.am): Likewise.
8002         Suggested by Jim Meyering.
8003
8004 2007-10-18  Bruno Haible  <bruno@clisp.org>
8005
8006         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
8007         Reported by Jim Meyering.
8008
8009 2007-10-18  Eric Blake  <ebb9@byu.net>
8010
8011         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
8012
8013 2007-10-18  Bruno Haible  <bruno@clisp.org>
8014
8015         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
8016         the format string into writable memory. Needed in Fortify conditions.
8017
8018 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
8019             Bruno Haible  <bruno@clisp.org>
8020
8021         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
8022         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
8023         * modules/trim (Depends-on): Add mbchar.
8024         (configure.ac): Add gl_FUNC_MBRTOWC.
8025         (Makefile.am): Augment lib_SOURCES.
8026
8027 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
8028
8029         Modify glob.c to use fstatat and dirfd, to simplify it.
8030         Suggested by Eric Blake.
8031         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
8032         Don't include <stdbool.h>; not used.
8033         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
8034         (link_exists_p): Simplify implementation, since we can now assume
8035         dirfd and fstatat.
8036         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
8037
8038 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8039
8040         * gnulib-tool (func_get_dependencies): Fix sed script to
8041         match only tests.
8042
8043 2007-10-17  Bruno Haible  <bruno@clisp.org>
8044
8045         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
8046         allow locale names without encoding suffix.
8047         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8049
8050 2007-10-16  Bruno Haible  <bruno@clisp.org>
8051
8052         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
8053         * lib/getgroups.c (getgroups): Likewise.
8054         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
8055
8056 2007-10-16  Bruno Haible  <bruno@clisp.org>
8057
8058         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
8059         * modules/malloc-posix (License): Likewise.
8060         * modules/realloc-posix (License): Likewise.
8061         * modules/calloc-posix (License): Likewise.
8062         * modules/intprops (License): Change from GPL to LGPL, with
8063         Paul Eggert's approval.
8064
8065 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8066
8067         Merge glibc changes into lib/glob.c.
8068
8069         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
8070         2007-10-15 04:59:03 UTC.  Here are the changes:
8071
8072         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
8073
8074         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
8075
8076         * lib/glob.c: Add some branch prediction throughout.
8077
8078         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
8079
8080         [BZ #5103]
8081         * lib/glob.c (glob): Recognize patterns starting \/.
8082
8083         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
8084
8085         [BZ #3996]
8086         * lib/glob.c (attribute_hidden): Define if not defined.
8087         (glob): Unescape dirname, filename or username when needed and not
8088         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
8089         is NULL.  Handle unescaped [ in pattern without closing ].
8090         Don't pass GLOB_CHECK down to recursive glob for directories.
8091         (__glob_pattern_type): New function.
8092         (__glob_pattern_p): Implement using __glob_pattern_type.
8093         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
8094         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
8095         Remove unreachable code.
8096
8097         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
8098
8099         * lib/glob.c (glob_in_dir): Add some comments and asserts to
8100         explain why there are no leaks.
8101
8102         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
8103
8104         [BZ #3253]
8105         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
8106         time, rather allocate increasingly bigger arrays of pointers, if
8107         possible with alloca, if too large with malloc.
8108
8109 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8110
8111         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
8112         Problem reported by H.Merijn Brand in
8113         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
8114         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
8115         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8116
8117 2007-10-15  Bruno Haible  <bruno@clisp.org>
8118
8119         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8120         with explicit rpl_ prefix.
8121         * lib/fopen.c (fopen): Likewise.
8122         * lib/freopen.c (freopen): Likewise.
8123         * lib/iconv.c (iconv): Likewise.
8124         * lib/iconv_close.c (iconv_close): Likewise.
8125
8126 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8127
8128         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8129
8130 2007-10-15  Bruno Haible  <bruno@clisp.org>
8131
8132         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8133         <stddef.h> instead of <stdlib.h> since we only need NULL.
8134         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8135
8136 2007-10-15  Bruno Haible  <bruno@clisp.org>
8137
8138         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8139         Replace paragraph talking about LIBOBJS.
8140         Reported by Colin Watson <cjwatson@debian.org>.
8141
8142 2007-10-15  Bruno Haible  <bruno@clisp.org>
8143
8144         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8145         <stdlib.h> before using NULL.
8146
8147 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8148
8149         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8150         Reported by Albert Chin <china@thewrittenword.com>.
8151
8152 2007-10-14  Bruno Haible  <bruno@clisp.org>
8153
8154         * modules/iconv_open-utf-tests: New file.
8155         * tests/test-iconv-utf.c: New file.
8156
8157         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8158         * modules/iconv_open-utf: New file.
8159         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8160         (iconv, iconv_close): New declarations.
8161         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8162         be defined.
8163         (iconv_open): Add special handling of conversion between UTF-8 and
8164         UTF-{16,32}{BE,LE}.
8165         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8166         * lib/iconv_close.c: New file.
8167         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8168         gl_FUNC_ICONV_OPEN.
8169         (gl_FUNC_ICONV_OPEN): Use it.
8170         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8171         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8172         and REPLACE_ICONV_UTF.
8173         * modules/iconv_open (Depends-on): Add c-strcase.
8174         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8175         ICONV_CONST.
8176         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8177
8178 2007-10-13  Albert Chin  <china@thewrittenword.com>
8179             Bruno Haible  <bruno@clisp.org>
8180
8181         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8182         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8183
8184 2007-10-13  Bruno Haible  <bruno@clisp.org>
8185
8186         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8187         defined, use the ISO C99 inline semantics.
8188         * lib/argp.h (ARGP_EI): Likewise.
8189
8190 2007-10-13  Bruno Haible  <bruno@clisp.org>
8191
8192         Handle 'inline' change in gcc 4.3.0.
8193         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8194         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8195         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8196         argp_fmtstream_point): Disable 'extern' declaration if the function
8197         definition is going to be provided inline.
8198         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8199         semantics, not the ISO C99 inline semantics.
8200         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8201         'extern' declaration if the function definition is going to be provided
8202         inline.
8203         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8204         the GNU C inline semantics, not the ISO C99 inline semantics. With
8205         GCC 4.2, avoid a warning.
8206
8207 2007-10-13  Bruno Haible  <bruno@clisp.org>
8208
8209         * lib/freading.h (freading): Enable the use of __freading for
8210         glibc >= 2.7.
8211         * lib/freading.c (freading): Likewise.
8212
8213 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8214
8215         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8216         "warning: C99 inline functions are not supported; using GNU89".
8217
8218 2007-10-12  Bruno Haible  <bruno@clisp.org>
8219
8220         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8221         of 2.
8222         * tests/test-ceilf2.c: New file.
8223         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8224
8225         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8226         * modules/ceilf-tests: Update.
8227
8228 2007-10-12  Bruno Haible  <bruno@clisp.org>
8229
8230         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8231         of 2.
8232         * tests/test-floorf2.c: New file.
8233         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8234
8235         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8236         * modules/floorf-tests: Update.
8237
8238 2007-10-12  Bruno Haible  <bruno@clisp.org>
8239
8240         * tests/test-trunc2.c: New file.
8241         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8242
8243         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8244         * modules/trunc-tests: Update.
8245
8246 2007-10-12  Bruno Haible  <bruno@clisp.org>
8247
8248         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8249         of 2.
8250         * tests/test-truncf2.c: New file.
8251         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8252
8253         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8254         * modules/truncf-tests: Update.
8255
8256 2007-10-11  Eric Blake  <ebb9@byu.net>
8257
8258         Don't claim strerror is broken on Interix.
8259         * doc/functions/strerror.texi (strerror): Known broken systems are
8260         now Solaris 8, and not Interix.
8261         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8262         Interix on cross-compile.
8263         Reported by Martin Koeppe in
8264         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8265
8266 2007-10-11  Bruno Haible  <bruno@clisp.org>
8267
8268         * modules/i-ring-tests: New file.
8269         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8270         instead of assert.
8271
8272 2007-10-11  Bruno Haible  <bruno@clisp.org>
8273
8274         * modules/filenamecat-tests: New file.
8275         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8276         * lib/filenamecat.c: Remove test code.
8277
8278 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8281
8282         * lib/strerror.c: Include <string.h> always, to test interface,
8283         and to remove the need for the dummy.
8284         Include intprops.h to compute width instead of doing it ourselves
8285         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8286         (strerror): Define it to return NULL if there's no system strerror.
8287         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8288         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8289         ancient pre-strerror Unix systems well any more.  Saying "unknown
8290         system error" is enough.
8291         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8292         simpler strerror.c implementation.
8293         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8294         Simplify the tests to reflect the simpler strerror implementation.
8295         * modules/strerror (Depends-on): Add intprops.
8296
8297 2007-10-09  Eric Blake  <ebb9@byu.net>
8298
8299         Silence test-fpending.
8300         * modules/fpending-tests (Files): Add wrapper script.
8301         * tests/test-fpending.sh: New file.
8302
8303 2007-10-09  Bruno Haible  <bruno@clisp.org>
8304
8305         * MODULES.html.sh (func_module): Don't create a hyperlink for
8306         function names like 'printf_frexp'.
8307         (Misc): Add crc, memxor.
8308         (Characteristics of floating types): New section.
8309         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8310         isnanf-nolibm, signbit, trunc, truncf, truncl.
8311         (Enhancements for ISO C 99 functions): New subsection Input/output.
8312         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8313         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8314         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8315         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8316         (Enhancements for POSIX:2001 functions): Add chdir-long.
8317         (File system functions): Add areadlink, chdir-safer, read-file.
8318         Remove cycle-check.
8319         (File system as inode set): New section.
8320         (Date and time): Add gethrxtime.
8321         (Multithreading): Add openmp.
8322         (Internationalization functions): Add localename.
8323         (Unicode string functions): Add unistr/u*-mbsnlen.
8324         (Support for maintaining and releasing projects): Add git-version-gen.
8325         (Lone files): Remove directories.
8326
8327 2007-10-08  Ben Pfaff  <blp@gnu.org>
8328
8329         * lib/xmalloca.h: Fix typo in comment.
8330
8331 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8332
8333         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8334         when avoiding problems with integer overflow.  Use a portable test
8335         instead.
8336
8337 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8338
8339         * modules/dummy (License): Change to LGPLv2+.
8340         * modules/float (License): Likewise
8341         * modules/realloc (License): Likewise
8342         * modules/stdlib (License): Likewise
8343
8344 2007-10-07  Bruno Haible  <bruno@clisp.org>
8345
8346         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8347         * floor.c (TWO_MANT_DIG): Likewise.
8348         * ceil.c (TWO_MANT_DIG): Likewise.
8349         Reported by Ben Pfaff.
8350
8351 2007-10-07  Bruno Haible  <bruno@clisp.org>
8352
8353         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8354         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8355         * lib/frexp.c (FUNC): Likewise.
8356         * lib/printf-frexp.h (printf_frexp): Likewise.
8357         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8358         * lib/printf-frexp.c (FUNC): Likewise.
8359         Suggested by Jim Meyering.
8360
8361 2007-10-07  Jim Meyering  <meyering@redhat.com>
8362
8363         Make xnanosleep's integer overflow test more robust.
8364         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8365         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8366
8367 2007-10-07  Bruno Haible  <bruno@clisp.org>
8368
8369         * NEWS: Mention the license change.
8370
8371         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8372         abbreviations in the modules files.
8373
8374         Change copyright notice from GPLv2+ to GPLv3+.
8375         * README: Change copyright notice.
8376         * MODULES.html.sh: Likewise.
8377         * build-aux/bootstrap.conf: Likewise.
8378         * build-aux/config.libpath: Likewise.
8379         * build-aux/csharpcomp.sh.in: Likewise.
8380         * build-aux/csharpexec.sh.in: Likewise.
8381         * build-aux/install-reloc: Likewise.
8382         * build-aux/javacomp.sh.in: Likewise.
8383         * build-aux/javaexec.sh.in: Likewise.
8384         * build-aux/ldd.sh.in: Likewise.
8385         * build-aux/reloc-ldflags: Likewise.
8386         * build-aux/relocatable.sh.in: Likewise.
8387         * build-aux/x-to-1.in: Likewise.
8388         * check-module: Likewise.
8389         * config/srclistvars.sh: Likewise.
8390         * gnulib-tool: Likewise.
8391         * lib/acl-internal.h: Likewise.
8392         * lib/acl.c: Likewise.
8393         * lib/acl.h: Likewise.
8394         * lib/acl_entries.c: Likewise.
8395         * lib/areadlink-with-size.c: Likewise.
8396         * lib/areadlink.c: Likewise.
8397         * lib/areadlink.h: Likewise.
8398         * lib/argmatch.c: Likewise.
8399         * lib/argmatch.h: Likewise.
8400         * lib/argp-ba.c: Likewise.
8401         * lib/argp-eexst.c: Likewise.
8402         * lib/argp-fmtstream.c: Likewise.
8403         * lib/argp-fmtstream.h: Likewise.
8404         * lib/argp-fs-xinl.c: Likewise.
8405         * lib/argp-help.c: Likewise.
8406         * lib/argp-namefrob.h: Likewise.
8407         * lib/argp-parse.c: Likewise.
8408         * lib/argp-pin.c: Likewise.
8409         * lib/argp-pv.c: Likewise.
8410         * lib/argp-pvh.c: Likewise.
8411         * lib/argp-xinl.c: Likewise.
8412         * lib/argp.h: Likewise.
8413         * lib/at-func.c: Likewise.
8414         * lib/atanl.c: Likewise.
8415         * lib/backupfile.c: Likewise.
8416         * lib/backupfile.h: Likewise.
8417         * lib/basename.c: Likewise.
8418         * lib/binary-io.h: Likewise.
8419         * lib/byteswap.in.h: Likewise.
8420         * lib/c-stack.c: Likewise.
8421         * lib/c-stack.h: Likewise.
8422         * lib/c-strcasestr.c: Likewise.
8423         * lib/c-strcasestr.h: Likewise.
8424         * lib/c-strstr.c: Likewise.
8425         * lib/c-strstr.h: Likewise.
8426         * lib/c-strtod.c: Likewise.
8427         * lib/calloc.c: Likewise.
8428         * lib/canon-host.c: Likewise.
8429         * lib/canon-host.h: Likewise.
8430         * lib/canonicalize-lgpl.c: Likewise.
8431         * lib/canonicalize.c: Likewise.
8432         * lib/canonicalize.h: Likewise.
8433         * lib/ceil.c: Likewise.
8434         * lib/ceilf.c: Likewise.
8435         * lib/ceill.c: Likewise.
8436         * lib/chdir-long.c: Likewise.
8437         * lib/chdir-long.h: Likewise.
8438         * lib/chdir-safer.c: Likewise.
8439         * lib/chdir-safer.h: Likewise.
8440         * lib/chown.c: Likewise.
8441         * lib/classpath.c: Likewise.
8442         * lib/classpath.h: Likewise.
8443         * lib/clean-temp.c: Likewise.
8444         * lib/clean-temp.h: Likewise.
8445         * lib/cloexec.c: Likewise.
8446         * lib/close-stream.c: Likewise.
8447         * lib/closein.c: Likewise.
8448         * lib/closein.h: Likewise.
8449         * lib/closeout.c: Likewise.
8450         * lib/closeout.h: Likewise.
8451         * lib/concat-filename.c: Likewise.
8452         * lib/copy-file.c: Likewise.
8453         * lib/copy-file.h: Likewise.
8454         * lib/count-one-bits.h: Likewise.
8455         * lib/crc.c: Likewise.
8456         * lib/crc.h: Likewise.
8457         * lib/creat-safer.c: Likewise.
8458         * lib/csharpcomp.c: Likewise.
8459         * lib/csharpcomp.h: Likewise.
8460         * lib/csharpexec.c: Likewise.
8461         * lib/csharpexec.h: Likewise.
8462         * lib/cycle-check.c: Likewise.
8463         * lib/cycle-check.h: Likewise.
8464         * lib/diacrit.c: Likewise.
8465         * lib/diacrit.h: Likewise.
8466         * lib/diffseq.h: Likewise.
8467         * lib/dirchownmod.c: Likewise.
8468         * lib/dirent.in.h: Likewise.
8469         * lib/dirfd.c: Likewise.
8470         * lib/dirfd.h: Likewise.
8471         * lib/dirname.c: Likewise.
8472         * lib/dirname.h: Likewise.
8473         * lib/dummy.c: Likewise.
8474         * lib/dup-safer.c: Likewise.
8475         * lib/dup2.c: Likewise.
8476         * lib/eealloc.h: Likewise.
8477         * lib/error.c: Likewise.
8478         * lib/error.h: Likewise.
8479         * lib/euidaccess.c: Likewise.
8480         * lib/exclude.c: Likewise.
8481         * lib/exclude.h: Likewise.
8482         * lib/execute.c: Likewise.
8483         * lib/execute.h: Likewise.
8484         * lib/exitfail.c: Likewise.
8485         * lib/exitfail.h: Likewise.
8486         * lib/expl.c: Likewise.
8487         * lib/fatal-signal.c: Likewise.
8488         * lib/fatal-signal.h: Likewise.
8489         * lib/fbufmode.c: Likewise.
8490         * lib/fbufmode.h: Likewise.
8491         * lib/fchdir.c: Likewise.
8492         * lib/fchmodat.c: Likewise.
8493         * lib/fchownat.c: Likewise.
8494         * lib/fcntl--.h: Likewise.
8495         * lib/fcntl-safer.h: Likewise.
8496         * lib/fcntl.in.h: Likewise.
8497         * lib/fd-safer.c: Likewise.
8498         * lib/fflush.c: Likewise.
8499         * lib/file-has-acl.c: Likewise.
8500         * lib/file-set.c: Likewise.
8501         * lib/file-type.c: Likewise.
8502         * lib/file-type.h: Likewise.
8503         * lib/fileblocks.c: Likewise.
8504         * lib/filemode.c: Likewise.
8505         * lib/filemode.h: Likewise.
8506         * lib/filename.h: Likewise.
8507         * lib/filenamecat.c: Likewise.
8508         * lib/filenamecat.h: Likewise.
8509         * lib/findprog.c: Likewise.
8510         * lib/findprog.h: Likewise.
8511         * lib/float.in.h: Likewise.
8512         * lib/floor.c: Likewise.
8513         * lib/floorf.c: Likewise.
8514         * lib/floorl.c: Likewise.
8515         * lib/fopen-safer.c: Likewise.
8516         * lib/fopen.c: Likewise.
8517         * lib/fpending.c: Likewise.
8518         * lib/fpending.h: Likewise.
8519         * lib/fprintf.c: Likewise.
8520         * lib/fprintftime.h: Likewise.
8521         * lib/fpucw.h: Likewise.
8522         * lib/fpurge.c: Likewise.
8523         * lib/fpurge.h: Likewise.
8524         * lib/freadable.c: Likewise.
8525         * lib/freadable.h: Likewise.
8526         * lib/freadahead.c: Likewise.
8527         * lib/freadahead.h: Likewise.
8528         * lib/freading.c: Likewise.
8529         * lib/freading.h: Likewise.
8530         * lib/free.c: Likewise.
8531         * lib/freopen.c: Likewise.
8532         * lib/frexp.c: Likewise.
8533         * lib/frexpl.c: Likewise.
8534         * lib/fseek.c: Likewise.
8535         * lib/fseterr.c: Likewise.
8536         * lib/fseterr.h: Likewise.
8537         * lib/fstatat.c: Likewise.
8538         * lib/fstrcmp.c: Likewise.
8539         * lib/fstrcmp.h: Likewise.
8540         * lib/fsusage.c: Likewise.
8541         * lib/fsusage.h: Likewise.
8542         * lib/ftell.c: Likewise.
8543         * lib/ftello.c: Likewise.
8544         * lib/fts-cycle.c: Likewise.
8545         * lib/fts.c: Likewise.
8546         * lib/fts_.h: Likewise.
8547         * lib/full-read.c: Likewise.
8548         * lib/full-read.h: Likewise.
8549         * lib/full-write.c: Likewise.
8550         * lib/full-write.h: Likewise.
8551         * lib/fwritable.c: Likewise.
8552         * lib/fwritable.h: Likewise.
8553         * lib/fwriteerror.c: Likewise.
8554         * lib/fwriteerror.h: Likewise.
8555         * lib/fwriting.c: Likewise.
8556         * lib/fwriting.h: Likewise.
8557         * lib/gcd.c: Likewise.
8558         * lib/gcd.h: Likewise.
8559         * lib/getcwd.c: Likewise.
8560         * lib/getdate.h: Likewise.
8561         * lib/getdate.y: Likewise.
8562         * lib/getdomainname.c: Likewise.
8563         * lib/getdomainname.h: Likewise.
8564         * lib/getgroups.c: Likewise.
8565         * lib/gethostname.c: Likewise.
8566         * lib/gethrxtime.c: Likewise.
8567         * lib/gethrxtime.h: Likewise.
8568         * lib/getloadavg.c: Likewise.
8569         * lib/getndelim2.c: Likewise.
8570         * lib/getndelim2.h: Likewise.
8571         * lib/getnline.c: Likewise.
8572         * lib/getnline.h: Likewise.
8573         * lib/getopt.c: Likewise.
8574         * lib/getopt.in.h: Likewise.
8575         * lib/getopt1.c: Likewise.
8576         * lib/getopt_int.h: Likewise.
8577         * lib/getpagesize.h: Likewise.
8578         * lib/getsubopt.c: Likewise.
8579         * lib/gettime.c: Likewise.
8580         * lib/getugroups.c: Likewise.
8581         * lib/getugroups.h: Likewise.
8582         * lib/getusershell.c: Likewise.
8583         * lib/gl_anyavltree_list1.h: Likewise.
8584         * lib/gl_anyavltree_list2.h: Likewise.
8585         * lib/gl_anyhash_list1.h: Likewise.
8586         * lib/gl_anyhash_list2.h: Likewise.
8587         * lib/gl_anylinked_list1.h: Likewise.
8588         * lib/gl_anylinked_list2.h: Likewise.
8589         * lib/gl_anyrbtree_list1.h: Likewise.
8590         * lib/gl_anyrbtree_list2.h: Likewise.
8591         * lib/gl_anytree_list1.h: Likewise.
8592         * lib/gl_anytree_list2.h: Likewise.
8593         * lib/gl_anytree_oset.h: Likewise.
8594         * lib/gl_anytreehash_list1.h: Likewise.
8595         * lib/gl_anytreehash_list2.h: Likewise.
8596         * lib/gl_array_list.c: Likewise.
8597         * lib/gl_array_list.h: Likewise.
8598         * lib/gl_array_oset.c: Likewise.
8599         * lib/gl_array_oset.h: Likewise.
8600         * lib/gl_avltree_list.c: Likewise.
8601         * lib/gl_avltree_list.h: Likewise.
8602         * lib/gl_avltree_oset.c: Likewise.
8603         * lib/gl_avltree_oset.h: Likewise.
8604         * lib/gl_avltreehash_list.c: Likewise.
8605         * lib/gl_avltreehash_list.h: Likewise.
8606         * lib/gl_carray_list.c: Likewise.
8607         * lib/gl_carray_list.h: Likewise.
8608         * lib/gl_linked_list.c: Likewise.
8609         * lib/gl_linked_list.h: Likewise.
8610         * lib/gl_linkedhash_list.c: Likewise.
8611         * lib/gl_linkedhash_list.h: Likewise.
8612         * lib/gl_list.c: Likewise.
8613         * lib/gl_list.h: Likewise.
8614         * lib/gl_oset.c: Likewise.
8615         * lib/gl_oset.h: Likewise.
8616         * lib/gl_rbtree_list.c: Likewise.
8617         * lib/gl_rbtree_list.h: Likewise.
8618         * lib/gl_rbtree_oset.c: Likewise.
8619         * lib/gl_rbtree_oset.h: Likewise.
8620         * lib/gl_rbtreehash_list.c: Likewise.
8621         * lib/gl_rbtreehash_list.h: Likewise.
8622         * lib/gl_sublist.c: Likewise.
8623         * lib/gl_sublist.h: Likewise.
8624         * lib/group-member.c: Likewise.
8625         * lib/group-member.h: Likewise.
8626         * lib/hard-locale.c: Likewise.
8627         * lib/hard-locale.h: Likewise.
8628         * lib/hash-pjw.c: Likewise.
8629         * lib/hash-pjw.h: Likewise.
8630         * lib/hash-triple.c: Likewise.
8631         * lib/hash.c: Likewise.
8632         * lib/hash.h: Likewise.
8633         * lib/human.c: Likewise.
8634         * lib/human.h: Likewise.
8635         * lib/i-ring.c: Likewise.
8636         * lib/i-ring.h: Likewise.
8637         * lib/idcache.c: Likewise.
8638         * lib/imaxabs.c: Likewise.
8639         * lib/imaxdiv.c: Likewise.
8640         * lib/inet_pton.c: Likewise.
8641         * lib/inet_pton.h: Likewise.
8642         * lib/intprops.h: Likewise.
8643         * lib/inttostr.c: Likewise.
8644         * lib/inttostr.h: Likewise.
8645         * lib/inttypes.in.h: Likewise.
8646         * lib/isapipe.c: Likewise.
8647         * lib/isdir.c: Likewise.
8648         * lib/isnan.c: Likewise.
8649         * lib/isnan.h: Likewise.
8650         * lib/isnanf.c: Likewise.
8651         * lib/isnanf.h: Likewise.
8652         * lib/isnanl-nolibm.h: Likewise.
8653         * lib/isnanl.c: Likewise.
8654         * lib/isnanl.h: Likewise.
8655         * lib/javacomp.c: Likewise.
8656         * lib/javacomp.h: Likewise.
8657         * lib/javaexec.c: Likewise.
8658         * lib/javaexec.h: Likewise.
8659         * lib/javaversion.c: Likewise.
8660         * lib/javaversion.h: Likewise.
8661         * lib/javaversion.java: Likewise.
8662         * lib/lbrkprop.h: Likewise.
8663         * lib/lchmod.h: Likewise.
8664         * lib/lchown.c: Likewise.
8665         * lib/ldexpl.c: Likewise.
8666         * lib/linebreak.c: Likewise.
8667         * lib/linebreak.h: Likewise.
8668         * lib/linebuffer.c: Likewise.
8669         * lib/linebuffer.h: Likewise.
8670         * lib/locale.in.h: Likewise.
8671         * lib/logl.c: Likewise.
8672         * lib/long-options.c: Likewise.
8673         * lib/long-options.h: Likewise.
8674         * lib/lstat.c: Likewise.
8675         * lib/lstat.h: Likewise.
8676         * lib/math.in.h: Likewise.
8677         * lib/mbchar.c: Likewise.
8678         * lib/mbchar.h: Likewise.
8679         * lib/mbfile.h: Likewise.
8680         * lib/mbiter.h: Likewise.
8681         * lib/mbscasecmp.c: Likewise.
8682         * lib/mbscasestr.c: Likewise.
8683         * lib/mbschr.c: Likewise.
8684         * lib/mbscspn.c: Likewise.
8685         * lib/mbslen.c: Likewise.
8686         * lib/mbsncasecmp.c: Likewise.
8687         * lib/mbsnlen.c: Likewise.
8688         * lib/mbspbrk.c: Likewise.
8689         * lib/mbspcasecmp.c: Likewise.
8690         * lib/mbsrchr.c: Likewise.
8691         * lib/mbssep.c: Likewise.
8692         * lib/mbsspn.c: Likewise.
8693         * lib/mbsstr.c: Likewise.
8694         * lib/mbstok_r.c: Likewise.
8695         * lib/mbswidth.c: Likewise.
8696         * lib/mbswidth.h: Likewise.
8697         * lib/mbuiter.h: Likewise.
8698         * lib/memcasecmp.c: Likewise.
8699         * lib/memcasecmp.h: Likewise.
8700         * lib/memchr.c: Likewise.
8701         * lib/memcmp.c: Likewise.
8702         * lib/memcoll.c: Likewise.
8703         * lib/memcoll.h: Likewise.
8704         * lib/memcpy.c: Likewise.
8705         * lib/memrchr.c: Likewise.
8706         * lib/mkancesdirs.c: Likewise.
8707         * lib/mkdir-p.c: Likewise.
8708         * lib/mkdir-p.h: Likewise.
8709         * lib/mkdir.c: Likewise.
8710         * lib/mkdirat.c: Likewise.
8711         * lib/mkdtemp.c: Likewise.
8712         * lib/mkstemp-safer.c: Likewise.
8713         * lib/mkstemp.c: Likewise.
8714         * lib/modechange.c: Likewise.
8715         * lib/modechange.h: Likewise.
8716         * lib/mountlist.c: Likewise.
8717         * lib/mountlist.h: Likewise.
8718         * lib/mpsort.c: Likewise.
8719         * lib/nanosleep.c: Likewise.
8720         * lib/obstack.c: Likewise.
8721         * lib/obstack.h: Likewise.
8722         * lib/open-safer.c: Likewise.
8723         * lib/open.c: Likewise.
8724         * lib/openat-die.c: Likewise.
8725         * lib/openat-priv.h: Likewise.
8726         * lib/openat-proc.c: Likewise.
8727         * lib/openat.c: Likewise.
8728         * lib/openat.h: Likewise.
8729         * lib/pagealign_alloc.c: Likewise.
8730         * lib/pagealign_alloc.h: Likewise.
8731         * lib/physmem.c: Likewise.
8732         * lib/physmem.h: Likewise.
8733         * lib/pipe-safer.c: Likewise.
8734         * lib/pipe.c: Likewise.
8735         * lib/pipe.h: Likewise.
8736         * lib/posixtm.c: Likewise.
8737         * lib/posixtm.h: Likewise.
8738         * lib/posixver.c: Likewise.
8739         * lib/printf-frexp.c: Likewise.
8740         * lib/printf-frexp.h: Likewise.
8741         * lib/printf-frexpl.c: Likewise.
8742         * lib/printf-frexpl.h: Likewise.
8743         * lib/printf.c: Likewise.
8744         * lib/progname.c: Likewise.
8745         * lib/progname.h: Likewise.
8746         * lib/progreloc.c: Likewise.
8747         * lib/putenv.c: Likewise.
8748         * lib/quote.c: Likewise.
8749         * lib/quote.h: Likewise.
8750         * lib/quotearg.c: Likewise.
8751         * lib/quotearg.h: Likewise.
8752         * lib/raise.c: Likewise.
8753         * lib/readline.c: Likewise.
8754         * lib/readline.h: Likewise.
8755         * lib/readlink.c: Likewise.
8756         * lib/readtokens.c: Likewise.
8757         * lib/readtokens.h: Likewise.
8758         * lib/readtokens0.c: Likewise.
8759         * lib/readtokens0.h: Likewise.
8760         * lib/readutmp.c: Likewise.
8761         * lib/readutmp.h: Likewise.
8762         * lib/realloc.c: Likewise.
8763         * lib/relocwrapper.c: Likewise.
8764         * lib/rename-dest-slash.c: Likewise.
8765         * lib/rename.c: Likewise.
8766         * lib/rmdir.c: Likewise.
8767         * lib/rpmatch.c: Likewise.
8768         * lib/safe-read.c: Likewise.
8769         * lib/safe-read.h: Likewise.
8770         * lib/safe-write.c: Likewise.
8771         * lib/safe-write.h: Likewise.
8772         * lib/same-inode.h: Likewise.
8773         * lib/same.c: Likewise.
8774         * lib/same.h: Likewise.
8775         * lib/save-cwd.c: Likewise.
8776         * lib/save-cwd.h: Likewise.
8777         * lib/savedir.c: Likewise.
8778         * lib/savedir.h: Likewise.
8779         * lib/savewd.c: Likewise.
8780         * lib/savewd.h: Likewise.
8781         * lib/search.in.h: Likewise.
8782         * lib/setenv.c: Likewise.
8783         * lib/setenv.h: Likewise.
8784         * lib/settime.c: Likewise.
8785         * lib/sh-quote.c: Likewise.
8786         * lib/sh-quote.h: Likewise.
8787         * lib/sig2str.c: Likewise.
8788         * lib/sig2str.h: Likewise.
8789         * lib/signal.in.h: Likewise.
8790         * lib/signbitd.c: Likewise.
8791         * lib/signbitf.c: Likewise.
8792         * lib/signbitl.c: Likewise.
8793         * lib/sigprocmask.c: Likewise.
8794         * lib/sincosl.c: Likewise.
8795         * lib/sleep.c: Likewise.
8796         * lib/sprintf.c: Likewise.
8797         * lib/sqrtl.c: Likewise.
8798         * lib/stat-time.h: Likewise.
8799         * lib/stdio--.h: Likewise.
8800         * lib/stdio-safer.h: Likewise.
8801         * lib/stdlib--.h: Likewise.
8802         * lib/stdlib-safer.h: Likewise.
8803         * lib/stdlib.in.h: Likewise.
8804         * lib/stpcpy.c: Likewise.
8805         * lib/stpncpy.c: Likewise.
8806         * lib/strchrnul.c: Likewise.
8807         * lib/strcspn.c: Likewise.
8808         * lib/strerror.c: Likewise.
8809         * lib/strftime.c: Likewise.
8810         * lib/strftime.h: Likewise.
8811         * lib/striconveh.c: Likewise.
8812         * lib/striconveh.h: Likewise.
8813         * lib/striconveha.c: Likewise.
8814         * lib/striconveha.h: Likewise.
8815         * lib/stripslash.c: Likewise.
8816         * lib/strnlen1.c: Likewise.
8817         * lib/strnlen1.h: Likewise.
8818         * lib/strtod.c: Likewise.
8819         * lib/strtoimax.c: Likewise.
8820         * lib/strtok_r.c: Likewise.
8821         * lib/strtol.c: Likewise.
8822         * lib/strtoll.c: Likewise.
8823         * lib/strtoul.c: Likewise.
8824         * lib/strtoull.c: Likewise.
8825         * lib/sysexits.in.h: Likewise.
8826         * lib/tempname.c: Likewise.
8827         * lib/tempname.h: Likewise.
8828         * lib/timespec.h: Likewise.
8829         * lib/tls.c: Likewise.
8830         * lib/tls.h: Likewise.
8831         * lib/tmpdir.c: Likewise.
8832         * lib/tmpdir.h: Likewise.
8833         * lib/tmpfile-safer.c: Likewise.
8834         * lib/tmpfile.c: Likewise.
8835         * lib/trigl.c: Likewise.
8836         * lib/trigl.h: Likewise.
8837         * lib/trim.c: Likewise.
8838         * lib/trim.h: Likewise.
8839         * lib/trunc.c: Likewise.
8840         * lib/truncf.c: Likewise.
8841         * lib/truncl.c: Likewise.
8842         * lib/tsearch.c: Likewise.
8843         * lib/unicodeio.c: Likewise.
8844         * lib/unicodeio.h: Likewise.
8845         * lib/unistd--.h: Likewise.
8846         * lib/unistd-safer.h: Likewise.
8847         * lib/unistdio/ulc-fprintf.c: Likewise.
8848         * lib/unistdio/ulc-vfprintf.c: Likewise.
8849         * lib/unlinkdir.c: Likewise.
8850         * lib/unlinkdir.h: Likewise.
8851         * lib/unlocked-io.h: Likewise.
8852         * lib/unsetenv.c: Likewise.
8853         * lib/userspec.c: Likewise.
8854         * lib/utime.c: Likewise.
8855         * lib/utimecmp.c: Likewise.
8856         * lib/utimecmp.h: Likewise.
8857         * lib/utimens.c: Likewise.
8858         * lib/verify.h: Likewise.
8859         * lib/verror.c: Likewise.
8860         * lib/verror.h: Likewise.
8861         * lib/version-etc-fsf.c: Likewise.
8862         * lib/version-etc.c: Likewise.
8863         * lib/version-etc.h: Likewise.
8864         * lib/vfprintf.c: Likewise.
8865         * lib/vprintf.c: Likewise.
8866         * lib/vsprintf.c: Likewise.
8867         * lib/w32spawn.h: Likewise.
8868         * lib/wait-process.c: Likewise.
8869         * lib/wait-process.h: Likewise.
8870         * lib/wcwidth.c: Likewise.
8871         * lib/write-any-file.c: Likewise.
8872         * lib/xalloc-die.c: Likewise.
8873         * lib/xalloc.h: Likewise.
8874         * lib/xasprintf.c: Likewise.
8875         * lib/xgetcwd.c: Likewise.
8876         * lib/xgetcwd.h: Likewise.
8877         * lib/xgetdomainname.c: Likewise.
8878         * lib/xgetdomainname.h: Likewise.
8879         * lib/xgethostname.c: Likewise.
8880         * lib/xmalloc.c: Likewise.
8881         * lib/xmalloca.c: Likewise.
8882         * lib/xmalloca.h: Likewise.
8883         * lib/xmemcoll.c: Likewise.
8884         * lib/xnanosleep.c: Likewise.
8885         * lib/xreadlink.c: Likewise.
8886         * lib/xreadlink.h: Likewise.
8887         * lib/xsetenv.c: Likewise.
8888         * lib/xsetenv.h: Likewise.
8889         * lib/xstriconv.c: Likewise.
8890         * lib/xstriconv.h: Likewise.
8891         * lib/xstrndup.c: Likewise.
8892         * lib/xstrndup.h: Likewise.
8893         * lib/xstrtod.c: Likewise.
8894         * lib/xstrtod.h: Likewise.
8895         * lib/xstrtol-error.c: Likewise.
8896         * lib/xstrtol.c: Likewise.
8897         * lib/xstrtol.h: Likewise.
8898         * lib/xtime.h: Likewise.
8899         * lib/xvasprintf.c: Likewise.
8900         * lib/xvasprintf.h: Likewise.
8901         * lib/yesno.c: Likewise.
8902         * lib/yesno.h: Likewise.
8903         * posix-modules: Likewise.
8904         * tests/test-alloca-opt.c: Likewise.
8905         * tests/test-arcfour.c: Likewise.
8906         * tests/test-arctwo.c: Likewise.
8907         * tests/test-argmatch.c: Likewise.
8908         * tests/test-argp-2.sh: Likewise.
8909         * tests/test-argp.c: Likewise.
8910         * tests/test-arpa_inet.c: Likewise.
8911         * tests/test-array_list.c: Likewise.
8912         * tests/test-array_oset.c: Likewise.
8913         * tests/test-atexit.c: Likewise.
8914         * tests/test-avltree_list.c: Likewise.
8915         * tests/test-avltree_oset.c: Likewise.
8916         * tests/test-avltreehash_list.c: Likewise.
8917         * tests/test-base64.c: Likewise.
8918         * tests/test-binary-io.c: Likewise.
8919         * tests/test-byteswap.c: Likewise.
8920         * tests/test-c-ctype.c: Likewise.
8921         * tests/test-c-strcasecmp.c: Likewise.
8922         * tests/test-c-strcasestr.c: Likewise.
8923         * tests/test-c-strncasecmp.c: Likewise.
8924         * tests/test-c-strstr.c: Likewise.
8925         * tests/test-canonicalize-lgpl.c: Likewise.
8926         * tests/test-canonicalize.c: Likewise.
8927         * tests/test-carray_list.c: Likewise.
8928         * tests/test-ceilf.c: Likewise.
8929         * tests/test-ceill.c: Likewise.
8930         * tests/test-count-one-bits.c: Likewise.
8931         * tests/test-crc.c: Likewise.
8932         * tests/test-dirname.c: Likewise.
8933         * tests/test-fbufmode.c: Likewise.
8934         * tests/test-fcntl.c: Likewise.
8935         * tests/test-fflush.c: Likewise.
8936         * tests/test-floorf.c: Likewise.
8937         * tests/test-floorl.c: Likewise.
8938         * tests/test-fopen.c: Likewise.
8939         * tests/test-fprintf-posix.c: Likewise.
8940         * tests/test-fprintf-posix.h: Likewise.
8941         * tests/test-fpurge.c: Likewise.
8942         * tests/test-freadable.c: Likewise.
8943         * tests/test-freadahead.c: Likewise.
8944         * tests/test-freading.c: Likewise.
8945         * tests/test-freopen.c: Likewise.
8946         * tests/test-frexp.c: Likewise.
8947         * tests/test-frexpl.c: Likewise.
8948         * tests/test-fseek.c: Likewise.
8949         * tests/test-fseeko.c: Likewise.
8950         * tests/test-fseterr.c: Likewise.
8951         * tests/test-fstrcmp.c: Likewise.
8952         * tests/test-ftell.c: Likewise.
8953         * tests/test-ftello.c: Likewise.
8954         * tests/test-fwritable.c: Likewise.
8955         * tests/test-fwriting.c: Likewise.
8956         * tests/test-getaddrinfo.c: Likewise.
8957         * tests/test-getpass.c: Likewise.
8958         * tests/test-gettimeofday.c: Likewise.
8959         * tests/test-hmac-md5.c: Likewise.
8960         * tests/test-hmac-sha1.c: Likewise.
8961         * tests/test-iconv.c: Likewise.
8962         * tests/test-iconvme.c: Likewise.
8963         * tests/test-inttypes.c: Likewise.
8964         * tests/test-isnan.c: Likewise.
8965         * tests/test-isnanf.c: Likewise.
8966         * tests/test-isnanl-nolibm.c: Likewise.
8967         * tests/test-isnanl.c: Likewise.
8968         * tests/test-isnanl.h: Likewise.
8969         * tests/test-ldexpl.c: Likewise.
8970         * tests/test-linked_list.c: Likewise.
8971         * tests/test-linkedhash_list.c: Likewise.
8972         * tests/test-locale.c: Likewise.
8973         * tests/test-localename.c: Likewise.
8974         * tests/test-lock.c: Likewise.
8975         * tests/test-lseek.c: Likewise.
8976         * tests/test-malloca.c: Likewise.
8977         * tests/test-math.c: Likewise.
8978         * tests/test-mbscasecmp.c: Likewise.
8979         * tests/test-mbscasestr1.c: Likewise.
8980         * tests/test-mbscasestr2.c: Likewise.
8981         * tests/test-mbscasestr3.c: Likewise.
8982         * tests/test-mbscasestr4.c: Likewise.
8983         * tests/test-mbschr.c: Likewise.
8984         * tests/test-mbscspn.c: Likewise.
8985         * tests/test-mbsncasecmp.c: Likewise.
8986         * tests/test-mbspbrk.c: Likewise.
8987         * tests/test-mbspcasecmp.c: Likewise.
8988         * tests/test-mbsrchr.c: Likewise.
8989         * tests/test-mbsspn.c: Likewise.
8990         * tests/test-mbsstr1.c: Likewise.
8991         * tests/test-mbsstr2.c: Likewise.
8992         * tests/test-mbsstr3.c: Likewise.
8993         * tests/test-md5.c: Likewise.
8994         * tests/test-memmem.c: Likewise.
8995         * tests/test-netinet_in.c: Likewise.
8996         * tests/test-open.c: Likewise.
8997         * tests/test-printf-frexp.c: Likewise.
8998         * tests/test-printf-frexpl.c: Likewise.
8999         * tests/test-printf-posix.c: Likewise.
9000         * tests/test-printf-posix.h: Likewise.
9001         * tests/test-rbtree_list.c: Likewise.
9002         * tests/test-rbtree_oset.c: Likewise.
9003         * tests/test-rbtreehash_list.c: Likewise.
9004         * tests/test-read-file.c: Likewise.
9005         * tests/test-rijndael.c: Likewise.
9006         * tests/test-search.c: Likewise.
9007         * tests/test-signbit.c: Likewise.
9008         * tests/test-sleep.c: Likewise.
9009         * tests/test-snprintf-posix.c: Likewise.
9010         * tests/test-snprintf-posix.h: Likewise.
9011         * tests/test-snprintf.c: Likewise.
9012         * tests/test-sprintf-posix.c: Likewise.
9013         * tests/test-sprintf-posix.h: Likewise.
9014         * tests/test-stat-time.c: Likewise.
9015         * tests/test-stdbool.c: Likewise.
9016         * tests/test-stdint.c: Likewise.
9017         * tests/test-stdio.c: Likewise.
9018         * tests/test-stdlib.c: Likewise.
9019         * tests/test-stpncpy.c: Likewise.
9020         * tests/test-strcasestr.c: Likewise.
9021         * tests/test-striconv.c: Likewise.
9022         * tests/test-striconveh.c: Likewise.
9023         * tests/test-striconveha.c: Likewise.
9024         * tests/test-string.c: Likewise.
9025         * tests/test-sys_select.c: Likewise.
9026         * tests/test-sys_socket.c: Likewise.
9027         * tests/test-sys_stat.c: Likewise.
9028         * tests/test-sys_time.c: Likewise.
9029         * tests/test-sysexits.c: Likewise.
9030         * tests/test-time.c: Likewise.
9031         * tests/test-tls.c: Likewise.
9032         * tests/test-trunc.c: Likewise.
9033         * tests/test-truncf.c: Likewise.
9034         * tests/test-truncl.c: Likewise.
9035         * tests/test-unistd.c: Likewise.
9036         * tests/test-vasnprintf-posix.c: Likewise.
9037         * tests/test-vasnprintf-posix2.c: Likewise.
9038         * tests/test-vasnprintf.c: Likewise.
9039         * tests/test-vasprintf-posix.c: Likewise.
9040         * tests/test-vasprintf.c: Likewise.
9041         * tests/test-verify.c: Likewise.
9042         * tests/test-vfprintf-posix.c: Likewise.
9043         * tests/test-vprintf-posix.c: Likewise.
9044         * tests/test-vsnprintf-posix.c: Likewise.
9045         * tests/test-vsnprintf.c: Likewise.
9046         * tests/test-vsprintf-posix.c: Likewise.
9047         * tests/test-wchar.c: Likewise.
9048         * tests/test-wctype.c: Likewise.
9049         * tests/test-wcwidth.c: Likewise.
9050         * tests/test-xstrtol.c: Likewise.
9051         * tests/test-xvasprintf.c: Likewise.
9052         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9053         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9054         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9055         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9056         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9057         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9058         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9059         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9060         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9061         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9062         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9063         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9064         * tests/uniname/test-uninames.c: Likewise.
9065         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9066         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
9067         * tests/unistdio/test-u16-printf1.h: Likewise.
9068         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9069         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9070         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9071         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9072         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9073         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9074         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9075         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
9076         * tests/unistdio/test-u32-printf1.h: Likewise.
9077         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9078         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9079         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9080         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9081         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9082         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9083         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9084         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
9085         * tests/unistdio/test-u8-printf1.h: Likewise.
9086         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9087         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9088         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9089         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9090         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9091         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9092         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9093         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
9094         * tests/unistdio/test-ulc-printf1.h: Likewise.
9095         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9096         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9097         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9098         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9099         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9100         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9101         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9102         * tests/uniwidth/test-u16-width.c: Likewise.
9103         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9104         * tests/uniwidth/test-u32-width.c: Likewise.
9105         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9106         * tests/uniwidth/test-u8-width.c: Likewise.
9107         * tests/uniwidth/test-uc_width.c: Likewise.
9108         * config/srclist-update: Likewise.
9109         (fixlicense): Update to GPLv3+.
9110
9111         Change copyright notice from LGPLv2.1+ to LGPLv3+.
9112         * tests/test-tsearch.c: Change copyright notice.
9113
9114         Change copyright notice from LGPLv2.0+ to LGPLv3+.
9115         * lib/c-strcaseeq.h: Change copyright notice.
9116         * lib/streq.h: Likewise.
9117         * lib/uniconv.h: Likewise.
9118         * lib/uniconv/u-conv-from-enc.h: Likewise.
9119         * lib/uniconv/u-conv-to-enc.h: Likewise.
9120         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9121         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9122         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9123         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9124         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9125         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9126         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9127         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9128         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9129         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9130         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9131         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9132         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9133         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9134         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9135         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9136         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9137         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9138         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9139         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9140         * lib/uniname.h: Likewise.
9141         * lib/uniname/uniname.c: Likewise.
9142         * lib/unistdio.h: Likewise.
9143         * lib/unistdio/u-asnprintf.h: Likewise.
9144         * lib/unistdio/u-asprintf.h: Likewise.
9145         * lib/unistdio/u-printf-args.c: Likewise.
9146         * lib/unistdio/u-printf-args.h: Likewise.
9147         * lib/unistdio/u-printf-parse.h: Likewise.
9148         * lib/unistdio/u-snprintf.h: Likewise.
9149         * lib/unistdio/u-sprintf.h: Likewise.
9150         * lib/unistdio/u-vasprintf.h: Likewise.
9151         * lib/unistdio/u-vsnprintf.h: Likewise.
9152         * lib/unistdio/u-vsprintf.h: Likewise.
9153         * lib/unistdio/u16-asnprintf.c: Likewise.
9154         * lib/unistdio/u16-asprintf.c: Likewise.
9155         * lib/unistdio/u16-printf-parse.c: Likewise.
9156         * lib/unistdio/u16-snprintf.c: Likewise.
9157         * lib/unistdio/u16-sprintf.c: Likewise.
9158         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9159         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9160         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9161         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9162         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9163         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9164         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9165         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9166         * lib/unistdio/u16-vasnprintf.c: Likewise.
9167         * lib/unistdio/u16-vasprintf.c: Likewise.
9168         * lib/unistdio/u16-vsnprintf.c: Likewise.
9169         * lib/unistdio/u16-vsprintf.c: Likewise.
9170         * lib/unistdio/u32-asnprintf.c: Likewise.
9171         * lib/unistdio/u32-asprintf.c: Likewise.
9172         * lib/unistdio/u32-printf-parse.c: Likewise.
9173         * lib/unistdio/u32-snprintf.c: Likewise.
9174         * lib/unistdio/u32-sprintf.c: Likewise.
9175         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9176         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9177         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9178         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9179         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9180         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9181         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9182         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9183         * lib/unistdio/u32-vasnprintf.c: Likewise.
9184         * lib/unistdio/u32-vasprintf.c: Likewise.
9185         * lib/unistdio/u32-vsnprintf.c: Likewise.
9186         * lib/unistdio/u32-vsprintf.c: Likewise.
9187         * lib/unistdio/u8-asnprintf.c: Likewise.
9188         * lib/unistdio/u8-asprintf.c: Likewise.
9189         * lib/unistdio/u8-printf-parse.c: Likewise.
9190         * lib/unistdio/u8-snprintf.c: Likewise.
9191         * lib/unistdio/u8-sprintf.c: Likewise.
9192         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9193         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9194         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9195         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9196         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9197         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9198         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9199         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9200         * lib/unistdio/u8-vasnprintf.c: Likewise.
9201         * lib/unistdio/u8-vasprintf.c: Likewise.
9202         * lib/unistdio/u8-vsnprintf.c: Likewise.
9203         * lib/unistdio/u8-vsprintf.c: Likewise.
9204         * lib/unistdio/ulc-asnprintf.c: Likewise.
9205         * lib/unistdio/ulc-asprintf.c: Likewise.
9206         * lib/unistdio/ulc-printf-parse.c: Likewise.
9207         * lib/unistdio/ulc-snprintf.c: Likewise.
9208         * lib/unistdio/ulc-sprintf.c: Likewise.
9209         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9210         * lib/unistdio/ulc-vasprintf.c: Likewise.
9211         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9212         * lib/unistdio/ulc-vsprintf.c: Likewise.
9213         * lib/unistr.h: Likewise.
9214         * lib/unistr/u-cpy-alloc.h: Likewise.
9215         * lib/unistr/u-cpy.h: Likewise.
9216         * lib/unistr/u-endswith.h: Likewise.
9217         * lib/unistr/u-move.h: Likewise.
9218         * lib/unistr/u-set.h: Likewise.
9219         * lib/unistr/u-startswith.h: Likewise.
9220         * lib/unistr/u-stpcpy.h: Likewise.
9221         * lib/unistr/u-stpncpy.h: Likewise.
9222         * lib/unistr/u-strcat.h: Likewise.
9223         * lib/unistr/u-strcpy.h: Likewise.
9224         * lib/unistr/u-strcspn.h: Likewise.
9225         * lib/unistr/u-strdup.h: Likewise.
9226         * lib/unistr/u-strlen.h: Likewise.
9227         * lib/unistr/u-strncat.h: Likewise.
9228         * lib/unistr/u-strncpy.h: Likewise.
9229         * lib/unistr/u-strnlen.h: Likewise.
9230         * lib/unistr/u-strpbrk.h: Likewise.
9231         * lib/unistr/u-strspn.h: Likewise.
9232         * lib/unistr/u-strstr.h: Likewise.
9233         * lib/unistr/u-strtok.h: Likewise.
9234         * lib/unistr/u16-check.c: Likewise.
9235         * lib/unistr/u16-chr.c: Likewise.
9236         * lib/unistr/u16-cmp.c: Likewise.
9237         * lib/unistr/u16-cpy-alloc.c: Likewise.
9238         * lib/unistr/u16-cpy.c: Likewise.
9239         * lib/unistr/u16-endswith.c: Likewise.
9240         * lib/unistr/u16-mblen.c: Likewise.
9241         * lib/unistr/u16-mbsnlen.c: Likewise.
9242         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9243         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9244         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9245         * lib/unistr/u16-mbtouc.c: Likewise.
9246         * lib/unistr/u16-mbtoucr.c: Likewise.
9247         * lib/unistr/u16-move.c: Likewise.
9248         * lib/unistr/u16-next.c: Likewise.
9249         * lib/unistr/u16-prev.c: Likewise.
9250         * lib/unistr/u16-set.c: Likewise.
9251         * lib/unistr/u16-startswith.c: Likewise.
9252         * lib/unistr/u16-stpcpy.c: Likewise.
9253         * lib/unistr/u16-stpncpy.c: Likewise.
9254         * lib/unistr/u16-strcat.c: Likewise.
9255         * lib/unistr/u16-strchr.c: Likewise.
9256         * lib/unistr/u16-strcmp.c: Likewise.
9257         * lib/unistr/u16-strcpy.c: Likewise.
9258         * lib/unistr/u16-strcspn.c: Likewise.
9259         * lib/unistr/u16-strdup.c: Likewise.
9260         * lib/unistr/u16-strlen.c: Likewise.
9261         * lib/unistr/u16-strmblen.c: Likewise.
9262         * lib/unistr/u16-strmbtouc.c: Likewise.
9263         * lib/unistr/u16-strncat.c: Likewise.
9264         * lib/unistr/u16-strncmp.c: Likewise.
9265         * lib/unistr/u16-strncpy.c: Likewise.
9266         * lib/unistr/u16-strnlen.c: Likewise.
9267         * lib/unistr/u16-strpbrk.c: Likewise.
9268         * lib/unistr/u16-strrchr.c: Likewise.
9269         * lib/unistr/u16-strspn.c: Likewise.
9270         * lib/unistr/u16-strstr.c: Likewise.
9271         * lib/unistr/u16-strtok.c: Likewise.
9272         * lib/unistr/u16-to-u32.c: Likewise.
9273         * lib/unistr/u16-to-u8.c: Likewise.
9274         * lib/unistr/u16-uctomb-aux.c: Likewise.
9275         * lib/unistr/u16-uctomb.c: Likewise.
9276         * lib/unistr/u32-check.c: Likewise.
9277         * lib/unistr/u32-chr.c: Likewise.
9278         * lib/unistr/u32-cmp.c: Likewise.
9279         * lib/unistr/u32-cpy-alloc.c: Likewise.
9280         * lib/unistr/u32-cpy.c: Likewise.
9281         * lib/unistr/u32-endswith.c: Likewise.
9282         * lib/unistr/u32-mblen.c: Likewise.
9283         * lib/unistr/u32-mbsnlen.c: Likewise.
9284         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9285         * lib/unistr/u32-mbtouc.c: Likewise.
9286         * lib/unistr/u32-mbtoucr.c: Likewise.
9287         * lib/unistr/u32-move.c: Likewise.
9288         * lib/unistr/u32-next.c: Likewise.
9289         * lib/unistr/u32-prev.c: Likewise.
9290         * lib/unistr/u32-set.c: Likewise.
9291         * lib/unistr/u32-startswith.c: Likewise.
9292         * lib/unistr/u32-stpcpy.c: Likewise.
9293         * lib/unistr/u32-stpncpy.c: Likewise.
9294         * lib/unistr/u32-strcat.c: Likewise.
9295         * lib/unistr/u32-strchr.c: Likewise.
9296         * lib/unistr/u32-strcmp.c: Likewise.
9297         * lib/unistr/u32-strcpy.c: Likewise.
9298         * lib/unistr/u32-strcspn.c: Likewise.
9299         * lib/unistr/u32-strdup.c: Likewise.
9300         * lib/unistr/u32-strlen.c: Likewise.
9301         * lib/unistr/u32-strmblen.c: Likewise.
9302         * lib/unistr/u32-strmbtouc.c: Likewise.
9303         * lib/unistr/u32-strncat.c: Likewise.
9304         * lib/unistr/u32-strncmp.c: Likewise.
9305         * lib/unistr/u32-strncpy.c: Likewise.
9306         * lib/unistr/u32-strnlen.c: Likewise.
9307         * lib/unistr/u32-strpbrk.c: Likewise.
9308         * lib/unistr/u32-strrchr.c: Likewise.
9309         * lib/unistr/u32-strspn.c: Likewise.
9310         * lib/unistr/u32-strstr.c: Likewise.
9311         * lib/unistr/u32-strtok.c: Likewise.
9312         * lib/unistr/u32-to-u16.c: Likewise.
9313         * lib/unistr/u32-to-u8.c: Likewise.
9314         * lib/unistr/u32-uctomb.c: Likewise.
9315         * lib/unistr/u8-check.c: Likewise.
9316         * lib/unistr/u8-chr.c: Likewise.
9317         * lib/unistr/u8-cmp.c: Likewise.
9318         * lib/unistr/u8-cpy-alloc.c: Likewise.
9319         * lib/unistr/u8-cpy.c: Likewise.
9320         * lib/unistr/u8-endswith.c: Likewise.
9321         * lib/unistr/u8-mblen.c: Likewise.
9322         * lib/unistr/u8-mbsnlen.c: Likewise.
9323         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9324         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9325         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9326         * lib/unistr/u8-mbtouc.c: Likewise.
9327         * lib/unistr/u8-mbtoucr.c: Likewise.
9328         * lib/unistr/u8-move.c: Likewise.
9329         * lib/unistr/u8-next.c: Likewise.
9330         * lib/unistr/u8-prev.c: Likewise.
9331         * lib/unistr/u8-set.c: Likewise.
9332         * lib/unistr/u8-startswith.c: Likewise.
9333         * lib/unistr/u8-stpcpy.c: Likewise.
9334         * lib/unistr/u8-stpncpy.c: Likewise.
9335         * lib/unistr/u8-strcat.c: Likewise.
9336         * lib/unistr/u8-strchr.c: Likewise.
9337         * lib/unistr/u8-strcmp.c: Likewise.
9338         * lib/unistr/u8-strcpy.c: Likewise.
9339         * lib/unistr/u8-strcspn.c: Likewise.
9340         * lib/unistr/u8-strdup.c: Likewise.
9341         * lib/unistr/u8-strlen.c: Likewise.
9342         * lib/unistr/u8-strmblen.c: Likewise.
9343         * lib/unistr/u8-strmbtouc.c: Likewise.
9344         * lib/unistr/u8-strncat.c: Likewise.
9345         * lib/unistr/u8-strncmp.c: Likewise.
9346         * lib/unistr/u8-strncpy.c: Likewise.
9347         * lib/unistr/u8-strnlen.c: Likewise.
9348         * lib/unistr/u8-strpbrk.c: Likewise.
9349         * lib/unistr/u8-strrchr.c: Likewise.
9350         * lib/unistr/u8-strspn.c: Likewise.
9351         * lib/unistr/u8-strstr.c: Likewise.
9352         * lib/unistr/u8-strtok.c: Likewise.
9353         * lib/unistr/u8-to-u16.c: Likewise.
9354         * lib/unistr/u8-to-u32.c: Likewise.
9355         * lib/unistr/u8-uctomb-aux.c: Likewise.
9356         * lib/unistr/u8-uctomb.c: Likewise.
9357         * lib/unitypes.h: Likewise.
9358         * lib/uniwidth.h: Likewise.
9359         * lib/uniwidth/cjk.h: Likewise.
9360         * lib/uniwidth/u16-strwidth.c: Likewise.
9361         * lib/uniwidth/u16-width.c: Likewise.
9362         * lib/uniwidth/u32-strwidth.c: Likewise.
9363         * lib/uniwidth/u32-width.c: Likewise.
9364         * lib/uniwidth/u8-strwidth.c: Likewise.
9365         * lib/uniwidth/u8-width.c: Likewise.
9366         * lib/uniwidth/width.c: Likewise.
9367
9368 2007-10-07  Bruno Haible  <bruno@clisp.org>
9369
9370         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9371         The file is still under LGPL (see modules/inttypes).
9372
9373 2007-10-06  Bruno Haible  <bruno@clisp.org>
9374
9375         * modules/trunc (Dependencies): Add 'extensions'.
9376         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9377         Reported by Ben Pfaff <blp@gnu.org>.
9378
9379 2007-10-06  Bruno Haible  <bruno@clisp.org>
9380
9381         * modules/freopen-tests: New file.
9382         * tests/test-freopen.c: New file.
9383
9384         * modules/fopen-tests: New file.
9385         * tests/test-fopen.c: New file.
9386
9387         * modules/fopen: New file.
9388         * lib/fopen.c: New file.
9389         * m4/fopen.m4: New file.
9390         * modules/freopen: New file.
9391         * lib/freopen.c: New file.
9392         * m4/freopen.m4: New file.
9393         * lib/stdio.in.h (fopen, freopen): New declarations.
9394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9395         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9396         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9397         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9398         * doc/functions/fopen.texi: Mention the 'fopen' module.
9399         * doc/functions/freopen.texi: Mention the 'freopen' module.
9400
9401 2007-10-06  Bruno Haible  <bruno@clisp.org>
9402
9403         * modules/open-tests: New file.
9404         * tests/test-open.c: New file.
9405
9406         * modules/open: New file.
9407         * lib/open.c: New file.
9408         * m4/open.m4: New file.
9409         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9410         lib/open.c does.
9411         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9412         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9413         macros.
9414         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9415         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9416         REPLACE_OPEN.
9417         * doc/functions/open.texi: Mention the 'open' module.
9418
9419 2007-10-04  Bruno Haible  <bruno@clisp.org>
9420
9421         * modules/ceill-tests: New file.
9422         * tests/test-ceill.c: New file.
9423
9424         * modules/ceill: New file.
9425         * lib/ceill.c: Replace entire file.
9426         * m4/ceill.m4: New file.
9427         * lib/math.in.h (ceill): Replace declaration.
9428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9429         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9430         * doc/functions/ceill.texi: Mention the 'ceill' module.
9431         * modules/mathl (Files): Remove lib/ceill.c.
9432         (Depends-on): Add ceill.
9433
9434 2007-10-04  Bruno Haible  <bruno@clisp.org>
9435
9436         * modules/ceilf-tests: New file.
9437         * tests/test-ceilf.c: New file.
9438
9439         * modules/ceilf: New file.
9440         * lib/ceil.c: New file.
9441         * lib/ceilf.c: New file.
9442         * m4/ceilf.m4: New file.
9443         * lib/math.in.h (ceilf): New declaration.
9444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9445         HAVE_DECL_CEILF.
9446         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9447         HAVE_DECL_CEILF.
9448         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9449
9450 2007-10-04  Bruno Haible  <bruno@clisp.org>
9451
9452         * modules/floorl-tests: New file.
9453         * tests/test-floorl.c: New file.
9454
9455         * modules/floorl: New file.
9456         * lib/floorl.c: Replace entire file.
9457         * m4/floorl.m4: New file.
9458         * lib/math.in.h (floorl): Replace declaration.
9459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9460         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9461         * doc/functions/floorl.texi: Mention the 'floorl' module.
9462         * modules/mathl (Files): Remove lib/floorl.c.
9463         (Depends-on): Add floorl.
9464
9465 2007-10-04  Bruno Haible  <bruno@clisp.org>
9466
9467         * modules/floorf-tests: New file.
9468         * tests/test-floorf.c: New file.
9469
9470         * modules/floorf: New file.
9471         * lib/floor.c: New file.
9472         * lib/floorf.c: New file.
9473         * m4/floorf.m4: New file.
9474         * lib/math.in.h (floorf): New declaration.
9475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9476         HAVE_DECL_FLOORF.
9477         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9478         HAVE_DECL_FLOORF.
9479         * doc/functions/floorf.texi: Mention the 'floorf' module.
9480
9481 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9482             Bruno Haible  <bruno@clisp.org>
9483
9484         Advertise for the Git server instead of the CVS server.
9485         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9486         repository instead of the CVS one.
9487         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9488         about all VCS systems generically.
9489         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9490
9491 2007-10-04  Bruno Haible  <bruno@clisp.org>
9492
9493         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9494         means.
9495         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9496
9497 2007-10-04  Bruno Haible  <bruno@clisp.org>
9498
9499         * modules/truncl-tests: New file.
9500         * tests/test-truncl.c: New file.
9501
9502         * modules/truncl: New file.
9503         * lib/truncl.c: New file.
9504         * m4/truncl.m4: New file.
9505         * lib/math.in.h (truncl): New declaration.
9506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9507         HAVE_DECL_TRUNCL.
9508         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9509         HAVE_DECL_TRUNCL.
9510         * doc/functions/truncl.texi: Mention the 'truncl' module.
9511
9512 2007-10-04  Bruno Haible  <bruno@clisp.org>
9513
9514         * modules/truncf-tests: New file.
9515         * tests/test-truncf.c: New file.
9516
9517         * modules/truncf: New file.
9518         * lib/trunc.c: Make paramerizable through USE_* macros.
9519         * lib/truncf.c: New file.
9520         * m4/truncf.m4: New file.
9521         * lib/math.in.h (truncf): New declaration.
9522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9523         HAVE_DECL_TRUNCF.
9524         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9525         HAVE_DECL_TRUNCF.
9526         * doc/functions/truncf.texi: Mention the 'truncf' module.
9527
9528 2007-10-03  Bruno Haible  <bruno@clisp.org>
9529
9530         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9531         augmentation also for tests modules.
9532         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9533         * modules/atexit-tests (Makefile.am): Likewise.
9534         * modules/binary-io-tests (Makefile.am): Likewise.
9535         * modules/c-strcase-tests (Makefile.am): Likewise.
9536         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9537         * modules/canonicalize-tests (Makefile.am): Likewise.
9538         * modules/closein-tests (Makefile.am): Likewise.
9539         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9540         * modules/freadahead-tests (Makefile.am): Likewise.
9541         * modules/fseek-tests (Makefile.am): Likewise.
9542         * modules/fseeko-tests (Makefile.am): Likewise.
9543         * modules/ftell-tests (Makefile.am): Likewise.
9544         * modules/ftello-tests (Makefile.am): Likewise.
9545         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9546         * modules/isnanl-tests (Makefile.am): Likewise.
9547         * modules/lseek-tests (Makefile.am): Likewise.
9548         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9549         * modules/mbscasestr-tests (Makefile.am): Likewise.
9550         * modules/mbschr-tests (Makefile.am): Likewise.
9551         * modules/mbscspn-tests (Makefile.am): Likewise.
9552         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9553         * modules/mbspbrk-tests (Makefile.am): Likewise.
9554         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9555         * modules/mbsrchr-tests (Makefile.am): Likewise.
9556         * modules/mbsspn-tests (Makefile.am): Likewise.
9557         * modules/mbsstr-tests (Makefile.am): Likewise.
9558         * modules/printf-posix-tests (Makefile.am): Likewise.
9559         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9560         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9561         * modules/tsearch-tests (Makefile.am): Likewise.
9562         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9563         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9564         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9565         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9566         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9567         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9568         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9569         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9570         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9571         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9572         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9573         * modules/xstrtol-tests (Makefile.am): Likewise.
9574         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9575         * modules/yesno-tests (Makefile.am): Likewise.
9576
9577 2007-10-03  Bruno Haible  <bruno@clisp.org>
9578
9579         * modules/trunc-tests: New file.
9580         * tests/test-trunc.c: New file.
9581
9582         * modules/trunc: New file.
9583         * lib/trunc.c: New file.
9584         * m4/trunc.m4: New file.
9585         * lib/math.in.h (trunc): New declaration.
9586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9587         HAVE_DECL_TRUNC.
9588         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9589         HAVE_DECL_TRUNC.
9590         * doc/functions/trunc.texi: Mention the 'trunc' module.
9591
9592 2007-10-03  Bruno Haible  <bruno@clisp.org>
9593
9594         * tests/test-fpending.c: New file, mostly copied
9595         from coreutils/lib/t-fpending.c.
9596         * modules/fpending-tests: New file.
9597
9598 2007-10-03  Bruno Haible  <bruno@clisp.org>
9599
9600         Port the stdio extensions to QNX (untested).
9601         * lib/fseterr.c (fseterr): Add support for QNX.
9602         * lib/fbufmode.c (fbufmode): Likewise.
9603         * lib/freadable.c (freadable): Likewise.
9604         * lib/fwritable.c (fwritable): Likewise.
9605         * lib/freading.c (freading): Likewise.
9606         * lib/fwriting.c (fwriting): Likewise.
9607         * lib/freadahead.c (freadahed): Likewise.
9608         * lib/fpurge.c (fpurge): Likewise.
9609         * lib/fseeko.c (rpl_fseeko): Likewise.
9610
9611 2007-10-03  Bruno Haible  <bruno@clisp.org>
9612             Jim Meyering  <jim@meyering.net>
9613             Eric Blake  <ebb9@byu.net>
9614
9615         * doc/relocatable.texi: Use @command instead of @program.
9616
9617 2007-10-02  Jim Meyering  <jim@meyering.net>
9618
9619         Perform one more "_.h" -> ".in.h" substitution.
9620         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9621         instead of unistd_.h here, too.
9622
9623 2007-10-01  Bruno Haible  <bruno@clisp.org>
9624
9625         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9626         Needed for the alloca-opt module.
9627
9628 2007-09-30  Bruno Haible  <bruno@clisp.org>
9629
9630         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9631         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9632         alloca_.h.
9633         * lib/argz.in.h: Renamed from lib/argz_.h.
9634         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9635         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9636         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9637         byteswap_.h.
9638         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9639         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9640         dirent_.h.
9641         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9642         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9643         fcntl_.h.
9644         * lib/float.in.h: Renamed from lib/float_.h.
9645         * modules/float (Files, Makefile.am): Use float.in.h instead of
9646         float_.h.
9647         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9648         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9649         fnmatch_.h.
9650         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9651         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9652         getopt_.h.
9653         * lib/glob.in.h: Renamed from lib/glob_.h.
9654         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9655         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9656         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9657         iconv_.h.
9658         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9659         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9660         inttypes_.h.
9661         * lib/locale.in.h: Renamed from lib/locale_.h.
9662         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9663         locale_.h.
9664         * lib/math.in.h: Renamed from lib/math_.h.
9665         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9666         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9667         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9668         of netinet_in_.h. Add dependency.
9669         * lib/poll.in.h: Renamed from lib/poll_.h.
9670         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9671         * lib/search.in.h: Renamed from lib/search_.h.
9672         * modules/search (Files, Makefile.am): Use search.in.h instead of
9673         search_.h.
9674         * lib/signal.in.h: Renamed from lib/signal_.h.
9675         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9676         _signal.h.
9677         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9678         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9679         stdbool_.h.
9680         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9681         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9682         stdint_.h.
9683         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9684         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9685         stdio_.h.
9686         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9687         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9688         stdlib_.h.
9689         * lib/string.in.h: Renamed from lib/string_.h.
9690         * modules/string (Files, Makefile.am): Use string.in.h instead of
9691         string_.h.
9692         * doc/gnulib-tool.texi (Initial import): Update.
9693         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9694         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9695         of sys_select_.h. Add dependency.
9696         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9697         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9698         of sys_socket_.h.
9699         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9700         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9701         sys_stat_.h.
9702         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9703         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9704         sys_time_.h.
9705         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9706         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9707         sysexits_.h.
9708         * lib/time.in.h: Renamed from lib/time_.h.
9709         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9710         * lib/unistd.in.h: Renamed from lib/unistd_.h.
9711         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9712         unistd_.h.
9713         * lib/wchar.in.h: Renamed from lib/wchar_.h.
9714         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9715         wchar_.h.
9716         * lib/wctype.in.h: Renamed from lib/wctype_.h.
9717         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9718         wctype_.h.
9719         * build-aux/bootstrap (slurp): Update.
9720         * lib/.cppi-disable: Update.
9721
9722 2007-09-30  Bruno Haible  <bruno@clisp.org>
9723
9724         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
9725         Needed on BeOS.
9726
9727 2007-09-30  Bruno Haible  <bruno@clisp.org>
9728
9729         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
9730
9731 2007-09-29  Bruno Haible  <bruno@clisp.org>
9732
9733         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
9734
9735 2007-09-29  Bruno Haible  <bruno@clisp.org>
9736
9737         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
9738         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9739         * build-aux/install-reloc: Compile also areadlink.c.
9740         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
9741
9742 2007-09-29  Bruno Haible  <bruno@clisp.org>
9743
9744         * gnulib-tool (func_emit_initmacro_done): Indentation.
9745
9746 2007-09-29  Bruno Haible  <bruno@clisp.org>
9747
9748         * README: Add CVS checkout update instructions.
9749         Info from Bob Proulx <bob@proulx.com>.
9750
9751 2007-09-28  Eric Blake  <ebb9@byu.net>
9752
9753         Provide move-if-change.
9754         * build-aux/move-if-change: New file, based on best practice
9755         rather than any canonical upstream location.
9756
9757 2007-09-28  Jim Meyering  <jim@meyering.net>
9758
9759         Fix canonicalize loop-detection corner case.
9760         Do not attempt to stat the symlink values stored via seen_triple.
9761         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
9762         on linux-2.6.18, (but not 2.6.22).
9763         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
9764         triple_compare.  The former compares dev,ino,filename, while the latter
9765         would actually stat dirname(filename) when dev and ino were equal.
9766         * lib/hash-triple.c: Install <string.h>.
9767         (STREQ): Define.
9768         (triple_compare_ino_str): New function.
9769         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
9770
9771 2007-09-28  Eric Blake  <ebb9@byu.net>
9772
9773         Enforce that AC_REPLACE_FUNCS files exist.
9774         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
9775         override check for typos.
9776
9777         Fix test-closein on Solaris 10.
9778         * tests/test-closein.c (main): Don't assume stdin can be inherited
9779         closed on all systems.
9780         * tests/test-closein.sh: Likewise.
9781         Reported by Piotr Tarnowski.
9782
9783 2007-09-28  Jim Meyering  <jim@meyering.net>
9784
9785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
9786
9787 2007-09-27  Jim Meyering  <jim@meyering.net>
9788
9789         canonicalize: Avoid a false-positive cycle failure.
9790         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
9791         Sort.  Remove cycle-check.
9792         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
9793         not cycle-check.h.
9794         (seen_triple): New function.
9795         (canonicalize_filename_mode): Use it instead of cycle-check.
9796         * tests/test-canonicalize.c: Add a test for this bug.
9797         * tests/test-canonicalize.sh: Set up and run the test.
9798
9799         New module, file-set, from coreutils.
9800         * modules/file-set: Define it.
9801         * lib/file-set.c, lib/file-set.h: Implement.
9802
9803         New module, hash-triple, from coreutils.
9804         * modules/hash-triple: Define it.
9805         * lib/hash-triple.c, lib/hash-triple.h: Implement.
9806
9807 2007-09-25  Eric Blake  <ebb9@byu.net>
9808
9809         Fix strerror on Interix.
9810         * lib/string_.h (strerror): Declare replacement.
9811         * doc/functions/strerror.texi (strerror): Document the Interix
9812         shortcoming.
9813         * modules/string (Makefile.am): Support new hooks.
9814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
9815         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
9816         gl_FUNC_STRERROR_SEPARATE.
9817         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
9818         * lib/strerror.c (rpl_strerror): Provide replacement.
9819         * modules/strerror (Depends-on): Add string.
9820         (configure.ac): Detect use of module.
9821         * tests/test-strerror.c: New file.
9822         * modules/strerror-tests: New test module.
9823         * modules/argp (Depends-on): Add strerror.
9824         * modules/error (Depends-on): Likewise.
9825         Reported by Martin Koeppe.
9826
9827 2007-09-24  Bruno Haible  <bruno@clisp.org>
9828
9829         * README: Update git instructions.
9830
9831 2007-09-24  Eric Blake  <ebb9@byu.net>
9832
9833         Revert fpending breakage from 2007-09-08.
9834         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
9835         __fpending.c.
9836
9837 2007-09-24  Jim Meyering  <jim@meyering.net>
9838
9839         filenamecat.c: Add a test.
9840         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
9841         showing how the function works when DIR is the empty string.
9842
9843 2007-09-21  Simon Josefsson  <simon@josefsson.org>
9844
9845         * tests/test-canonicalize.sh: Turn on executable bit.
9846
9847 2007-09-19  Eric Blake  <ebb9@byu.net>
9848
9849         * README: Update CVS instructions.
9850
9851 2007-09-18  Bruno Haible  <bruno@clisp.org>
9852
9853         * modules/areadlink: New file.
9854         * lib/areadlink.h (areadlink): New declaration.
9855         * lib/areadlink.c: New file, based on lib/xreadlink.c.
9856
9857 2007-09-17  Jim Meyering  <jim@meyering.net>
9858
9859         * lib/savewd.c (ESTALE) [!defined]: Define.
9860         Reported to be required on Interix by Martin Koeppe.
9861
9862 2007-09-17  Bruno Haible  <bruno@clisp.org>
9863
9864         * gnulib-tool (func_version): Use $version.
9865
9866 2007-09-16  Bruno Haible  <bruno@clisp.org>
9867
9868         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
9869         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
9870         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
9871         Reported by Greg Schafer <gschafer@zip.com.au>.
9872
9873 2007-09-15  Bruno Haible  <bruno@clisp.org>
9874
9875         * gnulib-tool (sed): Try a little harder to make bash understand the
9876         alias.
9877         Reported by Bruce Korb <bruce.korb@gmail.com>.
9878
9879 2007-09-13  Eric Blake  <ebb9@byu.net>
9880
9881         * ChangeLog: Remove conflict markers.
9882
9883 2007-09-13  Simon Josefsson  <simon@josefsson.org>
9884
9885         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
9886         Reported by Bruno Haible <bruno@clisp.org>.
9887
9888 2007-09-12  Bruno Haible  <bruno@clisp.org>
9889
9890         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
9891         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
9892         is not defined.
9893
9894 2007-09-12  Eric Blake  <ebb9@byu.net>
9895
9896         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
9897         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
9898         Autoconf definition.
9899         * modules/euidaccess (Depends-on): Add extensions, for
9900         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
9901         * modules/fnmatch (Depends-on): Likewise.
9902         * modules/getaddrinfo (Depends-on): Likewise.
9903         * modules/getdelim (Depends-on): Likewise.
9904         * modules/getline (Depends-on): Likewise.
9905         * modules/getsubopt (Depends-on): Likewise.
9906         * modules/gettext (Depends-on): Likewise.
9907         * modules/group-member (Depends-on): Likewise.
9908         * modules/mbchar (Depends-on): Likewise.
9909         * modules/memmem (Depends-on): Likewise.
9910         * modules/mempcpy (Depends-on): Likewise.
9911         * modules/memrchr (Depends-on): Likewise.
9912         * modules/pagealign_alloc (Depends-on): Likewise.
9913         * modules/readutmp (Depends-on): Likewise.
9914         * modules/stpcpy (Depends-on): Likewise.
9915         * modules/stpncpy (Depends-on): Likewise.
9916         * modules/strchrnul (Depends-on): Likewise.
9917         * modules/strndup (Depends-on): Likewise.
9918         * modules/strsep (Depends-on): Likewise.
9919         * modules/strverscmp (Depends-on): Likewise.
9920         * modules/vasprintf (Depends-on): Likewise.
9921         * modules/wcwidth (Depends-on): Likewise.
9922         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
9923         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
9924         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
9925         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
9926         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9927         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9928         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
9929         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9930         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
9931         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9933         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
9934         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
9935         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9936         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
9937         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9938         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9939         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
9940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9941         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
9942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9943         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
9944         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
9945         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
9946         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
9947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9948         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
9949         so that lock.m4 can be used in gettext without extensions module.
9950
9951 2007-09-11  Bruno Haible  <bruno@clisp.org>
9952
9953         * m4/isc-posix.m4: Remove file.
9954         Suggested by Eric Blake.
9955
9956 2007-09-11  Eric Blake  <ebb9@byu.net>
9957
9958         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
9959
9960 2007-09-10  Bruno Haible  <bruno@clisp.org>
9961
9962         * posix-modules: Fix typo in error message.
9963         Reported by Matt <mkraai@beckman.com>.
9964
9965 2007-09-09  Bruno Haible  <bruno@clisp.org>
9966
9967         * doc/functions/getdelim.texi: Update list of platforms lacking the
9968         function.
9969         * doc/functions/getline.texi: Likewise.
9970
9971 2007-09-09  Jim Meyering  <jim@meyering.net>
9972
9973         * lib/hash.c (hash_initialize): Detect calloc failure.
9974         Reported by Bruno Haible.
9975
9976 2007-09-09  Bruno Haible  <bruno@clisp.org>
9977
9978         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
9979         malloc or realloc fails.
9980
9981 2007-09-09  Bruno Haible  <bruno@clisp.org>
9982
9983         * modules/getcwd (Depends-on): Add malloc-posix.
9984         * modules/glob (Depends-on): Likewise.
9985         * modules/putenv (Depends-on): Likewise.
9986         * modules/strdup (Depends-on): Likewise.
9987         * modules/getdelim (Depends-on): Add realloc-posix.
9988         * modules/read-file (Depends-on): Likewise.
9989
9990 2007-09-09  Bruno Haible  <bruno@clisp.org>
9991
9992         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
9993         (gl_FUNC_MALLOC_POSIX): Require it.
9994         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
9995         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
9996         * modules/realloc (Files): Add m4/malloc.m4.
9997         * modules/calloc (Files): Likewise.
9998
9999 2007-09-09  Bruno Haible  <bruno@clisp.org>
10000
10001         * modules/malloc-posix: New file.
10002         * modules/malloc (Depends-on): Add malloc-posix.
10003         * lib/malloc.c: Include errno.h.
10004         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
10005         and a POSIX-compatible malloc into a single function. Set ENOMEM
10006         when returning NULL.
10007         * m4/malloc.m4: New file.
10008         * doc/functions/malloc.texi: Mention the malloc-posix module.
10009         * lib/stdlib_.h (malloc): New declaration.
10010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10011         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
10012         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
10013         and HAVE_MALLOC_POSIX.
10014
10015 2007-09-09  Bruno Haible  <bruno@clisp.org>
10016
10017         * modules/realloc-posix: New file.
10018         * modules/realloc (Depends-on): Add realloc-posix.
10019         * lib/realloc.c: Include errno.h.
10020         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
10021         and a POSIX-compatible realloc into a single function. Set ENOMEM
10022         when returning NULL.
10023         * m4/realloc.m4: New file.
10024         * doc/functions/realloc.texi: Mention the realloc-posix module.
10025         * lib/stdlib_.h (realloc): New declaration.
10026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10027         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
10028         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
10029         and HAVE_REALLOC_POSIX.
10030
10031 2007-09-09  Bruno Haible  <bruno@clisp.org>
10032
10033         * modules/calloc-posix: New file.
10034         * modules/calloc (Depends-on): Add calloc-posix.
10035         * lib/calloc.c: Include errno.h.
10036         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
10037         and a POSIX-compatible calloc into a single function. Set ENOMEM
10038         when returning NULL.
10039         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
10040         * doc/functions/calloc.texi: Mention the calloc-posix module.
10041         * lib/stdlib_.h (calloc): New declaration.
10042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10043         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
10044         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
10045         and HAVE_CALLOC_POSIX.
10046
10047 2007-09-09  Bruno Haible  <bruno@clisp.org>
10048
10049         Allow for modules to show an arbitrary notice.
10050         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
10051         * gnulib-tool: New option --extract-notice.
10052         (func_usage): Document it.
10053         (sed_extract_prog): Update.
10054         (func_get_notice): New function.
10055         (func_modules_notice): New function.
10056         (func_import, func_create_testdir): Invoke it.
10057         Suggested by Jim Meyering.
10058
10059 2007-09-09  Bruno Haible  <bruno@clisp.org>
10060
10061         * gnulib-tool: New options --verbose, --quiet.
10062         (func_usage): Document them.
10063         (verbose): New variable.
10064         (func_execute_command): New function.
10065         (func_import): Don't show the module list and the file list if
10066         $verbose < 0.
10067         (func_create_testdir): Likewise. Use func_execute_command.
10068         (func_create_megatestdir): Use func_execute_command.
10069
10070 2007-09-08  Bruno Haible  <bruno@clisp.org>
10071
10072         * gnulib-tool (func_import): Prefer rsync over wget when available,
10073         for fetching the PO files.
10074
10075 2007-09-08  Bruno Haible  <bruno@clisp.org>
10076
10077         * posix-modules: New file. Portions copied from gnulib-tool.
10078         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
10079
10080 2007-09-08  Jim Meyering  <jim@meyering.net>
10081
10082         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
10083         * lib/fpending.h: Rename from __fpending.h.
10084         * lib/fpending.c: Rename from __fpending.c.
10085         Include "fpending.h", not "__fpending.h".
10086         * lib/__fpending.h, lib/__fpending.c: Remove files.
10087         * modules/fpending (Files): Reflect new file names.
10088         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
10089
10090 2007-09-08  Bruno Haible  <bruno@clisp.org>
10091
10092         * m4/inttypes-h.m4: Remove stub file.
10093
10094 2007-09-07  Simon Josefsson  <simon@josefsson.org>
10095
10096         * doc/headers/stdint.texi: Discuss #include_next issue.
10097
10098 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         * build-aux/bootstrap: Remove obsolete comment about wget --help.
10101
10102 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10103
10104         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
10105         in variable name.
10106
10107 2007-09-03  Jim Meyering  <jim@meyering.net>
10108
10109         New module: git-version-gen.
10110         * modules/git-version-gen: New file.
10111
10112         Import changes from coreutils for bootstrap script.
10113
10114         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
10115
10116         bootstrap: uses rsync to download the .po files
10117         * build-aux/bootstrap (po_download_command_format): New global.
10118         (download_po_files): Use rsync.
10119         (update_po_files): Don't remove .po files after download,
10120         so future rsync runs can take advantage of the copies.
10121
10122         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10123
10124         Solve the unnecessary-.po-file-regeneration problem once and for all.
10125         * build-aux/bootstrap (download_po_files): New function, renamed from
10126         get_translations.  Now, downloads, but doesn't update LINGUAS.
10127         (update_po_files): New function.
10128
10129         bootstrap: Ignore more.
10130         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10131         uniwidth to e.g., lib/.gitignore.
10132         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10133
10134         * build-aux/bootstrap: New setting: vc_ignore.
10135         (insert_sorted_if_absent): Create $file if absent.
10136         Adapt to new, possibly empty, list: $vc_ignore.
10137
10138         bootstrap: generate more ignorable names
10139         * build-aux/bootstrap (slurp): When generating ignorable names,
10140         also map .sin to .sed, .gperf to .c, and .y to .c.
10141
10142 2007-09-03  Jim Meyering  <jim@meyering.net>
10143
10144         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10145         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10146
10147 2007-09-02  Bruno Haible  <bruno@clisp.org>
10148
10149         Fix mis-recognition of 'mcs' on QNX 6.
10150         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10151         output contains the string "Mono".
10152         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10153         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10154
10155 2007-09-01  Bruno Haible  <bruno@clisp.org>
10156
10157         Fix collision between uniwidth/* and linebreak modules.
10158         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10159         u32_width): Remove declarations.
10160         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10161         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10162         streq3, streq2, streq1, streq0): Remove functions.
10163         (STREQ): Remove macro.
10164         (is_cjk_encoding): Remove function.
10165         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10166         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10167         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10168         * NEWS: Document the change.
10169
10170 2007-09-01  Bruno Haible  <bruno@clisp.org>
10171
10172         * lib/streq.h: Add double-inclusion guard.
10173
10174 2007-09-01  Karl Berry  <karl@gnu.org>
10175
10176         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10177
10178 2007-08-28  Jim Meyering  <jim@meyering.net>
10179
10180         Rename mreadlink_with_size to areadlink_with_size.
10181         * NEWS: Document the change.
10182         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10183         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10184         * lib/mreadlink.h: Rename this to...
10185         * lib/areadlink.h: ...this.
10186         * modules/mreadlink-with-size: Rename this to...
10187         * modules/areadlink-with-size: ...this.
10188         * lib/canonicalize.c: Reflect the renaming.
10189         * modules/canonicalize: Likewise.
10190
10191 2007-08-26  Bruno Haible  <bruno@clisp.org>
10192
10193         * gnulib-tool (func_import): When deciding which files to remove,
10194         consider also dangling symbolic links.
10195         Reported by Eric Blake.
10196
10197 2007-08-26  Bruno Haible  <bruno@clisp.org>
10198
10199         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10200
10201 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10202
10203         * lib/readline.c: Don't include getline.h, the prototype is now
10204         found in stdio.h.
10205
10206 2007-08-23  Jim Meyering  <jim@meyering.net>
10207
10208         Getdelim touchup.
10209         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10210         around the funlockfile call, since funlockfile never sets errno.
10211         Don't set errno upon failed realloc.
10212
10213 2007-08-22  Eric Blake  <ebb9@byu.net>
10214
10215         Getline touchups.
10216         * lib/getdelim.c (getdelim): Revert regression that required *n to
10217         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10218         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10219         getdelim, rather than whether implementation is missing.
10220         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10221         * lib/stdio_.h (getline): Also declare if replacement is
10222         required.
10223         * doc/functions/getdelim.texi: New file.
10224         * doc/functions/getline.texi: Likewise.
10225         * doc/gnulib.texi (Function Substitutes): Add new files.
10226         Reported by Bruno Haible.
10227
10228 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10229
10230         * users.txt: Add Guile.
10231
10232 2007-08-22  Eric Blake  <ebb9@byu.net>
10233
10234         * tests/test-getdelim.c (main): Use remove, not unlink.
10235         * tests/test-getline.c (main): Likewise.
10236
10237         Move getline and getdelim into stdio.h, per POSIX 200x.
10238         * modules/getline (Files): Remove getline.h.
10239         (Depends-on): Add stdio.
10240         (configure.ac): Add module indicator.
10241         * modules/getdelim (Files): Remove getdelim.h.
10242         (Depends-on): Add stdio.
10243         (configure.ac): Add module indicator.
10244         * modules/stdio (Makefile.am): Work with new indicators.
10245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10246         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10247         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10248         * lib/getdelim.h: Delete.
10249         * lib/getline.h: Delete.
10250         * lib/stdio_.h (getdelim, getline): Declare.
10251         * modules/getdelim-tests: New module.
10252         * modules/getline-tests: Likewise.
10253         * tests/test-getdelim.c: New file.
10254         * tests/test-getline.c: Likewise.
10255         * NEWS: Document the change.
10256         * lib/getline.c: Update choice of header.
10257         * lib/csharpcomp.c: Likewise.
10258         * lib/getpass.c: Likewise.
10259         * lib/javacomp.c: Likewise.
10260         * lib/javaversion.c: Likewise.
10261         * lib/yesno.c: Likewise.
10262         * lib/getdelim.c: Likewise.
10263         (getdelim): Set errno on failure, and avoid memory leak.
10264
10265 2007-08-19  Bruno Haible  <bruno@clisp.org>
10266
10267         * modules/closein (Depends-on): Add freadahead.
10268         * lib/closein.c: Include freadahead.h.
10269         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10270         is zero.
10271
10272 2007-08-19  Bruno Haible  <bruno@clisp.org>
10273
10274         * modules/freadahead-tests: New file.
10275         * tests/test-freadahead.sh: New file.
10276         * tests/test-freadahead.c: New file.
10277
10278         * modules/freadahead: New file.
10279         * lib/freadahead.h: New file.
10280         * lib/freadahead.c: New file.
10281         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10282         fbufmode, fpurge, freadable, fwritable.
10283
10284 2007-08-19  Eric Blake  <ebb9@byu.net>
10285
10286         Test yesno in combination with closein.
10287         * lib/yesno.c (yesno): Document use of stdin.
10288         * modules/yesno-tests (Files): New module.
10289         * tests/test-yesno.c (main): New file.
10290         * tests/test-yesno.sh: Likewise.
10291
10292 2007-08-19  Bruno Haible  <bruno@clisp.org>
10293
10294         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10295         * lib/fseeko.c (rpl_fseeko): Likewise.
10296         * lib/fseterr.c (fseterr): Likewise.
10297
10298 2007-08-19  Bruno Haible  <bruno@clisp.org>
10299
10300         * tests/test-lseek.c (main): Disable a test for BeOS.
10301         * doc/functions/lseek.texi: Document the BeOS bug.
10302
10303 2007-08-19  Bruno Haible  <bruno@clisp.org>
10304             Eric Blake  <ebb9@byu.net>
10305
10306         * lib/lseek.c: Include <sys/stat.h>.
10307         (rpl_lseek): Add workaround code also for Unix platforms.
10308         Needed for BeOS.
10309         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10310         * doc/functions/lseek.texi: Document BeOS definiency.
10311
10312 2007-08-18  Bruno Haible  <bruno@clisp.org>
10313
10314         * modules/fstrcmp-tests: New file.
10315         * tests/test-fstrcmp.c: New file.
10316
10317 2007-08-18  Bruno Haible  <bruno@clisp.org>
10318
10319         * modules/fstrcmp: New file, from GNU gettext with modifications.
10320         * lib/fstrcmp.h: New file, from GNU gettext.
10321         * lib/fstrcmp.c: New file, from GNU gettext.
10322         * MODULES.html.sh (String handling): Add fstrcmp.
10323
10324 2007-08-18  Bruno Haible  <bruno@clisp.org>
10325
10326         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10327         'bool'.
10328         (diag, compareseq): Remove const from the ctxt argument.
10329         (USE_HEURISTIC): Undefine at the end.
10330
10331 2007-08-18  Jim Meyering  <jim@meyering.net>
10332
10333         New file: lib/idcache.h
10334         * NEWS: Mention the addition.
10335         * modules/idcache (Files): Add lib/idcache.h
10336         * lib/idcache.c: Include "idcache.h".
10337         Don't include <sys/types.h>.
10338         Add a FIXME comment.
10339         Move file-scoped "static" declarations to the top.
10340         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10341
10342 2007-08-17  Bruno Haible  <bruno@clisp.org>
10343         and Paul Eggert  <eggert@cs.ucla.edu>
10344
10345         * MODULES.html.sh: Add diffseq.
10346         * modules/diffseq: New file.
10347         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10348         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10349
10350 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10351
10352         Import changes from coreutils for bootstrap script.
10353
10354         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10355
10356         * build-aux/bootstrap (slurp): Work even in environments where
10357         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10358         current code does not slurp files whose names start with ".", and
10359         this looks like it might be a troublesome area.
10360
10361         2007-07-11  Jim Meyering  <jim@meyering.net>
10362
10363         If there's a GPL vN copyright comment, require that N == 3.
10364
10365         2007-07-08  Jim Meyering  <jim@meyering.net>
10366
10367         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10368         * build-aux/bootstrap (mam_template): Move definition out of loop.
10369
10370         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10371
10372         * build-aux/bootstrap (symlink_to_dir): Rename function from
10373         symlink_to_gnulib.  Add a directory parameter.  Update all
10374         callers.
10375         (cp_mark_as_generated): Also check for -- and link to -- files in
10376         gl/.
10377
10378         2007-07-08  Jim Meyering  <jim@meyering.net>
10379
10380         Adapt to deeper hierarchy in gnulib.
10381         * build-aux/bootstrap (symlink_to_dir): If the destination
10382         directory doesn't exist, create it. This is required at least for
10383         "lib/uniwidth/cjk.h".
10384
10385         2007-05-15  Jim Meyering  <jim@meyering.net>
10386
10387         * build-aux/bootstrap: Now that generated Makefile.am files
10388         are no longer under version control, they must be created at
10389         bootstrap time.
10390
10391 2007-08-14  Ben Pfaff  <blp@gnu.org>
10392
10393         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10394
10395 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10396
10397         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10398         given the changes below.
10399         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10400         even on hosts that have padding bits beyond the supported 64.
10401
10402 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10405         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10406         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10407         depends on it.
10408         (xstrtol_error): Remove.
10409         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10410         but with a different signature.
10411         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10412         * lib/xstrtol-error.c: Include exitfail.h.
10413         (xstrtol_fatal): New function, with a different signature from the
10414         old xstrtol_error, so that the caller need not worry about passing
10415         in an exit status, or about storage management of the option argument.
10416         (xstrtol_error): Now a static function.  Redo signature to
10417         implement xstrtol_fatal.  Output the correct number of hyphens in
10418         front of the option so that the caller need not worry about
10419         storage management.
10420         (N_): New macro.
10421         (_): Remove; not used now.
10422         * modules/xstrtol: Depend on getopt.
10423         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10424         of old STRTOL_FATAL_ERROR macro.
10425         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10426         of test program.
10427         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10428         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10429
10430 2007-08-08  Eric Blake  <ebb9@byu.net>
10431
10432         * lib/xstrtol-error.c: Add missing include.
10433
10434         Move xstrtol messages into gnulib domain, when --pobase is used.
10435         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10436         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10437         * modules/xstrtol (Files): Distribute new file.
10438         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10439         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10440         * tests/test-xstrtol.c: ...into new file.
10441         * tests/test-xstrtoul.c: Also test xstrtoul.
10442         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10443         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10444         * tests/test-xstrtol.sh: Drive the tests.
10445         * tests/test-xstrtoimax.sh: Likewise.
10446         * tests/test-xstrtoumax.sh: Likewise.
10447         * modules/xstrtol-tests: New module.
10448         * modules/xstrtoimax-tests: Likewise.
10449         * modules/xstrtoumax-tests: Likewise.
10450
10451 2007-08-08  Jim Meyering  <jim@meyering.net>
10452
10453         New function: mfile_name_concat.
10454         * lib/filenamecat.c (mfile_name_concat): New function, just like
10455         file_name_concat, but return NULL upon failure rather than exiting
10456         with a diagnostic.
10457         * lib/filenamecat.h: Declare it.
10458
10459 2007-08-07  Bruno Haible  <bruno@clisp.org>
10460
10461         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10462         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10463         warning from gcc.
10464         Reported by Eric Blake.
10465
10466 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10467
10468         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10469         * modules/crypto/arcfour (License): Likewise.
10470         * modules/crypto/des-tests (License): Likewise.
10471         * modules/crypto/gc-arctwo-tests (License): Likewise.
10472         * modules/crypto/gc-des-tests (License): Likewise.
10473         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10474         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10475         * modules/crypto/gc-md2-tests (License): Likewise.
10476         * modules/crypto/gc-md4-tests (License): Likewise.
10477         * modules/crypto/gc-md5-tests (License): Likewise.
10478         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10479         * modules/crypto/gc-rijndael-tests (License): Likewise.
10480         * modules/crypto/gc-sha1-tests (License): Likewise.
10481         * modules/crypto/gc-tests (License): Likewise.
10482         * modules/crypto/hmac-md5 (License): Likewise.
10483         * modules/crypto/hmac-sha1 (License): Likewise.
10484         * modules/crypto/md2-tests (License): Likewise.
10485         * modules/crypto/md4-tests (License): Likewise.
10486         * modules/crypto/md5 (License): Likewise.
10487         * modules/crypto/rijndael (License): Likewise.
10488         * modules/crypto/sha1 (License): Likewise.
10489         * modules/memxor (License): Likewise.
10490
10491 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10492         and Bruno Haible  <bruno@clisp.org>
10493
10494         * NEWS: Describe interface changes to human, xstrtol.
10495         * lib/human.h: Include <xstrtol.h>.
10496         (human_options): Return enum strtol_error, not int.  Remove
10497         bool arg; take int * instead.
10498         * lib/human.c: Don't include "gettext.h".
10499         (_): Remove; no longer used.
10500         Don't include <xstrtol.h>, since human.h does it.
10501         (human_options): Adjust to abovementioned interface changes.
10502         Do not report error to stderr; that's now the caller's
10503         responsibility.
10504         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10505         interface change.
10506         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10507         Str, Argument_type_string.  All uses changed.  Put " argument"
10508         in diagnostics to make them clearer.  Change wording of suffix
10509         message for clarity.
10510         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10511         Argument_type_string.
10512         (STRTOL_FATAL_WARN): Remove; no longer used.
10513         * modules/human (Depends-on): Remove gettext-h.
10514
10515 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10516
10517         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10518
10519 2007-07-31  Bruno Haible  <bruno@clisp.org>
10520
10521         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10522         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10523         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10524
10525 2007-07-31  Bruno Haible  <bruno@clisp.org>
10526
10527         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10528         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10529
10530 2007-07-30  Bruno Haible  <bruno@clisp.org>
10531
10532         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10533         * modules/c-ctype (License): Likewise.
10534         * modules/c-strcase (License): Likewise.
10535         * modules/check-version (License): Likewise.
10536         * modules/iconv (License): Likewise.
10537         * modules/iconv_open (License): Likewise.
10538         * modules/read-file (License): Likewise.
10539         * modules/striconv (License): Likewise.
10540         * modules/strverscmp (License): Likewise.
10541         * modules/vasprintf (License): Likewise.
10542         * modules/crypto/des (License): Likewise.
10543         * modules/crypto/gc (License): Likewise.
10544         * modules/crypto/gc-arcfour (License): Likewise.
10545         * modules/crypto/gc-arctwo (License): Likewise.
10546         * modules/crypto/gc-des (License): Likewise.
10547         * modules/crypto/gc-hmac-md5 (License): Likewise.
10548         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10549         * modules/crypto/gc-md2 (License): Likewise.
10550         * modules/crypto/gc-md4 (License): Likewise.
10551         * modules/crypto/gc-md5 (License): Likewise.
10552         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10553         * modules/crypto/gc-random (License): Likewise.
10554         * modules/crypto/gc-rijndael (License): Likewise.
10555         * modules/crypto/gc-sha1 (License): Likewise.
10556         * modules/crypto/md2 (License): Likewise.
10557         * modules/crypto/md4 (License): Likewise.
10558
10559 2007-07-30  Jim Meyering  <jim@meyering.net>
10560
10561         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10562         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10563         it has valid stat data.  This bug would cause du not to count the
10564         sizes of inaccessible directories.
10565         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10566         in <http://bugzilla.redhat.com/250077>.
10567
10568 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10569             Bruno Haible  <bruno@clisp.org>
10570
10571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10572         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10573         #include_next, gives a diagnostic about it, but reports no error in
10574         the exit code.
10575         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10576
10577 2007-07-24  Ben Pfaff  <blp@gnu.org>
10578
10579         Improve name: "count-one-bits" is better than "popcount".
10580         * MODULES.html.sh: Update name.
10581         * lib/popcount.h: Renamed lib/count-one-bits.h.
10582         (popcount): Renamed count_one_bits.
10583         (popcountl): Renamed count_one_bits_l.
10584         (popcountll): Renamed count_one_bits_ll.
10585         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10586         * modules/popcount: Renamed module/count-one-bits.
10587         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10588         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10589
10590 2007-07-23  Ben Pfaff  <blp@gnu.org>
10591
10592         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10593         better code generation, and add U to large constants to avoid
10594         warnings, in non-GCC case.
10595         Suggested by Bruno Haible.
10596
10597 2007-07-23  Ben Pfaff  <blp@gnu.org>
10598
10599         * lib/popcount.h: Use verify_true instead of if...abort.
10600         * modules/popcount: Depend on verify module.
10601         Suggested by Jim Meyering.
10602
10603 2007-07-23  Bruno Haible  <bruno@clisp.org>
10604
10605         * gnulib-tool (func_import): Create a .cvsignore file also when the
10606         directory is not yet in CVS but the toplevel directory is. When
10607         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10608         Reported by Karl Berry.
10609
10610 2007-07-22  Ben Pfaff  <blp@gnu.org>
10611
10612         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10613         case.
10614         Suggested by Eric Blake.
10615
10616 2007-07-22  Ben Pfaff  <blp@gnu.org>
10617
10618         New module: popcount.
10619         * MODULES.html.sh: Add popcount.
10620         * modules/popcount: New file.
10621         * modules/popcount-tests: New file.
10622         * tests/test-popcount.c: New file.
10623         * lib/popcount.h: New file.
10624         * m4/popcount.m4: New file.
10625
10626 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         * build-aux/announce-gen: Update to GPLv3.
10629
10630         * build-aux/config.guess: Update from config.
10631
10632 2007-07-21  Bruno Haible  <bruno@clisp.org>
10633
10634         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10635         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10636
10637 2007-07-20  Jim Meyering  <jim@meyering.net>
10638
10639         * check-module: Diagnose a self-dependency.
10640
10641 2007-07-19  Bruno Haible  <bruno@clisp.org>
10642
10643         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10644         empty.
10645         Reported by Eric Blake.
10646
10647 2007-07-18  Bruno Haible  <bruno@clisp.org>
10648
10649         * gnulib-tool: New options --po-base, --po-domain.
10650         (func_usage): Document them.
10651         (pobase, po_domain): New variables.
10652         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10653         DEFAULT_TEXT_DOMAIN.
10654         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10655         (func_import): Consider pobase and po_domain. Create a po/ directory.
10656         (func_create_testdir): Set pobase and po_domain to empty.
10657         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10658         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10659
10660 2007-07-18  Bruno Haible  <bruno@clisp.org>
10661
10662         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10663         EXTRA_DIST augmentation for files in build-aux/.
10664
10665 2007-07-16  Bruno Haible  <bruno@clisp.org>
10666
10667         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10668         * modules/getdelim (License): Likewise.
10669
10670 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10671
10672         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10673         * modules/d-type (License): Likewise.
10674         * modules/extensions (License): Likewise.
10675         * modules/fnmatch (License): Likewise.
10676         * modules/fseeko (License): Likewise.
10677         * modules/getaddrinfo (License): Likewise.
10678         * modules/getline (License): Likewise.
10679         * modules/getlogin_r (License): Likewise.
10680         * modules/getpass (License): Likewise.
10681         * modules/gettimeofday (License): Likewise.
10682         * modules/glob (License): Likewise.
10683         * modules/inet_ntop (License): Likewise.
10684         * modules/malloc (License): Likewise.
10685         * modules/malloca (License): Likewise.
10686         * modules/memmem (License): Likewise.
10687         * modules/mempcpy (License): Likewise.
10688         * modules/memset (License): Likewise.
10689         * modules/minmax (License): Likewise.
10690         * modules/mktime (License): Likewise.
10691         * modules/netinet_in (License): Likewise.
10692         * modules/pathmax (License): Likewise.
10693         * modules/poll (License): Likewise.
10694         * modules/regex (License): Likewise.
10695         * modules/snprintf (License): Likewise.
10696         * modules/stdbool (License): Likewise.
10697         * modules/stdint (License): Likewise.
10698         * modules/stdio (License): Likewise.
10699         * modules/strcase (License): Likewise.
10700         * modules/strcasestr (License): Likewise.
10701         * modules/strdup (License): Likewise.
10702         * modules/string (License): Likewise.
10703         * modules/strndup (License): Likewise.
10704         * modules/strnlen (License): Likewise.
10705         * modules/strpbrk (License): Likewise.
10706         * modules/strptime (License): Likewise.
10707         * modules/strsep (License): Likewise.
10708         * modules/sys_select (License): Likewise.
10709         * modules/sys_socket (License): Likewise.
10710         * modules/sys_stat (License): Likewise.
10711         * modules/sys_time (License): Likewise.
10712         * modules/time (License): Likewise.
10713         * modules/time_r (License): Likewise.
10714         * modules/timegm (License): Likewise.
10715         * modules/unistd (License): Likewise.
10716         * modules/vsnprintf (License): Likewise.
10717         * modules/wctype (License): Likewise.
10718
10719 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10720
10721         * modules/argz (License): LGPLv2+.
10722
10723 2007-07-15  Karl Berry  <karl@gnu.org>
10724
10725         * doc/gnulib.texi: revise node structure per new fdl.texi.
10726
10727 2007-07-14  Bruno Haible  <bruno@clisp.org>
10728
10729         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
10730         the output file.
10731         * lib/uniname/uninames.h: Regenerated.
10732
10733 2007-07-14  Karl Berry  <karl@gnu.org>
10734
10735         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10736         omitting sectioning and index commands.
10737
10738 2007-07-13  Bruno Haible  <bruno@clisp.org>
10739
10740         New gnulib-tool option --more-symlinks.
10741         * gnulib-tool (func_usage): Document --more-symlinks.
10742         (do_copyrights): New variable.
10743         Recognize option --more-symlinks.
10744         (func_import): Don't add a copyright notice transform to
10745         sed_transform_lib_file if do_copyrights is empty.
10746
10747 2007-07-13  Bruno Haible  <bruno@clisp.org>
10748
10749         * lib/vasnprintf.c (decimal_point_char): Define also if
10750         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
10751         && !NEED_PRINTF_DIRECTIVE_A.
10752         Reported by Clemens Koller <clemens.koller@anagramm.de> via
10753         Gary V. Vaughan <gary@gnu.org>.
10754
10755 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10756
10757         * lib/inttypes_.h: Undo previous change, since it was fixed
10758         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
10759
10760 2007-07-13  Bruno Haible  <bruno@clisp.org>
10761
10762         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
10763         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
10764
10765 2007-07-13  Jim Meyering  <jim@meyering.net>
10766
10767         df: Don't fail for Tru64's "file-on-file mount".
10768         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
10769         so we fall through and use statfs instead.  Details here:
10770         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
10771         Reported by Albert Chin.
10772
10773 2007-07-13  Bruno Haible  <bruno@clisp.org>
10774
10775         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
10776         * modules/configmake (License): Likewise.
10777         * modules/gettext (License): Likewise.
10778         * modules/gettext-h (License): Likewise.
10779         * modules/include_next (License): Likewise.
10780         * modules/link-warning (License): Likewise.
10781         * modules/localcharset (License): Likewise.
10782         * modules/localename (License): Likewise.
10783         * modules/lock (License): Likewise.
10784         * modules/relocatable-lib-lgpl (License): Likewise.
10785         * modules/size_max (License): Likewise.
10786         * modules/vasnprintf (License): Likewise.
10787         * modules/wchar (License): Likewise.
10788         * modules/xsize (License): Likewise.
10789
10790 2007-07-13  Bruno Haible  <bruno@clisp.org>
10791
10792         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
10793         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
10794
10795 2007-07-12  Bruno Haible  <bruno@clisp.org>
10796
10797         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
10798         in the modules files.
10799
10800 2007-07-11  Karl Berry  <karl@gnu.org>
10801
10802         * MODULES.html.sh (func_module): use
10803          sed -e '\|^'"${includefile}"'$|d'
10804          instead of /.../d, to avoid errors on $includefile's containing /.
10805
10806 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10807
10808         * gnulib-tool (func_import): Avoid duplication of --avoid
10809         statements
10810         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
10811         names to `_' in variable names.
10812
10813 2007-07-10  Eric Blake  <ebb9@byu.net>
10814
10815         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
10816         * NEWS: Document this change.
10817
10818 2007-07-08  Bruno Haible  <bruno@clisp.org>
10819
10820         Update to Unicode 5.0.
10821         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
10822         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
10823         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
10824         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
10825         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
10826         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
10827         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
10828         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
10829         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
10830         U+10A3F, U+1D242..U+1D244.
10831         (nonspacing_table_ind): Update.
10832         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
10833         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
10834
10835 2007-07-08  Bruno Haible  <bruno@clisp.org>
10836
10837         Update to Unicode 5.0.
10838         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
10839         code transform. Extend the name index field of unicode_name_to_code and
10840         unicode_code_to_name from 16 to 24 bits.
10841         * lib/uniname/uniname.c (unicode_character_name,
10842         unicode_name_character): Add the range 0x12xxx to the code transform.
10843         * lib/uniname/uninames.h: Regenerated.
10844         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
10845
10846 2007-07-07  Bruno Haible  <bruno@clisp.org>
10847
10848         * modules/wcwidth-tests: New file.
10849         * tests/test-wcwidth.c: New file.
10850
10851         Work around MacOS X wcwidth() bug.
10852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
10853         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
10854         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
10855         original wcwidth in non-UTF-8 locales.
10856         * modules/wcwidth (Depends-on): Add localcharset, streq,
10857         uniwidth/width.
10858         * doc/functions/wcwidth.texi: Update.
10859
10860 2007-07-07  Bruno Haible  <bruno@clisp.org>
10861
10862         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
10863         (wcwidth): New declaration.
10864         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
10865         macros.
10866         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
10867         here. Prepare for creating <wchar.h> unconditionally.
10868         * modules/wchar (Depends-on): Add link-warning.
10869         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
10870         REPLACE_WCWIDTH, and GL_LINK_WARNING.
10871         * lib/wcwidth.h: Remove file.
10872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
10873         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
10874         * modules/wcwidth (Files): Remove lib/wcwidth.h.
10875         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
10876         (Include): Replace wcwidth.h with <wchar.h>.
10877         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
10878         * lib/mbchar.h: Don't include wcwidth.h.
10879         * lib/mbswidth.c: Likewise.
10880         * NEWS: Mention the change.
10881
10882 2007-07-07  Bruno Haible  <bruno@clisp.org>
10883
10884         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
10885         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
10886         definition with an external declaration.
10887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
10888         defined as a function. Remove AC_C_INLINE requirement.
10889         * modules/wcwidth (Files): Add lib/wcwidth.c.
10890         (Makefile.am): Remove redundant statement.
10891
10892 2007-07-07  Bruno Haible  <bruno@clisp.org>
10893
10894         * MODULES.html.sh (Unicode string functions): Add the new modules.
10895
10896         * tests/uniwidth/test-u32-strwidth.c: New file.
10897         * modules/uniwidth/u32-strwidth-tests: New file.
10898
10899         * lib/uniwidth/u32-strwidth.c: New file.
10900         * modules/uniwidth/u32-strwidth: New file.
10901
10902         * tests/uniwidth/test-u16-strwidth.c: New file.
10903         * modules/uniwidth/u16-strwidth-tests: New file.
10904
10905         * lib/uniwidth/u16-strwidth.c: New file.
10906         * modules/uniwidth/u16-strwidth: New file.
10907
10908         * tests/uniwidth/test-u8-strwidth.c: New file.
10909         * modules/uniwidth/u8-strwidth-tests: New file.
10910
10911         * lib/uniwidth/u8-strwidth.c: New file.
10912         * modules/uniwidth/u8-strwidth: New file.
10913
10914         * tests/uniwidth/test-u32-width.c: New file.
10915         * modules/uniwidth/u32-width-tests: New file.
10916
10917         * lib/uniwidth/u32-width.c: New file.
10918         * modules/uniwidth/u32-width: New file.
10919
10920         * tests/uniwidth/test-u16-width.c: New file.
10921         * modules/uniwidth/u16-width-tests: New file.
10922
10923         * lib/uniwidth/u16-width.c: New file.
10924         * modules/uniwidth/u16-width: New file.
10925
10926         * tests/uniwidth/test-u8-width.c: New file.
10927         * modules/uniwidth/u8-width-tests: New file.
10928
10929         * lib/uniwidth/u8-width.c: New file.
10930         * modules/uniwidth/u8-width: New file.
10931
10932         * tests/uniwidth/test-uc_width.c: New file.
10933         * modules/uniwidth/width-tests: New file.
10934
10935         * lib/uniwidth/width.c: New file, from GNU libiconv.
10936         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
10937         * modules/uniwidth/width: New file.
10938
10939         * lib/uniwidth.h: New file, from GNU libiconv.
10940         * modules/uniwidth/base: New file.
10941
10942 2007-07-07  Bruno Haible  <bruno@clisp.org>
10943
10944         * lib/uniname.h: New file, from GNU gettext.
10945         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
10946         * lib/uniname/uninames.h: New file, from GNU gettext.
10947         * lib/uniname/uniname.c: New file, from GNU gettext.
10948         * tests/uniname/test-uninames.sh: New file.
10949         * tests/uniname/test-uninames.c: New file, from GNU gettext.
10950         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
10951         * modules/uniname/base: New file.
10952         * modules/uniname/uniname: New file.
10953         * modules/uniname/uniname-tests: New file.
10954         * MODULES.html.sh (Unicode string functions): Add the new modules.
10955
10956 2007-07-06  Bruno Haible  <bruno@clisp.org>
10957
10958         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
10959
10960 2007-07-06  Bruno Haible  <bruno@clisp.org>
10961
10962         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
10963         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
10964         includes <cygwin/sys_time.h> which includes <sys/select.h> which
10965         include <sys/time.h>.
10966         Reported by Eric Blake.
10967
10968 2007-07-06  Eric Blake  <ebb9@byu.net>
10969
10970         Fix testing canonicalize on cygwin.
10971         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10972         Revert patch from 2007-06-19.
10973         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
10974         canonicalize module is also in use.
10975         * tests/test-canonicalize.c: New file.
10976         * tests/test-canonicalize.sh: Likewise.
10977         * modules/canonicalize-tests: Likewise.
10978
10979 2007-07-06  Jim Meyering  <jim@meyering.net>
10980
10981         * lib/getugroups.c (getugroups): Detect getgrent failure.
10982         Adjust comment to reflect reality: this function may return -1.
10983
10984 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10985
10986         * build-aux/bootstrap (TP_URL,get_translations): Update to use
10987         the new TP address.
10988         (usage): Fix typo
10989         (gnulib_mk): New variable.
10990
10991 2007-07-05  Jim Meyering  <jim@meyering.net>
10992
10993         Don't let endgrent clobber errno, no matter how improbable.
10994         * lib/getugroups.c (getugroups): Save and restore errno around
10995         endgrent call.
10996
10997         Close the group DB even when failing with 2^31 or more members.
10998         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
10999
11000 2007-07-04  Jim Meyering  <jim@meyering.net>
11001
11002         * lib/getugroups.h: New file.
11003         * lib/getugroups.c: Include "getugroups.h".
11004         Remove uses of "register" keyword.
11005         Move local variable, "cp", down into scope where used.
11006         Give "username" parameter the "const" attribute.
11007         * modules/getugroups (Files): Add lib/getugroups.h
11008
11009 2007-07-04  Karl Berry  <karl@gnu.org>
11010
11011         * MODULES.html.sh (func_all_modules): Complete rename of
11012         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
11013
11014 2007-07-02  Bruno Haible  <bruno@clisp.org>
11015
11016         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
11017         mode, when inttypes.h comes from gnulib.
11018         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11019
11020 2007-07-02  Simon Josefsson  <simon@josefsson.org>
11021
11022         * NEWS: Mention lgpl module name change.
11023
11024         * modules/lgpl-2.1: Renamed from lgpl.
11025
11026         * NEWS: Mention gpl module name change.
11027
11028         * modules/gpl-3.0: New file, based on gpl-2.0.
11029
11030         * modules/gpl-2.0: Renamed from gpl.
11031
11032         * modules/gpl: Fix filename, doc/gpl.texi is now found at
11033         doc/gpl-2.0.texi.
11034
11035 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11036
11037         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
11038         #define __STDC_LIMIT_MACROS temporarily while including
11039         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
11040         Problem reported by Joel E. Denny in
11041         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
11042
11043 2007-07-01  Bruno Haible  <bruno@clisp.org>
11044
11045         * lib/unistdio.h: New file.
11046         * lib/unistdio/u-asnprintf.h: New file.
11047         * lib/unistdio/u-asprintf.h: New file.
11048         * lib/unistdio/u-printf-args.c: New file.
11049         * lib/unistdio/u-printf-args.h: New file.
11050         * lib/unistdio/u-printf-parse.h: New file.
11051         * lib/unistdio/u-snprintf.h: New file.
11052         * lib/unistdio/u-sprintf.h: New file.
11053         * lib/unistdio/u-vasprintf.h: New file.
11054         * lib/unistdio/u-vsnprintf.h: New file.
11055         * lib/unistdio/u-vsprintf.h: New file.
11056         * lib/unistdio/ulc-asnprintf.c: New file.
11057         * lib/unistdio/ulc-asprintf.c: New file.
11058         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
11059         * lib/unistdio/ulc-printf-parse.c: New file.
11060         * lib/unistdio/ulc-snprintf.c: New file.
11061         * lib/unistdio/ulc-sprintf.c: New file.
11062         * lib/unistdio/ulc-vasnprintf.c: New file.
11063         * lib/unistdio/ulc-vasprintf.c: New file.
11064         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
11065         * lib/unistdio/ulc-vsnprintf.c: New file.
11066         * lib/unistdio/ulc-vsprintf.c: New file.
11067         * lib/unistdio/u8-asnprintf.c: New file.
11068         * lib/unistdio/u8-asprintf.c: New file.
11069         * lib/unistdio/u8-printf-parse.c: New file.
11070         * lib/unistdio/u8-snprintf.c: New file.
11071         * lib/unistdio/u8-sprintf.c: New file.
11072         * lib/unistdio/u8-vasnprintf.c: New file.
11073         * lib/unistdio/u8-vasprintf.c: New file.
11074         * lib/unistdio/u8-vsnprintf.c: New file.
11075         * lib/unistdio/u8-vsprintf.c: New file.
11076         * lib/unistdio/u8-u8-asnprintf.c: New file.
11077         * lib/unistdio/u8-u8-asprintf.c: New file.
11078         * lib/unistdio/u8-u8-snprintf.c: New file.
11079         * lib/unistdio/u8-u8-sprintf.c: New file.
11080         * lib/unistdio/u8-u8-vasnprintf.c: New file.
11081         * lib/unistdio/u8-u8-vasprintf.c: New file.
11082         * lib/unistdio/u8-u8-vsnprintf.c: New file.
11083         * lib/unistdio/u8-u8-vsprintf.c: New file.
11084         * lib/unistdio/u16-asnprintf.c: New file.
11085         * lib/unistdio/u16-asprintf.c: New file.
11086         * lib/unistdio/u16-printf-parse.c: New file.
11087         * lib/unistdio/u16-snprintf.c: New file.
11088         * lib/unistdio/u16-sprintf.c: New file.
11089         * lib/unistdio/u16-vasnprintf.c: New file.
11090         * lib/unistdio/u16-vasprintf.c: New file.
11091         * lib/unistdio/u16-vsnprintf.c: New file.
11092         * lib/unistdio/u16-vsprintf.c: New file.
11093         * lib/unistdio/u16-u16-asnprintf.c: New file.
11094         * lib/unistdio/u16-u16-asprintf.c: New file.
11095         * lib/unistdio/u16-u16-snprintf.c: New file.
11096         * lib/unistdio/u16-u16-sprintf.c: New file.
11097         * lib/unistdio/u16-u16-vasnprintf.c: New file.
11098         * lib/unistdio/u16-u16-vasprintf.c: New file.
11099         * lib/unistdio/u16-u16-vsnprintf.c: New file.
11100         * lib/unistdio/u16-u16-vsprintf.c: New file.
11101         * lib/unistdio/u32-asnprintf.c: New file.
11102         * lib/unistdio/u32-asprintf.c: New file.
11103         * lib/unistdio/u32-printf-parse.c: New file.
11104         * lib/unistdio/u32-snprintf.c: New file.
11105         * lib/unistdio/u32-sprintf.c: New file.
11106         * lib/unistdio/u32-vasnprintf.c: New file.
11107         * lib/unistdio/u32-vasprintf.c: New file.
11108         * lib/unistdio/u32-vsnprintf.c: New file.
11109         * lib/unistdio/u32-vsprintf.c: New file.
11110         * lib/unistdio/u32-u32-asnprintf.c: New file.
11111         * lib/unistdio/u32-u32-asprintf.c: New file.
11112         * lib/unistdio/u32-u32-snprintf.c: New file.
11113         * lib/unistdio/u32-u32-sprintf.c: New file.
11114         * lib/unistdio/u32-u32-vasnprintf.c: New file.
11115         * lib/unistdio/u32-u32-vasprintf.c: New file.
11116         * lib/unistdio/u32-u32-vsnprintf.c: New file.
11117         * lib/unistdio/u32-u32-vsprintf.c: New file.
11118         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11119         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11120         * tests/unistdio/test-ulc-printf1.h: New file.
11121         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11122         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11123         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11124         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11125         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11126         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11127         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11128         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11129         * tests/unistdio/test-u8-asnprintf1.c: New file.
11130         * tests/unistdio/test-u8-asnprintf1.h: New file.
11131         * tests/unistdio/test-u8-printf1.h: New file.
11132         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11133         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11134         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11135         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11136         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11137         * tests/unistdio/test-u8-vasprintf1.c: New file.
11138         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11139         * tests/unistdio/test-u8-vsprintf1.c: New file.
11140         * tests/unistdio/test-u16-asnprintf1.c: New file.
11141         * tests/unistdio/test-u16-asnprintf1.h: New file.
11142         * tests/unistdio/test-u16-printf1.h: New file.
11143         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11144         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11145         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11146         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11147         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11148         * tests/unistdio/test-u16-vasprintf1.c: New file.
11149         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11150         * tests/unistdio/test-u16-vsprintf1.c: New file.
11151         * tests/unistdio/test-u32-asnprintf1.c: New file.
11152         * tests/unistdio/test-u32-asnprintf1.h: New file.
11153         * tests/unistdio/test-u32-printf1.h: New file.
11154         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11155         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11156         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11157         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11158         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11159         * tests/unistdio/test-u32-vasprintf1.c: New file.
11160         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11161         * tests/unistdio/test-u32-vsprintf1.c: New file.
11162         * modules/unistdio/base: New file.
11163         * modules/unistdio/u-printf-args: New file.
11164         * modules/unistdio/ulc-asnprintf: New file.
11165         * modules/unistdio/ulc-asprintf: New file.
11166         * modules/unistdio/ulc-fprintf: New file.
11167         * modules/unistdio/ulc-printf-parse: New file.
11168         * modules/unistdio/ulc-snprintf: New file.
11169         * modules/unistdio/ulc-sprintf: New file.
11170         * modules/unistdio/ulc-vasnprintf: New file.
11171         * modules/unistdio/ulc-vasprintf: New file.
11172         * modules/unistdio/ulc-vfprintf: New file.
11173         * modules/unistdio/ulc-vsnprintf: New file.
11174         * modules/unistdio/ulc-vsprintf: New file.
11175         * modules/unistdio/u8-asnprintf: New file.
11176         * modules/unistdio/u8-asprintf: New file.
11177         * modules/unistdio/u8-printf-parse: New file.
11178         * modules/unistdio/u8-snprintf: New file.
11179         * modules/unistdio/u8-sprintf: New file.
11180         * modules/unistdio/u8-vasnprintf: New file.
11181         * modules/unistdio/u8-vasprintf: New file.
11182         * modules/unistdio/u8-vsnprintf: New file.
11183         * modules/unistdio/u8-vsprintf: New file.
11184         * modules/unistdio/u8-u8-asnprintf: New file.
11185         * modules/unistdio/u8-u8-asprintf: New file.
11186         * modules/unistdio/u8-u8-snprintf: New file.
11187         * modules/unistdio/u8-u8-sprintf: New file.
11188         * modules/unistdio/u8-u8-vasnprintf: New file.
11189         * modules/unistdio/u8-u8-vasprintf: New file.
11190         * modules/unistdio/u8-u8-vsnprintf: New file.
11191         * modules/unistdio/u8-u8-vsprintf: New file.
11192         * modules/unistdio/u16-asnprintf: New file.
11193         * modules/unistdio/u16-asprintf: New file.
11194         * modules/unistdio/u16-printf-parse: New file.
11195         * modules/unistdio/u16-snprintf: New file.
11196         * modules/unistdio/u16-sprintf: New file.
11197         * modules/unistdio/u16-vasnprintf: New file.
11198         * modules/unistdio/u16-vasprintf: New file.
11199         * modules/unistdio/u16-vsnprintf: New file.
11200         * modules/unistdio/u16-vsprintf: New file.
11201         * modules/unistdio/u16-u16-asnprintf: New file.
11202         * modules/unistdio/u16-u16-asprintf: New file.
11203         * modules/unistdio/u16-u16-snprintf: New file.
11204         * modules/unistdio/u16-u16-sprintf: New file.
11205         * modules/unistdio/u16-u16-vasnprintf: New file.
11206         * modules/unistdio/u16-u16-vasprintf: New file.
11207         * modules/unistdio/u16-u16-vsnprintf: New file.
11208         * modules/unistdio/u16-u16-vsprintf: New file.
11209         * modules/unistdio/u32-asnprintf: New file.
11210         * modules/unistdio/u32-asprintf: New file.
11211         * modules/unistdio/u32-printf-parse: New file.
11212         * modules/unistdio/u32-snprintf: New file.
11213         * modules/unistdio/u32-sprintf: New file.
11214         * modules/unistdio/u32-vasnprintf: New file.
11215         * modules/unistdio/u32-vasprintf: New file.
11216         * modules/unistdio/u32-vsnprintf: New file.
11217         * modules/unistdio/u32-vsprintf: New file.
11218         * modules/unistdio/u32-u32-asnprintf: New file.
11219         * modules/unistdio/u32-u32-asprintf: New file.
11220         * modules/unistdio/u32-u32-snprintf: New file.
11221         * modules/unistdio/u32-u32-sprintf: New file.
11222         * modules/unistdio/u32-u32-vasnprintf: New file.
11223         * modules/unistdio/u32-u32-vasprintf: New file.
11224         * modules/unistdio/u32-u32-vsnprintf: New file.
11225         * modules/unistdio/u32-u32-vsprintf: New file.
11226         * modules/unistdio/ulc-asnprintf-tests: New file.
11227         * modules/unistdio/ulc-vasnprintf-tests: New file.
11228         * modules/unistdio/ulc-vasprintf-tests: New file.
11229         * modules/unistdio/ulc-vsnprintf-tests: New file.
11230         * modules/unistdio/ulc-vsprintf-tests: New file.
11231         * modules/unistdio/u8-asnprintf-tests: New file.
11232         * modules/unistdio/u8-vasnprintf-tests: New file.
11233         * modules/unistdio/u8-vasprintf-tests: New file.
11234         * modules/unistdio/u8-vsnprintf-tests: New file.
11235         * modules/unistdio/u8-vsprintf-tests: New file.
11236         * modules/unistdio/u16-asnprintf-tests: New file.
11237         * modules/unistdio/u16-vasnprintf-tests: New file.
11238         * modules/unistdio/u16-vasprintf-tests: New file.
11239         * modules/unistdio/u16-vsnprintf-tests: New file.
11240         * modules/unistdio/u16-vsprintf-tests: New file.
11241         * modules/unistdio/u32-asnprintf-tests: New file.
11242         * modules/unistdio/u32-vasnprintf-tests: New file.
11243         * modules/unistdio/u32-vasprintf-tests: New file.
11244         * modules/unistdio/u32-vsnprintf-tests: New file.
11245         * modules/unistdio/u32-vsprintf-tests: New file.
11246         * MODULES.html.sh (Unicode string functions): Add the new modules.
11247
11248 2007-07-01  Bruno Haible  <bruno@clisp.org>
11249
11250         * lib/sprintf.c (sprintf): Limit the available length estimation,
11251         to avoid address wraparound.
11252         * lib/vsprintf.c (vsprintf): Likewise.
11253         * modules/sprintf-posix (Dependencies): Add stdint.
11254         * modules/vsprintf-posix (Dependencies): Likewise.
11255
11256 2007-07-01  Bruno Haible  <bruno@clisp.org>
11257
11258         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11259         Windows PATH as well. Conservative double-quoting. Comments.
11260
11261 2007-07-01  Bruno Haible  <bruno@clisp.org>
11262             Eric Blake  <ebb9@byu.net>
11263             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11264
11265         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11266         empty components in $PATH, denoting '.'.
11267
11268 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11269
11270         * gnulib-tool: Fix indentation.
11271         (func_create_megatestdir): Likewise.
11272         Report by Bruno Haible.
11273
11274 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11275
11276         Sync from Automake.
11277         * build-aux/gnupload: Fix shell portability issues with for loops.
11278         Report by Karl Berry.
11279
11280 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11281
11282         * build-aux/maint.mk (POURL): Use translationproject.org.
11283
11284 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11285             Bruno Haible  <bruno@clisp.org>
11286
11287         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11288         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11289         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11290         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11291         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11292
11293 2007-06-27  Bruno Haible  <bruno@clisp.org>
11294
11295         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11296         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11297
11298 2007-06-26  Karl Berry  <karl@gnu.org>
11299
11300         * MODULES.html.sh: remove xreadlink-with-size.
11301
11302 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11303
11304         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11305         method that I hope also handles the double-include problem noted
11306         by Bruno Haible in
11307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11308
11309 2007-06-23  Bruno Haible  <bruno@clisp.org>
11310
11311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11312         Don't let the 'mostlyclean' target fail if the last subdirectory could
11313         not be removed.
11314         Reported by Karl Berry.
11315
11316 2007-06-23  Bruno Haible  <bruno@clisp.org>
11317
11318         * gnulib-tool (echo): Add a speedier workaround for ksh.
11319         * tests/test-echo.sh: Likewise.
11320
11321 2007-06-23  Bruno Haible  <bruno@clisp.org>
11322
11323         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11324         * tests/test-echo.sh: Likewise.
11325
11326 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11327
11328         * gnulib-tool (IFS): Initialize early, so we don't set it to
11329         empty later.
11330         (self_abspathname): Rewrite algorithm to set it, reindent.
11331         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11332         (func_create_megatestdir): Merge some sed scripts.
11333
11334 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11335
11336         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11337         exposed by Sun Studio 11 cc on Solaris 8.
11338
11339 2007-06-22  Bruno Haible  <bruno@clisp.org>
11340
11341         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11342         backslashes.
11343         * tests/test-echo.sh: New file.
11344
11345 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11346
11347         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11348         simplify `sed_replace_build_aux' scripts, they are portable but
11349         echoing them with `echo' is not.
11350         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11351
11352 2007-06-21  Karl Berry  <karl@gnu.org>
11353
11354         * config/srclist.txt: guess we can't handle the licenses via
11355         srclist at the moment.
11356
11357 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11358
11359         * MODULES.html.sh: Add include_next.
11360         * modules/include_next: New file.
11361
11362 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11363
11364         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11365         INCLUDE_NEXT.
11366         (gl_CHECK_NEXT_HEADERS): New macro.
11367         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11368         the obsolescent gl_ABSOLUTE_HEADER.
11369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11370         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11371         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11372         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11373         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11374         * m4/math_h.m4 (gl_MATH_H): Likewise.
11375         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11376         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11377         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11378         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11379         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11380         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11381         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11382         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11383         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11385         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11386         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11387         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11388         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11389         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11390         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11391         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11392         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11393         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11394         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11395         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11396         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11397         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11398         * lib/float_.h: Likewise.
11399         * lib/inttypes_.h: Likewise.
11400         * lib/math_.h: Likewise.
11401         * lib/search_.h: Likewise.
11402         * lib/signal_.h: Likewise.
11403         * lib/stdint_.h: Likewise.
11404         * lib/stdio_.h: Likewise.
11405         * lib/stdlib_.h: Likewise.
11406         * lib/string_.h: Likewise.
11407         * lib/sys_stat_.h: Likewise.
11408         * lib/sys_time_.h: Likewise.
11409         * lib/time_.h: Likewise.
11410         * lib/unistd_.h: Likewise.
11411         * lib/wchar_.h: Likewise.
11412         * lib/wctype_.h: Likewise.
11413         * lib/dirent_.h: Likewise.
11414         * lib/iconv_.h: Likewise.
11415         * lib/locale_.h: Likewise.
11416         * lib/netinet_in_.h: Likewise.
11417         * lib/sys_select_.h: Likewise.
11418         * lib/sys_socket_.h: Likewise.
11419         * lib/sysexits_.h: Likewise.
11420         * modules/fcntl (Depends-on): Depend on include_next, not
11421         absolute_header.
11422         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11423         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11424         * modules/fchdir: Likewise.
11425         * modules/float: Likewise.
11426         * modules/iconv_open: Likewise.
11427         * modules/inttypes: Likewise.
11428         * modules/locale: Likewise.
11429         * modules/math: Likewise.
11430         * modules/netinet_in: Likewise.
11431         * modules/search: Likewise.
11432         * modules/signal: Likewise.
11433         * modules/stdint: Likewise.
11434         * modules/stdio: Likewise.
11435         * modules/stdlib: Likewise.
11436         * modules/string: Likewise.
11437         * modules/sys_select: Likewise.
11438         * modules/sys_socket: Likewise.
11439         * modules/sys_stat: Likewise.
11440         * modules/sys_time: Likewise.
11441         * modules/sysexits: Likewise.
11442         * modules/time: Likewise.
11443         * modules/unistd: Likewise.
11444         * modules/wchar: Likewise.
11445         * modules/wctype: Likewise.
11446         * modules/sys_stat: Change maintainer to "all".
11447         * modules/unistd: Likewise.
11448
11449 2007-06-20  Karl Berry  <karl@gnu.org>
11450
11451         * config/srclist.txt: track www changes in license files.
11452
11453 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11454
11455         * build-aux/bootstrap: Remove stray dot.
11456         Make sure build_aux settings are honored when linking
11457         gnulib_extra_files.
11458
11459 2007-06-19  Eric Blake  <ebb9@byu.net>
11460
11461         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11462         Allow compilation on cygwin.
11463
11464 2007-06-19  Jim Meyering  <jim@meyering.net>
11465
11466         xreadlink-with-size: Remove module.  No longer used.
11467         Ex-callers now use xreadlink or mreadlink-with-size.
11468         * modules/xreadlink-with-size: Remove module.
11469         * lib/xreadlink-with-size.c: Remove file.
11470         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11471         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11472         just before the function definition *is* accurate.
11473
11474         Eliminate one way canonicalize_filename_mode could exit.
11475         * lib/canonicalize.c (canonicalize_filename_mode):
11476         Use mreadlink_with_size, not xreadlink_with_size.
11477
11478 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         Detect porting problems to FreeBSD/arm, which has time_t wider than
11481         long int.  Original problem reported for GNU diff by Xin Li in
11482         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11483         * modules/getdate (Depends-on): Add intprops, verify.
11484         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11485         is an integer type no wider than long int.
11486
11487 2007-06-18  Jim Meyering  <jim@meyering.net>
11488
11489         New module: mreadlink-with-size.
11490         * MODULES.html.sh: Add mreadlink-with-size.
11491         * modules/mreadlink-with-size: New module
11492         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11493         not xreadlink-with-size.
11494         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11495
11496 2007-06-16  Bruno Haible  <bruno@clisp.org>
11497
11498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11499         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11500         Reported by Gary V. Vaughan <gary@gnu.org>.
11501
11502 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11503
11504         Revamp lchown so that it lives in unistd.h where it belongs.
11505         * lib/lchown.h: Remove.
11506         * lib/dirchownmod.c: Don't include lib/lchown.h.
11507         * lib/fchownat.c: Likewise.
11508         * lib/openat.c: Likewise.
11509         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11510         does not follow symlinks.
11511         (EOPNOTSUPP): Define if not defined.
11512         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11513         is defined to 0.
11514         (lchown): New decl.
11515         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11516         Do not check for lchown decl.
11517         Set REPLACE_LCHOWN.
11518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11519         REPLACE_LCHOWN.
11520         * modules/chown: Make it clear it follows symlinks.
11521         * modules/lchown: Make it clear it doesn't follow symlinks.
11522         (Files): Remove lib/lchown.h
11523         (Depends-on): Add unistd.
11524         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11525         (Include): Include <unistd.h>, not "lchown.h".
11526         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11527         REPLACE_LCHOWN.
11528
11529 2007-06-15  Jim Meyering  <jim@meyering.net>
11530
11531         Change license (GPL to LGPL) of fsusage and dependents.
11532         * modules/fsusage (License): Change to LGPL.
11533         * modules/full-read (License): Likewise.
11534         * modules/full-write (License): Likewise.
11535         * modules/safe-read (License): Likewise.
11536         * modules/safe-write (License): Likewise.
11537
11538 2007-06-14  Ben Pfaff  <blp@gnu.org>
11539
11540         Missing part of allocsa -> malloca transition.
11541         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11542         gl_MALLOCA.
11543
11544 2007-06-12  Bruno Haible  <bruno@clisp.org>
11545
11546         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11547         to ia64, x86_64, i386.
11548         Reported by Eric Blake.
11549
11550 2007-06-12  Bruno Haible  <bruno@clisp.org>
11551
11552         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11553         cross-compiling to x86_64.
11554
11555 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11556
11557         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11558         glitch reported by Ralf Wildenhues in
11559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11560
11561         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11562         Vin Shelton.
11563
11564 2007-06-11  Bruno Haible  <bruno@clisp.org>
11565
11566         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11567         replacement string.
11568         Reported by Eric Blake.
11569
11570 2007-06-10  Bruno Haible  <bruno@clisp.org>
11571
11572         Prepare vasnprintf code for use with Unicode strings.
11573         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11574         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11575         TYPE_U32_STRING.
11576         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11577         a_u32_string variants.
11578         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11579         * lib/printf-args.c: Don't include config.h and the specification
11580         header if PRINTF_FETCHARGS is already defined.
11581         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11582         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11583         TYPE_U16_STRING, TYPE_U32_STRING.
11584         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11585         u16_directive, u16_directives, u32_directive, u32_directives): New
11586         types.
11587         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11588         New declarations.
11589         * lib/printf-parse.c: Don't include config.h and the specification
11590         header if PRINTF_PARSE is already defined. Eliminate the set of
11591         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11592         them now. Include c-ctype.h.
11593         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11594         directive and CHAR_T_ONLY_ASCII.
11595         * lib/vasnprintf.c: Don't include config.h and the specification header
11596         if VASNPRINTF is already defined.
11597         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11598         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11599         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11600         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11601         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11602         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11603         code accordingly.
11604         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11605         pad_ourselves also in this case, with the 'c' and 's' directives, and
11606         with a different notion of "width".
11607         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11608
11609 2007-06-10  Bruno Haible  <bruno@clisp.org>
11610
11611         * modules/unistr/u32-mbsnlen: New file.
11612         * lib/unistr/u32-mbsnlen.c: New file.
11613
11614         * modules/unistr/u16-mbsnlen: New file.
11615         * lib/unistr/u16-mbsnlen.c: New file.
11616
11617         * modules/unistr/u8-mbsnlen: New file.
11618         * lib/unistr/u8-mbsnlen.c: New file.
11619
11620         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11621         declarations.
11622
11623 2007-06-10  Bruno Haible  <bruno@clisp.org>
11624
11625         * lib/string_.h (mbsnlen): New declaration.
11626         * lib/mbsnlen.c: New file.
11627         * m4/mbsnlen.m4: New file.
11628         * modules/mbsnlen: New file.
11629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11630         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11631         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11632
11633 2007-06-10  Bruno Haible  <bruno@clisp.org>
11634
11635         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11636
11637 2007-06-10  Bruno Haible  <bruno@clisp.org>
11638
11639         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11640         * lib/mbuiter.h: Likewise.
11641
11642 2007-06-10  Bruno Haible  <bruno@clisp.org>
11643
11644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11645         declaration.
11646
11647 2007-06-10  Karl Berry  <karl@gnu.org>
11648
11649         * config/srclist.txt: remove gettext entries, Bruno prefers
11650         to update individually.
11651
11652 2007-06-10  Bruno Haible  <bruno@clisp.org>
11653
11654         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11655         'maxlen'. Ensure only length + width bytes are allocated, not
11656         length + 1 + width.
11657
11658 2007-06-09  Bruno Haible  <bruno@clisp.org>
11659
11660         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11661         (CHAR_T): Remove macro.
11662         (VASNPRINTF): Update.
11663
11664 2007-06-09  Bruno Haible  <bruno@clisp.org>
11665
11666         * MODULES.html.sh (Unicode string functions): Add the new modules.
11667
11668         * modules/uniconv/u32-conv-to-enc: New file.
11669         * lib/uniconv/u32-conv-to-enc.c: New file.
11670         * modules/uniconv/u32-conv-to-enc-tests: New file.
11671         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11672
11673         * modules/uniconv/u16-conv-to-enc: New file.
11674         * lib/uniconv/u16-conv-to-enc.c: New file.
11675         * lib/uniconv/u-conv-to-enc.h: New file.
11676         * modules/uniconv/u16-conv-to-enc-tests: New file.
11677         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11678
11679         * modules/uniconv/u8-conv-to-enc: New file.
11680         * lib/uniconv/u8-conv-to-enc.c: New file.
11681         * modules/uniconv/u8-conv-to-enc-tests: New file.
11682         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11683
11684         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11685         u32_conv_to_encoding): New declarations.
11686
11687 2007-06-09  Bruno Haible  <bruno@clisp.org>
11688
11689         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11690
11691 2007-06-09  Bruno Haible  <bruno@clisp.org>
11692
11693         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11694         * modules/malloca: Renamed from modules/allocsa, updated.
11695         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11696         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11697         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11698         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11699         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11700         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11701         * modules/xmalloca: Renamed from modules/xallocsa, updated.
11702         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11703         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11704         * modules/c-strcasestr (Depends-on): Update.
11705         * lib/c-strcasestr.c: Update.
11706         * modules/c-strstr (Depends-on): Update.
11707         * lib/c-strstr.c: Update.
11708         * modules/canonicalize-lgpl (Depends-on): Update.
11709         * lib/canonicalize-lgpl.c: Update.
11710         * modules/clean-temp (Depends-on): Update.
11711         * lib/clean-temp.c: Update.
11712         * modules/csharpcomp (Depends-on): Update.
11713         * lib/csharpcomp.c: Update.
11714         * modules/csharpexec (Depends-on): Update.
11715         * lib/csharpexec.c: Update.
11716         * modules/javacomp (Depends-on): Update.
11717         * lib/javacomp.c: Update.
11718         * modules/javaexec (Depends-on): Update.
11719         * lib/javaexec.c: Update.
11720         * modules/mbscasestr (Depends-on): Update.
11721         * lib/mbscasestr.c: Update.
11722         * modules/mbsstr (Depends-on): Update.
11723         * lib/mbsstr.c: Update.
11724         * modules/setenv (Depends-on): Update.
11725         * lib/setenv.c: Update.
11726         * modules/strcasestr (Depends-on): Update.
11727         * lib/strcasestr.c: Update.
11728         * modules/striconveha (Depends-on): Update.
11729         * lib/striconveha.c: Update.
11730         * modules/relocatable-prog-wrapper (Files): Update.
11731         * lib/relocwrapper.c: Update.
11732         * build-aux/install-reloc: Update.
11733         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
11734
11735 2007-06-08  Bruno Haible  <bruno@clisp.org>
11736
11737         Port to uClibc.
11738         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
11739         * lib/fpurge.c (fpurge): Likewise.
11740         * lib/freading.c (freading): Likewise.
11741         * lib/fseeko.c (rpl_fseeko): Likewise.
11742         * lib/fseterr.c (fseterr): Likewise.
11743         * lib/fwriting.c (fwriting): Likewise.
11744         * tests/test-fflush.c (main): Avoid a failure on uClibc.
11745
11746 2007-06-08  Bruno Haible  <bruno@clisp.org>
11747
11748         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
11749         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
11750         * modules/gettext (Files): Add m4/intlmacosx.m4.
11751
11752 2007-06-07  Bruno Haible  <bruno@clisp.org>
11753
11754         * modules/localename-tests: New file.
11755         * tests/test-localename.c: New file.
11756
11757         New module 'localename'.
11758         * lib/localename.h: New file.
11759         * lib/localename.c: New file, from GNU gettext.
11760         * m4/localename.m4: New file.
11761         * modules/localename: New file.
11762
11763 2007-06-07  Bruno Haible  <bruno@clisp.org>
11764
11765         Work around the lack of <wchar.h> on some builds of uClibc.
11766         * doc/headers/wchar.texi: Update.
11767         * lib/wchar_.h: Include <wchar.h> only if it exists.
11768         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
11769         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
11770         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
11771         doesn't exist.
11772         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
11773         * modules/mbfile (Depends-on): Add wchar.
11774         * modules/mbiter (Depends-on): Likewise.
11775         * modules/mbuiter (Depends-on): Likewise.
11776         Reported by Simon Josefsson.
11777
11778 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11779
11780         Work around problem reported by Steven M. Schweda in
11781         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
11782         Tru64 5.1B with the Compaq compiler environment installed declares
11783         an 'isblank' function but does not define it in the C library.
11784         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
11785         * lib/regex_internal.h (isblank): Likewise.
11786         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
11787         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11788
11789 2007-06-05  Bruno Haible  <bruno@clisp.org>
11790
11791         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
11792         ia64.
11793         * modules/printf-safe: New file.
11794         * modules/fprintf-posix (Depends-on): Add printf-safe.
11795         * modules/printf-posix (Depends-on): Likewise.
11796         * modules/snprintf-posix (Depends-on): Likewise.
11797         * modules/sprintf-posix (Depends-on): Likewise.
11798         * modules/vasnprintf-posix (Depends-on): Likewise.
11799         * modules/vasprintf-posix (Depends-on): Likewise.
11800         * modules/vfprintf-posix (Depends-on): Likewise.
11801         * modules/vprintf-posix (Depends-on): Likewise.
11802         * modules/vsnprintf-posix (Depends-on): Likewise.
11803         * modules/vsprintf-posix (Depends-on): Likewise.
11804         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11805         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
11806         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
11807         "no" on i386, x86_64, ia64.
11808         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
11809         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11810         on i386, x86_64, ia64.
11811         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
11812         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11813         on i386, x86_64, ia64.
11814         * tests/test-vasnprintf-posix.c: Include float.h.
11815         (LDBL80_WORDS): New macro.
11816         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11817         on i386, x86_64, ia64.
11818         * tests/test-vasprintf-posix.c: Include float.h.
11819         (LDBL80_WORDS): New macro.
11820         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11821         on i386, x86_64, ia64.
11822         * tests/test-snprintf-posix.c: Include float.h.
11823         * tests/test-sprintf-posix.c: Likewise.
11824         * tests/test-vsnprintf-posix.c: Likewise.
11825         * tests/test-vsprintf-posix.c: Likewise.
11826
11827 2007-06-05  Bruno Haible  <bruno@clisp.org>
11828
11829         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
11830         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
11831         non-IEEE numbers on i386, x86_64, ia64.
11832         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
11833         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
11834         * tests/test-isnanl.h: Include float.h.
11835         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
11836
11837 2007-06-05  Bruno Haible  <bruno@clisp.org>
11838
11839         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
11840         also the %a / %A. Handle the %a / %A code before this extra handling.
11841
11842 2007-06-05  Bruno Haible  <bruno@clisp.org>
11843
11844         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
11845         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
11846
11847 2007-06-05  Bruno Haible  <bruno@clisp.org>
11848
11849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
11850         typo in variable name.
11851
11852 2007-06-05  Eric Blake  <ebb9@byu.net>
11853
11854         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
11855         Reported by Simon Josefsson.
11856
11857 2007-06-04  Bruno Haible  <bruno@clisp.org>
11858
11859         Avoid test failures on some PowerPC platforms.
11860         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
11861         Define differently for PowerPC.
11862         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
11863         Reported by Gary V. Vaughan <gary@gnu.org>.
11864
11865 2007-06-02  Bruno Haible  <bruno@clisp.org>
11866
11867         Fix test-stdint failure on FreeBSD/ia64.
11868         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
11869         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
11870         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
11871         * doc/headers/stdint.texi: Update.
11872
11873 2007-06-01  Bruno Haible  <bruno@clisp.org>
11874
11875         * tests/test-binary-io.c (main): Pass a third argument to open().
11876         Reported by Gary V. Vaughan <gary@gnu.org>.
11877
11878 2007-06-01  Bruno Haible  <bruno@clisp.org>
11879
11880         * doc/functions/frexpl.texi: Update for mingw.
11881
11882 2007-06-01  Bruno Haible  <bruno@clisp.org>
11883
11884         * tests/test-lseek.c (main): Disable test of errno for invalid third
11885         argument.
11886         * doc/functions/lseek.texi: Update.
11887         Reported by Gary V. Vaughan <gary@gnu.org>.
11888
11889 2007-05-28  Bruno Haible  <bruno@clisp.org>
11890
11891         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
11892
11893 2007-05-31  Eric Blake  <ebb9@byu.net>
11894
11895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
11896         cross compiling.
11897
11898 2007-05-30  Eric Blake  <ebb9@byu.net>
11899         and Bruno Haible  <bruno@clisp.org>
11900
11901         Work around mingw test failures exposed by m4-1.4.9b.
11902         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
11903         * tests/test-unistd.c: Disable uid_t and git_t tests for the
11904         moment.
11905
11906 2007-05-30  Bruno Haible  <bruno@clisp.org>
11907
11908         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
11909         assuming that they are closed. Needed on HP-UX 11.
11910
11911 2007-05-29  Bruno Haible  <bruno@clisp.org>
11912
11913         Fix a problem with #include_next.
11914         * lib/dirent_.h: Split the double-inclusion guard.
11915         * lib/fcntl_.h: Likewise.
11916         * lib/float_.h: Likewise.
11917         * lib/iconv_.h: Likewise.
11918         * lib/inttypes_.h: Likewise.
11919         * lib/locale_.h: Likewise.
11920         * lib/math_.h: Likewise.
11921         * lib/netinet_in_.h: Likewise.
11922         * lib/search_.h: Likewise.
11923         * lib/signal_.h: Likewise.
11924         * lib/stdint_.h: Likewise.
11925         * lib/stdio_.h: Likewise.
11926         * lib/stdlib_.h: Likewise.
11927         * lib/string_.h: Likewise.
11928         * lib/sys_select_.h: Likewise.
11929         * lib/sys_socket_.h: Likewise.
11930         * lib/sys_stat_.h: Likewise.
11931         * lib/sys_time_.h: Likewise.
11932         * lib/sysexits_.h: Likewise.
11933         * lib/time_.h: Likewise.
11934         * lib/unistd_.h: Likewise.
11935         * lib/wchar_.h: Likewise.
11936         * lib/wctype_.h: Likewise.
11937
11938 2007-05-29  Bruno Haible  <bruno@clisp.org>
11939
11940         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
11941         for the moment.
11942
11943 2007-05-29  Bruno Haible  <bruno@clisp.org>
11944
11945         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
11946         invocation.
11947         Reported by Eric Blake.
11948
11949 2007-05-29  Bruno Haible  <bruno@clisp.org>
11950
11951         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
11952         compiling case.
11953
11954 2007-05-29  Eric Blake  <ebb9@byu.net>
11955             Bruno Haible  <bruno@clisp.org>
11956
11957         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
11958         cross compiles.
11959
11960 2007-05-28  Eric Blake  <ebb9@byu.net>
11961
11962         * modules/closein-tests (test_closein_LDADD): Support test on
11963         cygwin with libtool.
11964
11965 2007-05-28  Bruno Haible  <bruno@clisp.org>
11966
11967         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
11968         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11969         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11970         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11971         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11972         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11973         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11974         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11975         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11976
11977 2007-05-28  Eric Blake  <ebb9@byu.net>
11978
11979         Unconditionally include <config.h> in unit tests.
11980         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
11981         * tests/test-allocsa.c, tests/test-arcfour.c,
11982         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
11983         tests/test-array_list.c, tests/test-array_oset.c,
11984         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
11985         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
11986         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
11987         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
11988         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
11989         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
11990         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
11991         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
11992         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
11993         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
11994         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
11995         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
11996         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
11997         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
11998         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
11999         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
12000         test-md5.c, test-memmem.c, test-printf-posix.c,
12001         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
12002         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
12003         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
12004         test-strcasestr.c, test-striconv.c, test-striconveh.c,
12005         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
12006         test-vasnprintf-posix2.c, test-vasnprintf.c,
12007         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
12008         test-vfprintf-posix.c, test-vprintf-posix.c,
12009         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
12010         test-xvasprintf.c: Likewise.
12011
12012 2007-05-28  Bruno Haible  <bruno@clisp.org>
12013
12014         * gnulib-tool (func_import): Remember the --with-tests command-line
12015         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
12016         Reported by Eric Blake.
12017
12018 2007-05-28  Bruno Haible  <bruno@clisp.org>
12019
12020         * modules/ftell-tests: New file.
12021         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
12022         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
12023
12024         * lib/ftell.c: New file.
12025         * modules/ftell: New file.
12026         * m4/ftell.m4: New file.
12027         * doc/functions/ftell.texi: Update.
12028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
12029         REPLACE_FTELL.
12030         * lib/stdio_.h (rpl_ftell): New declaration.
12031         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
12032         REPLACE_FTELL.
12033
12034 2007-05-28  Eric Blake  <ebb9@byu.net>
12035
12036         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
12037
12038 2007-05-28  Bruno Haible  <bruno@clisp.org>
12039
12040         * modules/fseek-tests: New file.
12041         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
12042         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
12043
12044         * lib/fseek.c: New file.
12045         * modules/fseek: New file.
12046         * m4/fseek.m4: New file.
12047         * doc/functions/fseek.texi: Update.
12048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
12049         REPLACE_FSEEK.
12050         * lib/stdio_.h (rpl_fseek): New declaration.
12051         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
12052         REPLACE_FSEEK.
12053
12054 2007-05-28  Bruno Haible  <bruno@clisp.org>
12055
12056         * lib/stdio_.h (fflush): More comments.
12057
12058 2007-05-28  Bruno Haible  <bruno@clisp.org>
12059
12060         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
12061         runtime test.
12062
12063 2007-05-28  Eric Blake  <ebb9@byu.net>
12064
12065         Improve lseek module.
12066         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
12067         * lib/unistd_.h (lseek): Scale back link warning message.
12068         * tests/test-lseek.c: Beef up test.
12069         * tests/test-lseek.sh: Exercise more facets of lseek.
12070         Reported by Bruno Haible.
12071
12072 2007-05-28  Bruno Haible  <bruno@clisp.org>
12073
12074         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
12075         to define.
12076
12077 2007-05-27  Bruno Haible  <bruno@clisp.org>
12078
12079         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
12080
12081 2007-05-27  Bruno Haible  <bruno@clisp.org>
12082
12083         * modules/openmp: New file.
12084         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
12085         Noah Misch.
12086
12087 2007-05-26  Bruno Haible  <bruno@clisp.org>
12088
12089         * modules/chdir-long (Depends-on): Add fchdir.
12090         * modules/chdir-safer (Depends-on): Likewise.
12091         * modules/fts (Depends-on): Likewise.
12092         * modules/fts-lgpl (Depends-on): Likewise.
12093         * modules/openat (Depends-on): Likewise.
12094         * modules/savewd (Depends-on): Likewise.
12095
12096 2007-05-24  Eric Blake  <ebb9@byu.net>
12097
12098         Fix lseek on mingw.
12099         * modules/lseek: New module.
12100         * m4/lseek.m4: New file.
12101         * lib/lseek.c: New file.
12102         * modules/lseek-tests: New file.
12103         * tests/test-lseek.c: New file.
12104         * tests/test-lseek.sh: New file.
12105         * MODULES.html.sh: Document lseek module.
12106         * modules/fflush (Depends-on): Add lseek, fseeko.
12107         * modules/fseeko (Depends-on): Likewise.
12108         * modules/ftello (Depends-on): Likewise.
12109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
12110         broken.
12111         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
12112         broken.
12113         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
12114         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
12115         * lib/ftello.c (rpl_ftello): Likewise.
12116         * tests/test-fseeko.c (main): Test this.
12117         * tests/test-fseeko.sh: Likewise.
12118         * tests/test-ftello.c (main): Likewise.
12119         * tests/test-ftello.sh: Likewise.
12120         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12121         implies replacing fseek.
12122         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12123         HAVE_FTELLO.
12124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12125         * modules/unistd (Makefile.am): Likewise.
12126         * lib/unistd_.h (lseek): Declare a replacement.
12127         * doc/functions/lseek.texi (lseek): Document this fix.
12128         * doc/functions/fseek.texi (fseek): Likewise.
12129         * doc/functions/ftell.texi (ftell): Likewise.
12130
12131 2007-05-24  Bruno Haible  <bruno@clisp.org>
12132
12133         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12134         in the printed representation of a NaN.
12135         * tests/test-vasprintf-posix.c (test_function): Likewise.
12136         * tests/test-snprintf-posix.h (test_function): Likewise.
12137         * tests/test-sprintf-posix.h (test_function): Likewise.
12138         Reported by Eric Blake.
12139
12140 2007-05-23  Eric Blake  <ebb9@byu.net>
12141
12142         Fix fseeko/ftello on cygwin 1.5.24.
12143         * doc/functions/fseeko.texi (fseeko): Document the fix.
12144         * doc/functions/ftello.texi (ftello): Document the fix.
12145         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12146         * doc/functions/stdout.text (stdout): New file.
12147         * doc/functions/stderr.text (stderr): New file.
12148         * doc/gnulib.texi (Function Substitutes): Use new files.
12149         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12150         prior to 1.7.0.
12151         * tests/test-ftello.c (main): Likewise for ftello.
12152         * tests/test-fseeko.sh: New file.
12153         * tests/test-ftello.sh: New file.
12154         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12155         with seekable stdin.
12156         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12157         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12158         (gl_REPLACE_FSEEKO): New macro.
12159         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12160         * modules/fseeko (Files): Distribute fseeko.c.
12161         * modules/ftello (Files): Distribute ftello.c.
12162         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12163         mode.
12164         * lib/ftello.c (rpl_ftello): New file.
12165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12166         fseeko, ftello.
12167         (gl_STDIN_LARGE_OFFSET): New macro.
12168         * modules/stdio (Makefile.am): Perform the replacement.
12169         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12170
12171 2007-05-23  Bruno Haible  <bruno@clisp.org>
12172
12173         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12174         GNULIB_POSIXCHECK is defined.
12175
12176 2007-05-21  Bruno Haible  <bruno@clisp.org>
12177
12178         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12179         Check also the output for NaN arguments. When cross-compiling, guess
12180         no on IRIX.
12181         * lib/vasnprintf.c: Update comments.
12182         * tests/test-vasnprintf-posix.c (strisnan): New function.
12183         (test_function): Use it.
12184         * tests/test-vasprintf-posix.c (strisnan): New function.
12185         (test_function): Use it.
12186         * tests/test-snprintf-posix.h (strisnan): New function.
12187         (test_function): Use it.
12188         * tests/test-sprintf-posix.h (strisnan): New function.
12189         (test_function): Use it.
12190         Reported by Eric Blake.
12191
12192 2007-05-20  Bruno Haible  <bruno@clisp.org>
12193
12194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12195         numbers that fails on BeOS.
12196         * doc/functions/frexpl.texi: Update.
12197
12198 2007-05-20  Jim Meyering  <jim@meyering.net>
12199
12200         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12201         forced upon us by glibc-2.6.
12202
12203 2007-05-20  Bruno Haible  <bruno@clisp.org>
12204
12205         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12206         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12207         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12208         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12209         NEED_PRINTF_INFINITE.
12210         (is_infinitel): New function.
12211         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12213         gl_PREREQ_VASNPRINTF_INFINITE.
12214         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12216         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12217         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12218         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12219         gl_PREREQ_VASNPRINTF_INFINITE.
12220         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12222         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12226         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12227         * doc/functions/fprintf.texi: Update.
12228         * doc/functions/printf.texi: Update.
12229         * doc/functions/snprintf.texi: Update.
12230         * doc/functions/sprintf.texi: Update.
12231         * doc/functions/vfprintf.texi: Update.
12232         * doc/functions/vprintf.texi: Update.
12233         * doc/functions/vsnprintf.texi: Update.
12234         * doc/functions/vsprintf.texi: Update.
12235
12236 2007-05-20  Bruno Haible  <bruno@clisp.org>
12237
12238         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12239         was not found in libc.
12240         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12241
12242 2007-05-20  Bruno Haible  <bruno@clisp.org>
12243
12244         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12245         printed as "-nan" instead of "nan".
12246         * tests/test-vasprintf-posix.c (test_function): Likewise.
12247         * tests/test-snprintf-posix.h (test_function): Likewise.
12248         * tests/test-sprintf-posix.h (test_function): Likewise.
12249         Needed for HP-UX 11.
12250
12251 2007-05-20  Jim Meyering  <jim@meyering.net>
12252
12253         Fix buggy test for the fchownat-deref bug.
12254         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12255         symlink required for the run-test.  Without it, this test would
12256         always declare that fchownat doesn't work, and client code would
12257         unnecessarily use the replacement function with fixed libc.
12258         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12259         Reported by Greg Schafer.
12260
12261 2007-05-19  Bruno Haible  <bruno@clisp.org>
12262
12263         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12264         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12265         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12266         Needed for IRIX 6.5 and Solaris 2.5.1.
12267
12268 2007-05-19  Bruno Haible  <bruno@clisp.org>
12269
12270         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12271         (test_function): Skip tests involving -0.0 on platforms where
12272         -0.0 = 0.0.
12273         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12274         (test_function): Skip tests involving -0.0 on platforms where
12275         -0.0 = 0.0.
12276         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12277         (test_function): Skip tests involving -0.0 on platforms where
12278         -0.0 = 0.0.
12279         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12280         (test_function): Skip tests involving -0.0 on platforms where
12281         -0.0 = 0.0.
12282         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12283         tests.
12284         * tests/test-printf-posix.h (test_function): Likewise.
12285         * tests/test-printf-posix.output: Remove all -0.0 related results.
12286         Needed for IRIX 6.5.
12287
12288 2007-05-19  Bruno Haible  <bruno@clisp.org>
12289
12290         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12291         printed as "nan0x7fffffff" instead of "nan".
12292         * tests/test-vasprintf-posix.c (test_function): Likewise.
12293         * tests/test-snprintf-posix.h (test_function): Likewise.
12294         * tests/test-sprintf-posix.h (test_function): Likewise.
12295         * tests/test-fprintf-posix.h (NaN): Remove macro.
12296         (test_function): Remove all NaN related tests.
12297         * tests/test-printf-posix.h (NaN): Remove macro.
12298         (test_function): Remove all NaN related tests.
12299         * tests/test-printf-posix.output: Remove all NaN related results.
12300         Needed for IRIX 6.5.
12301
12302 2007-05-19  Bruno Haible  <bruno@clisp.org>
12303
12304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12305         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12306
12307 2007-05-19  Bruno Haible  <bruno@clisp.org>
12308
12309         * lib/float_.h: New file.
12310         * m4/float_h.m4: New file.
12311         * modules/float: New file.
12312         * modules/isnanl (Dependencies): Add float.
12313         * modules/isnanl-nolibm (Dependencies): Likewise.
12314         * modules/mathl (Dependencies): Likewise.
12315         * modules/printf-frexpl (Dependencies): Likewise.
12316         * modules/signbit (Dependencies): Likewise.
12317         * modules/vasnprintf (Dependencies): Likewise.
12318         * doc/headers/float.texi: Update.
12319
12320 2007-05-19  Jim Meyering  <jim@meyering.net>
12321
12322         * lib/utimens.c (gl_futimens): Rename from futimens,
12323         now that glibc-2.6 declares futimens.
12324         * lib/utimens.h: Likewise.
12325
12326 2007-05-19  Bruno Haible  <bruno@clisp.org>
12327
12328         Avoid test failures on mingw.
12329         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12330         * tests/test-printf-posix.sh: Likewise.
12331         * tests/test-vfprintf-posix.sh: Likewise.
12332         * tests/test-vprintf-posix.sh: Likewise.
12333
12334 2007-05-19  Bruno Haible  <bruno@clisp.org>
12335
12336         Fix *printf result for NaN, Inf, -0.0 on mingw.
12337         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12338         * lib/vasnprintf.c: Include math.h and isnan.h.
12339         (is_infinite_or_zero): New function.
12340         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12341         values in the %f, %F, %e, %E, %g, %G directives.
12342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12344         gl_PRINTF_INFINITE and test its result. Invoke
12345         gl_PREREQ_VASNPRINTF_INFINITE.
12346         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12350         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12351         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12353         * doc/functions/fprintf.texi: Update.
12354         * doc/functions/printf.texi: Update.
12355         * doc/functions/snprintf.texi: Update.
12356         * doc/functions/sprintf.texi: Update.
12357         * doc/functions/vfprintf.texi: Update.
12358         * doc/functions/vprintf.texi: Update.
12359         * doc/functions/vsnprintf.texi: Update.
12360         * doc/functions/vsprintf.texi: Update.
12361
12362 2007-05-19  Bruno Haible  <bruno@clisp.org>
12363
12364         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12365         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12366         Instead of multiplying with 10^k, set extra_zeroes to k.
12367         (scale10_round_long_double): Remove function.
12368
12369 2007-05-18  Bruno Haible  <bruno@clisp.org>
12370
12371         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12372         introduced on 2007-05-06.
12373
12374 2007-05-18  Bruno Haible  <bruno@clisp.org>
12375
12376         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12377         %g directives.
12378         * tests/test-vasprintf-posix.c (test_function): Likewise.
12379         * tests/test-snprintf-posix.h (test_function): Likewise.
12380         * tests/test-sprintf-posix.h (test_function): Likewise.
12381
12382 2007-05-18  Bruno Haible  <bruno@clisp.org>
12383
12384         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12385         (strmatch): New function.
12386         (test_function): Test the %f directive on numbers of various exponents.
12387         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12388         (strmatch): New function.
12389         (test_function): Test the %f directive on numbers of various exponents.
12390         * tests/test-snprintf-posix.h (strmatch): New function.
12391         (test_function): Test the %f directive on numbers of various exponents.
12392         * tests/test-sprintf-posix.h (strmatch): New function.
12393         (test_function): Test the %f directive on numbers of various exponents.
12394         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12395         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12396         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12397         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12398
12399 2007-05-18  Bruno Haible  <bruno@clisp.org>
12400
12401         Add support for 'long double' number output.
12402         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12403         * lib/vasnprintf.c: Include math.h and float+.h.
12404         (mp_limb_t): New type.
12405         (GMP_LIMB_BITS): New macro.
12406         (mp_twolimb_t): New type.
12407         (GMP_TWOLIMB_BITS): New macro.
12408         (mpn_t): New type.
12409         (multiply, divide, convert_to_decimal, decode_long_double,
12410         scale10_round_long_double, scale10_round_decimal_long_double,
12411         floorlog10l): New functions.
12412         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12413         for the %f, %F, %e, %E, %g, %G directives.
12414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12415         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12416         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12417         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12420         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12421         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12422         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12423         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12424         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12425         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12426         * modules/snprintf-posix (Depends-on): Likewise.
12427         * modules/sprintf-posix (Depends-on): Likewise.
12428         * modules/vasnprintf-posix (Depends-on): Likewise.
12429         * modules/vasprintf-posix (Depends-on): Likewise.
12430         * modules/vfprintf-posix (Depends-on): Likewise.
12431         * modules/vsnprintf-posix (Depends-on): Likewise.
12432         * modules/vsprintf-posix (Depends-on): Likewise.
12433         * modules/vasnprintf (Files): Add lib/float+.h.
12434         * doc/functions/fprintf.texi: Update.
12435         * doc/functions/printf.texi: Update.
12436         * doc/functions/snprintf.texi: Update.
12437         * doc/functions/sprintf.texi: Update.
12438         * doc/functions/vfprintf.texi: Update.
12439         * doc/functions/vprintf.texi: Update.
12440         * doc/functions/vsnprintf.texi: Update.
12441         * doc/functions/vsprintf.texi: Update.
12442
12443 2007-05-18  Bruno Haible  <bruno@clisp.org>
12444
12445         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12446
12447 2007-05-18  Bruno Haible  <bruno@clisp.org>
12448
12449         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12450         for printing 64-bit integers. Needed for mingw.
12451
12452 2007-05-18  Bruno Haible  <bruno@clisp.org>
12453
12454         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12455         gl_FUNC_FREXPL_WORKS.
12456         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12457
12458 2007-05-18  Bruno Haible  <bruno@clisp.org>
12459
12460         * modules/frexpl-nolibm-tests: New file.
12461
12462         * modules/frexpl-nolibm: New file.
12463         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12464
12465 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12466
12467         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12468         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12469         GCC 4.2, which otherwise issues a lot of warnings.
12470         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12471         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12472         Likewise.
12473         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12474         * modules/iconv_open (iconv.h): Likewise.
12475         * modules/locale (locale.h): Likewise.
12476         * modules/netinet_in (netinet/in.h): Likewise.
12477         * modules/sys_select (sys_select.h): Likewise.
12478         * modules/sys_socket (sys/socket.h): Likewise.
12479         * modules/sys_stat (sys/stat.h): Likewise.
12480         * modules/sysexits (sysexits.h): Likewise.
12481         * modules/unistd (unistd.h): Likewise.
12482
12483 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12484
12485         * modules/closein-tests (Makefile.am): Distribute
12486         `test-closein.sh'.
12487
12488 2007-05-17  Bruno Haible  <bruno@clisp.org>
12489
12490         * tests/test-printf-posix.output: Renamed from
12491         tests/test-fprintf-posix.out.
12492         * modules/fprintf-posix-tests: Update.
12493         * modules/printf-posix-tests: Update.
12494         * modules/vfprintf-posix-tests: Update.
12495         * modules/vprintf-posix-tests: Update.
12496         * tests/test-fprintf-posix.sh: Update.
12497         * tests/test-printf-posix.sh: Update.
12498         * tests/test-vfprintf-posix.sh: Update.
12499         * tests/test-vprintf-posix.sh: Update.
12500         Reported by Ralf Wildenhues.
12501
12502 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12503
12504         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12505         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12506         GCC 4.2, which otherwise issues a lot of warnings.
12507         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12508         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12509         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12510         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12511         it should no longer be needed.
12512         * lib/string_.h: Likewise.
12513         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12514         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12515         * modules/inttypes (inttypes.h): Likewise.
12516         * modules/math (math.h): Likewise.
12517         * modules/search (search.h): Likewise.
12518         * modules/signal (signal.h): Likewise.
12519         * modules/stdint (stdint.h): Likewise.
12520         * modules/stdio (stdio.h): Likewise.
12521         * modules/stdlib (stdlib.h): Likewise.
12522         * modules/string (string.h): Likewise.
12523         * modules/sys_time (sys/time.h): Likewise.
12524         * modules/time (time.h): Likewise.
12525         * modules/wchar (wchar.h): Likewise.
12526         * modules/wctype (wtype.h): Likewise.
12527
12528 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12529
12530         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12531
12532 2007-05-13  Bruno Haible  <bruno@clisp.org>
12533
12534         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12535         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12536         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12537         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12538         (gl_PREREQ_STRTOK_R): Don't require it here.
12539
12540 2007-05-13  Bruno Haible  <bruno@clisp.org>
12541
12542         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12543         when used in C++ mode.
12544
12545 2007-05-12  Bruno Haible  <bruno@clisp.org>
12546
12547         * lib/linebuffer.h: Tweak doc.
12548         * lib/linebuffer.c: Likewise.
12549
12550 2007-05-12  James Youngman  <jay@gnu.org>
12551
12552         * lib/linebuffer.c (readlinebuffer_delim): New function,
12553         like readlinebuffer, but use a caller-specified delimiter.
12554         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12555         as the delimiter.
12556         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12557
12558 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12559
12560         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12561         * modules/openat (Files): Remove openat-die.c.
12562         (Depends-on): Add openat-die.
12563         * modules/openat-die: New module.
12564
12565 2007-05-06  Bruno Haible  <bruno@clisp.org>
12566
12567         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12568         Update with info about Cygwin.
12569         * doc/functions/fprintf.texi: Update.
12570         * doc/functions/printf.texi: Update.
12571         * doc/functions/snprintf.texi: Update.
12572         * doc/functions/sprintf.texi: Update.
12573         * doc/functions/vfprintf.texi: Update.
12574         * doc/functions/vprintf.texi: Update.
12575         * doc/functions/vsnprintf.texi: Update.
12576         * doc/functions/vsprintf.texi: Update.
12577         Reported by Eric Blake.
12578
12579 2007-05-06  Bruno Haible  <bruno@clisp.org>
12580
12581         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12582         padding ourselves for the floating-point directives.
12583         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12586         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12587         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12588         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12589         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12590         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12591         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12595         * tests/test-snprintf-posix.h (test_function): Also check the width
12596         and some flags in the %f directive.
12597         * tests/test-sprintf-posix.h (test_function): Likewise.
12598         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12599         * tests/test-vasprintf-posix.c (test_function): Likewise.
12600         * doc/functions/fprintf.texi: Update.
12601         * doc/functions/printf.texi: Update.
12602         * doc/functions/snprintf.texi: Update.
12603         * doc/functions/sprintf.texi: Update.
12604         * doc/functions/vfprintf.texi: Update.
12605         * doc/functions/vprintf.texi: Update.
12606         * doc/functions/vsnprintf.texi: Update.
12607         * doc/functions/vsprintf.texi: Update.
12608
12609 2007-05-06  Bruno Haible  <bruno@clisp.org>
12610
12611         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12612         pass the ' flag character to sprintf or snprintf.
12613         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12616         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12617         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12618         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12625         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12626         flag.
12627         * tests/test-sprintf-posix.h (test_function): Likewise.
12628         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12629         * tests/test-vasprintf-posix.c (test_function): Likewise.
12630         * doc/functions/fprintf.texi: Update.
12631         * doc/functions/printf.texi: Update.
12632         * doc/functions/snprintf.texi: Update.
12633         * doc/functions/sprintf.texi: Update.
12634         * doc/functions/vfprintf.texi: Update.
12635         * doc/functions/vprintf.texi: Update.
12636         * doc/functions/vsnprintf.texi: Update.
12637         * doc/functions/vsprintf.texi: Update.
12638
12639 2007-05-01  Bruno Haible  <bruno@clisp.org>
12640
12641         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12642
12643 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12644
12645         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12646         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12647
12648 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12649
12650         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12651         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12653
12654 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12655
12656         * lib/argp-help.c (struct hol_entry): New member `ord'.
12657         (HOL_ENTRY_PTRCMP): Use ord for comparison
12658         (hol_sort): Initialize ord.
12659
12660 2007-05-01  Bruno Haible  <bruno@clisp.org>
12661
12662         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12663         Reported by Eric Blake.
12664         * doc/gnulib.texi (Function Substitutes): Update.
12665
12666 2007-05-01  Bruno Haible  <bruno@clisp.org>
12667
12668         * doc/functions.texi: Remove file, now redundant through
12669         doc/functions/*.texi.
12670
12671 2007-05-01  Bruno Haible  <bruno@clisp.org>
12672
12673         * modules/argp (Depends-on): Add sleep.
12674
12675 2007-05-01  Bruno Haible  <bruno@clisp.org>
12676
12677         * modules/sleep-tests: New file.
12678         * tests/test-sleep.c: New file.
12679
12680         * modules/sleep: New file.
12681         * lib/sleep.c: New file.
12682         * m4/sleep.m4: New file.
12683         * lib/unistd_.h (sleep): New declaration.
12684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12685         HAVE_SLEEP.
12686         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12687         * doc/functions/sleep.texi: Document the sleep module.
12688
12689 2007-05-01  Bruno Haible  <bruno@clisp.org>
12690
12691         * lib/sigprocmask.h: Remove file.
12692         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12693         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12694         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12695         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12696         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12697         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12698         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12699         HAVE_SIGSET_T as a shell variable.
12700         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12701         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12702         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12703         (Depends-on): Add signal. Remove verify.
12704         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12705         (Include): Mention <signal.h> instead of sigprocmask.h.
12706         * NEWS: Mention the change.
12707         * lib/fatal-signal.c: Don't include sigprocmask.h.
12708
12709 2007-05-01  Bruno Haible  <bruno@clisp.org>
12710
12711         * modules/signal: New file.
12712         * lib/signal_.h: New file.
12713         * m4/signal_h.m4: New file.
12714
12715 2007-05-01  Bruno Haible  <bruno@clisp.org>
12716
12717         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12718         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12719         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12720         HAVE_WCTYPE_CTMP_BUG into wctype.h.
12721
12722 2007-05-01  Bruno Haible  <bruno@clisp.org>
12723
12724         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
12725         configure time.
12726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
12727         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
12728         * modules/sys_stat (Makefile.am): Substitute their values into
12729         sys/stat.h.
12730
12731 2007-05-01  Bruno Haible  <bruno@clisp.org>
12732
12733         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
12734         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
12735         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
12736
12737 2007-05-01  Bruno Haible  <bruno@clisp.org>
12738
12739         * doc/header/assert.texi: Undo last change: don't mention the gnulib
12740         'assert' module here.
12741
12742 2007-05-01  Bruno Haible  <bruno@clisp.org>
12743
12744         * doc/functions/*.texi: New files.
12745         * doc/functions/google-ranking.txt: New file.
12746         * doc/gnulib.texi (Function Substitutes): New chapter.
12747         (ctime, inet_ntoa): Remove sections.
12748         * doc/ctime.texi: Remove file.
12749         * doc/inet_ntoa.texi: Remove file.
12750         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
12751         dependencies.
12752         (%.info): New rule, specifying a --reference-limit.
12753
12754 2007-05-01  Bruno Haible  <bruno@clisp.org>
12755
12756         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
12757
12758 2007-05-01  Bruno Haible  <bruno@clisp.org>
12759
12760         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
12761         the portability of 'mkdir' to mingw systems.
12762
12763 2007-05-01  Bruno Haible  <bruno@clisp.org>
12764
12765         * doc/headers/google-ranking.txt: New file.
12766
12767 2007-04-30  Eric Blake  <ebb9@byu.net>
12768
12769         Prefer fseeko to fseek.
12770         * modules/getpass (Depends-on): Add fseeko.
12771         * lib/getpass.c (getpass): Use fseeko, not fseek.
12772
12773 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
12774
12775         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
12776         assumes the sorting is stable, while most qsort implementations
12777         are not.  Use argument addresses to ensure they never compare as
12778         equal.
12779
12780         * tests/test-argp-2.sh (usage-indent test): Fix output
12781         (func_compare): Restore diff options
12782         * tests/test-argp.c: Restore #include "progname.h"
12783
12784 2007-04-29  Bruno Haible  <bruno@clisp.org>
12785
12786         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
12787         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12788         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
12789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12790         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
12791         (configure.ac): Define CHECK_SNPRINTF_POSIX.
12792         (TESTS, check_PROGRAMS): Add test-snprintf.
12793         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
12794         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
12795         (TESTS, check_PROGRAMS): Add test-vsnprintf.
12796         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
12797         assertions that fail on HP-UX, OSF/1, or IRIX.
12798         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
12799
12800 2007-04-29  Bruno Haible  <bruno@clisp.org>
12801
12802         * MODULES.html.sh (posix_functions): Remove 'contents'.
12803
12804 2007-04-29  Karl Berry  <karl@gnu.org>
12805
12806         * config/srclist.txt (gendocs_template_min): new entry.
12807
12808 2007-04-29  Bruno Haible  <bruno@clisp.org>
12809
12810         Work around fpurge bug on BSD systems.
12811         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
12812         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
12813         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
12814         fpurge to rpl_fpurge if the system already has this function.
12815         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
12816         the case where the system already has this function. Correct invariants
12817         on BSD systems.
12818         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
12819         BSD systems.
12820
12821 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12822
12823         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
12824         proposed by Sven Verdoolaege.
12825
12826         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
12827         options.
12828         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
12829         (usage and help tests): Update
12830
12831 2007-04-29  Bruno Haible  <bruno@clisp.org>
12832
12833         * tests/test-fflush.c (main): Use a file of size 17, not 10.
12834         Print more information in case of failure. Disable a test on BeOS.
12835
12836 2007-04-29  Bruno Haible  <bruno@clisp.org>
12837
12838         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
12839         This helps debugging on systems on which no gdb is available.
12840
12841 2007-04-29  Bruno Haible  <bruno@clisp.org>
12842
12843         * lib/freading.h: Improve comments.
12844         * lib/fwriting.h: Likewise.
12845         * tests/test-freading.c (main): Don't check freading immediately after
12846         repositioning. Needed for glibc.
12847
12848 2007-04-29  Bruno Haible  <bruno@clisp.org>
12849
12850         * lib/freading.c (freading): Trivial simplification.
12851
12852 2007-04-28  Bruno Haible  <bruno@clisp.org>
12853
12854         * tests/test-fwriting.c (main): Also test the interaction between
12855         fflush and fwriting.
12856         * modules/fwriting-tests (Depends-on): Add fflush.
12857
12858         * tests/test-freading.c (main): Also test the interaction between
12859         fflush and freading.
12860         * modules/freading-tests (Depends-on): Add fflush.
12861
12862 2007-04-28  Bruno Haible  <bruno@clisp.org>
12863
12864         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
12865         fseeko and ftello.
12866         Suggested by Eric Blake.
12867
12868 2007-04-28  Jim Meyering  <jim@meyering.net>
12869
12870         Avoid false-negative in gl_STDINT_H's C99 conformance test.
12871         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
12872         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
12873
12874 2007-04-27  Eric Blake  <ebb9@byu.net>
12875
12876         * doc/headers/assert.texi (assert.h): Document assert module use.
12877
12878 2007-04-27  Bruno Haible  <bruno@clisp.org>
12879
12880         * doc/headers/*.texi: New files.
12881         * doc/gnulib.texi (Header File Substitutes): New chapter.
12882         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
12883         dependencies.
12884         (standards.info ,standards.html, standards.dvi): Update dependencies.
12885         (mostlyclean, clean): New targets.
12886
12887 2007-04-27  Bruno Haible  <bruno@clisp.org>
12888
12889         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
12890         * modules/sysexits (Files, Makefile.am): Update.
12891
12892         * lib/sys_socket_.h: Renamed from lib/socket_.h.
12893         * modules/sys_socket (Files, Makefile.am): Update.
12894
12895         * lib/sys_stat_.h: Renamed from lib/stat_.h.
12896         * modules/sys_stat (Files, Makefile.am): Update.
12897
12898 2007-04-27  Eric Blake  <ebb9@byu.net>
12899
12900         * lib/freading.h: Improve comments.
12901         * lib/fwriting.h: Likewise.
12902         * lib/fflush.c: Likewise.
12903
12904         Fix closein for mingw.
12905         * modules/closein-tests: Add tests for closein.
12906         * tests/test-closein.c: New file.
12907         * tests/test-closein.sh: Likewise.
12908         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
12909         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
12910
12911 2007-04-27  Bruno Haible  <bruno@clisp.org>
12912
12913         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
12914         version is < 6.
12915         * lib/math_.h [__DECC]: Likewise.
12916         * lib/stdio_.h [__DECC]: Likewise.
12917         * lib/stdlib_.h [__DECC]: Likewise.
12918         * lib/string_.h [__DECC]: Likewise.
12919         * lib/time_.h [__DECC]: Likewise.
12920         * lib/wchar_.h [__DECC]: Likewise.
12921         * lib/wctype_.h [__DECC]: Likewise.
12922
12923 2007-04-27  Bruno Haible  <bruno@clisp.org>
12924
12925         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
12926
12927 2007-04-27  Bruno Haible  <bruno@clisp.org>
12928
12929         * lib/fflush.c: Add comments.
12930         * modules/fpurge-tests (Depends-on): Add fflush.
12931         * modules/freadable-tests (Depends-on): Likewise.
12932         * modules/fwritable-tests (Depends-on): Likewise.
12933
12934 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
12935
12936         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
12937         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
12938         Report by Bruno Haible <bruno@clisp.org>.
12939
12940 2007-04-26  Eric Blake  <ebb9@byu.net>
12941
12942         Fix fflush on mingw.
12943         * modules/fflush (Depends-on): Add freading.
12944         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
12945         but unread data.
12946
12947 2007-04-26  Eric Blake  <ebb9@byu.net>
12948         and Bruno Haible  <bruno@clisp.org>
12949
12950         Implement freading and fwriting.
12951         * lib/freading.c: New file.
12952         * lib/freading.h: Likewise.
12953         * m4/freading.m4: Likewise.
12954         * modules/freading: Likewise.
12955         * modules/freading-tests: Likewise.
12956         * tests/test-freading.c: Likewise.
12957         * lib/fwriting.c: New file.
12958         * lib/fwriting.h: Likewise.
12959         * m4/fwriting.m4: Likewise.
12960         * modules/fwriting: Likewise.
12961         * modules/fwriting-tests: Likewise.
12962         * tests/test-fwriting.c: Likewise.
12963         * MODULES.html.sh (File stream based Input/Output): Mention them.
12964
12965 2007-04-26  Bruno Haible  <bruno@clisp.org>
12966
12967         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
12968         'long' when we assume it.
12969         Suggested by Eric Blake.
12970
12971 2007-04-26  Bruno Haible  <bruno@clisp.org>
12972
12973         Ensure fseeko, ftello are declared on glibc systems.
12974         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
12975         * modules/fseeko (configure.ac-early): Likewise.
12976         * modules/ftello (configure.ac-early): Likewise.
12977         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
12978         AC_FUNC_FSEEKO for this.
12979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
12980         (gl_CHECK_FSEEKO): Remove macro.
12981
12982 2007-04-26  Bruno Haible  <bruno@clisp.org>
12983
12984         * tests/test-fflush.c (main): Also check the ftell result after
12985         fflush and fseek/fseeko.
12986         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
12987         file descriptor position cache in the stream.
12988         * lib/fseeko.c (rpl_fseeko): Likewise.
12989
12990 2007-04-26  Bruno Haible  <bruno@clisp.org>
12991
12992         * modules/fflush-tests (Depends-on): Add fseeko.
12993
12994 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
12995             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12996
12997         * lib/argz_.h: ensure error_t definition is obtained in same
12998         mechanism system argz.h would have.
12999         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
13000         argz facilities are known bad.  Err on the side of caution if
13001         cross-compiling.
13002
13003 2007-04-25  Eric Blake  <ebb9@byu.net>
13004
13005         * lib/fpurge.c (includes): Use stdlib.h for free.
13006         * tests/test-fflush.c (main): Also test fflush-fseeko.
13007
13008 2007-04-25  Bruno Haible  <bruno@clisp.org>
13009
13010         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
13011         * lib/fseeko.c: New file.
13012         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
13013         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
13014         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
13015         gl_FUNC_FSEEKO.
13016         (gl_FUNC_FSEEKO): Invoke it.
13017         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
13018         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
13019         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
13020
13021 2007-04-25  Bruno Haible  <bruno@clisp.org>
13022
13023         * modules/fflush (Depends-on): Add ftello.
13024
13025 2007-04-25  Bruno Haible  <bruno@clisp.org>
13026
13027         * modules/ftello-tests: New file.
13028         * tests/test-ftello.c: New file.
13029
13030         * modules/ftello: New file.
13031         * m4/ftello.m4: New file.
13032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
13033         HAVE_FTELLO.
13034         * lib/stdio_.h (ftello): New declaration.
13035         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
13036         HAVE_FTELLO.
13037
13038 2007-04-25  Bruno Haible  <bruno@clisp.org>
13039
13040         * modules/fseeko-tests: New file.
13041         * tests/test-fseeko.c: New file.
13042
13043         * modules/fseeko: New file.
13044         * m4/fseeko.m4: New file.
13045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
13046         HAVE_FSEEKO.
13047         * lib/stdio_.h (fseeko): New declaration.
13048         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
13049         HAVE_FSEEKO.
13050
13051 2007-04-25  Bruno Haible  <bruno@clisp.org>
13052
13053         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
13054
13055 2007-04-25  Bruno Haible  <bruno@clisp.org>
13056
13057         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
13058         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
13059         * tests/test-unistd.c: Likewise.
13060         * tests/test-fcntl.c: Likewise.
13061
13062 2007-04-23  Eric Blake  <ebb9@byu.net>
13063
13064         * lib/fflush.c: Fix missing include.
13065         Reported by Bruno Haible.
13066
13067 2007-04-23  Bruno Haible  <bruno@clisp.org>
13068
13069         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
13070         Reported by Eric Blake.
13071
13072 2007-04-23  Bruno Haible  <bruno@clisp.org>
13073
13074         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
13075
13076 2007-04-23  Bruno Haible  <bruno@clisp.org>
13077
13078         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
13079
13080 2007-04-23  Bruno Haible  <bruno@clisp.org>
13081
13082         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
13083         Needed on HP-UX 11.
13084
13085 2007-04-16  Eric Blake  <ebb9@byu.net>
13086
13087         Make fflush rely on fpurge.
13088         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
13089         open coding all variants.
13090         * modules/fflush (Depends-on): Add fpurge and unistd.
13091         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
13092         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
13093
13094         Fix --with-tests compilation on cygwin.
13095         * modules/argmatch-tests (Makefile.am): List gnulib library first
13096         in LDADD.
13097         * modules/argp-tests (Makefile.am): Likewise.
13098         * modules/array-list-tests (Makefile.am): Likewise.
13099         * modules/array-oset-tests (Makefile.am): Likewise.
13100         * modules/avltree-list-tests (Makefile.am): Likewise.
13101         * modules/avltree-oset-tests (Makefile.am): Likewise.
13102         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13103         * modules/carray-list-tests (Makefile.am): Likewise.
13104         * modules/dirname-tests (Makefile.am): Likewise.
13105         * modules/frexp-tests (Makefile.am): Likewise.
13106         * modules/isnanl-tests (Makefile.am): Likewise.
13107         * modules/linked-list-tests (Makefile.am): Likewise.
13108         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13109         * modules/lock-tests (Makefile.am): Likewise.
13110         * modules/rbtree-list-tests (Makefile.am): Likewise.
13111         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13112         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13113         * modules/tls-tests (Makefile.am): Likewise.
13114         * modules/tsearch-tests (Makefile.am): Likewise.
13115         * modules/xvasprintf-tests (Makefile.am): Likewise.
13116
13117         Fix fpurge for cygwin.
13118         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13119         value.
13120         * modules/fpurge-tests (Depends-on): Clean up trash.
13121
13122 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13123
13124         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13125
13126         * m4/autobuild.m4: Re-indent.
13127
13128 2007-04-13  Bruno Haible  <bruno@clisp.org>
13129
13130         * modules/fpurge-tests: New file.
13131         * tests/test-fpurge.c: New file.
13132
13133         * modules/fpurge: New file.
13134         * lib/fpurge.h: New file.
13135         * lib/fpurge.c: New file.
13136         * m4/fpurge.m4: New file.
13137
13138 2007-04-13  Bruno Haible  <bruno@clisp.org>
13139
13140         * modules/fbufmode-tests: New file.
13141         * tests/test-fbufmode.c: New file.
13142
13143         * modules/fbufmode: New file.
13144         * lib/fbufmode.h: New file.
13145         * lib/fbufmode.c: New file.
13146         * m4/fbufmode.m4: New file.
13147
13148 2007-04-13  Bruno Haible  <bruno@clisp.org>
13149
13150         * modules/fwritable-tests: New file.
13151         * tests/test-fwritable.c: New file.
13152
13153         * modules/fwritable: New file.
13154         * lib/fwritable.h: New file.
13155         * lib/fwritable.c: New file.
13156         * m4/fwritable.m4: New file.
13157
13158 2007-04-13  Bruno Haible  <bruno@clisp.org>
13159
13160         * modules/freadable-tests: New file.
13161         * tests/test-freadable.c: New file.
13162
13163         * modules/freadable: New file.
13164         * lib/freadable.h: New file.
13165         * lib/freadable.c: New file.
13166         * m4/freadable.m4: New file.
13167
13168 2007-04-13  Bruno Haible  <bruno@clisp.org>
13169
13170         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13171         MOSTLYCLEANFILES.
13172
13173 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13174
13175         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13176         gzip bootstrap.conf to avoid dragging in i18n machinery.
13177         (gnulib_tool_option): Use it.
13178
13179 2007-04-13  Bruno Haible  <bruno@clisp.org>
13180
13181         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13182         %F directives.
13183         * tests/test-vasprintf-posix.c (test_function): Likewise.
13184         * tests/test-snprintf-posix.h (test_function): Likewise.
13185         * tests/test-sprintf-posix.h (test_function): Likewise.
13186         * tests/test-fprintf-posix.h (test_function): Likewise.
13187         * tests/test-printf-posix.h (test_function): Likewise.
13188         * tests/test-fprintf-posix.out: Likewise.
13189
13190 2007-04-13  Bruno Haible  <bruno@clisp.org>
13191
13192         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13193         * modules/tls-tests (configure.ac): Likewise.
13194         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13195
13196 2007-04-13  Bruno Haible  <bruno@clisp.org>
13197
13198         * lib/tls.c (glthread_tls_get): Fix return type.
13199         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13200
13201 2007-04-12  Eric Blake  <ebb9@byu.net>
13202
13203         * modules/gettime (Depends-on): Remove gettime.
13204         Reported by Dmitry V. Levin.
13205
13206 2007-04-12  Bruno Haible  <bruno@clisp.org>
13207
13208         * modules/fflush (Include): Mention <stdio.h>.
13209         * modules/strtoimax (Include): Mention <inttypes.h>.
13210         * modules/strtoumax (Include): Likewise.
13211
13212 2007-04-12  Eric Blake  <ebb9@byu.net>
13213
13214         * .cvsignore: New file.
13215         * .gitignore: Likewise.
13216
13217 2007-04-12  Bruno Haible  <bruno@clisp.org>
13218
13219         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13220         not before, since $(LDADD) often contains libgnu.a.
13221         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13222         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13223         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13224         Needed on Cygwin.
13225
13226 2007-04-12  Eric Blake  <ebb9@byu.net>
13227
13228         Work around glibc's failure to flush stdin on fclose.
13229         * lib/closein.c (close_stdin): Flush stdin before closing.
13230
13231         Work around glibc's failure to reset seekable stdin on exit.
13232         * modules/closein: New module.
13233         * lib/closein.c: New file.
13234         * lib/closein.h: Likewise.
13235         * m4/closein.m4: Likewise.
13236         * MODULES.html.sh (File stream based Input/Output): Document it.
13237
13238 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13239
13240         * gnulib-tool: Rename generated 'autobuild' script to
13241         'do-autobuild' in --create-megatestdir output.
13242
13243         * doc/gnulib.texi (Build robot for gnulib): Fix.
13244
13245 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13246
13247         * modules/sysexits (Depends-on): Add absolute-header.
13248
13249 2007-04-12  Eric Blake  <ebb9@byu.net>
13250
13251         No need to preserve errno on success.
13252         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13253         Reported by Bruno Haible.
13254
13255 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13256
13257         * MODULES.html.sh (Support for maintaining and releasing
13258         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13259
13260 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13261
13262         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13263
13264 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13265
13266         * modules/autobuild: New module.
13267
13268         * m4/autobuild.m4: New file.
13269
13270 2007-04-11  Bruno Haible  <bruno@clisp.org>
13271
13272         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13273         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13285         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13292         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13293         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13295         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13296         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13297         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13298         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13299         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13300         Reported by Eric Blake.
13301
13302 2007-04-11  Bruno Haible  <bruno@clisp.org>
13303
13304         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13305
13306 2007-04-10  Bruno Haible  <bruno@clisp.org>
13307
13308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13309         for NaN and Infinity. Needed on FreeBSD 6.1.
13310         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13311         regarding results for "%010a" of Infinity and NaN.
13312         * tests/test-vasprintf-posix.c (test_function): Likewise.
13313         * tests/test-snprintf-posix.h (test_function): Likewise.
13314         * tests/test-sprintf-posix.h (test_function): Likewise.
13315         * tests/test-fprintf-posix.h (test_function): Likewise.
13316         * tests/test-printf-posix.h (test_function): Likewise.
13317         * tests/test-fprintf-posix.out: Likewise.
13318
13319 2007-04-10  Bruno Haible  <bruno@clisp.org>
13320
13321         * modules/locale-tests: New file.
13322         * tests/test-locale.c: New file.
13323
13324         * modules/locale: New file.
13325         * lib/locale_.h: New file.
13326         * m4/locale_h.m4: New file.
13327
13328 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13329             Bruno Haible  <bruno@clisp.org>
13330
13331         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13332         be determined, test for availability of the copysignf, copysign,
13333         copysignl functions.
13334         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13335         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13336         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13337
13338 2007-04-09  Eric Blake  <ebb9@byu.net>
13339
13340         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13341         * modules/stdio (Makefile.am): Support fflush.
13342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13343         * modules/fflush: New file.
13344         * lib/fflush.c: Likewise.
13345         * m4/fflush.m4: Likewise.
13346         * modules/fflush-tests: New test.
13347         * tests/test-fflush.c: Likewise.
13348         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13349
13350 2007-04-06  Bruno Haible  <bruno@clisp.org>
13351
13352         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13353         (VASNPRINTF): Use signbit for faster determination whether to print a
13354         minus sign.
13355         * modules/vasnprintf (Files): Remove lib/float+.h.
13356         * modules/fprintf-posix (Depends-on): Add signbit.
13357         * modules/snprintf-posix (Depends-on): Likewise.
13358         * modules/sprintf-posix (Depends-on): Likewise.
13359         * modules/vasnprintf-posix (Depends-on): Likewise.
13360         * modules/vasprintf-posix (Depends-on): Likewise.
13361         * modules/vfprintf-posix (Depends-on): Likewise.
13362         * modules/vsnprintf-posix (Depends-on): Likewise.
13363         * modules/vsprintf-posix (Depends-on): Likewise.
13364
13365 2007-04-06  Bruno Haible  <bruno@clisp.org>
13366
13367         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13368         * tests/test-frexpl.c (main): Likewise.
13369         * tests/test-ldexpl.c (main): Likewise.
13370         * modules/frexp-tests (Depends-on): Add signbit.
13371         * modules/frexpl-tests (Depdends-on): Likewise.
13372         * modules/ldexpl-tests (Depdends-on): Likewise.
13373
13374 2007-04-06  Bruno Haible  <bruno@clisp.org>
13375
13376         * modules/signbit-tests: New file.
13377         * tests/test-signbit.c: New file.
13378
13379         * modules/signbit: New file.
13380         * lib/signbitf.c: New file.
13381         * lib/signbitd.c: New file.
13382         * lib/signbitl.c: New file.
13383         * m4/signbit.m4: New file.
13384         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13385         (signbit): New macro.
13386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13387         REPLACE_SIGNBIT.
13388         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13389         REPLACE_FREXPL into math.h.
13390
13391 2007-04-06  Bruno Haible  <bruno@clisp.org>
13392
13393         * modules/isnanf-nolibm-tests: New file.
13394         * tests/test-isnanf.c: New file.
13395
13396         * modules/isnanf-nolibm: New file.
13397         * lib/isnanf.h: New file.
13398         * lib/isnanf.c: New file.
13399         * lib/isnan.c: Consider the USE_FLOAT macro.
13400         * m4/isnanf.m4: New file.
13401
13402 2007-04-06  Bruno Haible  <bruno@clisp.org>
13403
13404         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13405         (Link): New section.
13406
13407         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13408
13409 2007-04-06  Bruno Haible  <bruno@clisp.org>
13410
13411         Assume the 'long double' type.
13412         * m4/longdouble.m4: Remove file.
13413         * config/srclist.txt: Don't mention longdouble.m4.
13414         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13415         * lib/float+.h: Likewise.
13416         * lib/frexp.c: Likewise.
13417         * lib/printf-args.h: Likewise.
13418         * lib/printf-args.c: Likewise.
13419         * lib/printf-frexp.c: Likewise.
13420         * lib/printf-parse.c: Likewise.
13421         * lib/vasnprintf.c: Likewise.
13422         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13423         * m4/intl.m4: Likewise.
13424         * m4/isnanl.m4: Likewise.
13425         * m4/printf.m4: Likewise.
13426         * m4/printf-frexpl.m4: Likewise.
13427         * m4/vasnprintf.m4: Likewise.
13428         * modules/allocsa (Files): Remove m4/longdouble.m4.
13429         * modules/gettext (Files): Likewise.
13430         * modules/relocatable-prog-wrapper (Files): Likewise.
13431         * modules/vasnprintf (Files): Likewise.
13432         * modules/isnanl (Files): Likewise.
13433         (Include): Simplify.
13434         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13435         (Include): Simplify.
13436         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13437         (Include): Simplify.
13438         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13439         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13440         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13441         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13442         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13443         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13444         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13445         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13446         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13447         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13448         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13449         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13450         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13451         * tests/test-isnanl.c: Likewise.
13452         * tests/test-snprintf-posix.h: Likewise.
13453         * tests/test-sprintf-posix.h: Likewise.
13454         * tests/test-vasnprintf-posix.c: Likewise.
13455         * tests/test-vasnprintf-posix2.c: Likewise.
13456         * tests/test-vasprintf-posix.c: Likewise.
13457
13458 2007-04-06  Bruno Haible  <bruno@clisp.org>
13459
13460         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13461         * lib/math_.h [__DECC]: Include the overridden include file through
13462         #include_next, outside the double-inclusion guard.
13463         * lib/stdio_.h [__DECC]: Likewise.
13464         * lib/stdlib_.h [__DECC]: Likewise.
13465         * lib/string_.h [__DECC]: Likewise.
13466         * lib/time_.h [__DECC]: Likewise.
13467         * lib/wchar_.h [__DECC]: Likewise.
13468         * lib/wctype_.h [__DECC]: Likewise.
13469         * lib/inttypes_.h [__DECC]: Likewise.
13470         Reported by Albert Chin <china@thewrittenword.com> in
13471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13472
13473 2007-04-04  Eric Blake  <ebb9@byu.net>
13474
13475         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13476         1.5.x.
13477
13478 2007-04-04  Bruno Haible  <bruno@clisp.org>
13479
13480         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13481         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13482
13483 2007-04-04  Bruno Haible  <bruno@clisp.org>
13484
13485         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13486         results for "%010a" of Infinity and NaN.
13487         * tests/test-vasprintf-posix.c (test_function): Likewise.
13488         * tests/test-snprintf-posix.h (test_function): Likewise.
13489         * tests/test-sprintf-posix.h (test_function): Likewise.
13490         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13491         * tests/test-printf-posix.h (test_function): Likewise.
13492         * tests/test-fprintf-posix.out: Update.
13493         Needed for FreeBSD 6.1.
13494
13495 2007-04-04  Bruno Haible  <bruno@clisp.org>
13496
13497         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13498         directly used by the gnulib modules nor by gnulib-tool.
13499
13500 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13501
13502         * DEPENDENCIES: Give overall description of version dependency
13503         desirability.  Use more-typical names for apps.
13504         Add shell, coreutils, diffutils, grep, tar, gzip.
13505
13506 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13507
13508         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13509
13510 2007-04-04  Karl Berry  <karl@gnu.org>
13511
13512         * MODULES.html.sh (func_module): missing '.
13513
13514 2007-04-03  Bruno Haible  <bruno@clisp.org>
13515
13516         * modules/argmatch-tests (Makefile.am): New variable
13517         test_argmatch_LDADD.
13518         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13519         * modules/array-list-tests (Makefile.am): New variable
13520         test_array_list_LDADD.
13521         * modules/array-oset-tests (Makefile.am): New variable
13522         test_array_oset_LDADD.
13523         * modules/avltree-list-tests (Makefile.am): New variable
13524         test_avltree_list_LDADD.
13525         * modules/avltree-oset-tests (Makefile.am): New variable
13526         test_avltree_oset_LDADD.
13527         * modules/avltreehash-list-tests (Makefile.am): New variable
13528         test_avltreehash_list_LDADD.
13529         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13530         test_canonicalize_lgpl_LDADD.
13531         * modules/carray-list-tests (Makefile.am): New variable
13532         test_carray_list_LDADD.
13533         * modules/dirname-tests (Makefile.am): New variable
13534         test_dirname_LDADD.
13535         * modules/linked-list-tests (Makefile.am): New variable
13536         test_linked_list_LDADD.
13537         * modules/linkedhash-list-tests (Makefile.am): New variable
13538         test_linkedhash_list_LDADD.
13539         * modules/rbtree-list-tests (Makefile.am): New variable
13540         test_rbtree_list_LDADD.
13541         * modules/rbtree-oset-tests (Makefile.am): New variable
13542         test_rbtree_oset_LDADD.
13543         * modules/rbtreehash-list-tests (Makefile.am): New variable
13544         test_rbtreehash_list_LDADD.
13545         * modules/xvasprintf-tests (Makefile.am): New variable
13546         test_xvasprintf_LDADD.
13547         Reported by Eric Blake.
13548
13549 2007-04-03  Eric Blake  <ebb9@byu.net>
13550
13551         * DEPENDENCIES: Weaken m4 requirements.
13552
13553 2007-04-03  Bruno Haible  <bruno@clisp.org>
13554
13555         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13556         * modules/isnanl-tests (configure.ac): Likewise.
13557
13558 2007-04-03  Ben Pfaff  <blp@gnu.org>
13559
13560         * modules/iconv_open: Add $(srcdir)/ to source directory
13561         references in Makefile fragments that call gperf, to fix VPATH
13562         builds.
13563
13564 2007-04-03  Bruno Haible  <bruno@clisp.org>
13565
13566         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13567         * lib/ldexpl.c: Undo last change.
13568
13569 2007-04-03  Bruno Haible  <bruno@clisp.org>
13570
13571         * modules/printf-frexpl (Depends-on): Undo last change.
13572         (Files): Add m4/ldexpl.m4.
13573
13574 2007-04-03  Bruno Haible  <bruno@clisp.org>
13575
13576         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13577         * modules/isnanl (Link): New section.
13578
13579         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13580         * modules/frexp (Link): New section.
13581
13582         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13583         * modules/frexpl (Link): New section.
13584
13585         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13586         * modules/ldexpl (Link): New section.
13587
13588 2007-04-03  Bruno Haible  <bruno@clisp.org>
13589
13590         * modules/TEMPLATE-EXTENDED: New file.
13591         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13592
13593 2007-04-03  Bruno Haible  <bruno@clisp.org>
13594
13595         * DEPENDENCIES: New file.
13596         Suggested by Simon Josefsson.
13597
13598 2007-04-03  Bruno Haible  <bruno@clisp.org>
13599
13600         * doc/gnulib.texi: Escape @.
13601
13602 2007-04-03  James Youngman  <jay@gnu.org>
13603         and Paul Eggert  <eggert@cs.ucla.edu>
13604
13605         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13606         birthtime on all systems that have birthtime, not just those which
13607         use st_birthtimensec rather than st_birthtim.  Putting zero in
13608         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13609         that the birth time is not available for files on an NFS mount.
13610
13611 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13612
13613         * modules/memxor: Move back from crypto/, suggested by Bruno.
13614         * modules/crypto/hmac-sha1: Fix memxor dependency.
13615
13616         * modules/crypto/gc: Moved from ../.
13617
13618 2007-04-02  Eric Blake  <ebb9@byu.net>
13619
13620         * lib/ldexpl.c (includes): Avoid libm.
13621
13622         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13623
13624 2007-04-02  Bruno Haible  <bruno@clisp.org>
13625
13626         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13627         on IRIX.
13628
13629 2007-04-02  Bruno Haible  <bruno@clisp.org>
13630
13631         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13632         x86 or x86_64 platforms running MacOS X.
13633         Reported by Ryan Schmidt <@ryandesign.com>.
13634
13635 2007-04-02  Bruno Haible  <bruno@clisp.org>
13636
13637         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13638         i386.
13639
13640 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13641
13642         * modules/crypto/arcfour: Moved from ../.
13643         * modules/crypto/arcfour-tests: Moved from ../.
13644         * modules/crypto/arctwo: Moved from ../.
13645         * modules/crypto/arctwo-tests: Moved from ../.
13646         * modules/crypto/des: Moved from ../.
13647         * modules/crypto/des-tests: Moved from ../.
13648         * modules/crypto/gc-arcfour: Moved from ../.
13649         * modules/crypto/gc-arcfour-tests: Moved from ../.
13650         * modules/crypto/gc-arctwo: Moved from ../.
13651         * modules/crypto/gc-arctwo-tests: Moved from ../.
13652         * modules/crypto/gc-des: Moved from ../.
13653         * modules/crypto/gc-des-tests: Moved from ../.
13654         * modules/crypto/gc-hmac-md5: Moved from ../.
13655         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13656         * modules/crypto/gc-hmac-sha1: Moved from ../.
13657         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13658         * modules/crypto/gc-md2: Moved from ../.
13659         * modules/crypto/gc-md2-tests: Moved from ../.
13660         * modules/crypto/gc-md4: Moved from ../.
13661         * modules/crypto/gc-md4-tests: Moved from ../.
13662         * modules/crypto/gc-md5: Moved from ../.
13663         * modules/crypto/gc-md5-tests: Moved from ../.
13664         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13665         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13666         * modules/crypto/gc-random: Moved from ../.
13667         * modules/crypto/gc-rijndael: Moved from ../.
13668         * modules/crypto/gc-rijndael-tests: Moved from ../.
13669         * modules/crypto/gc-sha1: Moved from ../.
13670         * modules/crypto/gc-sha1-tests: Moved from ../.
13671         * modules/crypto/gc-tests: Moved from ../.
13672         * modules/crypto/hmac-md5: Moved from ../.
13673         * modules/crypto/hmac-md5-tests: Moved from ../.
13674         * modules/crypto/hmac-sha1: Moved from ../.
13675         * modules/crypto/hmac-sha1-tests: Moved from ../.
13676         * modules/crypto/md2: Moved from ../.
13677         * modules/crypto/md2-tests: Moved from ../.
13678         * modules/crypto/md4: Moved from ../.
13679         * modules/crypto/md4-tests: Moved from ../.
13680         * modules/crypto/md5: Moved from ../.
13681         * modules/crypto/md5-tests: Moved from ../.
13682         * modules/crypto/memxor: Moved from ../.
13683         * modules/crypto/rijndael: Moved from ../.
13684         * modules/crypto/rijndael-tests: Moved from ../.
13685         * modules/crypto/sha1: Moved from ../.
13686
13687 2007-03-30  James Youngman  <jay@gnu.org>
13688
13689         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13690         rename() to change the ctime of a file (because ctime is unaffected
13691         by rename on jfs2 on AIX 5.1).
13692         (main): Start by doing cleanup, in case a previous run failed leaving
13693         test files behind.
13694
13695 2007-03-31  Bruno Haible  <bruno@clisp.org>
13696
13697         Support old proprietary implementations of iconv.
13698         * modules/iconv_open: New file.
13699         * lib/iconv_.h: New file.
13700         * m4/iconv_h.m4: New file.
13701         * lib/iconv_open.c: New file.
13702         * lib/iconv_open-aix.gperf: New file.
13703         * lib/iconv_open-hpux.gperf: New file.
13704         * lib/iconv_open-irix.gperf: New file.
13705         * lib/iconv_open-osf.gperf: New file.
13706         * m4/iconv_open.m4: New file.
13707         * modules/linebreak (Depends-on): Add iconv_open.
13708         * modules/striconv (Depends-on): Likewise.
13709         * modules/striconveh (Depends-on): Likewise.
13710         * modules/unicodeio (Depends-on): Likewise.
13711         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13712         (iconv_t)(-1).
13713         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13714         conversion if cd is (iconv_t)(-1).
13715         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13716         is not possible.
13717
13718 2007-03-31  Bruno Haible  <bruno@clisp.org>
13719
13720         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13721         work on Solaris either. Protect also second use of "autodetect_jp".
13722
13723 2007-03-31  Bruno Haible  <bruno@clisp.org>
13724
13725         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
13726         the function is not present.
13727
13728 2007-03-31  Bruno Haible  <bruno@clisp.org>
13729
13730         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
13731         the function is not present.
13732
13733 2007-03-31  Bruno Haible  <bruno@clisp.org>
13734
13735         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
13736         a bug in HP-UX iconv_open().
13737
13738 2007-03-31  Bruno Haible  <bruno@clisp.org>
13739
13740         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
13741         (Mathematics <math.h>): New section, add fpieee.
13742         (Input/output <stdio.h>): Add fseterr.
13743         (Mathematics <math.h>): New section, add printf-frexp.
13744         (Container data structures): Add sublist.
13745         (Core language properties): Add fpucw, inline.
13746         (Functions for greatest-width integer types <inttypes.h>): Add
13747         imaxabs, imaxdiv, inttypes.
13748         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
13749         isnanl-nolibm, ldexp.
13750         (Mathematics <math.h>): New section, add printf-frexpl.
13751         (Support for systems lacking POSIX:2001): Add fprintf-posix,
13752         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
13753         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
13754         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
13755         (Unicode string functions): Add unistr/u*-mbtoucr.
13756         (Java): Add javacomp-script, javaexec-script.
13757         (C#): Add csharpcomp-script, csharpexec-script.
13758         (Support for building libraries and executables): Add havelib,
13759         relocatable-*.
13760         (Support for maintaining and releasing projects): Renamed from
13761         'Support for maintaining and release projects'. Add announce-gen.
13762
13763 2007-03-31  Bruno Haible  <bruno@clisp.org>
13764
13765         * README: Talk primarily about git.
13766         (git and CVS): Renamed from CVS.
13767         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
13768         gnulib is available through git.
13769         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
13770
13771 2007-03-30  Bruno Haible  <bruno@clisp.org>
13772
13773         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
13774         * lib/poll_.h: Likewise.
13775         * lib/stat_.h: Likewise.
13776         * lib/sys_time_.h: Likewise.
13777         * lib/sysexit_.h: Likewise.
13778         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
13779         * lib/stdbool_.h: Likewise.
13780         * lib/byteswap_.h: Add double-inclusion guard.
13781
13782 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
13783
13784         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
13785
13786 2007-03-30  Karl Berry  <karl@gnu.org>
13787
13788         * config/srclist-update: double space after USA in the license
13789         substitution, since that's how it's usually (?) written.
13790
13791 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13792
13793         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
13794         reported by Bruno Haible.
13795
13796 2007-03-29  Bruno Haible  <bruno@clisp.org>
13797
13798         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
13799         a bug in AIX iconv().
13800
13801 2007-03-29  Bruno Haible  <bruno@clisp.org>
13802
13803         * modules/ldexpl-tests: New file.
13804         * tests/test-ldexpl.c: New file.
13805
13806 2007-03-29  Bruno Haible  <bruno@clisp.org>
13807
13808         * lib/ldexpl.c: Include fpucw.h.
13809         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
13810         multiplication.
13811         * modules/ldexpl (Depends-on): Add fpucw.
13812
13813 2007-03-29  Bruno Haible  <bruno@clisp.org>
13814
13815         * modules/ldexpl: New file.
13816         * m4/ldexpl.m4: New file.
13817         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
13818         set.
13819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
13820         REPLACE_LDEXPL.
13821         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
13822         REPLACE_LDEXPL.
13823         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13824         gl_FUNC_LDEXPL_WORKS.
13825         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
13826         * modules/mathl (Files): Remove lib/ldexpl.c.
13827         (Depends-on): Add ldexpl.
13828
13829 2007-03-29  Bruno Haible  <bruno@clisp.org>
13830
13831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
13832
13833 2007-03-29  Bruno Haible  <bruno@clisp.org>
13834
13835         * tests/test-striconveh.c (main): Don't assume that a direct conversion
13836         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
13837         and possibly also HP-UX.
13838         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13839         work on AIX, IRIX, HP-UX, OSF/1.
13840         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13841         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13842         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13843         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13844         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13845         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13846
13847 2007-03-29  Bruno Haible  <bruno@clisp.org>
13848
13849         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
13850
13851 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13852
13853         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
13854         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
13855
13856 2007-03-29  Eric Blake  <ebb9@byu.net>
13857
13858         * lib/acl-internal.h: Remove redundant include.
13859         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
13860         Cygwin when a file is locked.
13861
13862 2007-03-29  Bruno Haible  <bruno@clisp.org>
13863
13864         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
13865         file.
13866         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
13867
13868 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13869
13870         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
13871         try to remove a parent directory if the child couldn't be removed
13872         (except for the first rmdir, which could fail because the child
13873         doesn't exist).  Problem reported by Jeff Blaine in
13874         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
13875
13876 2007-03-28  Bruno Haible  <bruno@clisp.org>
13877
13878         * lib/striconveh.c (utf8conv_carefully): New function.
13879         (mem_cd_iconveh_internal): Invoke it.
13880
13881 2007-03-28  Bruno Haible  <bruno@clisp.org>
13882
13883         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
13884         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
13885         input.
13886         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
13887         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
13888         unistr/u8-uctomb.
13889
13890 2007-03-28  Bruno Haible  <bruno@clisp.org>
13891
13892         * modules/unistr/u8-mbtoucr: New file.
13893         * lib/unistr/u8-mbtoucr.c: New file.
13894         * modules/unistr/u16-mbtoucr: New file.
13895         * lib/unistr/u16-mbtoucr.c: New file.
13896         * modules/unistr/u16-mbtoucr: New file.
13897         * lib/unistr/u16-mbtoucr.c: New file.
13898         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
13899
13900 2007-03-27  Simon Josefsson  <simon@josefsson.org>
13901             Bruno Haible  <bruno@clisp.org>
13902
13903         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
13904         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
13905         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
13906
13907         * m4/stdio_h.m4: Add stubs for vasprintf too.
13908
13909         * modules/stdio: Support vasprintf in sed command.
13910
13911         * modules/vasprintf: Depend on stdio for prototypes.  Remove
13912         vasprintf.h.  Add stdio module indicator.
13913
13914         * lib/stdio_.h: Declare asprintf and vasprintf, based on
13915         vasprintf.h.
13916
13917         * lib/vasprintf.h: File removed.
13918
13919         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
13920         * lib/vasprintf.c: Ditto.
13921         * lib/xvasprintf.c: Ditto.
13922         * tests/test-vasprintf-posix.c: Ditto.
13923         * tests/test-vasprintf.c: Ditto.
13924
13925 2007-03-27  Bruno Haible  <bruno@clisp.org>
13926
13927         Make vasnprintf multithread-safe.
13928         * lib/vasnprintf.c (decimal_point_char): New function.
13929         (VASNPRINTF): Use it.
13930         Suggested by Simon Josefsson.
13931
13932 2007-03-27  Eric Blake  <ebb9@byu.net>
13933
13934         Support sub-second birthtime on cygwin.
13935         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
13936         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
13937         (get_stat_birthtime): Also work with st_birthtim.
13938
13939 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13940
13941         * lib/stat-time.h (USE_BIRTHTIME): Remove.
13942         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
13943         (get_stat_birthtime_ns): Do not try to use "spare" fields.
13944         (get_stat_birthtime_ns): Simplify compile-time tests.
13945         (get_stat_birthtime): Change the API to look like
13946         get_stat_mtime etc., except return a negative tv_nsec on error.
13947         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
13948         Don't check for "spare" fields.
13949         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
13950         or for struct stat.st_birthtime, as these tests aren't used.
13951         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
13952
13953 2007-03-27  Bruno Haible  <bruno@clisp.org>
13954
13955         * lib/stat-time.h: Include <sys/stat.h>.
13956
13957 2007-03-27  James Youngman  <jay@gnu.org>
13958
13959         * lib/stat-time.h (get_stat_birthtime): New function for
13960           retrieving st_birthtime as provided by UFS2 (hence *BSD).
13961         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
13962           and its variants.
13963         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
13964         * modules/stat-time-test: New file.
13965         * tests/test-stat-time.c: New test, devised by Bruno Haible.
13966
13967 2007-03-26  Bruno Haible  <bruno@clisp.org>
13968
13969         Better support of signalling NaNs.
13970         * lib/atanl.c: Include isnanl.h.
13971         (atanl): Perform test for NaN at the beginning of the function and
13972         through a call to isnanl.
13973         * lib/cosl.c: Include isnanl.h.
13974         (cosl): Perform test for NaN at the beginning of the function and
13975         through a call to isnanl.
13976         * lib/ldexpl.c: Include isnanl.h.
13977         (ldexpl): Perform test for NaN through a call to isnanl.
13978         * lib/logl.c: Include isnanl.h.
13979         (logl): Perform test for NaN at the beginning of the function and
13980         through a call to isnanl.
13981         * lib/sinl.c: Include isnanl.h.
13982         (sinl): Perform test for NaN at the beginning of the function and
13983         through a call to isnanl.
13984         * lib/sqrtl.c: Include isnanl.h.
13985         (sqrtl): Perform test for NaN at the beginning of the function and
13986         through a call to isnanl.
13987         * lib/tanl.c: Include isnanl.h.
13988         (tanl): Perform test for NaN at the beginning of the function and
13989         through a call to isnanl.
13990         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
13991         * modules/mathl (Depends-on): Add isnanl.
13992
13993 2007-03-26  Eric Blake  <ebb9@byu.net>
13994
13995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
13996         regression in logic sense of previous patch.
13997
13998 2007-03-26  Bruno Haible  <bruno@clisp.org>
13999
14000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
14001         unportable shell command "if ! ...".
14002         Reported by Ralf Wildenhues.
14003
14004 2007-03-25  Bruno Haible  <bruno@clisp.org>
14005
14006         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
14007         <sysexits.h> file, and only add EX_CONFIG.
14008         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
14009         absolute file name and whether it is sufficient. Substitute also
14010         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
14011         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
14012         ABSOLUTE_SYSEXITS_H into sysexits.h.
14013
14014 2007-03-25  Bruno Haible  <bruno@clisp.org>
14015
14016         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
14017         hints is NULL.
14018
14019 2007-03-25  Bruno Haible  <bruno@clisp.org>
14020
14021         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
14022         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
14023
14024 2007-03-25  Bruno Haible  <bruno@clisp.org>
14025
14026         * lib/vasnprintf.c: Include langinfo.h.
14027         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
14028         multithread-safe.
14029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
14030         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
14031         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
14037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14038         Reported by Simon Josefsson.
14039
14040 2007-03-25  Bruno Haible  <bruno@clisp.org>
14041
14042         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
14043         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
14044         * modules/vasnprintf (Depends-on): Add stdint.
14045
14046 2007-03-25  Bruno Haible  <bruno@clisp.org>
14047
14048         * modules/fpieee: New file.
14049         * m4/fpieee.m4: New file.
14050         * modules/isnan-nolibm (Depends-on): Add fpieee.
14051         * modules/isnanl-nolibm (Depends-on): Add fpieee.
14052         * modules/isnanl (Depends-on): Add fpieee.
14053
14054 2007-03-25  Bruno Haible  <bruno@clisp.org>
14055
14056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
14057
14058 2007-03-25  Bruno Haible  <bruno@clisp.org>
14059
14060         Avoid test failures on IRIX 6.5.
14061         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
14062         (main): Use it.
14063         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
14064         macros.
14065         (main): Use them.
14066
14067 2007-03-25  Bruno Haible  <bruno@clisp.org>
14068
14069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
14070         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
14071         exists but doesn't work.
14072         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
14073         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
14074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
14075         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
14076
14077 2007-03-25  Bruno Haible  <bruno@clisp.org>
14078
14079         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
14080         returns inf. Needed on IRIX 6.5.
14081
14082 2007-03-25  Bruno Haible  <bruno@clisp.org>
14083
14084         * tests/test-frexpl.c: Include isnanl-nolibm.h.
14085         (main): Use isnanl instead of x != x idiom.
14086         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
14087
14088         * tests/test-frexp.c: Include isnan.h.
14089         (main): Use isnan instead of x != x idiom.
14090         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
14091
14092 2007-03-25  Bruno Haible  <bruno@clisp.org>
14093
14094         * tests/test-frexp.c (NaN): New function/macro.
14095         (main): Use it instead of 0.0 / 0.0.
14096         * tests/test-isnan.c (NaN): New function/macro.
14097         (main): Use it instead of 0.0 / 0.0.
14098         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
14099         (test_function): Use it instead of 0.0 / 0.0.
14100         * tests/test-vasprintf-posix.c (NaN): New function/macro.
14101         (test_function): Use it instead of 0.0 / 0.0.
14102         * tests/test-snprintf-posix.h (NaN): New function/macro.
14103         (test_function): Use it instead of 0.0 / 0.0.
14104         * tests/test-sprintf-posix.h (NaN): New function/macro.
14105         (test_function): Use it instead of 0.0 / 0.0.
14106         * tests/test-fprintf-posix.h (NaN): New function/macro.
14107         (test_function): Use it instead of 0.0 / 0.0.
14108         * tests/test-printf-posix.h (NaN): New function/macro.
14109         (test_function): Use it instead of 0.0 / 0.0.
14110
14111         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
14112
14113 2007-03-25  Bruno Haible  <bruno@clisp.org>
14114
14115         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
14116
14117 2007-03-25  Bruno Haible  <bruno@clisp.org>
14118
14119         * lib/regexec.c (merge_state_with_log): Make static.
14120
14121 2007-03-25  Bruno Haible  <bruno@clisp.org>
14122
14123         * lib/trigl.c (kernel_rem_pio2): Make static.
14124
14125 2007-03-25  Bruno Haible  <bruno@clisp.org>
14126
14127         * lib/sincosl.c (sincosl_table): Make static.
14128
14129 2007-03-25  Bruno Haible  <bruno@clisp.org>
14130
14131         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14132         if the compiler does not support C99.
14133
14134 2007-03-25  Bruno Haible  <bruno@clisp.org>
14135
14136         * modules/time (Makefile.am): Ensure all rule action lines start with a
14137         tab.
14138
14139 2007-03-24  Bruno Haible  <bruno@clisp.org>
14140
14141         * modules/tsearch-tests: New file.
14142         * tests/test-tsearch.sh: New file.
14143         * tests/test-tsearch.c: New file, mostly copied from glibc.
14144
14145         * modules/search-tests: New file.
14146         * tests/test-search.c: New file.
14147
14148         * modules/search: New file.
14149         * lib/search_.h: New file, incorporating lib/tsearch.h.
14150         * m4/search_h.m4: New file.
14151         * lib/tsearch.h: Remove file.
14152         * lib/tsearch.c: Include search.h instead of tsearch.h.
14153         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14154         HAVE_TSEARCH.
14155         * modules/tsearch (Files): Remove lib/tsearch.h.
14156         (Depends-on): Add search.
14157         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14158         (Include): Change tsearch.h into search.h.
14159
14160 2007-03-24  Bruno Haible  <bruno@clisp.org>
14161
14162         * modules/fpucw: New file.
14163         * lib/fpucw.h: New file.
14164         * lib/frexp.c: Include fpucw.h.
14165         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14166         (FUNC): Use them.
14167         * lib/printf-frexp.c: Include fpucw.h.
14168         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14169         (FUNC): Use them.
14170         * lib/vasnprintf.c: Include fpucw.h.
14171         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14172         'long double' calculations.
14173         * tests/test-frexpl.c: Include fpucw.h.
14174         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14175         * tests/test-printf-frexpl.c: Include fpucw.h.
14176         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14177         * modules/frexpl (Depends-on): Add fpucw.
14178         * modules/printf-frexpl (Depends-on): Likewise.
14179         * modules/fprintf-posix (Depends-on): Likewise.
14180         * modules/snprintf-posix (Depends-on): Likewise.
14181         * modules/sprintf-posix (Depends-on): Likewise.
14182         * modules/vasnprintf-posix (Depends-on): Likewise.
14183         * modules/vasprintf-posix (Depends-on): Likewise.
14184         * modules/vfprintf-posix (Depends-on): Likewise.
14185         * modules/vsnprintf-posix (Depends-on): Likewise.
14186         * modules/vsprintf-posix (Depends-on): Likewise.
14187         * modules/frexpl-tests (Depends-on): Likewise.
14188         * modules/printf-frexpl-tests (Depends-on): Likewise.
14189
14190 2007-03-24  Bruno Haible  <bruno@clisp.org>
14191
14192         * lib/float+.h: New file.
14193         * lib/isnan.c: Include float+.h.
14194         (SIZE): New macro.
14195         (FUNC): Compare only SIZE bytes of the value.
14196         * lib/vasnprintf.c: Include float+.h.
14197         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14198         SIZEOF_LDBL or SIZEOF_DBL bytes.
14199         * modules/isnan-nolibm (Files): Add lib/float+.h.
14200         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14201         * modules/isnanl (Files): Add lib/float+.h.
14202         * modules/vasnprintf (Files): Add lib/float+.h.
14203
14204 2007-03-24  Bruno Haible  <bruno@clisp.org>
14205
14206         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14207         include isnanl-nolibm.h.
14208
14209 2007-03-24  Bruno Haible  <bruno@clisp.org>
14210
14211         * tests/test-read-file.c (main): Don't produce spurious output for
14212         expected situations. Make the test fail if it encountered unexpected
14213         results.
14214
14215 2007-03-24  Bruno Haible  <bruno@clisp.org>
14216
14217         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14218         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14219
14220 2007-03-24  Bruno Haible  <bruno@clisp.org>
14221
14222         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14223
14224 2007-03-24  Bruno Haible  <bruno@clisp.org>
14225
14226         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14227         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14228
14229         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14230         * modules/utf8-ucs4: Turn into a symbolic link to module
14231         unistr/u8-mbtouc.
14232
14233         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14234         utf8-ucs4-unsafe.
14235         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14236         unistr/u8-mbtouc-unsafe.
14237
14238         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14239         * modules/utf16-ucs4: Turn into a symbolic link to module
14240         unistr/u16-mbtouc.
14241
14242         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14243         utf16-ucs4-unsafe.
14244         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14245         unistr/u16-mbtouc-unsafe.
14246
14247         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14248         * modules/ucs4-utf8: Turn into a symbolic link to module
14249         unistr/u8-ubtomb.
14250
14251         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14252         * modules/ucs4-utf16: Turn into a symbolic link to module
14253         unistr/u16-ubtomb.
14254
14255 2007-03-24  Bruno Haible  <bruno@clisp.org>
14256
14257         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14258         Enable the function only if HAVE_INLINE.
14259         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14260         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14261         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14262         Enable the function only if HAVE_INLINE.
14263         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14264         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14265         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14266         Enable the function only if HAVE_INLINE.
14267         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14268         Enable the function only if HAVE_INLINE.
14269         * modules/utf8-ucs4: Update.
14270         * modules/utf8-ucs4-unsafe: Update.
14271         * modules/utf16-ucs4: Update.
14272         * modules/utf16-ucs4-unsafe: Update.
14273         * modules/ucs4-utf8: Update.
14274         * modules/ucs4-utf16: Update.
14275
14276 2007-03-24  Bruno Haible  <bruno@clisp.org>
14277
14278         * lib/utf8-ucs4.h: Remove file.
14279         * lib/utf8-ucs4-unsafe.h: Remove file.
14280         * lib/utf16-ucs4.h: Remove file.
14281         * lib/utf16-ucs4-unsafe.h: Remove file.
14282         * lib/ucs4-utf8.h: Remove file.
14283         * lib/ucs4-utf16.h: Remove file.
14284         * lib/unistr.h: Include their previous contents.
14285         * m4/utf-ucs4.m4: Remove file.
14286         * m4/ucs4-utf.m4: Remove file.
14287         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14288         (Depends-on): Add unistr/base.
14289         (configure.ac): Remove gl_UTF_UCS4.
14290         (Makefile.am): Update.
14291         (Include): Change to unistr.h.
14292         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14293         (Depends-on): Add unistr/base.
14294         (configure.ac): Remove gl_UTF_UCS4.
14295         (Makefile.am): Update.
14296         (Include): Change to unistr.h.
14297         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14298         (Depends-on): Add unistr/base.
14299         (configure.ac): Remove gl_UTF_UCS4.
14300         (Makefile.am): Update.
14301         (Include): Change to unistr.h.
14302         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14303         (Depends-on): Add unistr/base.
14304         (configure.ac): Remove gl_UTF_UCS4.
14305         (Makefile.am): Update.
14306         (Include): Change to unistr.h.
14307         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14308         (Depends-on): Add unistr/base.
14309         (configure.ac): Remove gl_UCS4_UTF.
14310         (Makefile.am): Update.
14311         (Include): Change to unistr.h.
14312         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14313         (Depends-on): Add unistr/base.
14314         (configure.ac): Remove gl_UCS4_UTF.
14315         (Makefile.am): Update.
14316         (Include): Change to unistr.h.
14317         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14318         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14319         utf8-ucs4-unsafe.h.
14320         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14321         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14322         utf16-ucs4-unsafe.h.
14323         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14324         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14325         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14326         * lib/unistr/u8-strchr.c: Likewise.
14327         * lib/unistr/u8-strrchr.c: Likewise.
14328         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14329         * lib/unistr/u16-strchr.c: Likewise.
14330         * lib/unistr/u16-strrchr.c: Likewise.
14331         * lib/striconveh.c: Update.
14332         * lib/linebreak.c: Update.
14333
14334 2007-03-24  Bruno Haible  <bruno@clisp.org>
14335
14336         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14337         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14338
14339 2007-03-22  Bruno Haible  <bruno@clisp.org>
14340
14341         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14342
14343 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         * MODULES.html.sh (File system functions): New module write-any-file.
14346         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14347         * m4/write-any-file.m4: New files.
14348
14349 2007-03-23  Eric Blake  <ebb9@byu.net>
14350
14351         * gnulib-tool: Rearrange space-tab sequences, since some editors
14352         like to eat them.
14353
14354 2007-03-23  Eric Blake  <ebb9@byu.net>
14355
14356         * lib/version-etc.c (version_etc_va): Update license wording to
14357         be more concise.  Recommended by Richard Stallman.
14358
14359 2007-03-22  Bruno Haible  <bruno@clisp.org>
14360
14361         * lib/poll.c (MSG_PEEK): New fallback definition.
14362
14363 2007-03-22  Bruno Haible  <bruno@clisp.org>
14364
14365         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14366         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14367         (main): Update.
14368         Fixes a compilation error on BeOS.
14369
14370 2007-03-22  Bruno Haible  <bruno@clisp.org>
14371
14372         * modules/frexpl-tests: New file.
14373         * tests/test-frexpl.c: New file.
14374
14375         * modules/frexpl: New file.
14376         * m4/frexpl.m4: New file.
14377         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14378         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14380         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14381         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14382         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14383
14384 2007-03-22  Bruno Haible  <bruno@clisp.org>
14385
14386         * lib/frexpl.c: Share code with lib/frexp.c.
14387         * modules/mathl (Files): Add lib/frexp.c.
14388         (Depends-on): Add isnanl-nolibm.
14389
14390 2007-03-22  Bruno Haible  <bruno@clisp.org>
14391
14392         * modules/printf-frexp (Files): Add m4/frexp.m4.
14393         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14394         only if the found frexp function actually works.
14395
14396 2007-03-22  Bruno Haible  <bruno@clisp.org>
14397
14398         * lib/frexp.c: Remove older implementation that uses divisions.
14399
14400 2007-03-21  Bruno Haible  <bruno@clisp.org>
14401
14402         * modules/frexp-tests: New file.
14403         * tests/test-frexp.c: New file.
14404
14405         * modules/frexp: New file.
14406         * lib/frexp.c: New file.
14407         * m4/frexp.m4: New file.
14408         * lib/math_.h (frexp): New declaration.
14409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14410         REPLACE_FREXP.
14411         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14412
14413 2007-03-21  Bruno Haible  <bruno@clisp.org>
14414
14415         * modules/isnanl-tests: New file.
14416         * tests/test-isnanl.c: New file.
14417
14418         * modules/isnanl: New file.
14419         * lib/isnanl.h: New file.
14420         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14421         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14422         gl_FUNC_ISNANL_WORKS.
14423         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14424         New macros.
14425
14426 2007-03-21  Bruno Haible  <bruno@clisp.org>
14427
14428         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14429         lib/isnanl.h.
14430         (Include): Update.
14431         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14432         * lib/vasnprintf.c: Update.
14433         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14434         tests/test-isnanl.h, remove tests/test-isnanl.c.
14435         (Makefile.am): Update.
14436         * tests/test-isnanl-nolibm.c: New file.
14437         * tests/test-isnanl.h: New file.
14438         * tests/test-isnanl.c: Remove file.
14439
14440 2007-03-21  Jim Meyering  <jim@meyering.net>
14441
14442         When trying to open ".", treat ESTALE like EACCES.
14443         * lib/savewd.c (savewd_save): Resort to forking not just upon
14444         failure with EACCES, but also when errno is ESTALE.
14445
14446 2007-03-20  Bruno Haible  <bruno@clisp.org>
14447
14448         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14449         Needed on AIX 5.1. Reported by Matthew Woehlke.
14450
14451 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14452
14453         Suggestions by Bruno Haible:
14454         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14455         our own.
14456         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14457         * modules/acl (Depends-on): Add gettext.
14458
14459 2007-03-19  Bruno Haible  <bruno@clisp.org>
14460
14461         * modules/iconvme: Remove file.
14462         * lib/iconvme.h: Remove file.
14463         * lib/iconvme.c: Remove file.
14464         * m4/iconvme.m4: Remove file.
14465
14466 2007-03-19  Bruno Haible  <bruno@clisp.org>
14467
14468         * doc/relocatable-maint.texi: Break long shell script line.
14469         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14470
14471 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14472
14473         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14474         handle file_has_acl.
14475         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14476         * lib/acl.c: Move header inclusions and related macro defns into
14477         lib/acl-internal.h.
14478         (S_ISLNK): Remove defn, since that's now done for us.
14479         (file_has_acl): Move to lib/file-has-acl.c.
14480         Call acl_trivial if available.  This is the crucial part of the fix.
14481         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14482         shared within the library.  Rewrite a bit, partly to make it compatible
14483         with the GNU coding style.
14484         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14485         Remove unnecessary double-quotes.
14486         Don't test for acl_to_text; the build will catch that.
14487         Replace acl_entries if it doesn't exist and it is needed.
14488         Check for -lsec and acl_trivial (as used on Solaris 10).
14489         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14490         lib/file-has-acl.c.
14491         (Depends-on): Add sys_stat, for S_ISLNK.
14492
14493 2007-03-19  Ben Pfaff  <blp@gnu.org>
14494
14495         * doc/gnulib.texi: Fix typos.
14496         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14497
14498 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14499
14500         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14501         If size is zero here, buf must be zero.
14502
14503 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14504
14505         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14506         <bruno@clisp.org>.
14507
14508 2007-03-18  Bruno Haible  <bruno@clisp.org>
14509
14510         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14511         Suggested by Eric Blake.
14512
14513 2007-03-18  Ben Pfaff  <blp@gnu.org>
14514
14515         * doc/relocatable.texi: Recommend using as prefix a directory
14516         that does not exist and will never be created.  Based on
14517         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14518         and others.
14519
14520 2007-03-17  Bruno Haible  <bruno@clisp.org>
14521
14522         * lib/fchownat.c: Include lchown.h.
14523
14524 2007-03-17  Bruno Haible  <bruno@clisp.org>
14525
14526         Fix endless loop when the given allocated size was > INT_MAX.
14527         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14528         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14529         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14530         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14531         * lib/sprintf.c (sprintf): Likewise.
14532
14533 2007-03-17  Bruno Haible  <bruno@clisp.org>
14534
14535         * tests/test-argp-2.sh (func_compare): Output a context diff.
14536
14537 2007-03-17  Bruno Haible  <bruno@clisp.org>
14538
14539         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14540         locale's decimal-point character.
14541
14542 2007-03-17  Bruno Haible  <bruno@clisp.org>
14543
14544         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14545         before comparing it. Needed because on some platforms (e.g. x86) a
14546         'long double' occupies less bytes than sizeof (long double).
14547
14548 2007-03-17  Bruno Haible  <bruno@clisp.org>
14549
14550         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14551         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14552         * tests/test-getaddrinfo.c (simple): Likewise.
14553         * tests/test-read-file.c (main): Likewise.
14554
14555 2007-03-17  Bruno Haible  <bruno@clisp.org>
14556
14557         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14558
14559 2007-03-17  Bruno Haible  <bruno@clisp.org>
14560
14561         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14562         unused variable.
14563
14564 2007-03-17  Bruno Haible  <bruno@clisp.org>
14565
14566         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14567         * tests/test-c-strncasecmp.c: Likewise.
14568
14569 2007-03-17  Bruno Haible  <bruno@clisp.org>
14570
14571         * modules/stdlib (Depends-on): Add unistd.
14572         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14573         Needed for MacOS X 10.3.
14574
14575 2007-03-17  Bruno Haible  <bruno@clisp.org>
14576
14577         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14578
14579 2007-03-17  Bruno Haible  <bruno@clisp.org>
14580
14581         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14582
14583 2007-03-17  Bruno Haible  <bruno@clisp.org>
14584
14585         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14586         to reflect files copied from gnulib (with or without modifications).
14587         Suggested by Jim Meyering.
14588
14589 2007-03-17  Eric Blake  <ebb9@byu.net>
14590
14591         * NEWS: Document stdlib change from 2007-02-18.
14592
14593 2007-03-17  Jim Meyering  <jim@meyering.net>
14594
14595         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14596         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14597         someone uses a name containing shell meta-characters.
14598         Reported by Alfred M. Szmidt.
14599
14600         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14601
14602 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14603
14604         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14605         and copy gettext configuration files only if configure.ac contains
14606         a use of AM_GNU_GETTEXT_VERSION.
14607
14608 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14609
14610         * build-aux/bootstrap (gnulib_name): New variable.
14611         (gnulib_tool_options): Use it.
14612
14613 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14614
14615         * tests/test-des.c: Use new namespace.
14616
14617 2007-03-15  Bruno Haible  <bruno@clisp.org>
14618
14619         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14620         Reported by James Youngman <jay@gnu.org>.
14621
14622 2007-03-15  Bruno Haible  <bruno@clisp.org>
14623
14624         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14625         declared prototype. Needed with cc on OSF/1 5.1.
14626
14627 2007-03-15  Bruno Haible  <bruno@clisp.org>
14628
14629         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14630         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14631         (struct gl_list_implementation): Add dispose_fn argument to the
14632         'create_empty', 'create' methods.
14633         (struct gl_list_impl_base): Add field 'dispose_fn'.
14634         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14635         argument.
14636         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14637         dispose_fn argument.
14638         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14639         dispose_fn on the dropped values.
14640         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14641         dispose_fn argument.
14642         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14643         dropped values.
14644         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14645         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14646         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14647         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14648         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14649         argument.
14650         (gl_tree_list_free): Call dispose_fn on the dropped values.
14651         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14652         the dropped values.
14653         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14654         Add dispose_fn argument.
14655         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14656         Call dispose_fn on the dropped values.
14657         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14658         Add dispose_fn argument.
14659         (gl_sublist_create): Initialize the 'dispose_fn' field.
14660         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14661         * tests/test-array_list.c (main): Update.
14662         * tests/test-carray_list.c (main): Update.
14663         * tests/test-avltree_list.c (main): Update.
14664         * tests/test-rbtree_list.c (main): Update.
14665         * tests/test-avltreehash_list.c (main): Update.
14666         * tests/test-rbtreehash_list.c (main): Update.
14667         * tests/test-linked_list.c (main): Update.
14668         * tests/test-linkedhash_list.c (main): Update.
14669         * tests/test-array_oset.c (main): Update.
14670
14671 2007-03-15  Bruno Haible  <bruno@clisp.org>
14672
14673         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14674         (gl_oset_create_empty): Add dispose_fn argument.
14675         (struct gl_oset_implementation): Add dispose_fn argument to
14676         'create_empty' method.
14677         (struct gl_oset_impl_base): Add dispose_fn field.
14678         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14679         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14680         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14681         values.
14682         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14683         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14684         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14685         dropped value.
14686         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14687         dropped value.
14688         * tests/test-array_oset.c (main): Update.
14689         * tests/test-avltree_oset.c (main): Update.
14690         * tests/test-rbtree_oset.c (main): Update.
14691         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14692
14693 2007-03-13  Bruno Haible  <bruno@clisp.org>
14694
14695         * tests/test-stdbool.c (i): Update after last patch.
14696
14697 2007-03-12  Bruno Haible  <bruno@clisp.org>
14698
14699         * lib/quotearg.c: Include <wctype.h> early, before the definition of
14700         the iswprint macro. Needed on Solaris 2.5.1.
14701
14702 2007-03-12  Bruno Haible  <bruno@clisp.org>
14703
14704         * tests/test-printf-frexp.c (main): Declare x as volatile.
14705
14706 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14707
14708         * doc/gnulib.texi (Build robot for gnulib): New section.
14709
14710 2007-03-12  Jim Meyering  <jim@meyering.net>
14711
14712         * build-aux/bootstrap: New file.
14713         * build-aux/bootstrap.conf: New file, from coreutils.
14714
14715 2007-03-11  Bruno Haible  <bruno@clisp.org>
14716
14717         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14718
14719 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14720
14721         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
14722         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
14723         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
14724
14725 2007-03-11  Bruno Haible  <bruno@clisp.org>
14726
14727         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
14728         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
14729
14730 2007-03-11  Bruno Haible  <bruno@clisp.org>
14731
14732         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
14733         formula. Needed for SunPRO C 5.0.
14734
14735 2007-03-11  Bruno Haible  <bruno@clisp.org>
14736
14737         * modules/long-options (Depends-on): Add getopt.
14738
14739 2007-03-11  Bruno Haible  <bruno@clisp.org>
14740
14741         * modules/modechange (Depends-on): Add stdbool.
14742
14743 2007-03-11  Bruno Haible  <bruno@clisp.org>
14744
14745         * modules/i-ring (Depends-on): Add stdbool.
14746
14747 2007-03-11  Bruno Haible  <bruno@clisp.org>
14748
14749         * modules/gc-des (Depends-on): Add stdbool.
14750
14751 2007-03-11  Bruno Haible  <bruno@clisp.org>
14752
14753         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
14754
14755 2007-03-11  Bruno Haible  <bruno@clisp.org>
14756
14757         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
14758
14759 2007-03-11  Bruno Haible  <bruno@clisp.org>
14760
14761         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
14762
14763 2007-03-11  Bruno Haible  <bruno@clisp.org>
14764
14765         * lib/vasnprintf.c (sprintf): Undefine.
14766
14767 2007-03-11  Bruno Haible  <bruno@clisp.org>
14768
14769         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
14770         initializers in SunPRO C and Compaq C compilers.
14771
14772 2007-03-11  Bruno Haible  <bruno@clisp.org>
14773
14774         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
14775         decrementing code ANSI C compliant.
14776
14777 2007-03-11  Bruno Haible  <bruno@clisp.org>
14778
14779         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
14780         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
14781
14782 2007-03-11  Bruno Haible  <bruno@clisp.org>
14783
14784         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
14785         <stdbool.h> substitute doesn't pass.
14786
14787 2007-03-11  Bruno Haible  <bruno@clisp.org>
14788
14789         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
14790
14791 2007-03-11  Bruno Haible  <bruno@clisp.org>
14792
14793         * gnulib-tool (func_create_megatestdir): Create also an autobuild
14794         script, for submission to autobuild.josefsson.org.
14795
14796 2007-03-10  Bruno Haible  <bruno@clisp.org>
14797
14798         * modules/canonicalize-lgpl-tests: New file.
14799         * tests/test-canonicalize-lgpl.sh: New file.
14800         * tests/test-canonicalize-lgpl.c: New file.
14801
14802         * modules/c-strcase-tests: New file.
14803         * tests/test-c-strcase.sh: New file.
14804         * tests/test-c-strcasecmp.c: New file.
14805         * tests/test-c-strncasecmp.c: New file.
14806
14807         * modules/atexit-tests: New file.
14808         * tests/test-atexit.sh: New file.
14809         * tests/test-atexit.c: New file.
14810
14811 2007-03-10  Bruno Haible  <bruno@clisp.org>
14812
14813         * tests/test-binary-io.sh: Use temporary filenames that are not so
14814         likely to clash with those of other tests (in a parallel make).
14815         * tests/test-binary-io.c: Likewise.
14816
14817 2007-03-10  Bruno Haible  <bruno@clisp.org>
14818
14819         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
14820         fallback; use #error instead.
14821         Suggested by Simon Josefsson.
14822
14823 2007-03-10  Bruno Haible  <bruno@clisp.org>
14824
14825         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
14826         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
14827         first and the last.
14828
14829 2007-03-10  Bruno Haible  <bruno@clisp.org>
14830
14831         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
14832
14833 2007-03-10  Bruno Haible  <bruno@clisp.org>
14834
14835         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
14836         "make distcheck".
14837         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
14838         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
14839         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
14840
14841 2007-03-10  Bruno Haible  <bruno@clisp.org>
14842
14843         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
14844         variable.
14845         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
14846         variable.
14847
14848 2007-03-09  Eric Blake  <ebb9@byu.net>
14849         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
14850
14851         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
14852         types are not being provided by gnulib.
14853         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
14854         types are supported.
14855
14856 2007-03-10  Bruno Haible  <bruno@clisp.org>
14857
14858         * lib/stdio_.h (__attribute__): New macro.
14859         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
14860         vsprintf): Specify __attribute__ __format__ for GCC.
14861         Suggested by Eric Blake.
14862
14863 2007-03-09  Bruno Haible  <bruno@clisp.org>
14864
14865         * modules/printf-posix-tests: New file.
14866         * tests/test-printf-posix.sh: New file.
14867         * tests/test-printf-posix.c: New file.
14868
14869         * modules/printf-posix: New file.
14870         * lib/printf.c: New file.
14871         * m4/printf-posix-rpl.m4: New file.
14872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
14873         REPLACE_PRINTF.
14874         * lib/stdio_.h (printf): New declaration.
14875         (format, __format__, ____printf____, ____scanf____, ____strftime____,
14876         ____strfmon____): New macros.
14877         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
14878         REPLACE_PRINTF.
14879
14880 2007-03-09  Bruno Haible  <bruno@clisp.org>
14881
14882         * tests/test-vasnprintf-posix2.sh: New file.
14883         * tests/test-vasnprintf-posix2.c: New file.
14884         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
14885         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14886         (Makefile.am): Activate test-vasnprintf-posix2.sh.
14887
14888         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
14889         a locale dependent decimal point, rather than always '.'.
14890
14891 2007-03-09  Eric Blake  <ebb9@byu.net>
14892
14893         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
14894         spite of platforms like Tandem/NSK that define it to -1.
14895
14896 2007-03-08  Bruno Haible  <bruno@clisp.org>
14897
14898         * modules/vprintf-posix-tests: New file.
14899         * tests/test-vprintf-posix.sh: New file.
14900         * tests/test-vprintf-posix.c: New file.
14901         * tests/test-printf-posix.h: New file.
14902
14903         * modules/vprintf-posix: New file.
14904         * lib/vprintf.c: New file.
14905         * m4/vprintf-posix.m4: New file.
14906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
14907         REPLACE_VPRINTF.
14908         * lib/stdio_.h (vprintf): New declaration.
14909         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
14910         REPLACE_VPRINTF.
14911
14912 2007-03-08  Bruno Haible  <bruno@clisp.org>
14913
14914         * modules/fprintf-posix-tests: New file.
14915         * tests/test-fprintf-posix.sh: New file.
14916         * tests/test-fprintf-posix.c: New file.
14917
14918         * modules/fprintf-posix: New file.
14919         * lib/fprintf.c: New file.
14920         * m4/fprintf-posix.m4: New file.
14921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
14922         REPLACE_FPRINTF.
14923         * lib/stdio_.h (fprintf): New declaration.
14924         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
14925         REPLACE_FPRINTF.
14926
14927 2007-03-08  Bruno Haible  <bruno@clisp.org>
14928
14929         * modules/vfprintf-posix-tests: New file.
14930         * tests/test-vfprintf-posix.sh: New file.
14931         * tests/test-vfprintf-posix.c: New file.
14932         * tests/test-fprintf-posix.h: New file.
14933         * tests/test-fprintf-posix.out: New file.
14934
14935         * modules/vfprintf-posix: New file.
14936         * lib/vfprintf.c: New file.
14937         * m4/vfprintf-posix.m4: New file.
14938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
14939         REPLACE_VFPRINTF.
14940         * lib/stdio_.h (vfprintf): New declaration.
14941         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
14942         REPLACE_VFPRINTF.
14943
14944 2007-03-08  Bruno Haible  <bruno@clisp.org>
14945
14946         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
14947
14948 2007-03-08  Bruno Haible  <bruno@clisp.org>
14949
14950         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
14951         instead of 'expr' invocations.
14952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14954         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14957         Suggested by Paul Eggert.
14958
14959 2007-03-08  Bruno Haible  <bruno@clisp.org>
14960
14961         * modules/fseterr-tests: New file.
14962         * tests/test-fseterr.c: New file.
14963
14964         * modules/fseterr: New file.
14965         * lib/fseterr.h: New file.
14966         * lib/fseterr.c: New file.
14967
14968 2007-03-08  Bruno Haible  <bruno@clisp.org>
14969
14970         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
14971         * lib/getopt_.h: Likewise.
14972         * lib/mbswidth.h: Likewise.
14973         * lib/setenv.h: Likewise.
14974         * lib/vasnprintf.h: Likewise.
14975         * lib/vasprintf.h: Likewise.
14976         * lib/verror.h: Likewise.
14977         * lib/xsetenv.h: Likewise.
14978         * lib/xvasprintf.h: Likewise.
14979
14980 2007-03-08  Jim Meyering  <jim@meyering.net>
14981
14982         * users.txt: Add parted.
14983
14984         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
14985
14986 2007-03-07  Bruno Haible  <bruno@clisp.org>
14987
14988         * m4/printf.m4: Make the shell script snippets copy&pastable.
14989
14990 2007-03-02  Bruno Haible  <bruno@clisp.org>
14991
14992         * lib/netinet_in_.h: New file.
14993         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
14994         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
14995         * modules/netinet_in (Files): Add lib/netinet_in_.h.
14996         (Depends-on): Add absolute-header.
14997         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
14998         into netinet/in.h.
14999
15000 2007-03-03  Bruno Haible  <bruno@clisp.org>
15001
15002         * lib/sys_select_.h: New file.
15003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
15004         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
15005         * modules/sys_select (Files): Add lib/sys_select_.h.
15006         (Depends-on): Add absolute-header.
15007         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
15008         into sys/select.h.
15009
15010 2007-03-02  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
15013         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
15014         values.
15015         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
15016         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
15017         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
15018         * modules/sys_socket (Depends-on): Add absolute-header.
15019         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
15020         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
15021         (Include): Remove requirement of inclusion of <sys/types.h>.
15022
15023 2007-03-02  Bruno Haible  <bruno@clisp.org>
15024
15025         * lib/byteswap_.h (bswap_32): Fix formula.
15026
15027 2007-03-06  Bruno Haible  <bruno@clisp.org>
15028
15029         * modules/sprintf-posix-tests: New file.
15030         * tests/test-sprintf-posix.c: New file.
15031
15032         * modules/sprintf-posix: New file.
15033         * lib/sprintf.c: New file.
15034         * m4/sprintf-posix.m4: New file.
15035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
15036         REPLACE_SPRINTF.
15037         * lib/stdio_.h (sprintf): New declaration.
15038         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
15039         REPLACE_SPRINTF.
15040
15041 2007-03-06  Bruno Haible  <bruno@clisp.org>
15042
15043         * modules/vsprintf-posix-tests: New file.
15044         * tests/test-vsprintf-posix.c: New file.
15045         * tests/test-sprintf-posix.h: New file.
15046
15047         * modules/vsprintf-posix: New file.
15048         * lib/vsprintf.c: New file.
15049         * m4/vsprintf-posix.m4: New file.
15050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
15051         REPLACE_VSPRINTF.
15052         * lib/stdio_.h (vsprintf): New declaration.
15053         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
15054         REPLACE_VSPRINTF.
15055
15056 2007-03-06  Bruno Haible  <bruno@clisp.org>
15057
15058         * modules/vsnprintf (Depend-on): Remove minmax.
15059
15060 2007-03-06  Bruno Haible  <bruno@clisp.org>
15061
15062         * modules/snprintf-posix-tests: New file.
15063         * tests/test-snprintf-posix.c: New file.
15064
15065         * modules/snprintf-posix: New file.
15066         * m4/snprintf-posix.m4: New file.
15067         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
15068         gl_FUNC_SNPRINTF.
15069         (gl_FUNC_SNPRINTF): Invoke it.
15070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
15071         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
15072         is set.
15073         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
15074
15075 2007-03-06  Bruno Haible  <bruno@clisp.org>
15076
15077         * modules/vsnprintf-posix-tests: New file.
15078         * tests/test-vsnprintf-posix.c: New file.
15079         * tests/test-snprintf-posix.h: New file.
15080
15081         * modules/vsnprintf-posix: New file.
15082         * m4/vsnprintf-posix.m4: New file.
15083         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
15084         gl_FUNC_VSNPRINTF.
15085         (gl_FUNC_VSNPRINTF): Invoke it.
15086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
15087         * lib/stdio_.h (vsnprintf): Define as a replacement if
15088         REPLACE_VSNPRINTF is set.
15089         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
15090
15091 2007-03-06  Bruno Haible  <bruno@clisp.org>
15092
15093         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
15094         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
15095
15096 2007-03-06  Bruno Haible  <bruno@clisp.org>
15097
15098         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
15099         (asinl): Declare also if HAVE_DECL_ASINL is set.
15100         (atanl): Declare also if HAVE_DECL_ATANL is set.
15101         (ceill): Declare also if HAVE_DECL_CEILL is set.
15102         (cosl): Declare also if HAVE_DECL_COSL is set.
15103         (expl): Declare also if HAVE_DECL_EXPL is set.
15104         (floorl): Declare also if HAVE_DECL_FLOORL is set.
15105         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
15106         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
15107         (logl): Declare also if HAVE_DECL_LOGL is set.
15108         (sinl): Declare also if HAVE_DECL_SINL is set.
15109         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
15110         (tanl): Declare also if HAVE_DECL_TANL is set.
15111         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
15112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
15113         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
15114         declaration of frexpl, ldexpl.
15115         * modules/printf-frexpl (Depends-on): Add math.
15116         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
15117
15118 2007-03-05  Bruno Haible  <bruno@clisp.org>
15119
15120         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15121         frexpl and ldexpl are declared.
15122         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15123
15124 2007-03-05  Bruno Haible  <bruno@clisp.org>
15125
15126         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15127         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15128
15129 2007-03-05  Bruno Haible  <bruno@clisp.org>
15130
15131         * lib/stdio_.h: Include <stddef.h>.
15132
15133 2007-03-05  Bruno Haible  <bruno@clisp.org>
15134
15135         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15136
15137 2007-03-05  Bruno Haible  <bruno@clisp.org>
15138
15139         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15140         NetBSD 4, from Ralf Wildenhues.
15141
15142 2007-03-04  Bruno Haible  <bruno@clisp.org>
15143
15144         * lib/vasprintf.h: Update #if logic for the case when the functions
15145         exist but are overridden.
15146
15147 2007-03-04  Bruno Haible  <bruno@clisp.org>
15148
15149         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15150         implementations: glibc-2.4 and MacOS X 10.3.
15151         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15152         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15153         * tests/test-vasprintf-posix.c (test_function): Likewise.
15154
15155 2007-03-04  Bruno Haible  <bruno@clisp.org>
15156
15157         * modules/vasprintf-posix-tests: New file.
15158         * tests/test-vasprintf-posix.c: New file.
15159
15160         * modules/vasprintf-posix: New file.
15161         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15162         defined.
15163         * m4/vasprintf-posix.m4: New file.
15164         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15165         gl_FUNC_VASPRINTF.
15166         (gl_FUNC_VASPRINTF): Invoke it.
15167         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15168         here.
15169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15170
15171 2007-03-04  Bruno Haible  <bruno@clisp.org>
15172
15173         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15174         REPLACE_GETTIMEOFDAY.
15175         * modules/sys_time (Makefile.am): Likewise.
15176         * m4/sys_time_h.m4: Likewise.
15177         * m4/gettimeofday.m4: Likewise.
15178
15179 2007-03-04  Bruno Haible  <bruno@clisp.org>
15180
15181         * modules/vasnprintf-posix-tests: New file.
15182         * tests/test-vasnprintf-posix.c: New file.
15183
15184         * modules/vasnprintf-posix: New file.
15185         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15186         printf-frexpl.h.
15187         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15188         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15189         REPLACE_VASNPRINTF is defined.
15190         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15191         gl_FUNC_VASNPRINTF.
15192         (gl_FUNC_VASNPRINTF): Invoke it.
15193         * m4/vasnprintf-posix.m4: New file.
15194         * m4/printf.m4: New file.
15195
15196 2007-03-04  Bruno Haible  <bruno@clisp.org>
15197
15198         Compile progreloc.c only if --enable-relocatable is specified.
15199         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15200         if --enable-relocatable was specified.
15201         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15202         lib_SOURCES.
15203
15204 2007-03-04  Jim Meyering  <jim@meyering.net>
15205
15206         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15207         Use it consistently, rather than enumerating errno constants.
15208
15209 2007-03-04  Bruno Haible  <bruno@clisp.org>
15210
15211         * modules/xvasprintf-tests: New file.
15212         * tests/test-xvasprintf.c: New file.
15213
15214         * modules/vasprintf-tests: New file.
15215         * tests/test-vasprintf.c: New file.
15216
15217         * modules/vasnprintf-tests: New file.
15218         * tests/test-vasnprintf.c: New file.
15219
15220         * modules/vsnprintf-tests: New file.
15221         * tests/test-vsnprintf.c: New file.
15222
15223         * modules/snprintf-tests: New file.
15224         * tests/test-snprintf.c: New file.
15225
15226 2007-03-04  Bruno Haible  <bruno@clisp.org>
15227
15228         Compile relocatable.c only if --enable-relocatable is specified.
15229         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15230         gl_RELOCATABLE_LIBRARY.
15231         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15232         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15233         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15234         gl_RELOCATABLE_LIBRARY.
15235         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15236         (Makefile.am): Remove lib_SOURCES.
15237         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15238         gl_RELOCATABLE_LIBRARY.
15239         (Makefile.am): Remove lib_SOURCES.
15240         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15241         always.
15242         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15243         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15244
15245 2007-03-04  Bruno Haible  <bruno@clisp.org>
15246
15247         * modules/argmatch-tests: New file.
15248         * tests/test-argmatch.c: New file.
15249
15250         * tests/test-allocsa.c (main): Halve the number of loop runs.
15251
15252         * modules/alloca-opt-tests: New file.
15253         * tests/test-alloca-opt.c: New file.
15254
15255 2007-03-04  Jim Meyering  <jim@meyering.net>
15256
15257         Work around difference between Linux ACLs and Solaris 10 ZFS.
15258         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15259         for EINVAL.
15260
15261 2007-03-03  Bruno Haible  <bruno@clisp.org>
15262
15263         * modules/relocatable-prog (Depends-on): Add back progreloc's
15264         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15265
15266 2007-03-03  Bruno Haible  <bruno@clisp.org>
15267
15268         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15269         * modules/relocatable-lib: New file.
15270
15271 2007-03-03  Bruno Haible  <bruno@clisp.org>
15272
15273         * modules/relocatable-prog: Renamed from modules/relocatable.
15274         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15275
15276 2007-03-03  Bruno Haible  <bruno@clisp.org>
15277
15278         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15279         m4/relocatable-lib.m4.
15280         (Depends-on): Remove 'relocatable'.
15281         (configure.ac): Add gl_RELOCATABLE_NOP.
15282
15283 2007-03-03  Bruno Haible  <bruno@clisp.org>
15284
15285         * modules/relocatable-prog-wrapper: New file.
15286         * modules/relocatable (Depends-on): Add it. Remove all other
15287         dependencies except progname.
15288         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15289
15290         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15291         (gl_FUNC_STRERROR): Nop.
15292         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15293
15294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15295         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15296
15297         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15298         (gl_FUNC_READLINK): Update.
15299
15300         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15301
15302 2007-03-03  Bruno Haible  <bruno@clisp.org>
15303
15304         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15305         * modules/xreadlink (Depends-on): Add unistd.
15306         * modules/xreadlink-with-size (Depends-on): Likewise.
15307
15308 2007-03-03  Bruno Haible  <bruno@clisp.org>
15309
15310         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15311         extracted from gt_FUNC_SETENV.
15312         (gt_FUNC_SETENV): Remove macro.
15313         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15314         remove gt_FUNC_SETENV.
15315
15316 2007-03-03  Bruno Haible  <bruno@clisp.org>
15317
15318         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15319         ENABLE_RELOCATABLE here.
15320         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15321
15322 2007-03-03  Bruno Haible  <bruno@clisp.org>
15323
15324         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15325         * tests/test-rbtreehash_list.c: Include progname.h.
15326         (main): Call set_program_name.
15327
15328         * modules/rbtree-oset-tests (Depends-on): Add progname.
15329         * tests/test-rbtree_oset.c: Include progname.h.
15330         (main): Call set_program_name.
15331
15332         * modules/rbtree-list-tests (Depends-on): Add progname.
15333         * tests/test-rbtree_list.c: Include progname.h.
15334         (main): Call set_program_name.
15335
15336         * modules/linked-list-tests (Depends-on): Add progname.
15337         * tests/test-linked_list.c: Include progname.h.
15338         (main): Call set_program_name.
15339
15340 2007-03-03  Bruno Haible  <bruno@clisp.org>
15341
15342         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15343         All uses of __restrict changed to _Restrict_.
15344         * lib/glob_.h (__restrict): Remove macro.
15345
15346 2007-03-02  Bruno Haible  <bruno@clisp.org>
15347
15348         * modules/gettext (configure.ac): Require gettext infrastructure
15349         from version 0.16.1.
15350
15351 2007-03-02  Bruno Haible  <bruno@clisp.org>
15352
15353         * modules/linkedhash-list-tests (Depends-on): Add progname.
15354         * tests/test-linkedhash_list.c: Include progname.h.
15355         (main): Call set_program_name.
15356
15357         * modules/carray-list-tests (Depends-on): Add progname.
15358         * tests/test-carray_list.c: Include progname.h.
15359         (main): Call set_program_name.
15360
15361         * modules/avltreehash-list-tests (Depends-on): Add progname.
15362         * tests/test-avltreehash_list.c: Include progname.h.
15363         (main): Call set_program_name.
15364
15365         * modules/avltree-oset-tests (Depends-on): Add progname.
15366         * tests/test-avltree_oset.c: Include progname.h.
15367         (main): Call set_program_name.
15368
15369         * modules/avltree-list-tests (Depends-on): Add progname.
15370         * tests/test-avltree_list.c: Include progname.h.
15371         (main): Call set_program_name.
15372
15373         * modules/array-oset-tests (Depends-on): Add progname.
15374         * tests/test-array_oset.c: Include progname.h.
15375         (main): Call set_program_name.
15376
15377         * modules/array-list-tests (Depends-on): Add progname.
15378         * tests/test-array_list.c: Include progname.h.
15379         (main): Call set_program_name.
15380
15381         * modules/argp-tests (Depends-on): Add progname.
15382         * tests/test-argp.c: Include argp.h first. Include progname.h.
15383         (main): Call set_program_name.
15384
15385 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15386
15387         * doc/gnulib-tool.texi (Initial import): Reword description of
15388         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15389         limited effect even if defined after the first system include.
15390
15391 2007-03-01  Bruno Haible  <bruno@clisp.org>
15392
15393         * build-aux/config.libpath: Update to libtool-1.5.22.
15394         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15395
15396 2007-03-01  Bruno Haible  <bruno@clisp.org>
15397
15398         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15399         foo_CFLAGS.
15400         Reported by Ralf Wildenhues.
15401
15402 2007-03-01  Bruno Haible  <bruno@clisp.org>
15403
15404         * build-aux/install-reloc: Remove object files left over by some
15405         compilers.
15406         Reported by Ralf Wildenhues.
15407
15408 2007-03-01  Bruno Haible  <bruno@clisp.org>
15409
15410         * build-aux/install-reloc: Break long lines.
15411
15412 2007-03-01  Bruno Haible  <bruno@clisp.org>
15413
15414         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15415         Reported by Ralf Wildenhues.
15416
15417 2007-03-01  Bruno Haible  <bruno@clisp.org>
15418
15419         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15420         include ordering constraints.
15421
15422 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15423
15424         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15426         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15427         as another example.
15428         * lib/time_.h: Fix misspelling.
15429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15430         Require gl_HEADER_TIME_H_DEFAULTS.
15431         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15432         * m4/time_r.m4 (gl_TIME_R): Likewise.
15433         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15434
15435 2007-03-01  Bruno Haible  <bruno@clisp.org>
15436
15437         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15438         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15439
15440 2007-03-01  Jim Meyering  <jim@meyering.net>
15441
15442         * modules/xreadlink (Maintainer): Add my name.
15443         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15444
15445 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15446             Bruno Haible  <bruno@clisp.org>
15447
15448         * build-aux/install-reloc: Compile also c-ctype.c.
15449         * build-aux/relocatable.sh.in: New file.
15450         * doc/relocatable.texi: New file.
15451         * doc/relocatable-maint.texi: New file.
15452         * doc/gnulib.texi: Include relocatable-maint.texi.
15453         * lib/progreloc.c: Include unistd.h unconditionally.
15454         * lib/relocwrapper.c: Include unistd.h unconditionally.
15455         Include c-ctype.h.
15456         (add_dotbin): Use c_tolower.
15457         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15458         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15459         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15460         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15461         to m4/relocatable-lib.m4.
15462         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15463         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15464         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15465         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15466         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15467         * modules/relocatable: New file.
15468         * modules/relocatable-lib: New file.
15469         * modules/relocatable-script: New file.
15470
15471 2007-02-28  Bruno Haible  <bruno@clisp.org>
15472
15473         Import --enable-relocatable infrastructure.
15474         * build-aux/config.libpath: New file, from GNU gettext.
15475         * build-aux/install-reloc: New file, from GNU gettext.
15476         * build-aux/reloc-ldflags: New file, from GNU gettext.
15477         * lib/relocatable.h: New file, from GNU gettext.
15478         * lib/relocatable.c: New file, from GNU gettext.
15479         * lib/relocwrapper.c: New file, from GNU gettext.
15480         * m4/relocatable.m4: New file, from GNU gettext.
15481
15482 2007-02-28  Bruno Haible  <bruno@clisp.org>
15483
15484         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15485
15486         * modules/xreadlink: New file, from GNU gettext with modifications.
15487         * lib/xreadlink.c: New file, from GNU gettext.
15488         * lib/xreadlink.h: Add comments.
15489         (xreadlink): New declaration.
15490
15491         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15492         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15493         lib/xreadlink-with-size.c.
15494         (configure.ac): Remove gl_XREADLINK invocation.
15495         (Makefile.am): Augment lib_SOURCES.
15496         * m4/xreadlink.m4: Remove file.
15497         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15498         (xreadlink_with_size): Renamed from xreadink.
15499         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15500         * modules/canonicalize (Depends-on): Replace xreadlink with
15501         xreadlink-with-size.
15502         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15503
15504 2007-02-25  Jim Meyering  <jim@meyering.net>
15505
15506         * build-aux/announce-gen: When complaining about excess arguments,
15507         list them.
15508
15509 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15510
15511         * README: Document signed integer overflow situation more
15512         accurately.
15513
15514 2007-02-25  Bruno Haible  <bruno@clisp.org>
15515
15516         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15517         'a' or 'A' conversion.
15518
15519 2007-02-25  Bruno Haible  <bruno@clisp.org>
15520
15521         * modules/filename: Renamed from modules/pathname.
15522         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15523         lib/concatpath.c with lib/concat-filename.c.
15524         (Makefile.am): Update.
15525         (Include): Replace pathname.h with filename.h.
15526         * lib/filename.h: Renamed from lib/pathname.h.
15527         (concatenated_filename): Renamed from concatenated_pathname.
15528         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15529         (concatenated_filename): Renamed from concatenated_pathname.
15530         * lib/findprog.c: Include filename.h instead of pathname.h.
15531         (find_in_path): Update.
15532         * lib/javacomp.c: Include filename.h instead of pathname.h.
15533         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15534         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15535         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15536         is_oldgcj_14_13_usable, is_javac_usable): Update.
15537         * lib/javaexec.c: Include filename.h instead of pathname.h.
15538         (execute_java_class): Update.
15539         * modules/findprog: Update.
15540         * modules/javacomp: Update.
15541         * modules/javaexec: Update.
15542         * MODULES.html.sh (File system functions): Add 'filename', remove
15543         'pathname'.
15544
15545 2007-02-25  Bruno Haible  <bruno@clisp.org>
15546
15547         * modules/printf-frexpl-tests: New file.
15548         * tests/test-printf-frexpl.c: New file.
15549
15550         * modules/printf-frexpl: New file.
15551         * lib/printf-frexpl.h: New file.
15552         * lib/printf-frexpl.c: New file.
15553         * m4/printf-frexpl.m4: New file.
15554
15555 2007-02-25  Bruno Haible  <bruno@clisp.org>
15556
15557         * modules/printf-frexp-tests: New file.
15558         * tests/test-printf-frexp.c: New file.
15559
15560         * modules/printf-frexp: New file.
15561         * lib/printf-frexp.h: New file.
15562         * lib/printf-frexp.c: New file.
15563         * m4/printf-frexp.m4: New file.
15564
15565 2007-02-25  Bruno Haible  <bruno@clisp.org>
15566
15567         Assume automake >= 1.10 for the tests.
15568         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15569         * modules/arctwo-tests: Likewise.
15570         * modules/argp-tests: Likewise.
15571         * modules/avltree-list-tests: Likewise.
15572         * modules/avltree-oset-tests: Likewise.
15573         * modules/avltreehash-list-tests: Likewise.
15574         * modules/carray-list-tests: Likewise.
15575         * modules/crc-tests: Likewise.
15576         * modules/des-tests: Likewise.
15577         * modules/gc-arcfour-tests: Likewise.
15578         * modules/gc-arctwo-tests: Likewise.
15579         * modules/gc-des-tests: Likewise.
15580         * modules/gc-hmac-md5-tests: Likewise.
15581         * modules/gc-hmac-sha1-tests: Likewise.
15582         * modules/gc-md2-tests: Likewise.
15583         * modules/gc-md4-tests: Likewise.
15584         * modules/gc-md5-tests: Likewise.
15585         * modules/gc-pbkdf2-sha1-tests: Likewise.
15586         * modules/gc-rijndael-tests: Likewise.
15587         * modules/gc-sha1-tests: Likewise.
15588         * modules/gc-tests: Likewise.
15589         * modules/getaddrinfo-tests: Likewise.
15590         * modules/hmac-md5-tests: Likewise.
15591         * modules/hmac-sha1-tests: Likewise.
15592         * modules/linked-list-tests: Likewise.
15593         * modules/linkedhash-list-tests: Likewise.
15594         * modules/lock-tests: Likewise.
15595         * modules/md2-tests: Likewise.
15596         * modules/md4-tests: Likewise.
15597         * modules/md5-tests: Likewise.
15598         * modules/rbtree-list-tests: Likewise.
15599         * modules/rbtree-oset-tests: Likewise.
15600         * modules/rbtreehash-list-tests: Likewise.
15601         * modules/read-file-tests: Likewise.
15602         * modules/rijndael-tests: Likewise.
15603         * modules/stdint-tests: Likewise.
15604         * modules/tls-tests: Likewise.
15605
15606 2007-02-24  Bruno Haible  <bruno@clisp.org>
15607
15608         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15609         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15610         function; instead check whether isnan with a double argument links.
15611         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15612         function; instead check whether isnan with a 'long double' argument
15613         links.
15614         Reported by Eric Blake <ebb9@byu.net>.
15615
15616 2007-02-24  Bruno Haible  <bruno@clisp.org>
15617
15618         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15619         defined.
15620         * lib/isnanl.c: Remove all code. Just include isnan.c.
15621         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15622
15623 2007-02-25  Jim Meyering  <jim@meyering.net>
15624
15625         Avoid conflicting types for 'unsetenv' on FreeBSD.
15626         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15627         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15628         in stdlib.h.
15629
15630 2007-02-24  Bruno Haible  <bruno@clisp.org>
15631
15632         * modules/isnanl-nolibm-tests: New file.
15633         * tests/test-isnanl.c: New file.
15634
15635         * modules/isnanl-nolibm: New file.
15636         * lib/isnanl.h: New file.
15637         * lib/isnanl.c: New file.
15638         * m4/isnanl.m4: New file.
15639
15640 2007-02-24  Bruno Haible  <bruno@clisp.org>
15641
15642         * modules/isnan-nolibm-tests: New file.
15643         * tests/test-isnan.c: New file.
15644
15645         * modules/isnan-nolibm: New file.
15646         * lib/isnan.h: New file.
15647         * lib/isnan.c: New file.
15648         * m4/isnan.m4: New file.
15649
15650 2007-02-24  Bruno Haible  <bruno@clisp.org>
15651
15652         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15653         assume that an exponent fits in 20 bits.
15654
15655 2007-02-24  Jim Meyering  <jim@meyering.net>
15656
15657         * m4/regex.m4: Update the description of the configure-time option,
15658         --without-included-regex, to state accurately what the defaults are,
15659         and perhaps to give people an idea why using this option is risky.
15660
15661 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15662
15663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15664         loops on small arguments.  This attempts to avoid the problem
15665         Bruno Haible reported for AIX 4.3.2 in
15666         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15667
15668 2007-02-23  Bruno Haible  <bruno@clisp.org>
15669
15670         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15671         Needed for help2man.
15672
15673 2007-02-23  Karl Berry  <karl@gnu.org>
15674
15675         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15676         exists, foo.h should be cvs-ignored, not committed.
15677
15678 2007-02-23  Eric Blake  <ebb9@byu.net>
15679
15680         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15681         * lib/stat-time.h (includes): Likewise.
15682         * lib/utimecmp.c (includes): Likewise.
15683         * lib/utimens.h (includes): Likewise.
15684         * lib/getdate.y (includes): Also include "timespec.h" for use
15685         internal to the module.
15686         * modules/utimens (Depends-on): Revert yesterday's patch.
15687         * modules/nanosleep (Depends-on): Add missing dependency.
15688
15689 2007-02-22  Bruno Haible  <bruno@clisp.org>
15690
15691         * lib/glob.c: Don't include getlogin_r.h.
15692
15693 2007-02-22  Jim Meyering  <jim@meyering.net>
15694
15695         * modules/utimens (Depends-on): Add timespec, required for
15696         utimens.h's inclusion of timespec.h.
15697
15698 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15701         long unreadable paths in GNU/Linux.  Problem reported by Andreas
15702         Schwab in
15703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15704         I'll try to think of a better way to fix the Solaris problem.
15705
15706         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15707         like glibc; on Solaris 10, it fails with errno == EINVAL.
15708         POSIX says the behavior is unspecified if the first argument is NULL,
15709         so play it safe and never pass NULL to the system getcwd.
15710
15711 2007-02-21  Jim Meyering  <jim@meyering.net>
15712
15713         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15714         of gettimeofday.  It would conflict with the one now always
15715         provided via sys_time_.h.  Reported by Matthew Woehlke, as
15716         an IRIX 6.5 build failure.
15717
15718 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15719
15720         Minor fixups to port to Solaris 10 with Sun C 5.8.
15721         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
15722         * modules/getcwd (Depends-on): Add dirfd.
15723         * lib/putenv.c (putenv): #undef it.
15724         (rpl_putenv): New decl.
15725         (malloc, free): Include <stdlib.h> rather than prototyping separately.
15726
15727 2007-02-20  Bruno Haible  <bruno@clisp.org>
15728
15729         * modules/stdio-tests: New file.
15730         * tests/test-stdio.c: New file.
15731
15732         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
15733         (Depends-on): Add stdio.
15734         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15735         (Include): Use <stdio.h> instead of vsnprintf.h.
15736         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15737         HAVE_DECL_VSNPRINTF.
15738         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
15739
15740         * modules/snprintf (Files): Remove lib/snprintf.h.
15741         (Depends-on): Add stdio.
15742         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15743         (Include): Use <stdio.h> instead of snprintf.h.
15744         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15745         HAVE_DECL_SNPRINTF.
15746         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
15747         * lib/getaddrinfo.c: Likewise.
15748
15749         * modules/stdio: New file.
15750         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
15751         * lib/snprintf.h: Remove file.
15752         * lib/vsnprintf.h: Remove file.
15753         * lib/.cppi-disable: Remove snprintf.h.
15754         * m4/stdio_h.m4: New file.
15755         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
15756
15757 2007-02-20  Jim Meyering  <jim@meyering.net>
15758
15759         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
15760         used by e.g., mingw.  From Bruno Haible.
15761
15762 2007-02-19  Bruno Haible  <bruno@clisp.org>
15763
15764         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
15765         warnings.
15766         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15767
15768 2007-02-19  Bruno Haible  <bruno@clisp.org>
15769
15770         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
15771         from mingw users.
15772
15773 2007-02-19  Bruno Haible  <bruno@clisp.org>
15774
15775         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
15776         warnings.
15777         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
15778
15779 2007-02-19  Jim Meyering  <jim@meyering.net>
15780
15781         Don't use FD after a successful "fdopendir (fd)".
15782         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
15783         Reset it by calling dirfd on the just-obtained DIR*.
15784
15785         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
15786         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
15787
15788 2007-02-18  Bruno Haible  <bruno@clisp.org>
15789
15790         * lib/readlink.c: Include <unistd.h>.
15791         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
15792         HAVE_READLINK.
15793         * modules/readlink (Depends-on): Add unistd.
15794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15795         (Include): Add <unistd.h>.
15796
15797         * lib/getlogin_r.h: Remove file.
15798         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
15799         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
15800         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
15801         HAVE_DECL_GETLOGIN_R.
15802         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
15803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15804         (Include): Use <unistd.h> instead of getlogin_r.h.
15805
15806         * lib/getcwd.h: Remove file.
15807         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
15808         * lib/xgetcwd.c: Likewise.
15809         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
15810         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
15811         * modules/getcwd (Files): Remove lib/getcwd.h.
15812         (Depends-on): Add unistd.
15813         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15814         (Include): Use <unistd.h> instad of getcwd.h.
15815
15816         * lib/ftruncate.c: Include <unistd.h> first.
15817         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
15818         Set HAVE_FTRUNCATE.
15819         * modules/ftruncate (Depends-on): Add unistd.
15820         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15821
15822         * lib/fchdir.c: Include <unistd.h> first.
15823         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
15824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
15825         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
15826         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15827         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
15828
15829         * lib/dup2.c: Include <unistd.h> first.
15830         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
15831         HAVE_DUP2.
15832         * modules/dup2 (Depends-on): Add unistd.
15833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15834
15835         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
15836         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
15837         REPLACE_CHOWN. Don't define chown as a macro here.
15838         * modules/chown (Depends-on): Add unistd.
15839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15840
15841         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
15842         Add definition for GL_LINK_WARNING.
15843         (chown, dup2): New declarations.
15844         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
15845         link warning.
15846         (ftruncate): New declaration.
15847         (getcwd): New declaration, taken from old getcwd.h.
15848         (getlogin_r): New declaration, taken from old getlogin_r.h.
15849         (readlink): New declaration.
15850         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
15851         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
15852         (gl_PREREQ_UNISTD): Remove macro.
15853         (gl_UNISTD_MODULE_INDICATOR): New macro.
15854         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
15855         many new variables. Don't set UNISTD_H.
15856         * modules/unistd (Description): Change.
15857         (Depends-on): Add link-warning.
15858         (configure.ac): Update.
15859         (Makefile.am): Create unistd.h always. Substitute many new variables
15860         into it.
15861
15862 2007-02-18  Bruno Haible  <bruno@clisp.org>
15863
15864         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
15865         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
15866         HAVE_GETSUBOPT.
15867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
15868         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
15869         * lib/getsubopt.h: Remove file.
15870         * modules/getsubopt (Files): Remove lib/getsubopt.h.
15871         (Depends-on): Add stdlib.
15872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15873         (Includes): Use <stdlib.h> instead of getsubopt.h.
15874         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
15875         Set HAVE_GETSUBOPT.
15876         * lib/getsubopt.c: Don't include getsubopt.h.
15877
15878 2007-02-18  Bruno Haible  <bruno@clisp.org>
15879
15880         * modules/fchdir (Depends-on): Add dup2.
15881
15882 2007-02-18  Bruno Haible  <bruno@clisp.org>
15883
15884         * lib/stdlib_.h: Handle glibc's special invocation convention
15885         specially.
15886
15887 2007-02-18  Bruno Haible  <bruno@clisp.org>
15888
15889         * modules/stdlib-tests: New file.
15890         * tests/test-stdlib.c: New file.
15891
15892         * modules/mkstemp (Files): Remove lib/mkstemp.h.
15893         (Depends-on): Add stdlib.
15894         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15895         (Includes): Use <stdlib.h> instead of mkstemp.h.
15896         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15897         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
15898         * lib/mkstemp.c: Don't include mkstemp.h.
15899         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
15900         * lib/stdlib--.h: Don't include mkstemp.h.
15901
15902         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
15903         (Depends-on): Add stdlib.
15904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15905         (Includes): Use <stdlib.h> instead of mkdtemp.h.
15906         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15907         HAVE_MKDTEMP.
15908         * lib/mkdtemp.c: Don't include mkdtemp.h.
15909         * lib/clean-temp.c: Don't include mkdtemp.h.
15910
15911         * modules/exit (Files): Remove lib/exit.h.
15912         (Depends-on): Add stdlib.
15913         (Makefile.am): Remove lib_SOURCES.
15914         (Include): Use <stdlib.h> instead of exit.h.
15915         * lib/argmatch.c: Don't include exit.h.
15916         * lib/execute.c: Likewise.
15917         * lib/pagealign_alloc.c: Likewise.
15918         * lib/pipe.c: Likewise.
15919         * lib/wait-process.c: Likewise.
15920         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
15921         * lib/exitfail.c: Likewise.
15922         * lib/savewd.c: Likewise.
15923         * lib/xsetenv.c: Likewise.
15924
15925         * modules/stdlib: New file.
15926         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
15927         and extra comments about mkstemp().
15928         * lib/exit.h: Remove file.
15929         * lib/mkdtemp.h: Remove file.
15930         * lib/mkstemp.h: Remove file.
15931         * m4/stdlib_h.m4: New file.
15932         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
15933
15934 2007-02-18  Bruno Haible  <bruno@clisp.org>
15935
15936         * modules/math-tests: New file.
15937         * tests/test-math.c: New file.
15938
15939         * modules/math: New file.
15940         * modules/mathl (Files): Remove lib/mathl.h.
15941         (Depends-on): Add math.
15942         (Makefile.am): Don't mention mathl.h.
15943         (Include): Use <math.h> instead of mathl.h.
15944         * lib/math_.h: New file.
15945         * lib/mathl.h: Remove file.
15946         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
15947         mathl.h.
15948         * lib/asinl.c: Likewise.
15949         * lib/atanl.c: Likewise.
15950         * lib/ceill.c: Likewise.
15951         * lib/cosl.c: Likewise.
15952         * lib/expl.c: Likewise.
15953         * lib/floorl.c: Likewise.
15954         * lib/frexpl.c: Likewise.
15955         * lib/ldexpl.c: Likewise.
15956         * lib/logl.c: Likewise.
15957         * lib/sincosl.c: Likewise.
15958         * lib/sinl.c: Likewise.
15959         * lib/sqrtl.c: Likewise.
15960         * lib/tanl.c: Likewise.
15961         * lib/trigl.c: Likewise.
15962         * m4/math_h.m4: New file.
15963         * MODULES.html.sh (Mathematics): Add math.
15964
15965 2007-02-17  Bruno Haible  <bruno@clisp.org>
15966
15967         * modules/wctype-tests: New file.
15968         * tests/test-wctype.c: New file.
15969
15970         * modules/wchar-tests: New file.
15971         * tests/test-wchar.c: New file.
15972
15973         * modules/unistd-tests: New file.
15974         * tests/test-unistd.c: New file.
15975
15976         * modules/time-tests: New file.
15977         * tests/test-time.c: New file.
15978
15979         * modules/sysexits-tests: New file.
15980         * tests/test-sysexits.c: New file.
15981
15982         * modules/sys_time-tests: New file.
15983         * tests/test-sys_time.c: New file.
15984
15985         * modules/sys_stat-tests: New file.
15986         * tests/test-sys_stat.c: New file.
15987
15988         * modules/sys_socket-tests: New file.
15989         * tests/test-sys_socket.c: New file.
15990
15991         * modules/sys_select-tests: New file.
15992         * tests/test-sys_select.c: New file.
15993
15994         * modules/string-tests: New file.
15995         * tests/test-string.c: New file.
15996
15997         * modules/stdbool-tests: New file.
15998         * tests/test-stdbool.c: New file.
15999
16000         * modules/netinet_in-tests: New file.
16001         * tests/test-netinet_in.c: New file.
16002
16003         * modules/inttypes-tests: New file.
16004         * tests/test-inttypes.c: New file.
16005
16006         * modules/fcntl-tests: New file.
16007         * tests/test-fcntl.c: New file.
16008
16009         * modules/byteswap-tests: New file.
16010         * tests/test-byteswap.c: New file.
16011
16012         * modules/arpa_inet-tests: New file.
16013         * tests/test-arpa_inet.c: New file.
16014
16015 2007-02-17  Bruno Haible  <bruno@clisp.org>
16016
16017         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
16018         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
16019         if the corresponding module is not enabled. Emit link warnings if
16020         the function is used nevertheless.
16021         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
16022         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
16023         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
16024         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
16025         * modules/inttypes (Depends-on): Add link-warning.
16026         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16027         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
16028         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
16029         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
16030         * modules/imaxdiv (configure.ac): Likewise.
16031         * modules/strtoimax (configure.ac): Likewise.
16032         * modules/strtoumax (configure.ac): Likewise.
16033
16034 2007-02-17  Bruno Haible  <bruno@clisp.org>
16035
16036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
16037         gl_STRING_MODULE_INDICATOR_DEFAULTS.
16038         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
16039         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
16040
16041 2007-02-17  Bruno Haible  <bruno@clisp.org>
16042
16043         * modules/link-warning: New file.
16044         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
16045         * lib/string_.h (GL_LINK_WARNING): Remove definition.
16046         * modules/string (Depends-on): Add link-warning.
16047         (Makefile.am): Copy the contents of build-aux/link-warning.h into
16048         string.h.
16049         * MODULES.html.sh (Support for building libraries and executables): Add
16050         link-warning.
16051
16052 2007-02-17  Bruno Haible  <bruno@clisp.org>
16053
16054         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
16055         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
16056         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
16057         long lines.
16058
16059 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
16060             Bruno Haible  <bruno@clisp.org>
16061
16062         * modules/tmpfile: New file.
16063         * lib/tmpfile.c: New file.
16064         * m4/tmpfile.m4: New file.
16065         * MODULES.html.sh (func_all_modules): New section "Input/output".
16066
16067 2007-02-15  Bruno Haible  <bruno@clisp.org>
16068
16069         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
16070         (supports_delete_on_close): New function.
16071         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
16072
16073 2007-02-14  Bruno Haible  <bruno@clisp.org>
16074
16075         * modules/mbspcasecmp-tests: New file.
16076         * tests/test-mbspcasecmp.sh: New file.
16077         * tests/test-mbspcasecmp.c: New file.
16078
16079         New module mbspcasecmp.
16080         * modules/mbspcasecmp: New file.
16081         * lib/mbspcasecmp.c: New file.
16082         * lib/string_.h (strncasecmp): Change warning message.
16083         (mbspcasecmp): New declaration.
16084         * m4/mbspcasecmp.m4: New file.
16085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16086         GNULIB_MBSPCASECMP.
16087         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
16088         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
16089
16090 2007-02-14  Bruno Haible  <bruno@clisp.org>
16091
16092         * modules/mbsncasecmp-tests: New file.
16093         * tests/test-mbsncasecmp.sh: New file.
16094         * tests/test-mbsncasecmp.c: New file.
16095
16096         New module mbsncasecmp.
16097         * modules/mbsncasecmp: New file.
16098         * lib/mbsncasecmp.c: New file.
16099         * lib/string_.h (mbsncasecmp): New declaration.
16100         * m4/mbsncasecmp.m4: New file.
16101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16102         GNULIB_MBSNCASECMP.
16103         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
16104         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
16105
16106 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16107
16108         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
16109         Verify that it doesn't overlap with our flags.
16110         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
16111         do not have the desired effect in multibyte locales; instead, use
16112         mbscasecmp.
16113         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
16114         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
16115         we don't require GNU fnmatch ourselves (if our users require it, they
16116         should do so explicitly).
16117
16118         Fix regex code so it doesn't rely on strcasecmp.
16119         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16120         Otherwise, include gnulib's langinfo.h.
16121         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16122         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16123         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16124         * modules/regex (FILES): Remove m4/codeset.m4.
16125         (Depends-on): Add localcharset.  Remove strcase.
16126
16127 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16128
16129         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16130         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16131
16132 2007-02-13  Bruno Haible  <bruno@clisp.org>
16133
16134         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16136
16137 2007-02-12  Bruno Haible  <bruno@clisp.org>
16138
16139         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16140         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16141         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16142         time warning rather than a link error.
16143
16144 2007-02-12  Bruno Haible  <bruno@clisp.org>
16145
16146         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16147         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16148         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16149
16150 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16151
16152         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16153         args, not 2.
16154
16155 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16156
16157         New module 'time', so that apps can include <time.h> as per
16158         POSIX and GNU instead of separate include files like time_r.h
16159         and timegm.h.  This implementation tries out a simpler approach
16160         for replacing decls in standard include files (as compared to
16161         the string module), somewhat as an experiment.
16162
16163         * config/srclist.txt: Comment out mktime.c for now.
16164         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16165         since it doesn't apply any more.  Use generic wording instead.
16166         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16167         'time'.
16168         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16169         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16170         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16171         Don't include <sys/types.h>; no longer needed since we assume C89.
16172         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16173         * lib/strftime.c: Likewise.
16174         * lib/time_r.c: Likewise.
16175         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16176         * lib/nanosleep.c: Include <time.h> first, to check interface.
16177         * lib/strptime.c: Likewise.
16178         * lib/time_r.c: Likewise.
16179         * lib/timegm.c: Likewise.
16180         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16181         needed.
16182         * lib/timegm.c: Don't include timegm.h; no longer needed.
16183         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16184         time.h now handles any problems in that area.
16185         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16186         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16187         that time.h defines struct timespec.
16188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16189         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16190         handles that.
16191         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16192         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16193         needed.  Set REPLACE_LOCALTIME.
16194         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16195         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16196         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16197         nanosleep; time_h.m4 now does that.  Don't require
16198         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16199         module handles this now.
16200         * modules/getdate (Depends-on): Remove timespec.  Add time.
16201         * modules/nanosleep (Depends-on): Likewise.
16202         * modules/stat-time (Depends-on): Likewise.
16203         * modules/nanosleep (Include): Include time.h, not timespec.h.
16204         * modules/strptime (Files): Remove lib/strptime.h.
16205         (Depends-on): Add extensions, time.
16206         (Include): Include time.h, not strptime.h.
16207         * modules/time_r (Files): Remove lib/time_r.h.
16208         (Depends-on): Add time.
16209         (Include): Include time.h, not time_r.h.
16210         * modules/timegm: Likewise.
16211         * modules/timespec (Description): Now does timespec-related decls
16212         of our own, instead of struct timespec itself.
16213         (Depends-on): Add time; remove extensions.
16214         (Maintainer): Add self.
16215         * modules/utimecmp (Depends-on): Add time; remove timespec.
16216         * modules/utimens (Depends-on): Likewise.
16217         * modules/xnanosleep (Depends-on): Likewise.
16218
16219 2007-02-11  Bruno Haible  <bruno@clisp.org>
16220
16221         * lib/c-strstr.c: Include allocsa.h.
16222         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16223         * lib/c-strcasestr.c: Include allocsa.h.
16224         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16225         * lib/strcasestr.c: Include allocsa.h.
16226         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16227         * lib/mbsstr.c: Include allocsa.h.
16228         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16229         allocsa/freesa instead of malloc/free.
16230         * lib/mbscasestr.c: Include allocsa.h.
16231         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16232         allocsa/freesa instead of malloc/free.
16233         * modules/c-strstr (Depends-on): Add allocsa.
16234         * modules/c-strcasestr (Depends-on): Likewise.
16235         * modules/strcasestr (Depends-on): Likewise.
16236         * modules/mbsstr (Depends-on): Likewise.
16237         * modules/mbscasestr (Depends-on): Likewise.
16238
16239 2007-02-11  Bruno Haible  <bruno@clisp.org>
16240
16241         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16242
16243         * modules/mbsspn-tests: New file.
16244         * tests/test-mbsspn.sh: New file.
16245         * tests/test-mbsspn.c: New file.
16246
16247 2007-02-11  Bruno Haible  <bruno@clisp.org>
16248
16249         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16250
16251         * modules/mbspbrk-tests: New file.
16252         * tests/test-mbspbrk.sh: New file.
16253         * tests/test-mbspbrk.c: New file.
16254
16255 2007-02-11  Bruno Haible  <bruno@clisp.org>
16256
16257         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16258         unneeded cast.
16259
16260         * modules/mbscspn-tests: New file.
16261         * tests/test-mbscspn.sh: New file.
16262         * tests/test-mbscspn.c: New file.
16263
16264 2007-02-11  Bruno Haible  <bruno@clisp.org>
16265
16266         * modules/mbscasecmp-tests: New file.
16267         * tests/test-mbscasecmp.sh: New file.
16268         * tests/test-mbscasecmp.c: New file.
16269
16270 2007-02-11  Bruno Haible  <bruno@clisp.org>
16271
16272         Ensure O(n) worst-case complexity of mbscasestr.
16273         * lib/mbscasestr.c: Include stdbool.h.
16274         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16275         functions.
16276         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16277         the bookkeeping indicates that it's worth it.
16278         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16279
16280         * modules/mbscasestr-tests: New file.
16281         * tests/test-mbscasestr1.c: New file.
16282         * tests/test-mbscasestr2.sh: New file.
16283         * tests/test-mbscasestr2.c: New file.
16284         * tests/test-mbscasestr3.sh: New file.
16285         * tests/test-mbscasestr3.c: New file.
16286         * tests/test-mbscasestr4.sh: New file.
16287         * tests/test-mbscasestr4.c: New file.
16288         * m4/locale-tr.m4: New file.
16289
16290 2007-02-11  Bruno Haible  <bruno@clisp.org>
16291
16292         Ensure O(n) worst-case complexity of mbsstr.
16293         * lib/mbsstr.c: Include stdbool.h.
16294         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16295         functions.
16296         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16297         bookkeeping indicates that it's worth it.
16298         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16299
16300         * modules/mbsstr-tests: New file.
16301         * tests/test-mbsstr1.c: New file.
16302         * tests/test-mbsstr2.sh: New file.
16303         * tests/test-mbsstr2.c: New file.
16304         * tests/test-mbsstr3.sh: New file.
16305         * tests/test-mbsstr3.c: New file.
16306         * m4/locale-fr.m4: New file.
16307
16308 2007-02-11  Bruno Haible  <bruno@clisp.org>
16309
16310         * lib/mbsrchr.c (mbsrchr): Fix bug.
16311
16312         * modules/mbsrchr-tests: New file.
16313         * tests/test-mbsrchr.sh: New file.
16314         * tests/test-mbsrchr.c: New file.
16315
16316 2007-02-11  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/mbschr.c (mbschr): Fix bug.
16319
16320         * modules/mbschr-tests: New file.
16321         * tests/test-mbschr.sh: New file.
16322         * tests/test-mbschr.c: New file.
16323         * m4/locale-zh.m4: New file.
16324
16325 2007-02-11  Bruno Haible  <bruno@clisp.org>
16326
16327         Support for copying multibyte string iterators.
16328         * lib/mbiter.h: Include <string.h>.
16329         (mbiter_multi_copy): New function.
16330         (mbi_copy): New macro.
16331         * lib/mbuiter.h: Include <string.h>.
16332         (mbuiter_multi_copy): New function.
16333         (mbui_copy): New macro.
16334
16335 2007-02-11  Bruno Haible  <bruno@clisp.org>
16336
16337         New module mbslen.
16338         * modules/mbslen: New file.
16339         * lib/mbslen.c: New file.
16340         * lib/string_.h (mbslen): New declaration.
16341         * m4/mbslen.m4: New file.
16342         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16343         GNULIB_MBSLEN.
16344         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16345         * MODULES.html.sh (Internationalization functions): Add mbslen.
16346
16347 2007-02-11  Bruno Haible  <bruno@clisp.org>
16348
16349         Ensure O(n) worst-case complexity of strcasestr substitute.
16350         * lib/strcasestr.c: Include stdbool.h.
16351         (knuth_morris_pratt): New function.
16352         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16353         bookkeeping indicates that it's worth it.
16354         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16355
16356         * modules/strcasestr-tests: New file.
16357         * tests/test-strcasestr.c: New file.
16358
16359 2007-02-11  Bruno Haible  <bruno@clisp.org>
16360
16361         Ensure O(n) worst-case complexity of c_strcasestr.
16362         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16363         (knuth_morris_pratt): New function.
16364         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16365         the bookkeeping indicates that it's worth it.
16366         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16367
16368         * modules/c-strcasestr-tests: New file.
16369         * tests/test-c-strcasestr.c: New file.
16370
16371 2007-02-11  Bruno Haible  <bruno@clisp.org>
16372
16373         Ensure O(n) worst-case complexity of c_strstr.
16374         * lib/c-strstr.c: Include stdbool.h, string.h.
16375         (knuth_morris_pratt): New function.
16376         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16377         bookkeeping indicates that it's worth it.
16378         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16379
16380         * lib/c-strstr.c: Complete rewrite for maintainability.
16381
16382         * modules/c-strstr-tests: New file.
16383         * tests/test-c-strstr.c: New file.
16384
16385 2007-02-11  Bruno Haible  <bruno@clisp.org>
16386
16387         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16388         5.2.1 and earlier, whereby \055 was treated just like the range
16389         delimiter '-'.
16390         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16391
16392 2007-02-08  Bruno Haible  <bruno@clisp.org>
16393
16394         * modules/regex (Depends-on): Add stdbool.
16395         Reported by Dalibor Topic <robilad@kaffe.org>.
16396
16397 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16398
16399         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16400         Prefer returning from main to exiting from it.
16401         Remove unnecessary parens after sizeof.
16402
16403 2007-02-05  Bruno Haible  <bruno@clisp.org>
16404
16405         New module mbssep.
16406         * modules/mbssep: New file.
16407         * lib/mbssep.c: New file.
16408         * lib/string_.h (strsep): Add a conditional link warning.
16409         (mbssep): New declaration.
16410         * m4/mbssep.m4: New file.
16411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16412         GNULIB_MBSSEP.
16413         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16414         * MODULES.html.sh (Internationalization functions): Add mbssep.
16415
16416 2007-02-05  Bruno Haible  <bruno@clisp.org>
16417
16418         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16419         Optimize search in case of 1 delimiter.
16420
16421 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16422
16423         * lib/acl.h: Include sys/types.h before sys/acl.h.
16424
16425 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16426
16427         Merge upstream fix for glibc bugzilla #3957:
16428
16429         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16430
16431         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16432         bit for RE_HAT_LISTS_NOT_NEWLINE.
16433         (build_charclass_op): Remove bogus comment.
16434
16435 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16436
16437         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16438
16439 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16440
16441         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16442         * lib/memmem.c [!defined _LIBC]: Include config.h.
16443
16444 2007-02-04  Bruno Haible  <bruno@clisp.org>
16445
16446         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16447         warning message.
16448
16449 2007-02-04  Bruno Haible  <bruno@clisp.org>
16450
16451         New module mbstok_r.
16452         * modules/mbstok_r: New file.
16453         * lib/mbstok_r.c: New file.
16454         * lib/string_.h (strtok_r): Change argument names to match the
16455         comments. Add a conditional link warning.
16456         (mbstok_r): New declaration.
16457         * m4/mbstok_r.m4: New file.
16458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16459         GNULIB_MBSTOK_R.
16460         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16461         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16462
16463 2007-02-04  Bruno Haible  <bruno@clisp.org>
16464
16465         New module mbsspn.
16466         * modules/mbsspn: New file.
16467         * lib/mbsspn.c: New file.
16468         * lib/string_.h (strspn): Add a conditional link warning.
16469         (mbsspn): New declaration.
16470         * m4/mbsspn.m4: New file.
16471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16472         GNULIB_MBSSPN.
16473         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16474         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16475
16476 2007-02-04  Bruno Haible  <bruno@clisp.org>
16477
16478         New module mbspbrk.
16479         * modules/mbspbrk: New file.
16480         * lib/mbspbrk.c: New file.
16481         * lib/string_.h (strpbrk): Add a conditional link warning.
16482         (mbspbrk): New declaration.
16483         * m4/mbspbrk.m4: New file.
16484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16485         GNULIB_MBSPBRK.
16486         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16487         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16488
16489 2007-02-04  Bruno Haible  <bruno@clisp.org>
16490
16491         New module mbscspn.
16492         * modules/mbscspn: New file.
16493         * lib/mbscspn.c: New file.
16494         * lib/string_.h (strcspn): Add a conditional link warning.
16495         (mbscspn): New declaration.
16496         * m4/mbscspn.m4: New file.
16497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16498         GNULIB_MBSCSPN.
16499         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16500         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16501
16502 2007-02-04  Bruno Haible  <bruno@clisp.org>
16503
16504         New module mbscasestr, reduced goal of strcasestr.
16505         * modules/mbscasestr: New file.
16506         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16507         (mbscasestr): Renamed from strcasestr.
16508         * lib/strcasestr.c: Don't include mbuiter.h.
16509         (strcasestr): Remove support for multibyte locales.
16510         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16511         Change the conditional link warning.
16512         (mbscasestr): New declaration.
16513         * m4/mbscasestr.m4: New file.
16514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16515         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16516         REPLACE_STRCASESTR.
16517         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16519         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16520         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16521         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16522         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16523         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16524         (Depends-on): Remove mbuiter.
16525         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16526
16527 2007-02-04  Bruno Haible  <bruno@clisp.org>
16528
16529         Simplify handling of strncasecmp.
16530         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16531         the conditional link warning.
16532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16533         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16534         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16535         * modules/strcase (configure.ac): Don't invoke
16536         gl_STRING_MODULE_INDICATOR.
16537         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16538
16539 2007-02-04  Bruno Haible  <bruno@clisp.org>
16540
16541         New module mbscasecmp, reduced goal of strcasecmp.
16542         * modules/mbscasecmp: New file.
16543         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16544         (mbscasecmp): Renamed from strcasecmp.
16545         * lib/strcasecmp.c: Don't include mbuiter.h.
16546         (strcasecmp): Remove support for multibyte locales.
16547         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16548         Change the conditional link warning.
16549         (mbscasecmp): New declaration.
16550         * m4/mbscasecmp.m4: New file.
16551         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16552         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16553         REPLACE_STRCASECMP.
16554         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16556         GNULIB_MBSCASECMP.
16557         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16558         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16559         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16560         (Depends-on): Remove mbuiter.
16561         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16562
16563 2007-02-04  Bruno Haible  <bruno@clisp.org>
16564
16565         New module mbsstr. Remove module strstr.
16566         * modules/mbsstr: New file.
16567         * modules/strstr: Remove file.
16568         * lib/mbsstr.c: Renamed from lib/strstr.c.
16569         (mbsstr): Renamed from strstr.
16570         * lib/string_.h (strstr): Remove declaration. Change the conditional
16571         link warning.
16572         (mbsstr): New declaration.
16573         * m4/mbsstr.m4: New file.
16574         * m4/strstr.m4: Remove file.
16575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16576         REPLACE_STRSTR.
16577         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16578         Don't initialize GNULIB_STRSTR.
16579         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16580         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16581         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16582         (Support for systems lacking ANSI C 89): Remove strstr.
16583
16584 2007-02-04  Bruno Haible  <bruno@clisp.org>
16585
16586         New module mbsrchr.
16587         * modules/mbsrchr: New file.
16588         * lib/mbsrchr.c: New file.
16589         * lib/string_.h (strrchr): Add a conditional link warning.
16590         (mbsrchr): New declaration.
16591         * m4/mbsrchr.m4: New file.
16592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16593         GNULIB_MBSRCHR.
16594         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16595         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16596
16597 2007-02-04  Bruno Haible  <bruno@clisp.org>
16598
16599         New module mbschr.
16600         * modules/mbschr: New file.
16601         * lib/mbschr.c: New file.
16602         * lib/string_.h (strchr): Add a conditional link warning.
16603         (mbschr): New declaration.
16604         * m4/mbschr.m4: New file.
16605         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16606         GNULIB_MBSCHR.
16607         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16608         * MODULES.html.sh (Internationalization functions): Add mbschr.
16609
16610 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16611
16612         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16613
16614         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16615
16616 2007-02-04  Bruno Haible  <bruno@clisp.org>
16617
16618         New module description section 'configure.ac-early'.
16619         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16620         (func_get_autoconf_early_snippet): New function.
16621         (func_import, func_create_testdir): Use it. Remove special cases for
16622         modules 'extensions' and 'lock'.
16623         * modules/extensions (configure.ac-early): Require
16624         gl_USE_SYSTEM_EXTENSIONS.
16625         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16626
16627 2007-02-04  Bruno Haible  <bruno@clisp.org>
16628
16629         Make use of gcj-4.3's -fsource and -ftarget option.
16630         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16631         and if so try the options -fsource and -ftarget.
16632         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16633         source_version, ftarget_option, target_version arguments.
16634         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16635         (is_envjavac_oldgcj_14_14_usable): Renamed from
16636         is_envjavac_gcj_14_14_usable.
16637         (is_envjavac_oldgcj_14_13_usable): Renamed from
16638         is_envjavac_gcj_14_13_usable.
16639         (is_gcj_present): Update.
16640         (is_gcj_43, is_gcj43_usable): New functions.
16641         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16642         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16643         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16644         try the options -fsource and -ftarget.
16645
16646 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16647
16648         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16649         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16650         larger value.
16651
16652 2007-02-03  Jim Meyering  <jim@meyering.net>
16653
16654         Give tools a better chance to allocate space for very large buffers.
16655         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16656
16657         Make pwd and readlink work also when run with an unreadable parent dir
16658         on systems with openat support.
16659         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16660         provided getcwd function, even when we have openat support.
16661         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16662
16663 2007-02-02  Bruno Haible  <bruno@clisp.org>
16664
16665         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16666         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16667         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16668         portability problems if one of these functions is only used on specific
16669         platforms.
16670         Reported by Paul Eggert.
16671
16672 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16673
16674         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16675         is causing more trouble than it's curing.
16676         * lib/regex_internal.h (__mempcpy): Remove.
16677         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16678         (and make the code a tad smaller to boot).
16679         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16680
16681 2007-02-02  Jim Meyering  <jim@meyering.net>
16682
16683         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16684         section, not in the Makefile.am: one.
16685
16686 2007-02-02  Eric Blake  <ebb9@byu.net>
16687
16688         * lib/strchrnul.c: Always include config.h first.
16689
16690         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16691         gnulib strstr is not necessary here.
16692
16693 2007-02-02  Simon Josefsson  <simon@josefsson.org>
16694
16695         * m4/socklen.m4: Fix typo.
16696
16697 2007-02-02  Eric Blake  <ebb9@byu.net>
16698
16699         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16700         * modules/netinet_in (Makefile.am): Likewise.
16701
16702 2007-02-01  Bruno Haible  <bruno@clisp.org>
16703
16704         * lib/string_.h (GL_LINK_WARNING): New macro.
16705         (strcasecmp, strstr, strcasestr): If provided by the system,
16706         conditionally define as a macro that leads to a warning instead of to
16707         an error.
16708         (strncasecmp): Conditionally define as a macro that leads to a warning.
16709
16710 2007-02-01  Karl Berry  <karl@gnu.org>
16711
16712         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16713
16714 2007-02-01  Bruno Haible  <bruno@clisp.org>
16715
16716         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16717         renamings.
16718
16719 2007-02-01  Eric Blake  <ebb9@byu.net>
16720
16721         * modules/regex (Depends-on): Revert dependence on mempcpy.
16722         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
16723         module's definition of mempcpy.
16724         Reported by Paul Eggert.
16725
16726 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
16727
16728         * lib/string_.h: If the gnulib module XYZ is not present, undefine
16729         the symbol XYZ before redefining it.  This fixes a problem with
16730         programs that don't use XYZ, when compiled on systems that define
16731         XYZ to something else.
16732
16733 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16734
16735         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
16736         occurs when "mkdir -m foo" creates a setgid directory that is (1)
16737         writeable to group or other and (2) is intended to have a special
16738         mode bit that is set or cleared.  In such a case, the directory
16739         should be neither group- nor other-writeable until the special
16740         mode bits are right.
16741
16742 2007-01-31  Eric Blake  <ebb9@byu.net>
16743
16744         * modules/mountlist (Depends-on): Add strstr.
16745
16746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
16747         bug.
16748         * modules/string (Makefile.am): Remove redundant replacement.
16749         * modules/regex (Depends-on): Add mempcpy.
16750
16751 2007-01-31  Bruno Haible  <bruno@clisp.org>
16752
16753         New module description field 'Link'.
16754         * gnulib-tool (func_usage): Document --extract-link-directive.
16755         (sed_extract_prog): Recognize 'Link' directive.
16756         (func_get_link_directive): New function.
16757         (func_import): Show summary of link directives.
16758         Handle --extract-link-directive option.
16759         * modules/acl (Link): New section.
16760         * modules/clock-time (Link): New section.
16761         * modules/euidaccess (Link): New section.
16762         * modules/gettext (Link): New section.
16763         * modules/iconv (Link): New section.
16764         * modules/lock (Link): New section.
16765         * modules/nanosleep (Link): New section.
16766         * modules/readline (Link): New section.
16767
16768 2007-01-27  Bruno Haible  <bruno@clisp.org>
16769
16770         Enforce the use of gnulib modules for unportable <string.h> functions.
16771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
16772         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
16773         (gl_HEADER_STRING_H_BODY): Require it.
16774         * lib/string_.h: If the gnulib module XYZ is not present, redefine
16775         the symbol XYZ to one that gives a link error.
16776         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
16777         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
16778         * modules/mempcpy (configure.ac): Likewise.
16779         * modules/memrchr (configure.ac): Likewise.
16780         * modules/stpcpy (configure.ac): Likewise.
16781         * modules/stpncpy (configure.ac): Likewise.
16782         * modules/strcase (configure.ac): Likewise.
16783         * modules/strcasestr (configure.ac): Likewise.
16784         * modules/strchrnul (configure.ac): Likewise.
16785         * modules/strdup (configure.ac): Likewise.
16786         * modules/strndup (configure.ac): Likewise.
16787         * modules/strnlen (configure.ac): Likewise.
16788         * modules/strpbrk (configure.ac): Likewise.
16789         * modules/strsep (configure.ac): Likewise.
16790         * modules/strstr (configure.ac): Likewise.
16791         * modules/strtok_r (configure.ac): Likewise.
16792
16793 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
16794
16795         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
16796
16797 2007-01-30  Jim Meyering  <jim@meyering.net>
16798
16799         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
16800
16801 2007-01-29  Bruno Haible  <bruno@clisp.org>
16802
16803         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
16804         * lib/execute.c: Likewise.
16805         * lib/pipe.c: Likewise.
16806         * lib/printf-args.h: Likewise.
16807         * lib/printf-args.c: Likewise.
16808         * lib/printf-parse.c: Likewise.
16809         * lib/vasnprintf.c: Likewise.
16810
16811 2007-01-29  Eric Blake  <ebb9@byu.net>
16812
16813         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
16814         declaration.
16815
16816 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16817
16818         * lib/strptime.h (strptime): Use 'restrict' for args where
16819         POSIX requires this.
16820         * lib/strptime.c (strptime): Likewise.
16821         Change license notice from LGPL to GPL, since gnulib-tool will
16822         change this as needed.
16823         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
16824         defined.
16825         Include "strptime.h" first, to check interface.
16826         Do not #undef _LIBC and _NL_CURRENT.
16827         Do not include <stdlib.h>; no longer needed.
16828         Include "time_r.h" and declare ptime_locale_status
16829         only if _LIBC is not defined.
16830         (__P): Remove unused macro.
16831         (match_string): Bring back glibc version, but use it only if _LIBC
16832         is defined.
16833         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
16834         Remove unnecessary assertion and abort() call.
16835         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
16836         * m4/strptime.m4: Fix serial number comment.
16837         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
16838         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
16839         (Depends-on): Add time_r.
16840
16841 2007-01-29  Bruno Haible  <bruno@clisp.org>
16842
16843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16844         strptime.
16845         * modules/strptime (Depends-on): Add stdbool.
16846         * lib/strptime.h: Include <time.h> always. Add comments.
16847
16848 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16849
16850         * modules/strptime: New file.
16851         * lib/strptime.h: New file.
16852         * lib/strptime.c: New file.
16853         * m4/strptime.m4: New file.
16854
16855 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16856
16857         * MODULES.html.sh: New module mpsort.
16858         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
16859
16860         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
16861         a circularity problem with HP-UX ia64 reported by Bob Proulx in
16862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16863         All uses changed.
16864         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
16865         All uses changed.
16866         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
16867         to _Restrict_.
16868         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
16869         the parameter matches the prototype.
16870
16871 2007-01-28  Jim Meyering  <jim@meyering.net>
16872
16873         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
16874         sys/time.h here, reverting that part of the previous patch:
16875         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
16876
16877 2007-01-28  Bruno Haible  <bruno@clisp.org>
16878
16879         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
16880         value of $(SYS_TIME_H).
16881         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
16882         remove it conditionally, too. [added by Jim Meyering]
16883         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
16884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16885         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
16886         GETTIMEOFDAY_REPLACEMENT to 1.
16887
16888 2007-01-28  Bruno Haible  <bruno@clisp.org>
16889
16890         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
16891         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
16892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
16893         Set UNISTD_H instead of UNISTD_H2.
16894         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
16895
16896 2007-01-28  Bruno Haible  <bruno@clisp.org>
16897
16898         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
16899         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
16900
16901 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16902
16903         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
16904         (func_create_testdir): Ensure C locale for `grep' and `tr'
16905         character ranges.
16906         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
16907         ACLOCAL_AMFLAGS parsing state machine.
16908
16909 2007-01-27  Bruno Haible  <bruno@clisp.org>
16910
16911         * modules/unistr/base: Update.
16912
16913 2007-01-27  Bruno Haible  <bruno@clisp.org>
16914
16915         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
16916         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
16917         * modules/unistr/u32-mbtouc-unsafe: Renamed from
16918         modules/unistr/u32-mbtouc.
16919         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
16920         * lib/unistr.h: Update.
16921         * lib/linebreak.c: Update.
16922         * modules/unistr/u32-mbtouc: Renamed from
16923         modules/unistr/u32-mbtouc-safe.
16924         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
16925         * lib/unistr.h: Update.
16926         * lib/unistr/u32-to-u8.c: Update.
16927         * lib/unistr/u32-to-u16.c: Update.
16928
16929 2007-01-27  Bruno Haible  <bruno@clisp.org>
16930
16931         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
16932         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
16933         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
16934         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
16935         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
16936         * modules/unistr/u16-mbtouc-unsafe: Renamed from
16937         modules/unistr/u16-mbtouc.
16938         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
16939         * lib/unistr.h: Update.
16940         * lib/linebreak.c: Update.
16941         * modules/linebreak: Update.
16942         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
16943         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
16944         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
16945         * modules/unistr/u16-mbtouc: Renamed from
16946         modules/unistr/u16-mbtouc-safe.
16947         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
16948         * lib/unistr.h: Update.
16949         * lib/unistr/u16-to-u8.c: Update.
16950         * modules/unistr/u16-to-u8: Update.
16951         * lib/unistr/u16-to-u32.c: Update.
16952         * modules/unistr/u16-to-u32: Update.
16953
16954 2007-01-27  Bruno Haible  <bruno@clisp.org>
16955
16956         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
16957         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
16958         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
16959         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
16960         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
16961         * modules/unistr/u8-mbtouc-unsafe: Renamed from
16962         modules/unistr/u8-mbtouc.
16963         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
16964         * lib/unistr.h: Update.
16965         * lib/striconveh.c: Update.
16966         * modules/striconveh: Update.
16967         * lib/linebreak.c: Update.
16968         * modules/linebreak: Update.
16969         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
16970         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
16971         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
16972         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
16973         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
16974         * lib/unistr.h: Update.
16975         * lib/striconveh.c: Update.
16976         * modules/striconveh: Update.
16977         * lib/unistr/u8-to-u16.c: Update.
16978         * modules/unistr/u8-to-u16: Update.
16979         * lib/unistr/u8-to-u32.c: Update.
16980         * modules/unistr/u8-to-u32: Update.
16981
16982 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16983
16984         Sync from Libtool.
16985         * lib/argz.c: Do not include strings.h nor memory.h, include
16986         string.h unconditionally.  Patch by Simon Josefsson.
16987
16988 2007-01-27  Bruno Haible  <bruno@clisp.org>
16989
16990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
16991         from gl_HEADER_STRING_H_BODY.
16992         (gl_HEADER_STRING_H_BODY): Require it.
16993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
16994         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
16995         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
16996         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
16997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16998         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
16999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17000         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17001         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
17002         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17003         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17004         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
17005         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17006         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17007         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
17008
17009 2007-01-27  Bruno Haible  <bruno@clisp.org>
17010
17011         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
17012         check_PROGRAMS into noinst_PROGRAMS.
17013         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
17014         check_PROGRAMS in this case.
17015         (func_import): Set for_test to false.
17016         (func_create_testdir): Set for_test to true.
17017
17018 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17019             Bruno Haible  <bruno@clisp.org>
17020
17021         * modules/strcasestr (Files): Remove lib/strcasestr.h.
17022         (Depends-on): Add string.
17023         (Includes): Use <string.h> instead of strcasestr.h.
17024         * modules/string (Makefile.am): Also substitute the value of
17025         REPLACE_STRCASESTR.
17026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
17027         assume strcasestr is declared in <string.h> not <strings.h>. Also
17028         set REPLACE_STRCASESTR.
17029         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
17030         REPLACE_STRCASESTR.
17031         * lib/strcasestr.h: Remove file.
17032         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
17033         * lib/string_.h (strcasestr): New declaration.
17034
17035 2007-01-27  Bruno Haible  <bruno@clisp.org>
17036
17037         * lib/string_.h: Use 'extern'.
17038
17039 2007-01-27  Jim Meyering  <jim@meyering.net>
17040
17041         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
17042         of set-but-not-used local, "q".
17043
17044         * lib/mempcpy.c: Include <config.h> before <string.h>.
17045         This fixes a compilation error on HP-UX, due to the system's
17046         "restrict"-using mempcpy prototype.
17047
17048 2007-01-26  Bruno Haible  <bruno@clisp.org>
17049
17050         Small optimization.
17051         * lib/javacomp.c: Include c-strstr.h.
17052          (is_envjavac_gcj): Use c_strstr instead of strstr.
17053         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
17054
17055 2007-01-26  Bruno Haible  <bruno@clisp.org>
17056
17057         * MODULES.html.sh (Unicode string functions): Add the new modules.
17058
17059         * modules/uniconv/u32-strconv-to-locale: New file.
17060         * lib/uniconv/u32-strconv-to-locale.c: New file.
17061
17062         * modules/uniconv/u16-strconv-to-locale: New file.
17063         * lib/uniconv/u16-strconv-to-locale.c: New file.
17064
17065         * modules/uniconv/u8-strconv-to-locale: New file.
17066         * lib/uniconv/u8-strconv-to-locale.c: New file.
17067
17068         * modules/uniconv/u32-strconv-from-locale: New file.
17069         * lib/uniconv/u32-strconv-from-locale.c: New file.
17070
17071         * modules/uniconv/u16-strconv-from-locale: New file.
17072         * lib/uniconv/u16-strconv-from-locale.c: New file.
17073
17074         * modules/uniconv/u8-strconv-from-locale: New file.
17075         * lib/uniconv/u8-strconv-from-locale.c: New file.
17076
17077         * modules/uniconv/u32-strconv-to-enc: New file.
17078         * lib/uniconv/u32-strconv-to-enc.c: New file.
17079         * modules/uniconv/u32-strconv-to-enc-tests: New file.
17080         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
17081
17082         * modules/uniconv/u16-strconv-to-enc: New file.
17083         * lib/uniconv/u16-strconv-to-enc.c: New file.
17084         * lib/uniconv/u-strconv-to-enc.h: New file.
17085         * modules/uniconv/u16-strconv-to-enc-tests: New file.
17086         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
17087
17088         * modules/uniconv/u8-strconv-to-enc: New file.
17089         * lib/uniconv/u8-strconv-to-enc.c: New file.
17090         * modules/uniconv/u8-strconv-to-enc-tests: New file.
17091         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
17092
17093         * modules/uniconv/u32-strconv-from-enc: New file.
17094         * lib/uniconv/u32-strconv-from-enc.c: New file.
17095         * modules/uniconv/u32-strconv-from-enc-tests: New file.
17096         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
17097
17098         * modules/uniconv/u16-strconv-from-enc: New file.
17099         * lib/uniconv/u16-strconv-from-enc.c: New file.
17100         * modules/uniconv/u16-strconv-from-enc-tests: New file.
17101         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
17102
17103         * modules/uniconv/u8-strconv-from-enc: New file.
17104         * lib/uniconv/u8-strconv-from-enc.c: New file.
17105         * lib/uniconv/u-strconv-from-enc.h: New file.
17106         * modules/uniconv/u8-strconv-from-enc-tests: New file.
17107         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
17108
17109         * modules/uniconv/u32-conv-from-enc: New file.
17110         * lib/uniconv/u32-conv-from-enc.c: New file.
17111         * modules/uniconv/u32-conv-from-enc-tests: New file.
17112         * tests/uniconv/test-u32-conv-from-enc.c: New file.
17113
17114         * modules/uniconv/u16-conv-from-enc: New file.
17115         * lib/uniconv/u16-conv-from-enc.c: New file.
17116         * lib/uniconv/u-conv-from-enc.h: New file.
17117         * modules/uniconv/u16-conv-from-enc-tests: New file.
17118         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17119
17120         * modules/uniconv/u8-conv-from-enc: New file.
17121         * lib/uniconv/u8-conv-from-enc.c: New file.
17122         * modules/uniconv/u8-conv-from-enc-tests: New file.
17123         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17124
17125         * modules/uniconv/base: New file.
17126         * lib/uniconv.h: New file.
17127
17128 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17129
17130         * doc/gnulib-tool.texi (Initial import): Update to match current
17131         behavior with strdup module.
17132         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17133         * lib/memmem.h: Remove; all uses removed.  This is now done
17134         by <string.h>.
17135         * lib/mempcpy.h: Likewise.
17136         * lib/memrchr.h: Likewise.
17137         * lib/stpcpy.h: Likewise.
17138         * lib/stpncpy.h: Likewise.
17139         * lib/strcase.h: Likewise.
17140         * lib/strchrnul.h: Likewise.
17141         * lib/strdup.h: Likewise.
17142         * lib/strndup.h: Likewise.
17143         * lib/strnlen.h: Likewise.
17144         * lib/strpbrk.h: Likewise.
17145         * lib/strsep.h: Likewise.
17146         * lib/strstr.h: Likewise.
17147         * lib/strtok_r.h: Likewise.
17148         * lib/string_.h: New file.
17149         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17150         Rely on <string.h> instead.
17151         * lib/canon-host.c: Likewise.
17152         * lib/chdir-long.c: Likewise.
17153         * lib/concatpath.c: Likewise.
17154         * lib/exclude.c: Likewise.
17155         * lib/fchdir.c: Likewise.
17156         * lib/getaddrinfo.c: Likewise.
17157         * lib/getcwd.c: Likewise.
17158         * lib/getsubopt.c: Likewise.
17159         * lib/glob.c: Likewise.
17160         * lib/hard-locale.c: Likewise.
17161         * lib/iconvme.c: Likewise.
17162         * lib/javacomp.c: Likewise.
17163         * lib/mempcpy.c: Likewise.
17164         * lib/memrchr.c: Likewise.
17165         * lib/regex_internal.h: Likewise.
17166         * lib/stpncpy.c: Likewise.
17167         * lib/strcasecmp.c: Likewise.
17168         * lib/strchrnul.c: Likewise.
17169         * lib/strdup.c: Likewise.
17170         * lib/striconv.c: Likewise.
17171         * lib/striconveh.c: Likewise.
17172         * lib/striconveha.c: Likewise.
17173         * lib/strncasecmp.c: Likewise.
17174         * lib/strndup.c: Likewise.
17175         * lib/strnlen.c: Likewise.
17176         * lib/strsep.c: Likewise.
17177         * lib/strstr.c: Likewise.
17178         * lib/strtok_r.c: Likewise.
17179         * lib/userspec.c: Likewise.
17180         * lib/w32spawn.h: Likewise.
17181         * lib/xstrndup.c: Likewise.
17182         * lib/mountlist.c (strstr): Remove decl.
17183         * m4/string_h.m4: New file.
17184         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17185         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17186         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17187         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17188         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17189         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17190         Set REPLACE_STRCASECMP if necessary.
17191         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17192         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17193         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17195         HAVE_DECL_STRDUP if necessary.
17196         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17197         since gl_FUNC_STRNDUP does that now.
17198         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17199         Check for decl here...
17200         (gl_PREREQ_STRNLEN): ... not here.
17201         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17202         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17203         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17204         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17205         necessary.
17206         * modules/string: New file.
17207         * modules/memmem (Files): Remove special-purpose include file.
17208         (Depends-on): Add string.
17209         (Include): Include <string.h>, not the removed file.
17210         * modules/mempcpy: Likewise.
17211         * modules/memrchr: Likewise.
17212         * modules/stpcpy: Likewise.
17213         * modules/stpncpy: Likewise.
17214         * modules/strcase: Likewise.
17215         * modules/strchrnul: Likewise.
17216         * modules/strdup: Likewise.
17217         * modules/strndup: Likewise.
17218         * modules/strnlen: Likewise.
17219         * modules/strpbrk: Likewise.
17220         * modules/strsep: Likewise.
17221         * modules/strstr: Likewise.
17222         * modules/strtok_r: Likewise.
17223         * tests/test-dirname.c: Don't include "strdup.h", since
17224         <string.h> now suffices.
17225         * tests/test-memmem.c: Don't include "memmem.h", since
17226         <string.h> now suffices.
17227
17228 2007-01-25  Bruno Haible  <bruno@clisp.org>
17229
17230         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17231         *resultp is 0.
17232
17233         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17234         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17235         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17236         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17237
17238         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17239         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17240         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17241         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17242         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17243         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17244
17245 2007-01-24  Bruno Haible  <bruno@clisp.org>
17246
17247         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17249         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17250         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17251         gl_FUNC_FTS_CORE.
17252         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17253         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17254         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17255         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17256         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17257         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17258         gl_FUNC_FCHOWNAT.
17259         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17260         gl_FUNC_STRFTIME.
17261         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17262         Reported by Ralf Wildenhues.
17263
17264 2007-01-24  Bruno Haible  <bruno@clisp.org>
17265
17266         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17267         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17268         gl_GETADDRINFO.
17269         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17270         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17271         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17272
17273 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17274
17275         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17276         Don't use 'exit'; just return from 'main'.
17277         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17278
17279         * lib/fnmatch_.h: Readjust white space and comments to match
17280         glibc, to avoid spurious diffs.
17281
17282 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17283
17284         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17285         2004-12-01 change by Jakub Jelinek, since this code won't compile
17286         if !LIBC.  Problem reported by Bob Proulx.
17287
17288 2007-01-23  Bruno Haible  <bruno@clisp.org>
17289
17290         * lib/striconveh.c: Include c-strcaseeq.h.
17291         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17292         * modules/striconveh (Depends-on): Add c-strcaseeq.
17293
17294 2007-01-23  Bruno Haible  <bruno@clisp.org>
17295
17296         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17297
17298         * modules/c-strcaseeq: New file.
17299         * lib/c-strcaseeq.h: New file.
17300
17301         * modules/streq: New file.
17302         * lib/streq.h: New file.
17303
17304 2007-01-23  Bruno Haible  <bruno@clisp.org>
17305
17306         * modules/striconveha-tests: New file.
17307         * tests/test-striconveha.c: New file.
17308
17309         * lib/striconveha.h: Include <stdbool.h>.
17310         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17311         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17312         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17313         (mem_iconveha): New function.
17314         (str_iconveha_notranslit): Renamed from str_iconveha.
17315         (str_iconveha): New function.
17316         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17317         c-strcase.
17318
17319 2007-01-23  Bruno Haible  <bruno@clisp.org>
17320
17321         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17322         encodings without forgiving before trying any encoding with handler.
17323         (str_iconveha): Try all encodings without forgiving before trying any
17324         encoding with handler.
17325
17326 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17327
17328         Import the following changes from libc.
17329
17330         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17331
17332         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17333
17334         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17335
17336         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17337         normal_bracket label.
17338
17339         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17340
17341         [BZ #361]
17342         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17343         to normal_bracket after fetching the next character.
17344
17345 2007-01-22  Bruno Haible  <bruno@clisp.org>
17346
17347         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17348         argument.
17349         * lib/striconveh.c (iconv_carefully_1): New function.
17350         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17351         argument.
17352         (str_cd_iconveh): Update.
17353         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17354         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17355         * tests/test-striconveh.c (MAGIC): New macro.
17356         (new_offsets): New function.
17357         (main): Test call with and without offsets.
17358
17359 2007-01-22  Bruno Haible  <bruno@clisp.org>
17360
17361         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17362         * modules/sys_select (Makefile.am): Likewise.
17363         * modules/sys_socket (Makefile.am): Likewise.
17364         * modules/sys_time (Makefile.am): Likewise.
17365
17366 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17367
17368         * modules/gettimeofday (License): Change from GPL to LGPL, since
17369         gettimeofday is a library function.
17370
17371 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17372
17373         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17374
17375 2007-01-21  Bruno Haible  <bruno@clisp.org>
17376
17377         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17378
17379 2007-01-21  Bruno Haible  <bruno@clisp.org>
17380
17381         * modules/striconveha: New file.
17382         * lib/striconveha.h: New file.
17383         * lib/striconveha.c: New file.
17384         * MODULES.html.sh (Internationalization functions): Add striconveha.
17385         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17386         string.
17387         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17388
17389 2007-01-21  Bruno Haible  <bruno@clisp.org>
17390
17391         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17392         * lib/striconveh.c (str_iconveh): Likewise.
17393
17394 2007-01-21  Bruno Haible  <bruno@clisp.org>
17395
17396         * lib/striconveh.h (mem_iconveh): New declaration.
17397         * lib/striconveh.c (mem_iconveh): New function.
17398         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17399
17400 2007-01-21  Bruno Haible  <bruno@clisp.org>
17401
17402         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17403
17404         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17405         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17406         original result buffer.
17407         (str_cd_iconveh): Update.
17408         * tests/test-striconveh.c (main): Update.
17409
17410         * lib/striconv.h (mem_cd_iconv): Change specification.
17411         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17412         result buffer.
17413         (str_cd_iconv): Update.
17414         * tests/test-striconv.c (main): Update.
17415
17416 2007-01-21  Bruno Haible  <bruno@clisp.org>
17417
17418         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17419
17420 2007-01-20  Jim Meyering  <jim@meyering.net>
17421
17422         * lib/userspec.c (parse_with_separator): If a user or group string
17423         starts with "+", skip the corresponding name-to-ID look-up, since
17424         such a look-up must fail: user and group names may not include "+".
17425
17426 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17427
17428         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17429         since we now assume the sys_time module.
17430         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17431         check for sys/time.h; no longer needed.
17432         * modules/poll (Depends-on): Depend on sys_time.
17433
17434 2007-01-18  Bruno Haible  <bruno@clisp.org>
17435
17436         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17437         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17438
17439         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17440         gettimeofday.
17441
17442         * tests/test-gettimeofday.c: Include <time.h>.
17443         (dummy): Remove variable.
17444
17445         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17446         gl_HEADER_SYS_TIME_H.
17447         (gl_HEADER_SYS_TIME_H): New macro.
17448
17449         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17450         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17452         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17453         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17455         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17456         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17457         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17458         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17459         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17460
17461         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17462         last change; it caused a compilation error when cross-compiling to
17463         Cygwin.
17464
17465 2007-01-18  Jim Meyering  <jim@meyering.net>
17466
17467         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17468         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17469         than the race-prone "test -d sys || mkdir sys".
17470         (configure.ac): Use AC_PROG_MKDIR_P.
17471         * modules/sys_select: Likewise.
17472         * modules/sys_socket: Likewise.
17473         * modules/sys_time: Likewise.
17474
17475 2007-01-18  Eric Blake  <ebb9@byu.net>
17476
17477         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17478         replace gettimeofday.
17479         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17480         name, to avoid infinite recursion.
17481
17482 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17483
17484         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17485         module sys_time.
17486         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17487         assume timespec.h defines struct timeval.
17488         * lib/settime.c: Likewise.
17489         * lib/utimens.c: Likewise.
17490         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17491         since we now assume the gettimeofday module.
17492         * lib/tempname.c (__gen_tempname): Likewise.
17493         * lib/gettimeofday.h: Remove.
17494         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17495         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17496         Include <time.h>, for 'time()'.
17497         (localtime_buffer_addr): Also use this workaround if
17498         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17499         to simplify the uses.  All uses changed.
17500         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17501         that #undef is inside {}, and 'const' follows type name consistently.
17502         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17503         (gettimeofday): Do not use the maximum possible value for
17504         tv->tv_usec, since that might break usages other than ls.c.
17505         Instead, we'll leave ls.c alone.  This undoes today's patch
17506         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17507         we've never observed the problem but might as well keep the
17508         canary.
17509         * lib/nanosleep.c: Include timespec.h first, for interface check.
17510         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17511         now assume the sys_time module.
17512         * lib/tempname.c: Likewise.
17513         * lib/timespec.h: Likewise.
17514         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17515         needed.
17516         * lib/strftime.c: Likewise.
17517         * lib/timespec.h: Likewise.
17518         * lib/posixtm.c: Include posixtm.h first, for interface check.
17519         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17520         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17521         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17522         * lib/sys_time_.h: New file.
17523         * lib/timespec.h (struct timespec): Use long int, not long.
17524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17525         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17526         Remove obsolescent call to AC_HEADER_TIME.
17527         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17529         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17530         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17531         Likewise.
17532         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17533         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17535         into the sys_time module.  Check for gettimeofday just once.
17536         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17537         for gettimeofday signature to just check the signature.  Merely
17538         compile it, since linking doesn't test signature.  Improve test for
17539         whether gettimeofday.o is actually needed.
17540         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17541         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17542         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17543         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17544         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17545         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17546         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17547         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17548         than worrying about sys/time.h.
17549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17550         Don't bother worrying about TIME_WITH_SYS_TIME.
17551         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17552         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17553         * m4/sys_time_h.m4: New file.
17554         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17555         Don't include sys/time.h.  Return from main rather than exiting.
17556         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17557         all uses changed.
17558         * modules/gethrxtime (Depends-on): Add sys_time.
17559         * modules/gettime (Depends-on): Likewise.
17560         * modules/gettimeofday (Depends-on): Likewise.
17561         * modules/nanosleep (Depends-on): Likewise.
17562         * modules/settime (Depends-on): Likewise.
17563         * modules/tempname (Depends-on): Likewise.
17564         * modules/utimens (Depends-on): Likewise.
17565         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17566         (Include:) Change back to <sys/time.h>.
17567         (Maintainer:) Add self.
17568         * modules/sys_time: New file.
17569         * modules/tempname (Depends-on): Add gettimeofday.
17570         * tests/test-gettimeofday.c: Include <sys/time.h>
17571         rather than gettimeofday.h.
17572
17573 2007-01-17  Bruno Haible  <bruno@clisp.org>
17574
17575         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17576         the license default to GPL.
17577         (func_create_testdir): Don't complain if a module is LGPL and its
17578         tests module depends on GPLed modules.
17579
17580 2007-01-17  Bruno Haible  <bruno@clisp.org>
17581
17582         * lib/gettimeofday.c (gettimeofday): Add code for the case
17583         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17584         maximum possible value for tv->tv_usec, rather than the minimum one.
17585
17586 2005-10-08  Martin Lambers  <marlam@marlam.de>
17587 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17588 2007-01-16  Bruno Haible  <bruno@clisp.org>
17589
17590         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17591         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17592         gl_FUNC_GETTIMEOFDAY.
17593         (Include): Add gettimeofday.h.
17594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17595         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17596         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17597         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17598         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17599         * lib/gettimeofday.h: New file.
17600         * lib/gettimeofday.c: Include <sys/timeb.h>.
17601         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17602         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17603         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17604         fall back on time().
17605
17606         * tests/test-gettimeofday.c: New file.
17607         * modules/gettimeofday-tests: New file.
17608
17609 2007-01-16  Eric Blake  <ebb9@byu.net>
17610
17611         * modules/fnmatch (Depends-on): Depend on wchar.
17612         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17613         * m4/fnmatch.m4: Likewise.
17614         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17615         * m4/mbchar.m4: Likewise.
17616         * modules/mbswidth (Depends-on): Depend on wchar.
17617         * lib/mbswidth.c: Assume <wchar.h>.
17618         * m4/mbswidth.m4: Likewise.
17619         * modules/quotearg (Depends-on): Depend on wchar.
17620         * lib/quotearg.c: Assume <wchar.h>.
17621         * m4/quotearg.m4: Likewise.
17622         * modules/regex (Depends-on): Depend on wchar.
17623         * lib/regex_internal.h: Assume <wchar.h>.
17624         * m4/regex.m4: Likewise.
17625         * modules/stdint (Depends-on): Depend on wchar.
17626         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17627         * m4/stdint.m4: Likewise.
17628         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17629         * modules/strftime (Depends-on): Depend on wchar.
17630         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17631         * modules/strtol (Depends-on): Depend on wchar.
17632         * lib/strtol.c: Assume <wchar.h>.
17633         * modules/wcwidth (Depends-on): Depend on wchar.
17634         * lib/wcwidth.h: Assume <wchar.h>.
17635         * m4/wcwidth.m4: Likewise.
17636
17637 2007-01-16  Bruno Haible  <bruno@clisp.org>
17638
17639         * modules/csharpexec-script: New, created from...
17640         * modules/csharpexec: ... this.
17641
17642 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17643
17644         * modules/javaexec-script: New, created from...
17645         * modules/javaexec: ... this.
17646
17647 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17648
17649         * modules/poll (Dependencies): Add sys_select.
17650
17651 2007-01-15  Jim Meyering  <jim@meyering.net>
17652
17653         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17654         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17655         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17656         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17657
17658 2007-01-15  Bruno Haible  <bruno@clisp.org>
17659
17660         * modules/striconveh: New file.
17661         * lib/striconveh.h: New file.
17662         * lib/striconveh.c: New file.
17663         * MODULES.html.sh (Internationalization functions): Add striconveh.
17664
17665         * modules/striconveh-tests: New file.
17666         * tests/test-striconveh.c: New file.
17667
17668 2007-01-15  Bruno Haible  <bruno@clisp.org>
17669
17670         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17671         not from GNU libiconv or GNU libc.
17672
17673 2007-01-15  Bruno Haible  <bruno@clisp.org>
17674
17675         * doc/gnulib-intro.texi (Copyright): Explain the different license
17676         terms for module descriptions, autoconf macros, tests, documentation.
17677
17678 2007-01-14  Bruno Haible  <bruno@clisp.org>
17679
17680         * modules/striconv-tests: New file.
17681         * tests/test-striconv.c: New file.
17682
17683 2007-01-14  Bruno Haible  <bruno@clisp.org>
17684
17685         * modules/iconv-tests: New file.
17686         * tests/test-iconv.c: New file.
17687
17688 2007-01-14  Bruno Haible  <bruno@clisp.org>
17689
17690         * gnulib-tool (func_get_license): For test modules, use the license of
17691         the main module.
17692
17693 2007-01-14  Bruno Haible  <bruno@clisp.org>
17694
17695         * modules/iconv (Include): Clarify that <iconv.h> can only be included
17696         if iconv is found to exist.
17697
17698 2007-01-14  Bruno Haible  <bruno@clisp.org>
17699
17700         * modules/c-ctype-tests: New file.
17701         * tests/test-c-ctype.c: New file.
17702
17703 2007-01-14  Bruno Haible  <bruno@clisp.org>
17704
17705         * modules/binary-io-tests: New file.
17706         * tests/test-binary-io.sh: New file.
17707         * tests/test-binary-io.c: New file.
17708
17709 2007-01-14  Bruno Haible  <bruno@clisp.org>
17710
17711         * modules/array-oset-tests: New file.
17712         * tests/test-array_oset.c: New file.
17713
17714 2007-01-14  Bruno Haible  <bruno@clisp.org>
17715
17716         * modules/array-list-tests: New file.
17717         * tests/test-array_list.c: New file.
17718
17719 2007-01-14  Bruno Haible  <bruno@clisp.org>
17720
17721         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
17722         and make.
17723         Reported by Simon Josefsson in
17724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
17725
17726 2007-01-14  Bruno Haible  <bruno@clisp.org>
17727
17728         * modules/allocsa-tests: New file.
17729         * tests/test-allocsa.c: New file.
17730
17731 2007-01-14  Bruno Haible  <bruno@clisp.org>
17732
17733         * modules/fchdir (Depends-on): Add absolute-header.
17734         * modules/unistd (Depends-on): Likewise.
17735
17736 2006-12-30  Bruno Haible  <bruno@clisp.org>
17737
17738         * modules/fchdir: New file.
17739         * modules/unistd (Files): Add lib/unistd_.h.
17740         (Makefile.am): Generate unistd.h from unistd_.h.
17741         * lib/fchdir.c: New file.
17742         * lib/dirent_.h: New file.
17743         * lib/unistd_.h: New file.
17744         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
17745         * m4/fchdir.m4: New file.
17746         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
17747         (gl_HEADER_UNISTD): Invoke it.
17748         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
17749         function.
17750         * lib/backupfile.c (opendir, closedir): Undefine.
17751         * lib/chown.c (open, close): Undefine.
17752         * lib/clean-temp.c (open, close): Undefine.
17753         * lib/copy-file.c (open, close): Undefine.
17754         * lib/execute.c (open, close): Undefine.
17755         * lib/fsusage.c (open, close): Undefine.
17756         * lib/gc-gnulib.c (open, close): Undefine.
17757         * lib/getcwd.c (opendir, closedir): Undefine.
17758         * lib/glob.c (opendir, closedir): Undefine.
17759         * lib/javacomp.c (open, close): Undefine.
17760         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
17761         * lib/openat-proc.c (open, close): Undefine.
17762         * lib/pagealign_alloc.c (open, close): Undefine.
17763         * lib/pipe.c (open, close): Undefine.
17764         * lib/progreloc.c (open, close): Undefine.
17765         * lib/savedir.c (opendir, closedir): Undefine.
17766         * lib/utime.c (open, close): Undefine.
17767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
17768
17769 2007-01-10  Bruno Haible  <bruno@clisp.org>
17770
17771         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
17772
17773 2007-01-12  Eric Blake  <ebb9@byu.net>
17774
17775         Provide a robust <wchar.h>.  Further simplifications are now
17776         possible in other modules, but not included here.
17777         * modules/wchar: New module.
17778         * m4/wchar.m4: New file.
17779         * lib/wchar_.h: Likewise.
17780         * modules/mbchar (Depends-on): Depend on wchar, as the first use
17781         of the new module.
17782         * MODULES.html.sh (Extended multibyte and wide character utilities):
17783         New section.
17784
17785 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17786
17787         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
17788         to a reasonable default for memory allocation.
17789         (xreadlink): Don't allocate a huge buffer, to work around a buggy
17790         file system that reports garbage st_size values for symlinks.
17791         Problem reported by Liyang Hu.
17792
17793 2007-01-11  Simon Josefsson  <simon@josefsson.org>
17794
17795         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
17796         Emacs .#* auto-save files).
17797
17798 2007-01-11  Bruno Haible  <bruno@clisp.org>
17799
17800         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
17801         directory.
17802
17803 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17804
17805         Use @...@ consistently in lib/wctype_.h.
17806         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
17807         on it being set to 1 or 0.
17808         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
17809         go back to AC_SUBSTing it.
17810         * modules/wctype (Makefile.am): Undo previous change.
17811
17812 2007-01-10  Eric Blake  <ebb9@byu.net>
17813
17814         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
17815         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
17816         * modules/wctype (Makefile.am): Likewise.
17817         Reported by Chris McGuire.
17818
17819 2007-01-10  Jim Meyering  <jim@meyering.net>
17820
17821         fts.c: a small readability/maintainability improvement
17822         * lib/fts.c (fts_read): Make this code slightly more readable and
17823         maintainable by hoisting the "sp->fts_cur = p" assignments to
17824         immediately follow the statements that set P.  Derived from
17825         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
17826
17827 2007-01-10  Eric Blake  <ebb9@byu.net>
17828
17829         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
17830         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
17831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17832         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17833         Reported by Chris McGuire.
17834
17835 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17836
17837         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
17838         in sed script.
17839
17840 2007-01-09  Bruno Haible  <bruno@clisp.org>
17841
17842         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
17843         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
17844         variables.
17845         (func_module): Use them.
17846
17847 2007-01-09  Bruno Haible  <bruno@clisp.org>
17848
17849         * modules/unistr/base: New file.
17850         * lib/unistr.h: New file.
17851
17852         * modules/unistr/u8-to-u16: New file.
17853         * lib/unistr/u8-to-u16.c: New file.
17854
17855         * modules/unistr/u8-to-u32: New file.
17856         * lib/unistr/u8-to-u32.c: New file.
17857
17858         * modules/unistr/u16-to-u8: New file.
17859         * lib/unistr/u16-to-u8.c: New file.
17860
17861         * modules/unistr/u16-to-u32: New file.
17862         * lib/unistr/u16-to-u32.c: New file.
17863
17864         * modules/unistr/u32-to-u8: New file.
17865         * lib/unistr/u32-to-u8.c: New file.
17866
17867         * modules/unistr/u32-to-u16: New file.
17868         * lib/unistr/u32-to-u16.c: New file.
17869
17870         * modules/unistr/u8-check: New file.
17871         * modules/unistr/u16-check: New file.
17872         * modules/unistr/u32-check: New file.
17873         * lib/unistr/u8-check.c: New file.
17874         * lib/unistr/u16-check.c: New file.
17875         * lib/unistr/u32-check.c: New file.
17876
17877         * modules/unistr/u8-chr: New file.
17878         * modules/unistr/u16-chr: New file.
17879         * modules/unistr/u32-chr: New file.
17880         * lib/unistr/u8-chr.c: New file.
17881         * lib/unistr/u16-chr.c: New file.
17882         * lib/unistr/u32-chr.c: New file.
17883
17884         * modules/unistr/u8-cmp: New file.
17885         * modules/unistr/u16-cmp: New file.
17886         * modules/unistr/u32-cmp: New file.
17887         * lib/unistr/u8-cmp.c: New file.
17888         * lib/unistr/u16-cmp.c: New file.
17889         * lib/unistr/u32-cmp.c: New file.
17890
17891         * modules/unistr/u8-cpy: New file.
17892         * modules/unistr/u16-cpy: New file.
17893         * modules/unistr/u32-cpy: New file.
17894         * lib/unistr/u8-cpy.c: New file.
17895         * lib/unistr/u16-cpy.c: New file.
17896         * lib/unistr/u32-cpy.c: New file.
17897         * lib/unistr/u-cpy.h: New file.
17898
17899         * modules/unistr/u8-cpy-alloc: New file.
17900         * modules/unistr/u16-cpy-alloc: New file.
17901         * modules/unistr/u32-cpy-alloc: New file.
17902         * lib/unistr/u8-cpy-alloc.c: New file.
17903         * lib/unistr/u16-cpy-alloc.c: New file.
17904         * lib/unistr/u32-cpy-alloc.c: New file.
17905         * lib/unistr/u-cpy-alloc.h: New file.
17906
17907         * modules/unistr/u8-endswith: New file.
17908         * modules/unistr/u16-endswith: New file.
17909         * modules/unistr/u32-endswith: New file.
17910         * lib/unistr/u8-endswith.c: New file.
17911         * lib/unistr/u16-endswith.c: New file.
17912         * lib/unistr/u32-endswith.c: New file.
17913         * lib/unistr/u-endswith.h: New file.
17914
17915         * modules/unistr/u8-mblen: New file.
17916         * modules/unistr/u16-mblen: New file.
17917         * modules/unistr/u32-mblen: New file.
17918         * lib/unistr/u8-mblen.c: New file.
17919         * lib/unistr/u16-mblen.c: New file.
17920         * lib/unistr/u32-mblen.c: New file.
17921
17922         * modules/unistr/u8-mbtouc: New file.
17923         * modules/unistr/u16-mbtouc: New file.
17924         * modules/unistr/u32-mbtouc: New file.
17925         * lib/unistr/u8-mbtouc.c: New file.
17926         * lib/unistr/u16-mbtouc.c: New file.
17927         * lib/unistr/u32-mbtouc.c: New file.
17928
17929         * modules/unistr/u8-mbtouc-safe: New file.
17930         * modules/unistr/u16-mbtouc-safe: New file.
17931         * modules/unistr/u32-mbtouc-safe: New file.
17932         * lib/unistr/u8-mbtouc-safe.c: New file.
17933         * lib/unistr/u16-mbtouc-safe.c: New file.
17934         * lib/unistr/u32-mbtouc-safe.c: New file.
17935
17936         * modules/unistr/u8-move: New file.
17937         * modules/unistr/u16-move: New file.
17938         * modules/unistr/u32-move: New file.
17939         * lib/unistr/u8-move.c: New file.
17940         * lib/unistr/u16-move.c: New file.
17941         * lib/unistr/u32-move.c: New file.
17942         * lib/unistr/u-move.h: New file.
17943
17944         * modules/unistr/u8-next: New file.
17945         * modules/unistr/u16-next: New file.
17946         * modules/unistr/u32-next: New file.
17947         * lib/unistr/u8-next.c: New file.
17948         * lib/unistr/u16-next.c: New file.
17949         * lib/unistr/u32-next.c: New file.
17950
17951         * modules/unistr/u8-prev: New file.
17952         * modules/unistr/u16-prev: New file.
17953         * modules/unistr/u32-prev: New file.
17954         * lib/unistr/u8-prev.c: New file.
17955         * lib/unistr/u16-prev.c: New file.
17956         * lib/unistr/u32-prev.c: New file.
17957
17958         * modules/unistr/u8-set: New file.
17959         * modules/unistr/u16-set: New file.
17960         * modules/unistr/u32-set: New file.
17961         * lib/unistr/u8-set.c: New file.
17962         * lib/unistr/u16-set.c: New file.
17963         * lib/unistr/u32-set.c: New file.
17964         * lib/unistr/u-set.h: New file.
17965
17966         * modules/unistr/u8-startswith: New file.
17967         * modules/unistr/u16-startswith: New file.
17968         * modules/unistr/u32-startswith: New file.
17969         * lib/unistr/u8-startswith.c: New file.
17970         * lib/unistr/u16-startswith.c: New file.
17971         * lib/unistr/u32-startswith.c: New file.
17972         * lib/unistr/u-startswith.h: New file.
17973
17974         * modules/unistr/u8-stpcpy: New file.
17975         * modules/unistr/u16-stpcpy: New file.
17976         * modules/unistr/u32-stpcpy: New file.
17977         * lib/unistr/u8-stpcpy.c: New file.
17978         * lib/unistr/u16-stpcpy.c: New file.
17979         * lib/unistr/u32-stpcpy.c: New file.
17980         * lib/unistr/u-stpcpy.h: New file.
17981
17982         * modules/unistr/u8-stpncpy: New file.
17983         * modules/unistr/u16-stpncpy: New file.
17984         * modules/unistr/u32-stpncpy: New file.
17985         * lib/unistr/u8-stpncpy.c: New file.
17986         * lib/unistr/u16-stpncpy.c: New file.
17987         * lib/unistr/u32-stpncpy.c: New file.
17988         * lib/unistr/u-stpncpy.h: New file.
17989
17990         * modules/unistr/u8-strcat: New file.
17991         * modules/unistr/u16-strcat: New file.
17992         * modules/unistr/u32-strcat: New file.
17993         * lib/unistr/u8-strcat.c: New file.
17994         * lib/unistr/u16-strcat.c: New file.
17995         * lib/unistr/u32-strcat.c: New file.
17996         * lib/unistr/u-strcat.h: New file.
17997
17998         * modules/unistr/u8-strchr: New file.
17999         * modules/unistr/u16-strchr: New file.
18000         * modules/unistr/u32-strchr: New file.
18001         * lib/unistr/u8-strchr.c: New file.
18002         * lib/unistr/u16-strchr.c: New file.
18003         * lib/unistr/u32-strchr.c: New file.
18004
18005         * modules/unistr/u8-strcmp: New file.
18006         * modules/unistr/u16-strcmp: New file.
18007         * modules/unistr/u32-strcmp: New file.
18008         * lib/unistr/u8-strcmp.c: New file.
18009         * lib/unistr/u16-strcmp.c: New file.
18010         * lib/unistr/u32-strcmp.c: New file.
18011
18012         * modules/unistr/u8-strcpy: New file.
18013         * modules/unistr/u16-strcpy: New file.
18014         * modules/unistr/u32-strcpy: New file.
18015         * lib/unistr/u8-strcpy.c: New file.
18016         * lib/unistr/u16-strcpy.c: New file.
18017         * lib/unistr/u32-strcpy.c: New file.
18018         * lib/unistr/u-strcpy.h: New file.
18019
18020         * modules/unistr/u8-strcspn: New file.
18021         * modules/unistr/u16-strcspn: New file.
18022         * modules/unistr/u32-strcspn: New file.
18023         * lib/unistr/u8-strcspn.c: New file.
18024         * lib/unistr/u16-strcspn.c: New file.
18025         * lib/unistr/u32-strcspn.c: New file.
18026         * lib/unistr/u-strcspn.h: New file.
18027
18028         * modules/unistr/u8-strdup: New file.
18029         * modules/unistr/u16-strdup: New file.
18030         * modules/unistr/u32-strdup: New file.
18031         * lib/unistr/u8-strdup.c: New file.
18032         * lib/unistr/u16-strdup.c: New file.
18033         * lib/unistr/u32-strdup.c: New file.
18034         * lib/unistr/u-strdup.h: New file.
18035
18036         * modules/unistr/u8-strlen: New file.
18037         * modules/unistr/u16-strlen: New file.
18038         * modules/unistr/u32-strlen: New file.
18039         * lib/unistr/u8-strlen.c: New file.
18040         * lib/unistr/u16-strlen.c: New file.
18041         * lib/unistr/u32-strlen.c: New file.
18042         * lib/unistr/u-strlen.h: New file.
18043
18044         * modules/unistr/u8-strmblen: New file.
18045         * modules/unistr/u16-strmblen: New file.
18046         * modules/unistr/u32-strmblen: New file.
18047         * lib/unistr/u8-strmblen.c: New file.
18048         * lib/unistr/u16-strmblen.c: New file.
18049         * lib/unistr/u32-strmblen.c: New file.
18050
18051         * modules/unistr/u8-strmbtouc: New file.
18052         * modules/unistr/u16-strmbtouc: New file.
18053         * modules/unistr/u32-strmbtouc: New file.
18054         * lib/unistr/u8-strmbtouc.c: New file.
18055         * lib/unistr/u16-strmbtouc.c: New file.
18056         * lib/unistr/u32-strmbtouc.c: New file.
18057
18058         * modules/unistr/u8-strncat: New file.
18059         * modules/unistr/u16-strncat: New file.
18060         * modules/unistr/u32-strncat: New file.
18061         * lib/unistr/u8-strncat.c: New file.
18062         * lib/unistr/u16-strncat.c: New file.
18063         * lib/unistr/u32-strncat.c: New file.
18064         * lib/unistr/u-strncat.h: New file.
18065
18066         * modules/unistr/u8-strncmp: New file.
18067         * modules/unistr/u16-strncmp: New file.
18068         * modules/unistr/u32-strncmp: New file.
18069         * lib/unistr/u8-strncmp.c: New file.
18070         * lib/unistr/u16-strncmp.c: New file.
18071         * lib/unistr/u32-strncmp.c: New file.
18072
18073         * modules/unistr/u8-strncpy: New file.
18074         * modules/unistr/u16-strncpy: New file.
18075         * modules/unistr/u32-strncpy: New file.
18076         * lib/unistr/u8-strncpy.c: New file.
18077         * lib/unistr/u16-strncpy.c: New file.
18078         * lib/unistr/u32-strncpy.c: New file.
18079         * lib/unistr/u-strncpy.h: New file.
18080
18081         * modules/unistr/u8-strnlen: New file.
18082         * modules/unistr/u16-strnlen: New file.
18083         * modules/unistr/u32-strnlen: New file.
18084         * lib/unistr/u8-strnlen.c: New file.
18085         * lib/unistr/u16-strnlen.c: New file.
18086         * lib/unistr/u32-strnlen.c: New file.
18087         * lib/unistr/u-strnlen.h: New file.
18088
18089         * modules/unistr/u8-strpbrk: New file.
18090         * modules/unistr/u16-strpbrk: New file.
18091         * modules/unistr/u32-strpbrk: New file.
18092         * lib/unistr/u8-strpbrk.c: New file.
18093         * lib/unistr/u16-strpbrk.c: New file.
18094         * lib/unistr/u32-strpbrk.c: New file.
18095         * lib/unistr/u-strpbrk.h: New file.
18096
18097         * modules/unistr/u8-strrchr: New file.
18098         * modules/unistr/u16-strrchr: New file.
18099         * modules/unistr/u32-strrchr: New file.
18100         * lib/unistr/u8-strrchr.c: New file.
18101         * lib/unistr/u16-strrchr.c: New file.
18102         * lib/unistr/u32-strrchr.c: New file.
18103
18104         * modules/unistr/u8-strspn: New file.
18105         * modules/unistr/u16-strspn: New file.
18106         * modules/unistr/u32-strspn: New file.
18107         * lib/unistr/u8-strspn.c: New file.
18108         * lib/unistr/u16-strspn.c: New file.
18109         * lib/unistr/u32-strspn.c: New file.
18110         * lib/unistr/u-strspn.h: New file.
18111
18112         * modules/unistr/u8-strstr: New file.
18113         * modules/unistr/u16-strstr: New file.
18114         * modules/unistr/u32-strstr: New file.
18115         * lib/unistr/u8-strstr.c: New file.
18116         * lib/unistr/u16-strstr.c: New file.
18117         * lib/unistr/u32-strstr.c: New file.
18118         * lib/unistr/u-strstr.h: New file.
18119
18120         * modules/unistr/u8-strtok: New file.
18121         * modules/unistr/u16-strtok: New file.
18122         * modules/unistr/u32-strtok: New file.
18123         * lib/unistr/u8-strtok.c: New file.
18124         * lib/unistr/u16-strtok.c: New file.
18125         * lib/unistr/u32-strtok.c: New file.
18126         * lib/unistr/u-strtok.h: New file.
18127
18128         * modules/unistr/u8-uctomb: New file.
18129         * modules/unistr/u16-uctomb: New file.
18130         * modules/unistr/u32-uctomb: New file.
18131         * lib/unistr/u8-uctomb.c: New file.
18132         * lib/unistr/u16-uctomb.c: New file.
18133         * lib/unistr/u32-uctomb.c: New file.
18134
18135         * MODULES.html.sh (Unicode string functions): Add the new modules.
18136
18137 2007-01-08  Bruno Haible  <bruno@clisp.org>
18138
18139         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18140         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18141         subdirectories.
18142
18143 2007-01-08  Karl Berry  <karl@gnu.org>
18144
18145         * doc/error.texi: mention that main() fns must set program_name
18146         when progname is used.
18147
18148 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18149
18150         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18151         WCTYPE_H is empty, for the benefit of builds from non-distclean
18152         directories.  Problem reported by Eric Blake in
18153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18154
18155 2007-01-08  Bruno Haible  <bruno@clisp.org>
18156
18157         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18158         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18159         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18160         PROVIDE_CANONICALIZE_FILENAME_MODE.
18161         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18162
18163 2007-01-08  Bruno Haible  <bruno@clisp.org>
18164
18165         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18166         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18167         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18168         * lib/fts.c: Likewise.
18169         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18170
18171 2006-12-25  Bruno Haible  <bruno@clisp.org>
18172
18173         * modules/utf8-ucs4-safe: New file.
18174         * lib/utf8-ucs4-safe.h: New file.
18175         * lib/unistr/utf8-ucs4-safe.c: New file.
18176
18177         * modules/utf16-ucs4-safe: New file.
18178         * lib/utf16-ucs4-safe.h: New file.
18179         * lib/unistr/utf16-ucs4-safe.c: New file.
18180
18181         * MODULES.html.sh (Unicode string functions): Add the new modules.
18182
18183 2007-01-08  Bruno Haible  <bruno@clisp.org>
18184
18185         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18186         (Depends-on): Add unitypes.
18187         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18188         (u8_mbtouc_aux): Move out to separate file.
18189         (u8_mbtouc): Use ucs4_t, uint8_t types.
18190         * lib/unistr/utf8-ucs4.c: New file.
18191
18192         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18193         (Depends-on): Add unitypes.
18194         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18195         (u16_mbtouc_aux): Move out to separate file.
18196         (u16_mbtouc): Use ucs4_t, uint16_t types.
18197         * lib/unistr/utf16-ucs4.c: New file.
18198
18199         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18200         (Depends-on): Add unitypes.
18201         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18202         (u8_uctomb_aux): Move out to separate file.
18203         (u8_uctomb): Use ucs4_t, uint8_t types.
18204         * lib/unistr/ucs4-utf8.c: New file.
18205
18206         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18207         (Depends-on): Add unitypes.
18208         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18209         (u16_uctomb_aux): Move out to separate file.
18210         (u16_uctomb): Use ucs4_t, uint16_t types.
18211         * lib/unistr/ucs4-utf16.c: New file.
18212
18213 2006-12-25  Bruno Haible  <bruno@clisp.org>
18214
18215         * modules/unitypes: New file.
18216         * lib/unitypes.h: New file.
18217         * MODULES.html.sh (func_all_modules): New section "Unicode string
18218         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18219         this section. Add unitypes.
18220
18221 2007-01-08  Bruno Haible  <bruno@clisp.org>
18222
18223         Avoid variable names that conflict with those from libtool.
18224         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18225         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18226         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18227         library_names_spec to acl_library_names_spec, hardcode_* to
18228         acl_hardcode_*.
18229         Reported by Ralf Wildenhues.
18230
18231 2007-01-08  Bruno Haible  <bruno@clisp.org>
18232
18233         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18234         definition.
18235         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18236         definition.
18237         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18238         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18239         definition.
18240         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18241         definition.
18242         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18243         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18244         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18245         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18246         definition.
18247         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18248         definition.
18249         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18250         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18251         GC_USE_<algorithm>.
18252         * lib/gc-libgcrypt.c: Likewise.
18253         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18254         * modules/gc-arctwo (configure.ac): Likewise.
18255         * modules/gc-des (configure.ac): Likewise.
18256         * modules/gc-hmac-md5 (configure.ac): Likewise.
18257         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18258         * modules/gc-md2 (configure.ac): Likewise.
18259         * modules/gc-md4 (configure.ac): Likewise.
18260         * modules/gc-md5 (configure.ac): Likewise.
18261         * modules/gc-random (configure.ac): Likewise.
18262         * modules/gc-rijndael (configure.ac): Likewise.
18263         * modules/gc-sha1 (configure.ac): Likewise.
18264
18265 2007-01-08  Bruno Haible  <bruno@clisp.org>
18266
18267         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18268         macro definition.
18269         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18270         definition.
18271         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18272         definition.
18273         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18274         * modules/fcntl-safer (configure.ac): Likewise.
18275         * modules/fopen-safer (configure.ac): Likewise.
18276         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18277         GNULIB_FWRITEERROR macro definition.
18278
18279 2007-01-08  Bruno Haible  <bruno@clisp.org>
18280
18281         * m4/gnulib-common.m4: New file.
18282         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18283         (func_get_filelist): Add m4/gnulib-common.m4.
18284
18285 2007-01-08  Bruno Haible  <bruno@clisp.org>
18286
18287         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18288         command.
18289
18290 2007-01-08  Jim Meyering  <jim@meyering.net>
18291
18292         Use a more robust test for a "can't happen" condition.
18293         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18294         narrowed the st_size value.  Presuming the "can't happen" condition
18295         is true, that narrowing could conceivably convert an invalid st_size
18296         value into a valid one.  Instead, use a change based on Matthew
18297         Woehlke's original patch.
18298
18299         Slight readability improvement: use an assert-like macro
18300         in place of literal "abort ()" uses.
18301         * lib/fts.c (fts_assert): Define.
18302         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18303         Use this macro instead of a bare 'abort'.
18304
18305 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18306
18307         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18308         simply work around them.
18309         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18310         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18311         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18312         declaring.
18313         Don't bother to define as macros, since the standard doesn't require it.
18314         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18315         longer worry about IRIX 5.3.
18316         (HAVE_WCTYPE_CTMP_BUG): Remove.
18317
18318 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18319
18320         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18321         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18322         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18323         Problems reported by Georg Schwarz for IRIX 5.3.
18324
18325         * gnulib-tool (autoconf_minversion): Take the maximum version number
18326         found, not the minimum.  Problem reported by James Youngman.
18327
18328 2007-01-03  Karl Berry  <karl@gnu.org>
18329
18330         * doc/error.texi: new file, explaining interaction with progname.
18331         * doc/gnulib.texi: include it.  Update copyright.
18332
18333 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18334
18335         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18336         AC_CANONICAL_HOST, to improve autobuild outputs.
18337
18338 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18339             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18340
18341         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18342         sockets, server sockets, and other file descriptors.  Count errors
18343         to compute the return value.  Reorder the code a bit to be easier
18344         to follow.  Don't set event bits that were not requested (except
18345         POLLERR and POLLHUP).
18346
18347 2007-01-01  Bruno Haible  <bruno@clisp.org>
18348
18349         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18350
18351 2007-01-03  Jim Meyering  <jim@meyering.net>
18352
18353         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18354
18355 2007-01-02  Bruno Haible  <bruno@clisp.org>
18356
18357         * modules/settime (Include): Require timespec.h.
18358         * modules/nanosleep (Include): Likewise.
18359
18360 2007-01-01  Bruno Haible  <bruno@clisp.org>
18361
18362         * gnulib-tool (func_emit_copyright_notice): Bump year.
18363         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18364
18365 2007-01-01  Bruno Haible  <bruno@clisp.org>
18366
18367         Improve support for OpenBSD.
18368         * build-aux/config.rpath (libname_spec): Export.
18369         (library_names_spec): New variable. Export.
18370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18371         library_names_spec from the config.rpath output. Locate shared library
18372         through the name pattern in library_names_spec.
18373
18374 2007-01-01  Eric Blake  <ebb9@byu.net>
18375
18376         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18377
18378 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18379
18380         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18381         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18382         assume the C locale, and avoid an "eval" that could cause trouble.
18383         Problem with SORT reported by Bob Proulx.
18384
18385         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18386         Define.  Trivial patch from Henning Nielsen Lund, originally
18387         sent to bug-grep@gnu.org today.
18388
18389 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18390
18391         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18392         struct stat.  Problem reported by Henning Nielsen Lund.
18393         * lib/acl.c: Include acl.h first, to check interface.  Don't
18394         bother to include sys/types.h and sys/stat.h again.
18395
18396 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18397
18398         Import the following change from libc; problem reported by
18399         Sven Verdoolaege.
18400
18401         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18402
18403         [BZ #1373]
18404         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18405
18406 2006-12-28  Jim Meyering  <jim@meyering.net>
18407
18408         * build-aux/announce-gen: Do not assume that the package
18409         builds any of tar.gz, tar.bz2, and .xdelta files.
18410         Suggestion from Simon Josefsson.
18411
18412 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18413
18414         * modules/announce-gen: New file.
18415
18416 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18417
18418         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18419         handles its gotchas now.
18420         * lib/mbswidth.c: Likewise.
18421         * lib/wcwidth.h: Likewise.
18422         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18423         and iswcntrl; the wctype module does this stuff now.
18424         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18426         * modules/mbchar (Depends-on): Add wctype.
18427         * modules/mbswidth (Depends-on): Likewise.
18428         * modules/wcwidth (Depends-on): Likewise.
18429
18430 2006-12-27  Eric Blake  <ebb9@byu.net>
18431
18432         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18433         module uses more than what <wctype.h> is required to provide.
18434
18435 2006-12-26  Eric Blake  <ebb9@byu.net>
18436
18437         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18438
18439 2006-12-26  Eric Blake  <ebb9@byu.net>
18440
18441         * modules/absolute-header: New module.
18442         * modules/fcntl (Depends-on): Depend on it.
18443         * modules/inttypes (Depends-on): Likewise.
18444         * modules/stdint (Depends-on): Likewise.
18445         * modules/sys_stat (Depends-on): Likewise.
18446         * modules/wctype (Depends-on): Likewise.
18447         * MODULES.html.sh (Support for building libraries and
18448         executables): Document it.
18449
18450 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18451
18452         * gnulib-tool (SED): Remove, undoing previous change.
18453         The problem was that it broke coreutils on Solaris, because
18454         "sed --posix" leaked into a makefile.
18455         (sed): New alias, if 'alias' and GNU sed.
18456
18457 2006-12-24  Jim Meyering  <jim@meyering.net>
18458
18459         Work around an fchownat bug in glibc-2.4:
18460         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18461         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18462         in spite of the -P option.
18463         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18464         New macros.
18465         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18466         * modules/openat (Files): Add lib/fchownat.c.
18467         * lib/openat.c (fchownat): Don't define here.  Move to...
18468         * lib/fchownat.c: ...this new file.
18469
18470 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18471
18472         Fix bug reported by Bruno Haible in
18473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18474         where quotearg.c didn't compile on Mac OS X 10.2 because it
18475         lacks <wchar.h> and wint_t.
18476         * lib/wctype_.h (__wctype_wint_t): New type.
18477         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18478         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18479         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18480         Arg is now of type __wctype_wint_t, not wint_t.
18481         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18482         substitute HAVE_WINT_T.
18483         * modules/wctype (Files): Add m4/wint_t.m4.
18484         (wctype.h): Substitute HAVE_WINT_T.
18485
18486 2006-12-23  Bruno Haible  <bruno@clisp.org>
18487
18488         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18489
18490 2006-12-23  Bruno Haible  <bruno@clisp.org>
18491
18492         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18493         S_ISLNK.
18494         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18495         mingw.
18496
18497 2006-12-22  Bruno Haible  <bruno@clisp.org>
18498
18499         * lib/copy-file.c: Include acl.h.
18500         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18501         Close the file descriptors only after being done with copy_acl.
18502         * modules/copy-file (Depends-on): Add acl.
18503
18504 2006-12-22  Bruno Haible  <bruno@clisp.org>
18505
18506         * gnulib-tool (SED): New variable.
18507         Use $SED instead of sed everywhere.
18508
18509 2006-12-22  Bruno Haible  <bruno@clisp.org>
18510
18511         * modules/no-c++: New file.
18512         * m4/no-c++.m4: New file.
18513         * MODULES.html.sh (Support for building libraries and executables):
18514         Add no-c++.
18515
18516 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18517
18518         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18519         Include <limits.h>, and use its INT_MAX to rewrite the
18520         j loop so that it does not overflow 'int'.  Problem reported by
18521         Ralf Wildenhues in
18522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18523         Play it safe by shifting left by 1 rather than multiplying by 2,
18524         as GCC is less likely to optimize this away when the value
18525         is signed (when it assumes overflow leads to undefined behavior).
18526         Also, don't assume time_t uses two's complement.
18527
18528 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18529
18530         * MODULES.html.sh: New module wctype.
18531         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18532         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18533         <wctype.h>, since the new wctype module should fix this.
18534         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18535         the wctype module should arrange for it.
18536         * lib/regex_internal.h: Likewise.
18537         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18538         since the wctype module should handle this now.
18539         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18540         * modules/fnmatch (Depends-on): Add wctype.
18541         * modules/quotearg (Depends-on): Likewise.
18542         * modules/regex (Depends-on): Likewise.
18543
18544 2006-12-19  Bruno Haible  <bruno@clisp.org>
18545
18546         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18547         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18548
18549 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18550
18551         * modules/savewd (Depends-on): Fix dependency on fcntl.
18552
18553 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18554
18555         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18556         conforms to C99, rather than relying on the user's environment
18557         setting of STDINT_H.
18558
18559 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18560         and Eric Blake  <ebb9@byu.net>
18561
18562         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18563         This is more consistent with the other defines here.
18564         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18565         Port to z/OS.  Problem reported by Paul Gilmartin.
18566         Change local vars to use gl_ prefix rather than ac_.
18567         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18568         with other defines.
18569         * modules/double-slash-root: New module.
18570         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18571         (Depends-on): Add double-slash-root.
18572         * MODULES.html.sh (File system functions): Mention new module.
18573
18574 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18575
18576         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18577         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18578         This is for the benefit of gzip, which doesn't do i18n.
18579
18580 2006-12-12  Jim Meyering  <jim@meyering.net>
18581
18582         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18583         Reported by Andreas Schwab <schwab@suse.de>.
18584
18585 2006-12-12  Bruno Haible  <bruno@clisp.org>
18586
18587         Merge these changes.
18588         2006-09-05  Bruno Haible  <bruno@clisp.org>
18589         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18590         iconv_alloc succeeded.
18591         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18592         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18593         test for " && dest " at the end - dest is always != NULL there. Call
18594         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18595         with 2xNULL arguments, also to flush the state storage. Handle the
18596         IRIX iconv behaviour. Realloc the final result, to throw away unused
18597         memory.
18598
18599 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18600
18601         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18602         and fchmodat unconditionally, since glibc 2.4 has them.
18603         Problem reported by Arkadiusz Miskiewicz.
18604
18605 2006-12-10  Bruno Haible  <bruno@clisp.org>
18606
18607         * gnulib-tool (func_import): Show the include files only for those
18608         modules that are copied and specified.
18609         Reported by Karl Berry.
18610
18611 2006-12-08  Jim Meyering  <jim@meyering.net>
18612
18613         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18614         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18615
18616         * build-aux/announce-gen: Add two new options, both optional:
18617         --bootstrap-tools=TOOL_LIST
18618               a comma-separated list of tools, e.g.,
18619               autoconf,automake,bison,gnulib
18620         --gnulib-snapshot-date=DATE
18621               if gnulib is in the bootstrap tool list,
18622               then report this as the snapshot date.
18623               If not specified, use the current date/time.
18624               If you specify a date here, be sure it's UTC.
18625
18626 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18627
18628         * tests/test-argp-2.sh: Fix test to match actual output.
18629         (func_compare): Fix sed script to be portable.
18630
18631 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18632
18633         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18634         workaround for this case.  It is not autoconfigured now; offhand
18635         it's hard to see how to autoconfigure it.
18636
18637 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18638
18639         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18640         a directory that is about to be chowned.  Such a directory's
18641         initial file permissions should permit the owner only and this
18642         should not be changed until after the chown, since the group and
18643         other bits would be incorrect if they granted permission before
18644         the chown.
18645
18646         Fix porting problem for iswctype reported by Georg Schwarz in:
18647         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18648         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18649         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18650         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18651         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18652
18653 2006-12-03  Jim Meyering  <jim@meyering.net>
18654
18655         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18656         p->fts_statp may not yet be defined.
18657         (fts_read): Instead, set it in the caller, once p->fts_statp is
18658         sure to be defined, and corresponds to a top-level directory.
18659         This bug made du -x fail.  Here's the coreutils test case:
18660         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18661         Reported by Mike Frysinger.
18662
18663 2006-12-01  Jim Meyering  <jim@meyering.net>
18664
18665         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18666         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18667         Reported by Simon Josefsson.
18668
18669 2006-11-30  Jim Meyering  <jim@meyering.net>
18670
18671         * m4/warning.m4: Use the all-permissive copyright notice
18672         recommended by RMS (rather than LGPL).
18673         * m4/vararrays.m4: Likewise.
18674         * m4/flexmember.m4: Likewise.
18675
18676 2006-11-29  Bruno Haible  <bruno@clisp.org>
18677
18678         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18679         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18680         using +=.
18681         Reported by Simon Josefsson <simon@josefsson.org>.
18682
18683 2006-11-28  James Youngman <jay@gnu.org>
18684
18685         * README: Advise users that they might find the bug-gnulib@gnu.org
18686         and autotools-announce@gnu.org mailing lists useful.
18687
18688 2006-11-28  Bruno Haible  <bruno@clisp.org>
18689
18690         * m4/ptrdiff_max.m4: Remove file.
18691
18692 2006-11-21  Bruno Haible  <bruno@clisp.org>
18693
18694         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18695         _AC_COMPUTE_INT.
18696         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18697         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18698         _AC_COMPUTE_INT.
18699         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18700         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18701         _AC_COMPUTE_INT.
18702         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18703
18704 2006-11-28  Jim Meyering  <jim@meyering.net>
18705
18706         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18707         warning from "gcc -Wshadow" about shadowing the builtin.
18708
18709 2006-11-27  Bruno Haible  <bruno@clisp.org>
18710
18711         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18712         _AC_COMPUTE_INT.
18713         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18714
18715 2006-11-27  Bruno Haible  <bruno@clisp.org>
18716             Paul Eggert  <eggert@cs.ucla.edu>
18717
18718         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18719
18720 2006-11-26  Bruno Haible  <bruno@clisp.org>
18721
18722         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18723         noinst_LTLIBRARIES.
18724
18725 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18726             Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
18729         if compiling with "gcc -ansi".
18730
18731 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18732
18733         Fix some incompatibilities with gcc -ansi -pedantic.
18734         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
18735         if compiling pedantically with GCC, unless it's C99 or later.
18736         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
18737         it mishandles gcc -ansi -pedantic as well.
18738         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
18739         if gcc -pedantic.
18740         * lib/regexec.c (check_node_accept_bytes): Don't use auto
18741         initializers for struct if -pedantic, unless it's C99 or later.
18742
18743 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
18744
18745         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
18746         Don't close an fd more than once. Identical atimes indicate
18747         success, not failure.
18748
18749 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
18750
18751         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
18752
18753 2006-11-23  Jim Meyering  <jim@meyering.net>
18754
18755         * build-aux/announce-gen: New file.  From coreutils.
18756
18757 2006-11-22  Jim Meyering  <jim@meyering.net>
18758
18759         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
18760         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
18761         (fts_read): Use a temporary to narrow the overused st_size member
18762         before using it in a switch statement.  Reported by Matthew Woehlke.
18763
18764         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
18765         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18766
18767 2006-11-20  Bruno Haible  <bruno@clisp.org>
18768
18769         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
18770         changequote instead of pairs of brackets.
18771         Reported by Andreas Schwab <schwab@suse.de>.
18772
18773 2006-11-21  Jim Meyering  <jim@meyering.net>
18774
18775         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
18776         so as to remain compatible with older compilers.
18777         Patch from Michael Deutschmann.
18778
18779 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18780
18781         * MODULES.html.sh (File system functions): Add openat.
18782
18783         * lib/openat.h (rpl_fstatat): New macro, if
18784         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
18785         (fstatat): Define to rpl_fstatat under the same conditions,
18786         unless COMPILING_FSTATAT.
18787         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
18788         seems to have the bug.
18789         * lib/fstatat.c: New file.
18790         * modules/openat (Files): Add it.
18791
18792 2006-11-20  Bruno Haible  <bruno@clisp.org>
18793
18794         * Makefile: New file.
18795
18796 2006-11-20  Jim Meyering  <jim@meyering.net>
18797
18798         The beginnings of syntax-related checks for gnulib.
18799         * lib/Makefile: New file.
18800         * lib/t-idcache: New script.  Ensure that the two halves of
18801         idcache.c stay in sync.
18802
18803         * lib/idcache.c: Adjust comments in user- and group- portions to
18804         be more accurate, and to be consistent with one another.
18805
18806 2006-11-20  Jim Meyering  <jim@meyering.net>
18807
18808         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
18809         continue using the flexible array member (thus, this module performs
18810         half as many malloc calls), with the addition that...
18811         (getgroup, getuser): Consistently record a non-match via an empty
18812         "name" string, and map an empty string match to a NULL return value.
18813         * modules/idcache (Depends-on): Re-add flexmember.
18814
18815         * lib/idcache.c (getuser): Remove all uses of the register keyword.
18816         (getuidbyname, getgroup, getgidbyname): Likewise.
18817
18818         Use cleaner syntax: NULL rather than 0.
18819         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
18820
18821 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18822
18823         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
18824         It mishandled the case where the group was missing.
18825         Problem reported by Greg Schafer.
18826         * modules/idcache: Likewise.
18827
18828 2006-11-18  Jim Meyering  <jim@meyering.net>
18829
18830         * check-module (%exempt_header): Add exception for some
18831         conditionally-included headers.
18832
18833         * modules/i-ring (Depends-on): Add verify.
18834         (License): Change to LGPL.
18835
18836 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18837
18838         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
18839         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
18840         and inttostr.h.  Use snprintf rather than uinttostr, so that
18841         LGPLed code doesn't depend on GPLed.
18842
18843 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18844
18845         * modules/inline (License): Change from GPL to LGPL.
18846
18847 2006-11-17  Jim Meyering  <jim@meyering.net>
18848
18849         * modules/d-type (License): Switch to LGPL.
18850
18851 2006-11-15  Bruno Haible  <bruno@clisp.org>
18852
18853         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
18854
18855 2006-11-15  Eric Blake  <ebb9@byu.net>
18856
18857         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
18858         the module dependency.
18859
18860 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18861             Bruno Haible  <bruno@clisp.org>
18862
18863         * gnulib-tool (func_create_testdir): Add license consistency check.
18864
18865 2006-11-15  Eric Blake  <ebb9@byu.net>
18866
18867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
18868         random "(cached)" in configure output.
18869
18870 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18871
18872         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
18873         test for conforming inttypes.h is both announced and cached.
18874
18875         * MODULES.html.sh (seen_modules, seen_files): New variables.
18876         (func_module): Rewrite to use a few less gnulib-tool and sed
18877         invocations.  Avoid a couple of quadratic algorithms for ...
18878         (missed_modules, missed_files): ... these, with ...
18879         (func_append, func_tmpdir): ... these new functions, from
18880         gnulib-tool.  Analogously, install traps for cleanup.
18881
18882         * tests/test-gc.c (main): Remove unused variables.
18883         * tests/test-read-file.c: Include stdlib.h, for 'free'.
18884
18885 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
18886
18887         * modules/inttostr (License): Change to LGPL.
18888
18889 2006-11-14  Eric Blake  <ebb9@byu.net>
18890
18891         * modules/tempname (License): Change to LGPL.
18892
18893 2006-11-14  Eric Blake  <ebb9@byu.net>
18894
18895         * doc/functions.texi (Function Portability): *printf functions on
18896         Cygwin now understand all POSIX size specifiers.
18897
18898 2006-11-14  Bruno Haible  <bruno@clisp.org>
18899
18900         * modules/c-ctype (License): Change to LGPL.
18901
18902 2006-11-12  Bruno Haible  <bruno@clisp.org>
18903
18904         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18905         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
18906         for GNOME libraries, for which the include files are installed in
18907         subdirectories of $prefix/include.
18908
18909 2006-11-12  Bruno Haible  <bruno@clisp.org>
18910
18911         * m4/lib-link.m4: Require at least autoconf-2.54.
18912         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
18913         name to underscores for the --with option.
18914
18915 2006-11-13  Bruno Haible  <bruno@clisp.org>
18916
18917         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
18918         the tests directory.
18919         Reported by Ralf Wildenhues.
18920
18921 2006-11-13  Bruno Haible  <bruno@clisp.org>
18922
18923         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
18924         (func_emit_initmacro_end): Undo the override here.
18925         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
18926         Works around the famous automake error in coreutils.
18927
18928 2006-11-13  Eric Blake  <ebb9@byu.net>
18929
18930         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
18931         element, not its node.
18932
18933 2006-11-12  Bruno Haible  <bruno@clisp.org>
18934
18935         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
18936         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
18937
18938 2006-11-12  Bruno Haible  <bruno@clisp.org>
18939
18940         * gnulib-tool: New option --local-symlink.
18941         (func_usage): Document it.
18942         (lsymbolic): New variable.
18943         (func_import, func_create_testdir): If --symlink was not specified,
18944         test whether --local-symlink was specified and the file comes from
18945         the local_gnulib_dir.
18946
18947 2006-11-12  Bruno Haible  <bruno@clisp.org>
18948
18949         * gnulib-tool (func_ln): New function.
18950         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
18951
18952 2006-11-12  Bruno Haible  <bruno@clisp.org>
18953
18954         Finish support for source files in subdirectories.
18955         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
18956         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
18957         AUTOMAKE_OPTIONS.
18958         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
18959
18960 2006-11-12  Bruno Haible  <bruno@clisp.org>
18961
18962         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18963         EXTRA_lib_SOURCES augmentation.
18964         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
18965
18966 2006-11-12  Jim Meyering  <jim@meyering.net>
18967
18968         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
18969         file descriptors.  This also averts a failure on systems with
18970         native openat support when a traversed directory lacks "x" access.
18971         * lib/fts_.h: Include "i-ring.h"
18972         (struct FTS) [fts_fd_ring]: New member.
18973         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
18974         (FCHDIR): Add parentheses.
18975         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
18976         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
18977         When descending, rather than simply closing the previous
18978         fts_cwd_fd value, push that file descriptor onto the ring.
18979         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
18980         (fts_open): Initialize the new fd_ring member.
18981         (fts_close): Clear the ring.
18982         (fts_safe_changedir): When possible, use our new fd_ring to skip
18983         the diropen and fstat and dev/ino comparison that would normally
18984         accompany a virtual `chdir ("..")'.
18985
18986         * modules/fts (Depends-on): Add i-ring.
18987         * modules/i-ring: New module.
18988         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
18989         * m4/i-ring.m4: New file.
18990
18991 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18992
18993         * gnulib-tool (func_create_testdir): Fix replacement of
18994         `build-aux' in configure.ac.  Run autotools in gltests
18995         subdirectory.
18996         (func_create_testdir, func_create_megatestdir, test): There is
18997         no need for '--force' in most autotool invocations in a new
18998         tree.  Actually fail the whole test if any of the tools, or the
18999         configure or make stages fail.
19000
19001         Sync from Automake.
19002         * build-aux/gnupload: Revert last change.  Add pointer to upload
19003         instructions of the GNU Maintenance Instructions.
19004         Suggestion by Karl Berry.
19005
19006 2006-11-10  Jim Meyering  <jim@meyering.net>
19007
19008         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
19009
19010 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19011
19012         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
19013         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
19014         (bind_textdomain_codeset) [! ENABLE_NLS]:
19015         Evaluate all the arguments.  That way, callers get compatible behavior
19016         if the arguments have side effects.  Also, it avoids some GCC
19017         diagnostics in some cases; Joel E. Denny reported problems when Bison
19018         was configured with --enable-gcc-warnigs.
19019
19020 2006-11-10  Jim Meyering  <jim@meyering.net>
19021
19022         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
19023         relevant options in CFLAGS (like -O, -fno-inline) are taken into
19024         account.
19025
19026 2006-11-10  Jim Meyering  <jim@meyering.net>
19027
19028         * modules/inline: New file/module.
19029         * modules/xalloc (Files): Remove m4/inline.m4.
19030         (Depends-on): Add inline, instead.
19031         * modules/oset: Likewise.
19032         * modules/list: Likewise.
19033
19034 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
19037         Problem reported by Matthew Woehlke.
19038
19039 2006-11-09  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/tempname.c (gen_tempname): Remove variant that invokes
19042         __gen_tempname.
19043         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
19044         __gen_tempname.
19045
19046 2006-11-08  Bruno Haible  <bruno@clisp.org>
19047
19048         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
19049         to 'yes' instead of 'cross-compiling'.
19050
19051 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
19052
19053         * lib/quotearg.h (quotearg_free): New decl.
19054         * lib/quotearg.c (quotearg_free): New function.
19055         (slot0, nslots, slotvec0, slotvec):
19056         Now file-scope so that quotearg_free can get at them.
19057
19058 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19059
19060         Sync from Automake.
19061         * build-aux/gnupload: Add missing 'gnu' to example URL.
19062         Report by Karl Berry.
19063
19064 2006-11-08  Bruno Haible  <bruno@clisp.org>
19065
19066         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
19067         Suggested by Paul Eggert.
19068
19069 2006-11-08  Jim Meyering  <jim@meyering.net>
19070
19071         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
19072         It's already included if !_LIBC.
19073         (fts_safe_changedir): Add a comment.
19074
19075 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19076
19077         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
19078         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
19079         Matthew Woehlke.
19080
19081         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
19082         definitions up, to avoid colliding with change below.
19083         (static_inline) [HAVE_INLINE]: New macro.
19084         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
19085         Provide extern decls when !HAVE_INLINE.  Do not define unless
19086         static_inline is defined, either by us or by xmalloc.c.  Use
19087         static_inline rather than static inline.
19088         (XCALLOC): Optimize sizeof(T) = 1 case.
19089         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
19090
19091 2006-11-07  Bruno Haible  <bruno@clisp.org>
19092
19093         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
19094         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
19095         AC_C_INLINE.
19096         * modules/xalloc (Files): Add m4/inline.m4.
19097
19098 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19099
19100         * README: Fix typo.
19101         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
19102         (Miscellanous Notes): ...from this.
19103
19104 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19105
19106         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
19107         Mention that offsetof should be used instead of sizeof.
19108         From Bruno Haible.
19109
19110 2006-11-07  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
19113
19114 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19115
19116         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19117         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
19118         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19119         (gl_tree_add_before, gl_tree_add_after):
19120         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19121         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19122         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19123         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19124         (gl_linked_add_after, gl_linked_add_at): Likewise.
19125         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19126         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19127         (gl_tree_add_before, gl_tree_add_after): Likewise.
19128         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19129         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19130         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19131
19132 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19133
19134         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19135
19136 2006-11-06  Bruno Haible  <bruno@clisp.org>
19137
19138         * m4/inline.m4: New file.
19139         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19140         * modules/list (Files): Add m4/inline.m4.
19141         * modules/oset (Files): Likewise.
19142
19143 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19144
19145         * lib/idcache.c: Include <stddef.h>, for offsetof.
19146         (struct userid.name): Change from char * to a flexible array member.
19147         All uses changed.
19148         * modules/idcache (Depends-on): Add flexmember.
19149
19150         * MODULES.html.sh (Core language properties): New module flexmember.
19151         * modules/flexmember, m4/flexmember.m4: New files.
19152
19153         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19154         inline functions that are identical with the old xnmalloc_inline,
19155         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19156         that we can avoid some unnecessary integer multiplications and
19157         divisions in the common case where the element size is known at
19158         compile time.
19159         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19160         needed.
19161         (xnboundedmalloc): Remove.
19162         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19163         arguments, for consistency with rest of this header.
19164         (xcharalloc): Rewrite using XNMALLOC.
19165         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19166         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19167         versions have been moved to lib/xalloc.h and renamed to be the
19168         non-*_inline versions.
19169         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19170         and xnrealloc functions, since those functions are now inline and
19171         now call us.
19172         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19173         renaming described above.
19174         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19175         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19176         captures the dependency in AC_C_INLINE.
19177
19178         New module canonicalize-lgpl, proposed by Charles Wilson in
19179         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19180         with a few small changes afterwards.
19181         * MODULES.html.sh (File system functions): New module
19182         canonicalize-lgpl.
19183         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19184         and canonicalize_file_name.
19185         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19186         * modules/canonicalize-lgpl: New files.
19187
19188 2006-11-05  Bruno Haible  <bruno@clisp.org>
19189
19190         * gnulib-tool (func_import, func_create_testdir): Create directories
19191         also for files in subdirectories of lib/.
19192
19193 2006-11-05  Bruno Haible  <bruno@clisp.org>
19194
19195         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19196         ANSI C compliant.
19197
19198 2006-11-03  Bruno Haible  <bruno@clisp.org>
19199
19200         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19201         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19202         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19203         (xnboundedmalloc): New inline function.
19204         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19205         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19206         xmalloc.
19207         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19208         xmalloc.
19209         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19210         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19211         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19212         xmalloc.
19213         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19214         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19215         xmalloc.
19216         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19217         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19218         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19219         xmalloc.
19220         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19221         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19222         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19223         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19224         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19225         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19226         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19227
19228 2006-11-03  Bruno Haible  <bruno@clisp.org>
19229
19230         * lib/c-ctype.h [C++]: Define functions without name mangling.
19231         * lib/fwriteerror.h [C++]: Likewise.
19232         * lib/gcd.h [C++]: Likewise.
19233         * lib/linebreak.h [C++]: Likewise.
19234
19235 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19236
19237         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19238         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19239         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19240         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19241         Check for functions and headers just once.
19242         Check for declaration of canonicalize_file_name.
19243         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19244
19245 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19246
19247         * gnulib-tool (func_import): Fix typo in actioncmd.
19248
19249 2006-11-02  Bruno Haible  <bruno@clisp.org>
19250
19251         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19252         newline sequence in the Makefile.am snippet as a space, like "make"
19253         does.
19254         Reported by Roger Persson <perrog@gmail.com>.
19255
19256 2006-11-01  Bruno Haible  <bruno@clisp.org>
19257
19258         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19259         already declared in <string.h>.
19260         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19261
19262 2006-11-01  Bruno Haible  <bruno@clisp.org>
19263
19264         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19265         * lib/strcase.h: Include <string.h>.
19266         (strcasecmp): Define to rpl_strcasecmp here.
19267
19268 2006-11-01  Bruno Haible  <bruno@clisp.org>
19269
19270         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19271
19272 2006-11-01  Eric Blake  <ebb9@byu.net>
19273
19274         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19275
19276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19277
19278 2006-10-29  Bruno Haible  <bruno@clisp.org>
19279
19280         Make it compile in C++ mode.
19281         * lib/full-write.c (full_rw): Add a cast.
19282
19283 2006-11-01  Bruno Haible  <bruno@clisp.org>
19284
19285         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19286         be POSIX compliant.
19287         Reported by Roger Persson <perrog@gmail.com>.
19288
19289 2006-11-01  Eric Blake  <ebb9@byu.net>
19290
19291         * lib/getopt_.h: Fix comments.
19292
19293 2006-10-31  Eric Blake  <ebb9@byu.net>
19294
19295         * modules/tmpdir (Depends-on): Add sys_stat.
19296         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19297         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19298         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19299         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19300         tempname.
19301
19302 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19303
19304         Avoid some C++ diagnostics reported by Bruno Haible.
19305         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19306         xmalloc.
19307         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19308         (struct slotvec): Move to top level.
19309         (quotearg_n_options): Rewrite to avoid xmalloc.
19310         * lib/xalloc.h (xcharalloc): New function.
19311         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19312         [defined __cplusplus]: Add function template that provides result
19313         type propagation.  This part of the change is from Bruno Haible.
19314
19315 2006-10-29  Bruno Haible  <bruno@clisp.org>
19316
19317         Make it compile in C++ mode.
19318         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19319         * lib/strnlen1.c (strnlen1): Cast memchr result.
19320         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19321         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19322         (create_temp_dir): Rename local variable 'template'.
19323         (compile_csharp_using_sscli): Add cast.
19324         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19325         * lib/findprog.c (find_in_path): Likewise.
19326         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19327         * lib/wait-process.c (register_slave_subprocess): Likewise.
19328
19329 2006-10-22  Bruno Haible  <bruno@clisp.org>
19330
19331         * modules/tsearch: New file.
19332         * lib/tsearch.h: New file.
19333         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19334         * m4/tsearch.m4: New file.
19335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19336
19337 2006-10-29  Eric Blake  <ebb9@byu.net>
19338
19339         * lib/arcfour.c: Assume config.h.
19340         * lib/arctwo.c: Likewise.
19341         * lib/base64.c: Likewise.
19342         * lib/check-version.c: Likewise.
19343         * lib/crc.c: Likewise.
19344         * lib/des.c: Likewise.
19345         * lib/gc-gnulib.c: Likewise.
19346         * lib/gc-libgcrypt.c: Likewise.
19347         * lib/gc-pbkdf2-sha1.c: Likewise.
19348         * lib/getaddrinfo.c: Likewise.
19349         * lib/getdelim.c: Likewise.
19350         * lib/getline.c: Likewise.
19351         * lib/hmac-md5.c: Likewise.
19352         * lib/hmac-sha1.c: Likewise.
19353         * lib/iconvme.c: Likewise.
19354         * lib/md2.c: Likewise.
19355         * lib/md4.c: Likewise.
19356         * lib/memxor.c: Likewise.
19357         * lib/read-file.c: Likewise.
19358         * lib/readline.c: Likewise.
19359         * lib/rijndael-alg-fst.c: Likewise.
19360         * lib/rijndael-api-fst.c: Likewise.
19361         * lib/xgetdomainname.c: Likewise.
19362
19363 2006-10-28  Eric Blake  <ebb9@byu.net>
19364
19365         * lib/xstrndup.c: Assume config.h.
19366
19367 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19368
19369         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19370         stat-macros.h is now for our own macros, whereas stat_h is for
19371         macros in the <sys/stat.h> name space.
19372         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19373         (STAT_MACROS_H): Remove.
19374         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19375         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19376         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19377         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19378         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19379         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19380         Move these macros to ...
19381         * lib/stat_.h: here.  Don't include stat-macros.h.
19382         * lib/canonicalize.c: Don't include stat-macros.h.
19383         * lib/chown.c: Likewise.
19384         * lib/euidaccess.c: Likewise.
19385         * lib/file-type.c: Likewise.
19386         * lib/filemode.c: Likewise.
19387         * lib/glob.c: Likewise.
19388         * lib/isapipe.c: Likewise.
19389         * lib/lchown.c: Likewise.
19390         * lib/lstat.c: Likewise.
19391         * lib/mkdir-p.c: Likewise.
19392         * lib/rmdir.c: Likewise.
19393         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19394         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19395         unless mkdir isn't declared, to speed up 'configure'.
19396         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19397         would define all the S_* symbols.
19398         * modules/canonicalize (Depends-on):
19399         Depend on sys_stat, not stat-macros.
19400         * modules/chown: Likewise.
19401         * modules/euidaccess: Likewise.
19402         * modules/filemode: Likewise.
19403         * modules/file-type: Likewise.
19404         * modules/glob: Likewise.
19405         * modules/isapipe: Likewise.
19406         * modules/lchown: Likewise.
19407         * modules/lstat: Likewise.
19408         * modules/mkancesdirs: Likewise.
19409         * modules/rmdir: Likewise.
19410         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19411         * modules/modechange: Likewise.
19412         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19413         (configure.ac): Remove gl_STAT_MACROS.
19414         * modules/sys_stat (Depends-on): Remove stat-macros.
19415
19416 2006-10-27  Bruno Haible  <bruno@clisp.org>
19417
19418         * m4/signed.m4: Remove file.
19419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19420         invocation.
19421         * modules/vasnprintf (Files): Remove m4/signed.m4.
19422
19423 2006-10-27  Bruno Haible  <bruno@clisp.org>
19424
19425         Update to GNU gettext 0.16.
19426         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19427         m4/inttypes-h.m4, m4/signed.m4.
19428         * m4/gettext.m4: Update to GNU gettext 0.16.
19429         * m4/intl.m4: New file, from GNU gettext.
19430         * m4/intldir.m4: New file, from GNU gettext.
19431         * config/srclist.txt: Update
19432
19433 2006-10-27  Eric Blake  <ebb9@byu.net>
19434
19435         * MODULES.html.sh: Document tempname.
19436         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19437         dependencies.
19438         (Files): Move lib/tempname.c...
19439         * modules/tempname: ...to this new module.
19440         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19441         (gl_PREREQ_TEMPNAME): Move...
19442         * m4/tempname.m4: ...to this new file.
19443         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19444         * modules/sys_stat (Depends-on): Add stat-macros.
19445         * lib/stat_.h (includes): Pick up stat macros.
19446         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19447         if stat macros are broken.
19448         * lib/tempname.c (includes): No need to include "stat-macros.h".
19449         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19450         (direxists, __path_search) [!_LIBC]: Don't compile these in
19451         gnulib; the tmpdir module covers that.
19452         * lib/tempname.h: New file.
19453
19454 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19455
19456         * COPYING: Explain how gnulib-tool converts licence headers.
19457         Almost all wording by Eric Blake.
19458
19459 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19460
19461         * lib/mbchar.h (is_basic_table): Make read-only.
19462         * lib/mbchar.c (is_basic_table): Likewise.
19463         Reported by John Darrington.
19464
19465 2006-10-25  Bruno Haible  <bruno@clisp.org>
19466
19467         * lib/progname.h (set_program_name): Undefine before defining.
19468
19469 2006-10-25  Bruno Haible  <bruno@clisp.org>
19470
19471         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19472         false for non-gcc C++ compilers.
19473         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19474
19475 2006-10-24  Bruno Haible  <bruno@clisp.org>
19476
19477         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19478         iconv implementations like Irix iconv.
19479
19480 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19481
19482         * modules/vararrays: New file.
19483         * m4/vararrays.m4: New file, taken from diffutils.
19484         * MODULES.html.sh: New module vararrays.
19485
19486 2006-10-24  Karl Berry  <karl@gnu.org>
19487
19488         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19489         Don't call GNU Unix.
19490
19491 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19492
19493         * users.txt: Add Libtool.
19494
19495         Sync from Libtool:
19496
19497         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19498
19499         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19500         to gnulib's policy of including config.h unconditionally.
19501
19502 2006-10-24  Bruno Haible  <bruno@clisp.org>
19503
19504         * modules/wcwidth (Files): Add m4/wint_t.m4.
19505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19506         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19507
19508 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19509
19510         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19511         to pacify GCC with some -W flags enabled.  Problem reported by
19512         Bruno Haible.
19513
19514 2006-10-24  Jim Meyering  <jim@meyering.net>
19515
19516         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19517         Reported by Karl Berry.
19518
19519 2006-10-23  Bruno Haible  <bruno@clisp.org>
19520
19521         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19522
19523 2006-10-24  Bruno Haible  <bruno@clisp.org>
19524
19525         * lib/gl_list.h: Use C comment style, not C++ comment style.
19526
19527 2006-10-23  Eric Blake  <ebb9@byu.net>
19528
19529         * lib/getaddrinfo.c (includes): Add missing include.
19530
19531 2006-10-23  Bruno Haible  <bruno@clisp.org>
19532             Paul Eggert  <eggert@cs.ucla.edu>
19533
19534         Ability to rename obstack_free.
19535         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19536         obstack_free.
19537         (obstack_free): Invoke the __obstack_free macro.
19538         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19539
19540 2006-10-23  Bruno Haible  <bruno@clisp.org>
19541             Paul Eggert  <eggert@cs.ucla.edu>
19542
19543         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19544         __argc, __argv from the declaration. (They are defined as macros on
19545         mingw.)
19546
19547 2006-10-22  Bruno Haible  <bruno@clisp.org>
19548
19549         * doc/gnulib-intro.texi: New file.
19550         * doc/gnulib.texi: Include it.
19551
19552 2006-10-21  Bruno Haible  <bruno@clisp.org>
19553
19554         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19555         "Introduction", "Miscellanous Notes", "Particular Modules".
19556
19557 2006-10-21  Bruno Haible  <bruno@clisp.org>
19558
19559         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19560         Change mostlyclean-local rule to avoid sh syntax error from bash
19561         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19562
19563 2006-10-23  Jim Meyering  <jim@meyering.net>
19564
19565         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19566         in place of snprintf.
19567
19568         * modules/inttostr (Files): Add lib/uinttostr.c.
19569         * lib/uinttostr.c (inttostr): New file/function.
19570         * lib/inttostr.h (uinttostr): Declare.
19571         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19572         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19573         Add uinttostr.
19574         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19575
19576 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19577
19578         * lib/canonicalize.c (ELOOP): Define if not already defined.
19579         Problem reported by Bruno Haible in
19580         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19581
19582 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19583
19584         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19585         Problem reported by Perry Smith and Ville Laurikari.
19586
19587         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19588         uses.
19589
19590 2006-10-19  Bruno Haible  <bruno@clisp.org>
19591
19592         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19593         for mingw.
19594
19595 2006-10-19  Bruno Haible  <bruno@clisp.org>
19596
19597         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19598         Needed for mingw.
19599
19600 2006-10-19  Bruno Haible  <bruno@clisp.org>
19601
19602         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19603
19604 2006-10-19  Bruno Haible  <bruno@clisp.org>
19605
19606         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19607         it.
19608
19609 2006-10-19  Bruno Haible  <bruno@clisp.org>
19610
19611         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19612         invocation.
19613
19614 2006-10-19  Bruno Haible  <bruno@clisp.org>
19615
19616         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19617         mountlist by default.
19618
19619 2006-10-16  Bruno Haible  <bruno@clisp.org>
19620
19621         * lib/c-strstr.c: Include c-strstr.h.
19622
19623 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19624
19625         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19626         in a slash.
19627
19628 2006-10-18  Bruno Haible  <bruno@clisp.org>
19629
19630         * lib/lock.h [C++]: Wrap definitions in extern "C".
19631
19632 2006-10-18  Bruno Haible  <bruno@clisp.org>
19633
19634         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19635         gl_LIBOBJS list.
19636
19637 2006-10-18  Bruno Haible  <bruno@clisp.org>
19638
19639         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19640
19641 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         * lib/xstrtol.h: Include gettext.h.
19644         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19645         Problem reported by Eric Blake.
19646         * modules/xstrtol (Depends-on): Add gettext-h.
19647
19648 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19649
19650         * lib/strftime.c (advance): New macro.
19651         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19652         incomplete type, so you can't add 0 to it.  Problem and patch
19653         reported by Eelco Dolstra for dietlibc.
19654
19655 2006-10-18  Jim Meyering  <jim@meyering.net>
19656
19657         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19658         type for a local, and rename it: s/up/user_proc/.
19659
19660 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19661
19662         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19663         READ_UTMP_USER_PROCESS.
19664         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19665
19666 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19667
19668         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19669         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19670
19671 2006-10-17  Eric Blake  <ebb9@byu.net>
19672
19673         * lib/sigprocmask.c (sigprocmask): Fix typo.
19674
19675         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19676
19677         * modules/clean-temp (Makefile.am): Don't add to make output...
19678         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19679         config.h.
19680
19681 2006-10-17  Bruno Haible  <bruno@clisp.org>
19682
19683         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19684         differently if DEFAULT_TEXT_DOMAIN is set.
19685
19686 2006-10-16  Bruno Haible  <bruno@clisp.org>
19687
19688         * lib/clean-temp.c: Include fwriteerror.h.
19689
19690 2006-10-16  Bruno Haible  <bruno@clisp.org>
19691
19692         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19693
19694 2006-10-16  Bruno Haible  <bruno@clisp.org>
19695
19696         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19697         * lib/sigprocmask.h: Include <sys/types.h>.
19698         (sigset_t): Use the system's definition if present.
19699
19700 2006-10-17  Eric Blake  <ebb9@byu.net>
19701
19702         * lib/xvasprintf.c (includes): Assume config.h.
19703         * lib/xasprintf.c (includes): Likewise.
19704
19705 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19706
19707         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19708         at least as wide as intmax_t.
19709
19710 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
19711
19712         (Imported from Automake.)
19713         * build-aux/gnupload: Update to version 1.1 of directive file.
19714
19715 2006-10-16  Eric Blake  <ebb9@byu.net>
19716
19717         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19718         match Automake 1.10a.
19719
19720 2006-10-14  Bruno Haible  <bruno@clisp.org>
19721
19722         * modules/sigprocmask: New file.
19723         * lib/sigprocmask.h: New file.
19724         * lib/sigprocmask.c: New file.
19725         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
19726         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
19727         request sigprocmask.o.
19728         (gl_PREREQ_SIGPROCMASK): New macro.
19729         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
19730         (Depends-on): Add sigprocmask.
19731         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
19732         gt_SIGNALBLOCKING. Test for 'raise' only once.
19733         * lib/fatal-signal.c: Include sigprocmask.h.
19734         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
19735         unblock_fatal_signals): Define always.
19736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19737         sigprocmask.
19738
19739 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19740
19741         Sync from Automake.
19742         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
19743         which incorrectly sets the mode of an existing destination
19744         directory.  In some cases the unpatched install-sh could do the
19745         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
19746         system.  We hope this is rare in practice, but it's clearly worth
19747         fixing.  Problem reported by Alex Unleashed in
19748         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
19749         Also, don't bother to check for -m bugs unless we're using -m;
19750         suggested by Stepan Kasal.
19751
19752 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19753
19754         Sync from Automake.
19755         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
19756         `-c' flag, so they appear at the same position as in %FASTDEP%
19757         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
19758         which ignores unknown options only after the first non-option.
19759         Bug report against M4 by Nelson H. F. Beebe.
19760
19761 2006-10-13  Jim Meyering  <jim@meyering.net>
19762
19763         Fix a bug in yesterday's change.
19764         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
19765         p->fts_statp->st_dev would be used uninitialized.
19766         Ensures that we always call fts_stat on the very first entry.
19767         Miklos Szeredi reported that find -xdev stopped working.
19768
19769 2006-10-12  Bruno Haible  <bruno@clisp.org>
19770
19771         * gnulib-tool (func_get_automake_snippet): Append an automatically
19772         computed EXTRA_DIST augmentation.
19773         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
19774         * modules/alloca-opt (Makefile.am): Likewise.
19775         * modules/allocsa (Makefile.am): Likewise.
19776         * modules/arcfour (Makefile.am): Likewise.
19777         * modules/arctwo (Makefile.am): Likewise.
19778         * modules/argmatch (Makefile.am): Likewise.
19779         * modules/argz (Makefile.am): Likewise.
19780         * modules/atexit (Makefile.am): Likewise.
19781         * modules/backupfile (Makefile.am): Likewise.
19782         * modules/byteswap (Makefile.am): Likewise.
19783         * modules/c-strtod (Makefile.am): Likewise.
19784         * modules/c-strtold (Makefile.am): Likewise.
19785         * modules/calloc (Makefile.am): Likewise.
19786         * modules/canon-host (Makefile.am): Likewise.
19787         * modules/canonicalize (Makefile.am): Likewise.
19788         * modules/chdir-long (Makefile.am): Likewise.
19789         * modules/chdir-safer (Makefile.am): Likewise.
19790         * modules/check-version (Makefile.am): Likewise.
19791         * modules/chown (Makefile.am): Likewise.
19792         * modules/cloexec (Makefile.am): Likewise.
19793         * modules/close-stream (Makefile.am): Likewise.
19794         * modules/closeout (Makefile.am): Likewise.
19795         * modules/crc (Makefile.am): Likewise.
19796         * modules/csharpexec (Makefile.am): Likewise.
19797         * modules/cycle-check (Makefile.am): Likewise.
19798         * modules/des (Makefile.am): Likewise.
19799         * modules/dev-ino (Makefile.am): Likewise.
19800         * modules/dirfd (Makefile.am): Likewise.
19801         * modules/dirname (Makefile.am): Likewise.
19802         * modules/dup2 (Makefile.am): Likewise.
19803         * modules/eealloc (Makefile.am): Likewise.
19804         * modules/error (Makefile.am): Likewise.
19805         * modules/euidaccess (Makefile.am): Likewise.
19806         * modules/exclude (Makefile.am): Likewise.
19807         * modules/exitfail (Makefile.am): Likewise.
19808         * modules/fcntl-safer (Makefile.am): Likewise.
19809         * modules/fcntl (Makefile.am): Likewise.
19810         * modules/file-type (Makefile.am): Likewise.
19811         * modules/fileblocks (Makefile.am): Likewise.
19812         * modules/filemode (Makefile.am): Likewise.
19813         * modules/filenamecat (Makefile.am): Likewise.
19814         * modules/fnmatch (Makefile.am): Likewise.
19815         * modules/fopen-safer (Makefile.am): Likewise.
19816         * modules/fpending (Makefile.am): Likewise.
19817         * modules/fprintftime (Makefile.am): Likewise.
19818         * modules/free (Makefile.am): Likewise.
19819         * modules/fsusage (Makefile.am): Likewise.
19820         * modules/ftruncate (Makefile.am): Likewise.
19821         * modules/fts (Makefile.am): Likewise.
19822         * modules/gc-arcfour (Makefile.am): Likewise.
19823         * modules/gc-des (Makefile.am): Likewise.
19824         * modules/gc-hmac-md5 (Makefile.am): Likewise.
19825         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
19826         * modules/gc-md4 (Makefile.am): Likewise.
19827         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19828         * modules/gc-sha1 (Makefile.am): Likewise.
19829         * modules/gc (Makefile.am): Likewise.
19830         * modules/getaddrinfo (Makefile.am): Likewise.
19831         * modules/getcwd (Makefile.am): Likewise.
19832         * modules/getdelim (Makefile.am): Likewise.
19833         * modules/getdomainname (Makefile.am): Likewise.
19834         * modules/getgroups (Makefile.am): Likewise.
19835         * modules/gethostname (Makefile.am): Likewise.
19836         * modules/gethrxtime (Makefile.am): Likewise.
19837         * modules/getline (Makefile.am): Likewise.
19838         * modules/getloadavg (Makefile.am): Likewise.
19839         * modules/getlogin_r (Makefile.am): Likewise.
19840         * modules/getndelim2 (Makefile.am): Likewise.
19841         * modules/getopt (Makefile.am): Likewise.
19842         * modules/getpagesize (Makefile.am): Likewise.
19843         * modules/getpass-gnu (Makefile.am): Likewise.
19844         * modules/getpass (Makefile.am): Likewise.
19845         * modules/getsubopt (Makefile.am): Likewise.
19846         * modules/gettime (Makefile.am): Likewise.
19847         * modules/gettimeofday (Makefile.am): Likewise.
19848         * modules/getugroups (Makefile.am): Likewise.
19849         * modules/getusershell (Makefile.am): Likewise.
19850         * modules/glob (Makefile.am): Likewise.
19851         * modules/group-member (Makefile.am): Likewise.
19852         * modules/hard-locale (Makefile.am): Likewise.
19853         * modules/hash (Makefile.am): Likewise.
19854         * modules/hmac-md5 (Makefile.am): Likewise.
19855         * modules/hmac-sha1 (Makefile.am): Likewise.
19856         * modules/human (Makefile.am): Likewise.
19857         * modules/idcache (Makefile.am): Likewise.
19858         * modules/imaxabs (Makefile.am): Likewise.
19859         * modules/imaxdiv (Makefile.am): Likewise.
19860         * modules/inet_ntop (Makefile.am): Likewise.
19861         * modules/inet_pton (Makefile.am): Likewise.
19862         * modules/intprops (Makefile.am): Likewise.
19863         * modules/inttostr (Makefile.am): Likewise.
19864         * modules/inttypes (Makefile.am): Likewise.
19865         * modules/isapipe (Makefile.am): Likewise.
19866         * modules/javaversion (Makefile.am): Likewise.
19867         * modules/lchmod (Makefile.am): Likewise.
19868         * modules/lchown (Makefile.am): Likewise.
19869         * modules/localcharset (Makefile.am): Likewise.
19870         * modules/long-options (Makefile.am): Likewise.
19871         * modules/lstat (Makefile.am): Likewise.
19872         * modules/malloc (Makefile.am): Likewise.
19873         * modules/mathl (Makefile.am): Likewise.
19874         * modules/mbchar (Makefile.am): Likewise.
19875         * modules/md2 (Makefile.am): Likewise.
19876         * modules/md4 (Makefile.am): Likewise.
19877         * modules/md5 (Makefile.am): Likewise.
19878         * modules/memcasecmp (Makefile.am): Likewise.
19879         * modules/memchr (Makefile.am): Likewise.
19880         * modules/memcmp (Makefile.am): Likewise.
19881         * modules/memcoll (Makefile.am): Likewise.
19882         * modules/memcpy (Makefile.am): Likewise.
19883         * modules/memmem (Makefile.am): Likewise.
19884         * modules/memmove (Makefile.am): Likewise.
19885         * modules/mempcpy (Makefile.am): Likewise.
19886         * modules/memrchr (Makefile.am): Likewise.
19887         * modules/memset (Makefile.am): Likewise.
19888         * modules/memxor (Makefile.am): Likewise.
19889         * modules/mkancesdirs (Makefile.am): Likewise.
19890         * modules/mkdir-p (Makefile.am): Likewise.
19891         * modules/mkdir (Makefile.am): Likewise.
19892         * modules/mkdtemp (Makefile.am): Likewise.
19893         * modules/mkstemp (Makefile.am): Likewise.
19894         * modules/mktime (Makefile.am): Likewise.
19895         * modules/modechange (Makefile.am): Likewise.
19896         * modules/mountlist (Makefile.am): Likewise.
19897         * modules/nanosleep (Makefile.am): Likewise.
19898         * modules/obstack (Makefile.am): Likewise.
19899         * modules/openat (Makefile.am): Likewise.
19900         * modules/pagealign_alloc (Makefile.am): Likewise.
19901         * modules/pathmax (Makefile.am): Likewise.
19902         * modules/physmem (Makefile.am): Likewise.
19903         * modules/poll (Makefile.am): Likewise.
19904         * modules/posixtm (Makefile.am): Likewise.
19905         * modules/posixver (Makefile.am): Likewise.
19906         * modules/putenv (Makefile.am): Likewise.
19907         * modules/quote (Makefile.am): Likewise.
19908         * modules/quotearg (Makefile.am): Likewise.
19909         * modules/raise (Makefile.am): Likewise.
19910         * modules/read-file (Makefile.am): Likewise.
19911         * modules/readline (Makefile.am): Likewise.
19912         * modules/readlink (Makefile.am): Likewise.
19913         * modules/readtokens (Makefile.am): Likewise.
19914         * modules/readutmp (Makefile.am): Likewise.
19915         * modules/realloc (Makefile.am): Likewise.
19916         * modules/regex (Makefile.am): Likewise.
19917         * modules/rename-dest-slash (Makefile.am): Likewise.
19918         * modules/rename (Makefile.am): Likewise.
19919         * modules/rijndael (Makefile.am): Likewise.
19920         * modules/rmdir (Makefile.am): Likewise.
19921         * modules/rpmatch (Makefile.am): Likewise.
19922         * modules/safe-read (Makefile.am): Likewise.
19923         * modules/safe-write (Makefile.am): Likewise.
19924         * modules/same-inode (Makefile.am): Likewise.
19925         * modules/same (Makefile.am): Likewise.
19926         * modules/save-cwd (Makefile.am): Likewise.
19927         * modules/savedir (Makefile.am): Likewise.
19928         * modules/setenv (Makefile.am): Likewise.
19929         * modules/settime (Makefile.am): Likewise.
19930         * modules/sha1 (Makefile.am): Likewise.
19931         * modules/sig2str (Makefile.am): Likewise.
19932         * modules/snprintf (Makefile.am): Likewise.
19933         * modules/stat-macros (Makefile.am): Likewise.
19934         * modules/stat-time (Makefile.am): Likewise.
19935         * modules/stdbool (Makefile.am): Likewise.
19936         * modules/stdint (Makefile.am): Likewise.
19937         * modules/stdlib-safer (Makefile.am): Likewise.
19938         * modules/stpcpy (Makefile.am): Likewise.
19939         * modules/stpncpy (Makefile.am): Likewise.
19940         * modules/strcase (Makefile.am): Likewise.
19941         * modules/strcasestr (Makefile.am): Likewise.
19942         * modules/strchrnul (Makefile.am): Likewise.
19943         * modules/strcspn (Makefile.am): Likewise.
19944         * modules/strdup (Makefile.am): Likewise.
19945         * modules/strerror (Makefile.am): Likewise.
19946         * modules/strftime (Makefile.am): Likewise.
19947         * modules/strndup (Makefile.am): Likewise.
19948         * modules/strnlen (Makefile.am): Likewise.
19949         * modules/strpbrk (Makefile.am): Likewise.
19950         * modules/strsep (Makefile.am): Likewise.
19951         * modules/strstr (Makefile.am): Likewise.
19952         * modules/strtod (Makefile.am): Likewise.
19953         * modules/strtoimax (Makefile.am): Likewise.
19954         * modules/strtok_r (Makefile.am): Likewise.
19955         * modules/strtol (Makefile.am): Likewise.
19956         * modules/strtoll (Makefile.am): Likewise.
19957         * modules/strtoul (Makefile.am): Likewise.
19958         * modules/strtoull (Makefile.am): Likewise.
19959         * modules/strtoumax (Makefile.am): Likewise.
19960         * modules/strverscmp (Makefile.am): Likewise.
19961         * modules/sys_socket (Makefile.am): Likewise.
19962         * modules/sys_stat (Makefile.am): Likewise.
19963         * modules/sysexits (Makefile.am): Likewise.
19964         * modules/time_r (Makefile.am): Likewise.
19965         * modules/timegm (Makefile.am): Likewise.
19966         * modules/timespec (Makefile.am): Likewise.
19967         * modules/tmpfile-safer (Makefile.am): Likewise.
19968         * modules/trim (Makefile.am): Likewise.
19969         * modules/unistd-safer (Makefile.am): Likewise.
19970         * modules/unlinkdir (Makefile.am): Likewise.
19971         * modules/unlocked-io (Makefile.am): Likewise.
19972         * modules/userspec (Makefile.am): Likewise.
19973         * modules/utime (Makefile.am): Likewise.
19974         * modules/utimecmp (Makefile.am): Likewise.
19975         * modules/utimens (Makefile.am): Likewise.
19976         * modules/vasnprintf (Makefile.am): Likewise.
19977         * modules/vasprintf (Makefile.am): Likewise.
19978         * modules/vsnprintf (Makefile.am): Likewise.
19979         * modules/xalloc (Makefile.am): Likewise.
19980         * modules/xgetcwd (Makefile.am): Likewise.
19981         * modules/xnanosleep (Makefile.am): Likewise.
19982         * modules/xreadlink (Makefile.am): Likewise.
19983         * modules/xstrtod (Makefile.am): Likewise.
19984         * modules/xstrtol (Makefile.am): Likewise.
19985         * modules/xstrtold (Makefile.am): Likewise.
19986         * modules/yesno (Makefile.am): Likewise.
19987         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
19988
19989 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19990
19991         * modules/error (Makefile.am): Distribute files through
19992         EXTRA_DIST, not lib_SOURCES.
19993
19994 2006-10-12  Eric Blake  <ebb9@byu.net>
19995
19996         * modules/error (Makefile.am): Distribute files in /lib.
19997         * modules/obstack (Makefile.am): Likewise.
19998
19999 2006-10-12  Bruno Haible  <bruno@clisp.org>
20000
20001         * modules/acl (Makefile.am): Distribute all files in lib/ through
20002         EXTRA_DIST.
20003         * modules/arcfour (Makefile.am): Likewise.
20004         * modules/arctwo (Makefile.am): Likewise.
20005         * modules/argmatch (Makefile.am): Likewise.
20006         * modules/argz (Makefile.am): Likewise.
20007         * modules/atexit (Makefile.am): Likewise.
20008         * modules/backupfile (Makefile.am): Likewise.
20009         * modules/c-strtod (Makefile.am): Likewise.
20010         * modules/c-strtold (Makefile.am): Likewise.
20011         * modules/calloc (Makefile.am): Likewise.
20012         * modules/canon-host (Makefile.am): Likewise.
20013         * modules/canonicalize (Makefile.am): Likewise.
20014         * modules/chdir-long (Makefile.am): Likewise.
20015         * modules/chdir-safer (Makefile.am): Likewise.
20016         * modules/check-version (Makefile.am): Likewise.
20017         * modules/chown (Makefile.am): Likewise.
20018         * modules/cloexec (Makefile.am): Likewise.
20019         * modules/close-stream (Makefile.am): Likewise.
20020         * modules/closeout (Makefile.am): Likewise.
20021         * modules/crc (Makefile.am): Likewise.
20022         * modules/cycle-check (Makefile.am): Likewise.
20023         * modules/des (Makefile.am): Likewise.
20024         * modules/dirfd (Makefile.am): Likewise.
20025         * modules/dirname (Makefile.am): Likewise.
20026         * modules/dup2 (Makefile.am): Likewise.
20027         * modules/euidaccess (Makefile.am): Likewise.
20028         * modules/exclude (Makefile.am): Likewise.
20029         * modules/exitfail (Makefile.am): Likewise.
20030         * modules/fcntl-safer (Makefile.am): Likewise.
20031         * modules/file-type (Makefile.am): Likewise.
20032         * modules/fileblocks (Makefile.am): Likewise.
20033         * modules/filemode (Makefile.am): Likewise.
20034         * modules/filenamecat (Makefile.am): Likewise.
20035         * modules/fnmatch (Makefile.am): Likewise.
20036         * modules/fopen-safer (Makefile.am): Likewise.
20037         * modules/fpending (Makefile.am): Likewise.
20038         * modules/fprintftime (Makefile.am): Likewise.
20039         * modules/free (Makefile.am): Likewise.
20040         * modules/fsusage (Makefile.am): Likewise.
20041         * modules/ftruncate (Makefile.am): Likewise.
20042         * modules/fts (Makefile.am): Likewise.
20043         * modules/gc (Makefile.am): Likewise.
20044         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
20045         * modules/getaddrinfo (Makefile.am): Likewise.
20046         * modules/getcwd (Makefile.am): Likewise.
20047         * modules/getdelim (Makefile.am): Likewise.
20048         * modules/getdomainname (Makefile.am): Likewise.
20049         * modules/getgroups (Makefile.am): Likewise.
20050         * modules/gethostname (Makefile.am): Likewise.
20051         * modules/gethrxtime (Makefile.am): Likewise.
20052         * modules/getline (Makefile.am): Likewise.
20053         * modules/getloadavg (Makefile.am): Likewise.
20054         * modules/getlogin_r (Makefile.am): Likewise.
20055         * modules/getopt (Makefile.am): Likewise.
20056         * modules/getpass (Makefile.am): Likewise.
20057         * modules/getpass-gnu (Makefile.am): Likewise.
20058         * modules/getsubopt (Makefile.am): Likewise.
20059         * modules/gettime (Makefile.am): Likewise.
20060         * modules/gettimeofday (Makefile.am): Likewise.
20061         * modules/getugroups (Makefile.am): Likewise.
20062         * modules/getusershell (Makefile.am): Likewise.
20063         * modules/glob (Makefile.am): Likewise.
20064         * modules/group-member (Makefile.am): Likewise.
20065         * modules/hard-locale (Makefile.am): Likewise.
20066         * modules/hash (Makefile.am): Likewise.
20067         * modules/hmac-md5 (Makefile.am): Likewise.
20068         * modules/hmac-sha1 (Makefile.am): Likewise.
20069         * modules/human (Makefile.am): Likewise.
20070         * modules/idcache (Makefile.am): Likewise.
20071         * modules/imaxabs (Makefile.am): Likewise.
20072         * modules/imaxdiv (Makefile.am): Likewise.
20073         * modules/inet_ntop (Makefile.am): Likewise.
20074         * modules/inet_pton (Makefile.am): Likewise.
20075         * modules/inttostr (Makefile.am): Likewise.
20076         * modules/isapipe (Makefile.am): Likewise.
20077         * modules/lchown (Makefile.am): Likewise.
20078         * modules/long-options (Makefile.am): Likewise.
20079         * modules/lstat (Makefile.am): Likewise.
20080         * modules/malloc (Makefile.am): Likewise.
20081         * modules/mathl (Makefile.am): Likewise.
20082         * modules/mbchar (Makefile.am): Likewise.
20083         * modules/md2 (Makefile.am): Likewise.
20084         * modules/md4 (Makefile.am): Likewise.
20085         * modules/md5 (Makefile.am): Likewise.
20086         * modules/memcasecmp (Makefile.am): Likewise.
20087         * modules/memchr (Makefile.am): Likewise.
20088         * modules/memcmp (Makefile.am): Likewise.
20089         * modules/memcoll (Makefile.am): Likewise.
20090         * modules/memcpy (Makefile.am): Likewise.
20091         * modules/memmem (Makefile.am): Likewise.
20092         * modules/memmove (Makefile.am): Likewise.
20093         * modules/mempcpy (Makefile.am): Likewise.
20094         * modules/memrchr (Makefile.am): Likewise.
20095         * modules/memset (Makefile.am): Likewise.
20096         * modules/memxor (Makefile.am): Likewise.
20097         * modules/mkancesdirs (Makefile.am): Likewise.
20098         * modules/mkdir (Makefile.am): Likewise.
20099         * modules/mkdir-p (Makefile.am): Likewise.
20100         * modules/mkdtemp (Makefile.am): Likewise.
20101         * modules/mkstemp (Makefile.am): Likewise.
20102         * modules/mktime (Makefile.am): Likewise.
20103         * modules/modechange (Makefile.am): Likewise.
20104         * modules/mountlist (Makefile.am): Likewise.
20105         * modules/nanosleep (Makefile.am): Likewise.
20106         * modules/openat (Makefile.am): Likewise.
20107         * modules/pagealign_alloc (Makefile.am): Likewise.
20108         * modules/physmem (Makefile.am): Likewise.
20109         * modules/poll (Makefile.am): Likewise.
20110         * modules/posixtm (Makefile.am): Likewise.
20111         * modules/posixver (Makefile.am): Likewise.
20112         * modules/putenv (Makefile.am): Likewise.
20113         * modules/quote (Makefile.am): Likewise.
20114         * modules/quotearg (Makefile.am): Likewise.
20115         * modules/raise (Makefile.am): Likewise.
20116         * modules/read-file (Makefile.am): Likewise.
20117         * modules/readline (Makefile.am): Likewise.
20118         * modules/readlink (Makefile.am): Likewise.
20119         * modules/readtokens (Makefile.am): Likewise.
20120         * modules/readutmp (Makefile.am): Likewise.
20121         * modules/realloc (Makefile.am): Likewise.
20122         * modules/regex (Makefile.am): Likewise.
20123         * modules/rename (Makefile.am): Likewise.
20124         * modules/rename-dest-slash (Makefile.am): Likewise.
20125         * modules/rijndael (Makefile.am): Likewise.
20126         * modules/rmdir (Makefile.am): Likewise.
20127         * modules/rpmatch (Makefile.am): Likewise.
20128         * modules/safe-read (Makefile.am): Likewise.
20129         * modules/safe-write (Makefile.am): Likewise.
20130         * modules/same (Makefile.am): Likewise.
20131         * modules/save-cwd (Makefile.am): Likewise.
20132         * modules/savedir (Makefile.am): Likewise.
20133         * modules/setenv (Makefile.am): Likewise.
20134         * modules/settime (Makefile.am): Likewise.
20135         * modules/sha1 (Makefile.am): Likewise.
20136         * modules/sig2str (Makefile.am): Likewise.
20137         * modules/snprintf (Makefile.am): Likewise.
20138         * modules/stdlib-safer (Makefile.am): Likewise.
20139         * modules/stpcpy (Makefile.am): Likewise.
20140         * modules/stpncpy (Makefile.am): Likewise.
20141         * modules/strcase (Makefile.am): Likewise.
20142         * modules/strcasestr (Makefile.am): Likewise.
20143         * modules/strchrnul (Makefile.am): Likewise.
20144         * modules/strcspn (Makefile.am): Likewise.
20145         * modules/strdup (Makefile.am): Likewise.
20146         * modules/strerror (Makefile.am): Likewise.
20147         * modules/strftime (Makefile.am): Likewise.
20148         * modules/strndup (Makefile.am): Likewise.
20149         * modules/strnlen (Makefile.am): Likewise.
20150         * modules/strpbrk (Makefile.am): Likewise.
20151         * modules/strsep (Makefile.am): Likewise.
20152         * modules/strstr (Makefile.am): Likewise.
20153         * modules/strtod (Makefile.am): Likewise.
20154         * modules/strtoimax (Makefile.am): Likewise.
20155         * modules/strtok_r (Makefile.am): Likewise.
20156         * modules/strtol (Makefile.am): Likewise.
20157         * modules/strtoll (Makefile.am): Likewise.
20158         * modules/strtoul (Makefile.am): Likewise.
20159         * modules/strtoull (Makefile.am): Likewise.
20160         * modules/strtoumax (Makefile.am): Likewise.
20161         * modules/strverscmp (Makefile.am): Likewise.
20162         * modules/time_r (Makefile.am): Likewise.
20163         * modules/timegm (Makefile.am): Likewise.
20164         * modules/tmpfile-safer (Makefile.am): Likewise.
20165         * modules/unistd-safer (Makefile.am): Likewise.
20166         * modules/unlinkdir (Makefile.am): Likewise.
20167         * modules/userspec (Makefile.am): Likewise.
20168         * modules/utime (Makefile.am): Likewise.
20169         * modules/utimecmp (Makefile.am): Likewise.
20170         * modules/utimens (Makefile.am): Likewise.
20171         * modules/vasnprintf (Makefile.am): Likewise.
20172         * modules/vasprintf (Makefile.am): Likewise.
20173         * modules/vsnprintf (Makefile.am): Likewise.
20174         * modules/xalloc (Makefile.am): Likewise.
20175         * modules/xgetcwd (Makefile.am): Likewise.
20176         * modules/xnanosleep (Makefile.am): Likewise.
20177         * modules/xreadlink (Makefile.am): Likewise.
20178         * modules/xstrtod (Makefile.am): Likewise.
20179         * modules/xstrtol (Makefile.am): Likewise.
20180         * modules/xstrtold (Makefile.am): Likewise.
20181         * modules/yesno (Makefile.am): Likewise.
20182
20183 2006-10-12  Jim Meyering  <jim@meyering.net>
20184
20185         * m4/getloadavg.m4: Revert the change below.
20186
20187         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20188         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20189         fail with a symlink, which is what coreutils' ./bootstrap now
20190         creates by default.
20191
20192 2006-10-12  Bruno Haible  <bruno@clisp.org>
20193
20194         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20195         mingw.
20196         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20197         MSVC and mingw explicitly.
20198
20199 2006-10-11  Simon Josefsson  <jas@extundo.com>
20200             Bruno Haible  <bruno@clisp.org>
20201
20202         Add support for multiple gnulib-tool invocations in the scope of a
20203         single configure.ac file.
20204         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20205         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20206         with the same contents as the _LIBADD variable.
20207         (func_emit_initmacro_start, func_emit_initmacro_end,
20208         func_emit_initmacro_done): New functions.
20209         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20210         gl_LIBOBJS and gl_LTLIBOBJS.
20211
20212 2006-10-11  Bruno Haible  <bruno@clisp.org>
20213
20214         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20215         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20216         autoreconf. Instead, invoke autopoint explicitly but move back the
20217         *.m4 files from gnulib.
20218
20219 2006-10-11  Bruno Haible  <bruno@clisp.org>
20220
20221         * gnulib-tool (func_usage): Make module names after --create-testdir
20222         optional.
20223         (func_create_testdir): If no module was specified, use nearly all
20224         modules.
20225
20226 2006-10-12  Jim Meyering  <jim@meyering.net>
20227
20228         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20229         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20230         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20231         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20232         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20233         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20234         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20235         (fts_set_stat_required): New function.
20236         (fts_open): Defer the calls to fts_stat, if possible or requested.
20237         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20238         into fts_stat itself.
20239         (fts_read): Perform any required (deferred) fts_stat call.
20240         (fts_build): Likewise, for the directory we're about to open and read.
20241         In the readdir loop, carefully decide whether each entry will require
20242         an eventual call to fts_stat, using dirent.d_type info if available.
20243         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20244         a command line argument into this function.  Update all callers.
20245         Map a return value of FTS_DOT to FTS_D for a command line argument.
20246         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20247         Thanks to Miklos Szeredi for his tenacity and for the initial
20248         bug report about "find" failing on a FUSE-based file system.
20249
20250         * lib/fts.c (fts_open): Use consistent indentation.
20251
20252 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20253
20254         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20255         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20256         reported by Jim Meyering.  All uses of cache variables renamed
20257         to match Autoconf's.
20258         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20259         the other one.
20260
20261         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20262         Fix misspelling in diagnostic.
20263
20264 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20265
20266         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20267         defined.  Problem reported by Matthew Woehlke.
20268
20269         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20270         Add support for Tandem NonStop R series.
20271         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20272         Use new macro.
20273
20274         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20275         (has_trailing_slash): Omit size arg; all callers changed.
20276         Omit 'inline', since it doesn't help performance and we'd
20277         need to configure it.
20278         Don't count //, ///, etc. as having a trailing slash.
20279         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20280         (rpl_rename_dest_slash): On failure, use rename's errno rather
20281         than (in some cases) an incorrect or junk errno.
20282         Simplify code by removing need to compute length; this does
20283         cause it to make two passes instead of one over the file name,
20284         but it's worth it.
20285
20286         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20287         change, since Autoconf's version may no longer be appropriate now
20288         that we are using CVS Autoconf's version.  Add support for Tandem.
20289
20290 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20291             Bruno Haible  <bruno@clisp.org>
20292
20293         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20294         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20295         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20296         gl_AC_TYPE_LONG_LONG.
20297
20298         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20299         instead of HAVE_LONG_LONG.
20300         * lib/printf-args.c (printf_fetchargs): Likewise.
20301         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20302         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20303         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20304         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20305         gl_AC_TYPE_LONG_LONG.
20306
20307 2006-10-11  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/longlong.m4: Add comments.
20310         * m4/ulonglong.m4: Likewise.
20311
20312 2006-10-10  Bruno Haible  <bruno@clisp.org>
20313
20314         Make it possible to #define stpcpy, strdup to aliases.
20315         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20316         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20317
20318 2006-10-10  Bruno Haible  <bruno@clisp.org>
20319
20320         Make it possible to #define gcd to an alias.
20321         * lib/gcd.c: Include config.h.
20322
20323 2006-10-10  Bruno Haible  <bruno@clisp.org>
20324
20325         Make it possible to #define c_isascii to an alias.
20326         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20327         defined. Undefine the macros before defining them, to avoid gcc
20328         warnings.
20329         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20330         define NO_C_CTYPE_MACROS early.
20331
20332 2006-10-10  Bruno Haible  <bruno@clisp.org>
20333
20334         Make it possible to #define set_program_name to an alias.
20335         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20336         ENABLE_RELOCATABLE early.
20337
20338 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20339
20340         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20341         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20342         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20343         More generally, don't assume that 64-bit signed int is available
20344         if unsigned int is, and vice versa.
20345         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20346         unsigned symbols, not on their signed counterparts.
20347         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20348         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20349         (UINT64_C, UINTMAX_C):
20350         Likewise.
20351         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20352         unsigned counterparts.
20353         (Have_long_long, Unsigned): New macros.
20354         (Int): Renamed from INT.
20355         (strtoimax): Use the new macros.
20356         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20357         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20358         * modules/inttypes (inttypes.h): Substitute
20359         HAVE_UNSIGNED_LONG_LONG_INT.
20360         * modules/stdint (stdint.h): Likewise.
20361         (Files): Add m4/ulonglong.m4.
20362
20363 2006-10-10  Bruno Haible  <bruno@clisp.org>
20364
20365         Fix a gcc -Wshadow warning.
20366         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20367         to 'bucket'.
20368         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20369         gl_linked_indexof_from_to): Likewise.
20370         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20371         Likewise.
20372         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20373         Likewise.
20374         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20375         Reported by Eric Blake.
20376
20377 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20378
20379         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20380         for NetBSD.  Problem reported by Bruno Haible.
20381
20382 2006-10-09  Jim Meyering  <jim@meyering.net>
20383
20384         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20385         Patch from Bruno Haible.
20386
20387 2006-10-09  Jim Meyering  <jim@meyering.net>
20388
20389         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20390         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20391         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20392
20393 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20394
20395         Don't include <config.h> twice; this doesn't work in some cases,
20396         e.g., when config.h has "#define intmax_t long long int" and
20397         we include <config.h>, <inttypes.h>, <config.h> in that order.
20398         Problem reported by Matthew Woehlke in:
20399         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20400         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20401         * lib/fts-cycle.c: Don't include config.h.
20402         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20403         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20404         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20405         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20406         inttypes.h.
20407         * lib/xstrtoumax.c: Likewise.
20408         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20409         __strtol and the like, so that this module is more like its siblings.
20410         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20411         Remove; no longer needed now that we assume gnulib inttypes.h.
20412
20413 2006-10-08  Bruno Haible  <bruno@clisp.org>
20414
20415         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20416         option.
20417
20418 2006-10-07  Jim Meyering  <jim@meyering.net>
20419
20420         * modules/inttypes (inttypes.h): Revert what seems to have been
20421         an inadvertent part of today's change: use "|", not "/" in the
20422         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20423
20424 2006-10-07  Bruno Haible  <bruno@clisp.org>
20425
20426         * modules/sublist: New file.
20427
20428 2006-10-07  Bruno Haible  <bruno@clisp.org>
20429
20430         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20431         * modules/argz (argz.h): Likewise.
20432         * modules/arpa_inet (arpa/inet.h): Likewise.
20433         * modules/byteswap (byteswap.h): Likewise.
20434         * modules/configmake (configmake.h): Likewise.
20435         * modules/fcntl (fcntl.h): Likewise.
20436         * modules/fnmatch (fnmatch.h): Likewise.
20437         * modules/getopt (getopt.h): Likewise.
20438         * modules/glob (glob.h): Likewise.
20439         * modules/inttypes (inttypes.h): Likewise.
20440         * modules/netinet_in (netinet/in.h): Likewise.
20441         * modules/poll (poll.h): Likewise.
20442         * modules/stdbool (stdbool.h): Likewise.
20443         * modules/stdint (stdint.h): Likewise.
20444         * modules/sys_select (sys/select.h): Likewise.
20445         * modules/sys_socket (sys/socket.h): Likewise.
20446         * modules/sys_stat (sys/stat.h): Likewise.
20447         * modules/sysexits (sysexits.h): Likewise.
20448         * modules/unistd (unistd.h): Likewise.
20449         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20450         Add a "DO NOT EDIT" comment to the generated file.
20451         (func_import): Likewise for gnulib-comp.m4.
20452
20453 2006-10-07  Bruno Haible  <bruno@clisp.org>
20454
20455         * lib/gl_sublist.h: New file.
20456         * lib/gl_sublist.c: New file.
20457
20458 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20459
20460         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20461         name (relative to the original working directory) and the file
20462         name component (relative to the temporary working directory).  All
20463         callers changed.
20464         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20465         * lib/mkdir-p.c (make_dir_parents): Likewise.
20466         * lib/mkdir-p.h (make_dir_parents): Likewise.
20467
20468 2006-10-06  Eric Blake  <ebb9@byu.net>
20469
20470         Define several macros for use by the clean-temp module.
20471         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20472         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20473         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20474
20475         * lib/clean-temp.h (close_stream_temp): New declaration.
20476         * lib/clean-temp.c (includes): Pull in headers according to what
20477         other modules are in use.
20478         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20479
20480 2006-10-06  Bruno Haible  <bruno@clisp.org>
20481
20482         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20483         instead of fopen, fwriteerror.
20484
20485 2006-10-06  Bruno Haible  <bruno@clisp.org>
20486
20487         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20488         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20489         int.
20490         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20491         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20492         Return an error indicator.
20493         Suggested by Eric Blake.
20494
20495 2006-10-06  Bruno Haible  <bruno@clisp.org>
20496
20497         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20498         Reported by Eric Blake.
20499
20500 2006-10-06  Bruno Haible  <bruno@clisp.org>
20501
20502         * modules/closeout (Description): Mention stderr too.
20503
20504 2006-10-06  Bruno Haible  <bruno@clisp.org>
20505         and Paul Eggert  <eggert@cs.ucla.edu>
20506
20507         * lib/closeout.c (close_stdout): Also close stderr.
20508         * lib/closeout.h: Update comment.
20509
20510 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20511
20512         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20513         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20514         * lib/dirchownmod.c: Include lchown.h.
20515         * lib/lchown.c: Don't include files that lchown.h now includes.
20516         Don't declare chown, since lchown.h now does that.
20517         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20518         (lchown): Define to rpl_chown if lchown is declared but
20519         does not exist.  Declare using a prototype if lchown is not
20520         declared.  Add a copyright notice.
20521         * lib/mkstemp.h: Include <unistd.h>.
20522         * lib/openat.c: Include lchown.h.
20523
20524         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20525         we now test for that separately.
20526         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20527         rather than O_NOFOLLOW, when testing whether it's possible to
20528         avoid a race condition reliably.
20529         * lib/savewd.c (savewd_chdir): Likewise.
20530
20531         Remove macros that are no longer needed now that stdint.h is
20532         reliable.
20533         * lib/fsusage.c (UINTMAX_MAX): Remove.
20534         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20535         * lib/utimecmp.c (SIZE_MAX): Remove.
20536
20537         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20538
20539         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20540         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20541         O_NOATIME works.
20542
20543 2006-10-05  Bruno Haible  <bruno@clisp.org>
20544
20545         * lib/gl_list.h (gl_sortedlist_search_from_to,
20546         gl_sortedlist_indexof_from_to): New declarations.
20547         (gl_list_implementation): New fields sortedlist_search_from_to,
20548         sortedlist_indexof_from_to.
20549         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20550         inline functions.
20551         * lib/gl_list.c (gl_sortedlist_search_from_to,
20552         gl_sortedlist_indexof_from_to): New functions.
20553         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20554         function.
20555         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20556         (gl_array_sortedlist_search_from_to): New function.
20557         (gl_array_list_implementation): Update.
20558         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20559         function.
20560         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20561         (gl_carray_sortedlist_search_from_to): New function.
20562         (gl_carray_list_implementation): Update.
20563         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20564         gl_linked_sortedlist_indexof_from_to): New functions.
20565         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20566         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20567         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20568         gl_tree_sortedlist_indexof_from_to): New functions.
20569         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20570         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20571         Update.
20572         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20573         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20574         Update.
20575
20576 2006-10-05  Bruno Haible  <bruno@clisp.org>
20577
20578         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20579         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20580         (struct gl_list_implementation): Add fields search_from_to,
20581         indexof_from_to. Remove fields search, indexof.
20582         (gl_list_search): Use the search_from_to method.
20583         (gl_list_search_from, gl_list_search_from_to): New functions.
20584         (gl_list_indexof): Use the indexof_from_to method.
20585         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20586         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20587         (gl_list_search_from, gl_list_search_from_to): New functions.
20588         (gl_list_indexof): Use the indexof_from_to method.
20589         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20590         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20591         gl_array_indexof. Add start_index, end_index arguments.
20592         (gl_array_search_from_to): Renamed from gl_array_search. Add
20593         start_index, end_index arguments.
20594         (gl_array_remove, gl_array_list_implementation): Update.
20595         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20596         gl_carray_indexof. Add start_index, end_index arguments.
20597         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20598         start_index, end_index arguments.
20599         (gl_carray_remove, gl_carray_list_implementation): Update.
20600         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20601         gl_linked_search. Add start_index, end_index arguments.
20602         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20603         start_index, end_index arguments.
20604         (gl_linked_remove): Update.
20605         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20606         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20607         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20608         field to 'size_t'.
20609         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20610         gl_tree_search. Add start_index, end_index arguments.
20611         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20612         start_index, end_index arguments.
20613         (gl_tree_remove): Update.
20614         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20615         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20616         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20617         function.
20618         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20619         gl_tree_search. Add start_index, end_index arguments.
20620         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20621         start_index, end_index arguments.
20622         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20623         Update.
20624         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20625
20626 2006-10-05  Bruno Haible  <bruno@clisp.org>
20627
20628         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20629
20630         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20631         fwriteerror_temp): New declarations.
20632         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20633         (descriptors): New variable.
20634         (cleanup): First, close the descriptors.
20635         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20636         fclose_temp, fwriteerror_temp): New functions.
20637
20638 2006-10-04  Jim Meyering  <jim@meyering.net>
20639
20640         * lib/fts.c (fts_open): Tiny comment change.
20641
20642 2006-10-04  Bruno Haible  <bruno@clisp.org>
20643
20644         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20645         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20646         gl_LOCK_BODY.
20647         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20648         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20649         gl_LOCK_EARLY_BODY.
20650         (gl_LOCK): Require gl_LOCK_BODY.
20651
20652 2006-10-04  Bruno Haible  <bruno@clisp.org>
20653
20654         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20655         (gl_oset_search_atleast): New declaration.
20656         (struct gl_oset_implementation): Add field 'search_atleast'.
20657         (gl_oset_search_atleast): New inline function.
20658         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20659         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20660         (gl_array_oset_implementation): Update.
20661         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20662         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20663         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20664
20665 2006-10-04  Bruno Haible  <bruno@clisp.org>
20666
20667         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20668
20669 2006-10-03  Bruno Haible  <bruno@clisp.org>
20670
20671         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20672         from gl_avltreehash_list_implementation.
20673
20674 2006-10-03  Bruno Haible  <bruno@clisp.org>
20675
20676         * lib/gl_oset.c (gl_oset_add): Fix return type.
20677
20678 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20679
20680         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20681
20682 2006-10-02  Eric Blake  <ebb9@byu.net>
20683
20684         * modules/strnlen (Depends-on): Add extensions.
20685
20686 2006-10-02  Eric Blake  <ebb9@byu.net>
20687
20688         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20689         definition in 2.60+.
20690
20691 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
20692
20693         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20694         checks.
20695
20696 2006-10-02  Bruno Haible  <bruno@clisp.org>
20697
20698         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20699         to the AUTOMAKE_OPTIONS.
20700         Reported by Jim Meyering.
20701
20702 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         Work around bug in Solaris 10 /proc file system:
20705         /proc/self/fd/NNN/.. isn't the parent directory of
20706         the directory whose file descriptor is NNN.  This needs to
20707         be worked around at run time, not compile time, since a
20708         program might be built on Solaris 8, where things work, and
20709         run on Solaris 10.
20710         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
20711         to use the following interface instead:
20712         (OPENAT_BUFFER_SIZE): New macro.
20713         (openat_proc_name): New function.
20714         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20715         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20716         Likewise.
20717         * lib/openat-proc.c: New file.
20718         * modules/openat (Files): Add lib/openat-proc.c.
20719         (Depends-on): Add same-inode, stdbool.
20720         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
20721
20722 2006-09-29  Bruno Haible  <bruno@clisp.org>
20723
20724         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
20725         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
20726         argument. Set stdout_closed before testing for ferror, not after.
20727         (fwriteerror, fwriteerror_no_ebadf): New functions.
20728
20729 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20730
20731         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
20732
20733 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
20734
20735         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
20736         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
20737
20738 2006-09-28  Jim Meyering  <jim@meyering.net>
20739
20740         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
20741         Include <unistd.h>.
20742
20743 2006-09-28  Bruno Haible  <bruno@clisp.org>
20744
20745         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
20746         * modules/linkedhash-list (Depends-on): Likewise.
20747         * modules/rbtreehash-list (Depends-on): Likewise.
20748
20749 2006-09-28  Bruno Haible  <bruno@clisp.org>
20750
20751         * lib/strndup.h: Simplify the redefinition of strndup.
20752         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
20753         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
20754
20755 2006-09-28  Bruno Haible  <bruno@clisp.org>
20756
20757         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
20758         * lib/gl_linkedhash_list.c: Likewise.
20759         * lib/gl_rbtreehash_list.c: Likewise.
20760
20761 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
20762
20763         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
20764         getaddrinfo.
20765
20766         * lib/__fpending.h: Don't include <stdio_ext.h> unless
20767         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
20768         it causes <stdio_ext.h> to cause a compile-time error.
20769         Problem reported by Nelson H. F. Beebe.
20770         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
20771         of HAVE_DECL___PENDING.
20772
20773         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
20774         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
20775         declaration.
20776
20777 2006-09-27  Jim Meyering  <jim@meyering.net>
20778
20779         This file could end up with a definition for a function
20780         named __strndup, rather than rpl_strndup on a system with
20781         incomplete weak_alias support.
20782         * lib/strndup.c (strndup): Rename from __strndup.
20783         Remove #defines that used to map __strndup to strndup.
20784         Don't use K&R prototypes.
20785         Remove LIBC-related code, since this file is not sync'd with glibc.
20786         * lib/strndup.h: Revamp, accordingly.
20787         * m4/strndup.m4: Modernize.
20788
20789 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         * modules/savewd (Depends-on): Add 'raise'.
20792         * lib/savewd.c: Include <signal.h>, for 'raise'.
20793
20794 2006-09-26  Jim Meyering  <jim@meyering.net>
20795
20796         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
20797         when we detect Darwin 8.7.0's acl_get_file bug.
20798         Rearrange to perform the new (below) run-test while $LIBS
20799         contains any acl-related library.  Set USE_ACL at the end.
20800         (gl_ACL_GET_FILE): New function.
20801
20802 2006-09-26  Eric Blake  <ebb9@byu.net>
20803
20804         * lib/verror.c: Include <config.h> unconditionally.
20805
20806 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20807
20808         * modules/clock-time (Maintainer): Add self.
20809         * modules/getlogin_r (Depends-on): Add extensions.
20810
20811 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20812
20813         * modules/clock-time: New module.
20814         * modules/nanosleep (Depends-on): Add clock-time.
20815         * modules/gethrxtime (Depends-on): Likewise.
20816         * modules/gettime (Depends-on): Likewise.
20817         * modules/settime (Depends-on): Likewise.
20818
20819         * modules/fts-lgpl: Depend on openat.
20820         * modules/mkancesdirs: Depend on savewd.
20821         * modules/mkdir-p: Likewise.
20822
20823 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20824
20825         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
20826
20827         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
20828         `gl_have_arbitrary_file_name_length_limit' to
20829         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
20830         actually works between configure runs.
20831
20832 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20833             Bruno Haible  <bruno@clisp.org>
20834
20835         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
20836
20837 2006-09-25  Jim Meyering  <jim@meyering.net>
20838
20839         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
20840         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
20841
20842 2006-09-25  Eric Blake  <ebb9@byu.net>
20843
20844         * gnulib-tool (func_import, func_create_testdir): Fix typos in
20845         exec's in 2006-09-18 patch when shuffling fds.
20846
20847 2006-09-25  Bruno Haible  <bruno@clisp.org>
20848
20849         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
20850         Reported by Jim Meyering.
20851
20852 2006-09-24  Jim Meyering  <jim@meyering.net>
20853
20854         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
20855         compare a pointer against a literal "0".  That caused failures with
20856         at least HP-UX's hpcc.
20857
20858 2006-09-22  Simon Josefsson  <jas@extundo.com>
20859
20860         * modules/gc-sha1:
20861         * modules/gc-md4:
20862         * modules/gc-hmac-sha1:
20863         * modules/gc-hmac-md5:
20864         * modules/gc-des:
20865         * modules/gc-arcfour: Distribute more files.
20866
20867 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20868
20869         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
20870         (gl_linked_iterator_from_to): Initialize struct completely.
20871         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
20872         (gl_tree_iterator_from_to): Likewise
20873         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
20874         * lib/gl_array_list.c [lint] (gl_array_iterator)
20875         (gl_array_iterator_from_to): Likewise.
20876         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
20877         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
20878         (gl_carray_iterator_from_to): Likewise.
20879
20880         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
20881         * lib/md4.c (md4_process_block): Remove unused variable.
20882         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
20883         parentheses for clarity.
20884
20885 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20886
20887         * modules/bison-i18n (Depends-on): Add gettext.
20888
20889 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20890
20891         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
20892         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20893         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
20894         also add missing comma that caused broken test.
20895         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
20896         stdlib.h, for `abort'.
20897         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
20898         variables.
20899         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
20900         include unistd.h if present, for `rmdir'.
20901         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
20902         variables.
20903         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
20904         in the process include standard headers for prototypes.
20905         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
20906         gets declared on GNU/Linux.
20907         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
20908         unistd.h, for `rmdir'.
20909         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
20910
20911         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
20912         always true.
20913         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
20914
20915         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
20916
20917 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20918
20919         * gnulib-tool (func_version): Create output all at once.  This
20920         may help avoid triggering unnecessary SIGPIPEs, and at any
20921         rate it doesn't hurt.
20922
20923 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20924             Bruno Haible  <bruno@clisp.org>
20925
20926         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
20927         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20928         * m4/signed.m4 (bh_C_SIGNED): Likewise.
20929
20930         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
20931         (gl_FUNC_VASPRINTF): Invoke it.
20932
20933 2006-09-22  Bruno Haible  <bruno@clisp.org>
20934
20935         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
20936         getloadavg.c as first argument.
20937
20938 2006-09-22  Bruno Haible  <bruno@clisp.org>
20939
20940         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
20941         at the beginning of the gl_INIT macro.
20942         * modules/getloadavg (configure.ac): Pass $gl_source_base to
20943         gl_GETLOADAVG.
20944
20945 2006-09-22  Bruno Haible  <bruno@clisp.org>
20946
20947         * gnulib-tool (func_create_megatestdir): Don't include the config-h
20948         module.
20949         Suggested by Ralf Wildenhues.
20950
20951 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20952
20953         Import this patch from libc:
20954
20955         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
20956
20957         * lib/regex_internal.c (re_string_reconstruct): Handle
20958         offset < pstr->valid_raw_len && pstr->offsets_needed case.
20959         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
20960         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
20961         re_string_context_at.
20962
20963         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
20964         now requires it.
20965         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
20966         gl_REGEX now does it for us.
20967         (gl_REGEX): Add test taken from
20968         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
20969
20970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
20971         Check that large offsets work.  Modernize Autoconf usages.
20972         Prefer "yes" to mean a good thing rather than a bad.
20973         Don't put "#define mkstemp" in config.h, as this might interfere
20974         with standard system headers that "#define mkstemp mkstemp64".
20975
20976         * modules/mkstemp (Depends-on): Add extensions, so that
20977         mkstemp is visible on some platforms.
20978         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
20979         (Include): Change to "mkstemp.h" from <stdlib.h>.
20980         (Files): Add mkstemp.h.
20981
20982         * lib/mkstemp.h: New file, since some standard headers
20983         #define mkstemp.
20984         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
20985         Include "mkstemp.h".
20986         Make the _LIBC code resemble glibc original more,
20987         e.g., use K&R style.
20988         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
20989         (mkstemp): Remove, since mkstemp.h does this for us.
20990         * lib/stdlib--.h: Include mkstemp.h.
20991
20992         Import this patch from libc:
20993
20994         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20995
20996         * lib/tempname.c (__gen_tempname): Change attempts_min
20997         into a macro.  Use preprocessor to decide how to initialize
20998         attempts [Coverity CID 67].
20999
21000 2006-09-20  Bruno Haible  <bruno@clisp.org>
21001
21002         * lib/mkdtemp.c: Import from libc.
21003         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
21004                 * sysdeps/posix/tempname.c (__gen_tempname): Change
21005                 attempts_min into a macro.  Use preprocessor to decide how to
21006                 initialize attempts [Coverity CID 67].
21007         2001-11-27  Paul Eggert  <eggert@twinsun.com>
21008                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
21009                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
21010
21011 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21012
21013         * gnulib-tool (func_exit): New function, to allow to pass the
21014         exit status portably through the trap.  Use everywhere.
21015         (--help, --version): Signal a write error.
21016         (trap): catch SIGPIPE, for write errors.
21017         Exit at the end of the trap, with the correct exit status.
21018
21019 2006-09-19  Karl Berry  <karl@gnu.org>
21020
21021         * doc/gnulib.texi: note about the license texinfo files.
21022
21023 2006-09-19  Eric Blake  <ebb9@byu.net>
21024
21025         * gnulib-tool: Avoid space-tab.
21026
21027 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21028
21029         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
21030         that prevented coreutils 6.1 from building.  Problem reported
21031         by Petter Reinholdtsen.
21032
21033 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
21034
21035         * gnulib-tool (avoidlist): Fix typo that broke options like
21036         --avoid=lock that are used by coreutils bootstrap.
21037
21038 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
21039
21040         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
21041         more systematically.
21042
21043 2006-09-18  Jim Meyering  <jim@meyering.net>
21044
21045         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
21046
21047 2006-09-18  Bruno Haible  <bruno@clisp.org>
21048
21049         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
21050
21051 2006-09-18  Bruno Haible  <bruno@clisp.org>
21052
21053         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
21054         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
21055         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
21056         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
21057         * m4/gettext.m4: Require autoconf >= 2.52.
21058         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
21059         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
21060         of gl_cv_header_inttypes_h.
21061
21062 2006-09-18  Bruno Haible  <bruno@clisp.org>
21063
21064         * lib/javaversion.c: Include configmake.h.
21065
21066 2006-09-18  Bruno Haible  <bruno@clisp.org>
21067
21068         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
21069         avoid that the while loops be executed in a subshell.
21070
21071 2006-09-18  Bruno Haible  <bruno@clisp.org>
21072
21073         * MODULES.html.sh (func_module): Break long lines.
21074         Suggested by Bruce Korb <bkorb@gnu.org>.
21075
21076 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21077
21078         Speed up by a factor of 1.12.
21079         * gnulib-tool (nl): New variable.
21080         (func_import): Rewrite include directive extraction to only read each
21081         directive once.
21082
21083 2006-09-17  Bruno Haible  <bruno@clisp.org>
21084
21085         * modules/javaversion (Makefile.am): Remove DEFS setting.
21086         (Depends-on): Add configmake, for PKGDATADIR definition.
21087
21088 2006-09-17  Bruno Haible  <bruno@clisp.org>
21089
21090         * gnulib-tool (func_create_testdir): Rewrite all files at once.
21091
21092 2006-09-17  Bruno Haible  <bruno@clisp.org>
21093
21094         * gnulib-tool (func_append): New function, stolen from libtool.m4.
21095         (func_modules_transitive_closure, func_modules_add_dummy,
21096         func_modules_to_filelist, func_import, func_create_testdir,
21097         func_create_megatestdir, ...): Use it wherever possible.
21098         Suggested by Ralf Wildenhues.
21099
21100 2006-09-16  Karl Berry  <karl@gnu.org>
21101
21102         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
21103         to avoid sectioning errors.
21104         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
21105         [ifinfo]: blank line after @center-ed titles.
21106         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
21107         Spell FSF address consistently with others.
21108         (These changes approved by rms.)
21109
21110 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21111
21112         Speed up by a factor of 1.61.
21113         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
21114         already checked module names again.
21115
21116 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21117
21118         Speed up by a factor of 1.13.
21119         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21120         for new_files, and the input to func_add_or_update.
21121
21122 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21123
21124         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21125         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21126
21127 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21128
21129         * modules/mkancesdirs (Depends-on): Add fcntl.
21130         * modules/savewd: New file.
21131         * MODULES.html.sh (File system functions): Add savewd.
21132
21133         * modules/configmake (Makefile.am): Add support for the
21134         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21135
21136 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21137
21138         * m4/savewd.m4: New file.
21139
21140 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21141
21142         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21143         (dirchownmod): New arg FD.  All callers changed.
21144         Use FD rather than opening the directory ourself, as opening is
21145         now the caller's responsibility.
21146         * lib/dirchownmod.h: Likewise.
21147         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21148         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21149         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21150         (test_dir): Remove.
21151         (mkancesdirs): Return length of prefix of FILE that has already
21152         been made, or -2 if there is a child doing the work.  Redo
21153         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21154         ".", and treat ".." specially since it might stray back into
21155         already-created areas.  Use a subprocess if necessary.  New arg
21156         WD; all users changed.  MAKE_DIR function should now return 1
21157         if it creates a directory that is not readable.  Return -2 if
21158         a child process is spun off.
21159         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21160         Adjust signature to match code.
21161         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21162         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21163         all users changed.
21164         * lib/savewd.c, lib/savewd.h: New files.
21165
21166 2006-09-15  Jim Meyering  <jim@meyering.net>
21167
21168         * modules/rename-dest-slash: New module.
21169         * MODULES.html.sh (posix_compat): Add it here.
21170
21171         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21172
21173 2006-09-15  Jim Meyering  <jim@meyering.net>
21174
21175         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21176         file.
21177
21178         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21179
21180 2006-09-15  Jim Meyering  <jim@meyering.net>
21181
21182         * lib/rename-dest-slash.c (has_trailing_slash): Use
21183         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21184         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21185         test before testing whether SRC is a directory.
21186         Suggestions from Bruno Haible.
21187
21188         Avoid a warning about an unused variable.
21189         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21190         into the #ifdef block where it's used.
21191
21192         * lib/rename-dest-slash.c: New file.
21193
21194 2006-09-14  Bruno Haible  <bruno@clisp.org>
21195
21196         * lib/allocsa.c: Include <config.h> unconditionally.
21197         * lib/asnprintf.c: Likewise.
21198         * lib/asprintf.c: Likewise.
21199         * lib/c-strcasecmp.c: Likewise.
21200         * lib/c-strcasestr.c: Likewise.
21201         * lib/c-strncasecmp.c: Likewise.
21202         * lib/c-strstr.c: Likewise.
21203         * lib/classpath.c: Likewise.
21204         * lib/clean-temp.c: Likewise.
21205         * lib/concatpath.c: Likewise.
21206         * lib/copy-file.c: Likewise.
21207         * lib/csharpcomp.c: Likewise.
21208         * lib/csharpexec.c: Likewise.
21209         * lib/execute.c: Likewise.
21210         * lib/fatal-signal.c: Likewise.
21211         * lib/findprog.c: Likewise.
21212         * lib/fwriteerror.c: Likewise.
21213         * lib/gl_array_list.c: Likewise.
21214         * lib/gl_array_oset.c: Likewise.
21215         * lib/gl_avltree_list.c: Likewise.
21216         * lib/gl_avltree_oset.c: Likewise.
21217         * lib/gl_avltreehash_list.c: Likewise.
21218         * lib/gl_carray_list.c: Likewise.
21219         * lib/gl_linked_list.c: Likewise.
21220         * lib/gl_linkedhash_list.c: Likewise.
21221         * lib/gl_list.c: Likewise.
21222         * lib/gl_oset.c: Likewise.
21223         * lib/gl_rbtree_list.c: Likewise.
21224         * lib/gl_rbtree_oset.c: Likewise.
21225         * lib/gl_rbtreehash_list.c: Likewise.
21226         * lib/imaxabs.c: Likewise.
21227         * lib/imaxdiv.c: Likewise.
21228         * lib/javacomp.c: Likewise.
21229         * lib/javaexec.c: Likewise.
21230         * lib/javaversion.c: Likewise.
21231         * lib/linebreak.c: Likewise.
21232         * lib/localcharset.c: Likewise.
21233         * lib/lock.c: Likewise.
21234         * lib/mbchar.c: Likewise.
21235         * lib/mbswidth.c: Likewise.
21236         * lib/mkdtemp.c: Likewise.
21237         * lib/pipe.c: Likewise.
21238         * lib/printf-args.c: Likewise.
21239         * lib/printf-parse.c: Likewise.
21240         * lib/progname.c: Likewise.
21241         * lib/progreloc.c: Likewise.
21242         * lib/readlink.c: Likewise.
21243         * lib/sh-quote.c: Likewise.
21244         * lib/stpcpy.c: Likewise.
21245         * lib/stpncpy.c: Likewise.
21246         * lib/strcasecmp.c: Likewise.
21247         * lib/strcasestr.c: Likewise.
21248         * lib/strcspn.c: Likewise.
21249         * lib/striconv.c: Likewise.
21250         * lib/strncasecmp.c: Likewise.
21251         * lib/strnlen1.c: Likewise.
21252         * lib/strstr.c: Likewise.
21253         * lib/strtok_r.c: Likewise.
21254         * lib/tls.c: Likewise.
21255         * lib/tmpdir.c: Likewise.
21256         * lib/unicodeio.c: Likewise.
21257         * lib/unsetenv.c: Likewise.
21258         * lib/vasnprintf.c: Likewise.
21259         * lib/vasprintf.c: Likewise.
21260         * lib/wait-process.c: Likewise.
21261         * lib/xallocsa.c: Likewise.
21262         * lib/xsetenv.c: Likewise.
21263         * lib/xstriconv.c: Likewise.
21264
21265 2006-09-13  Simon Josefsson  <jas@extundo.com>
21266
21267         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21268         that internally, suggested by Ralf Wildenhues
21269         <Ralf.Wildenhues@gmx.de>.
21270
21271 2006-09-13  Simon Josefsson  <jas@extundo.com>
21272
21273         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21274         @LIBOBJS@.
21275         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21276
21277 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21280         longer worry about uses that don't define HAVE_CONFIG_H.
21281         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21282         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21283         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21284         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21285         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21286         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21287         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21288         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21289         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21290         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21291         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21292         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21293         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21294         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21295         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21296         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21297         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21298         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21299         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21300         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21301         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21302         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21303         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21304         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21305         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21306         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21307         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21308         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21309         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21310         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21311         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21312         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21313         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21314         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21315         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21316         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21317         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21318         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21319         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21320         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21321         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21322         Likewise.
21323
21324 2006-09-13  Eric Blake  <ebb9@byu.net>
21325
21326         * lib/getopt.c: Fix typo in last commit.
21327
21328 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21329
21330         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21331         dgettext.
21332
21333 2006-09-12  Jim Meyering  <jim@meyering.net>
21334
21335         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21336         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21337         Reported by Nelson H. F. Beebe.
21338
21339 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21340
21341         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21342         program_invocation_name and program_invocation_short_name are
21343         initialized.
21344         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21345         and program_invocation_short_name to argp.h, so they are visible
21346         to user programs.
21347         * lib/argp.h: Likewise
21348
21349 2006-09-10  Bruno Haible  <bruno@clisp.org>
21350
21351         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21352         m4/inttypes_h.m4, m4/uintmax_t.m4.
21353
21354 2006-09-10  Bruno Haible  <bruno@clisp.org>
21355
21356         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21357         gl_AC_TYPE_UINTMAX_T.
21358
21359 2006-09-10  Bruno Haible  <bruno@clisp.org>
21360
21361         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21362
21363 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21364
21365         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21366         convention.  Text proposed by Bruno Haible.
21367         (struct argp_option): Document the use of N_() wrappers.
21368
21369         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21370         '\v', and translate the two parts separately, instead of feeding
21371         the whole string to gettext.  This allows to exclude
21372         '\v' from the strings visible to the translator by writing doc
21373         strings as N_("..") "\v" N_("..").
21374
21375 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21376
21377         * config/srclist.txt: Undo latest change; the bug was fixed.
21378
21379 2006-09-09  Bruno Haible  <bruno@clisp.org>
21380
21381         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21382         assignments if building a library without libtool.
21383         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21384         in func_emit_lib_Makefile_am.
21385         (func_import): When building a static library libfoo.a, arrange to
21386         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21387         (func_create_testdir): Likewise.
21388         * modules/gc (configure.ac, Makefile.am): If building statically,
21389         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21390         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21391         * modules/striconv (configure.ac, Makefile.am): Likewise.
21392         Based on a suggestion by Ralf Wildenhues.
21393
21394 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21395
21396         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21397         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21398         Also:
21399
21400         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21401         Add year_2050_test to catch glibc bug 2821
21402         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21403
21404         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21405         Prefer #ifdef to #if.
21406
21407         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21408         Return from 'main' instead of calling 'exit'.
21409
21410 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21411
21412         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21413         returned the maximum time_t value rather than (time_t) -1.
21414         Problem originally reported by William Bardwell
21415         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21416
21417         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21418         Moved to here ...
21419         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21420         ... from here.
21421
21422 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21423
21424         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21425         2821 is fixed.
21426
21427 2006-09-08  Jim Meyering  <jim@meyering.net>
21428
21429         Don't make generated files read-only.  That would bother too many
21430         people.  However, do retain the ability to work when targets are
21431         read-only: remove the destination and temporary files before writing
21432         them (when generated via sed or echo), or by using the -f option for
21433         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21434         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21435         * modules/byteswap, modules/configmake, modules/fcntl:
21436         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21437         * modules/localcharset, modules/netinet_in, modules/poll:
21438         * modules/stdbool, modules/stdint, modules/sys_select:
21439         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21440
21441 2006-09-08  Jim Meyering  <jim@meyering.net>
21442
21443         Avoid new build failure on FreeBSD 6.0.
21444         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21445         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21446         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21447
21448 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21449
21450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21451
21452 2006-09-07  Jim Meyering  <jim@meyering.net>
21453
21454         Fix global typo in last change: use chmod u-w, not chmod u-x.
21455         Spotted by Paul Eggert and Bruce Korb.
21456         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21457         * modules/byteswap, modules/configmake, modules/fcntl:
21458         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21459         * modules/localcharset, modules/netinet_in, modules/poll:
21460         * modules/stdbool, modules/stdint, modules/sys_select:
21461         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21462
21463 2006-09-06  Jim Meyering  <jim@meyering.net>
21464
21465         Make generated files be read-only.
21466         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21467         Ensure that each generated file is now read-only.
21468         * modules/argz: Likewise.
21469         * modules/arpa_inet: Likewise.
21470         * modules/byteswap: Likewise.
21471         * modules/configmake: Likewise.
21472         * modules/fcntl: Likewise.
21473         * modules/fnmatch: Likewise.
21474         * modules/getopt: Likewise.
21475         * modules/glob: Likewise.
21476         * modules/inttypes: Likewise.
21477         * modules/netinet_in: Likewise.
21478         * modules/poll: Likewise.
21479         * modules/stdbool: Likewise.
21480         * modules/stdint: Likewise.
21481         * modules/sys_select: Likewise.
21482         * modules/sys_socket: Likewise.
21483         * modules/sys_stat: Likewise.
21484         * modules/sysexits: Likewise.
21485         * modules/localcharset: Same as above, but continue using temporary
21486         file named "t-$@" (why different?) rather than the "$@-t" used
21487         everywhere else.
21488
21489         * modules/sysexits (Makefile.am): Replace literal occurrences
21490         of "sysexit.h" more readable, and more consistent, "$@".
21491
21492 2006-09-06  Bruno Haible  <bruno@clisp.org>
21493
21494         * modules/striconv: New file.
21495         * modules/xstriconv: New file.
21496         * MODULES.html.sh (Internationalization functions): Add striconv,
21497         xstriconv.
21498
21499 2006-09-06  Bruno Haible  <bruno@clisp.org>
21500
21501         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21502         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21503         not using libtool correctly.
21504
21505 2006-09-06  Bruno Haible  <bruno@clisp.org>
21506
21507         * lib/striconv.h: New file.
21508         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21509         iconvstring.c.
21510         * lib/xstriconv.h: New file.
21511         * lib/xstriconv.c: New file.
21512
21513 2006-09-06  Bruno Haible  <bruno@clisp.org>
21514
21515         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21516         lib_..._LDFLAGS.
21517
21518 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21519
21520         * lib/argz_.h: Sync from Libtool.
21521
21522         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21523                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21524
21525         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21526
21527 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21528
21529         * modules/trim: New file.
21530
21531 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21532
21533         * lib/trim.h: New file.
21534         * lib/trim.c: New file.
21535
21536 2006-09-05  Bruno Haible  <bruno@clisp.org>
21537
21538         * MODULES.html.sh (String handling): Add trim.
21539
21540 2006-09-04  Karl Berry  <karl@gnu.org>
21541
21542         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21543         until next release.
21544
21545 2006-09-03  Bruno Haible  <bruno@clisp.org>
21546
21547         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21548         correctly.
21549
21550 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21551
21552         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21553         not gl_GETLOADAVG.  Omit unneeded semicolons.
21554         Problems reported by Ralf Wildenhues in
21555         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21556         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21557         at the end, which is the usual gnulib style.
21558
21559         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21560         of doing all the work ourselves.
21561         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21562         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21563
21564 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21565
21566         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21567         Problem reported by Ralf Wildenhues in
21568         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21569
21570         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21571         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21572
21573 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21574
21575         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21576         yesterday's patch by changing test -n to test -z.
21577
21578 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21579
21580         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21581         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21582         the former is now obsolescent.
21583
21584         * modules/chdir-long (Depends-on): Add fcntl.
21585
21586 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21587
21588         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21589         obsolescent, and programs should use gnulib instead.
21590         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21591         but with prefixes changed.
21592
21593 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21594
21595         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21596         or stdbool.h, because they might not exist while configuring.
21597
21598         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21599         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21600         does that for us.
21601         (O_DIRECTORY): Remove.
21602
21603 2006-08-31  Eric Blake  <ebb9@byu.net>
21604
21605         * gnulib-tool: Don't let emacs change spaces to TAB.
21606
21607 2006-08-31  Bruno Haible  <bruno@clisp.org>
21608
21609         * gnulib-tool: When calling func_import more than once, do it in a
21610         subshell.
21611         Reported by Eric Blake <ebb9@byu.net>.
21612
21613 2006-08-31  Bruno Haible  <bruno@clisp.org>
21614
21615         * gnulib-tool (nl): Remove variable.
21616         (sed_transform_lib_file): Use more robust test for config-h module.
21617         (func_import): Fix typo in 2006-08-25 patch.
21618
21619 2006-08-31  Bruno Haible  <bruno@clisp.org>
21620
21621         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21622         specified, augment Makefile.am variables instead of assigning them.
21623
21624 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         Work around a bug in both the Linux and SunOS 64-bit kernels:
21627         nanosleep mishandles sleeps for longer than 2**31 seconds.
21628         Problem reported by Frank v Waveren in
21629         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21631         Check for nanosleep bug.
21632         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21633
21634 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21635
21636         Work around a bug in both the Linux and SunOS 64-bit kernels:
21637         nanosleep mishandles sleeps for longer than 2**31 seconds.
21638         Problem reported by Frank v Waveren in
21639         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21640         * lib/nanosleep.c (BILLION): New constant.
21641         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21642         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21643         implementation.
21644
21645 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21646
21647         * modules/nanosleep (Depends-on): Add gettime.
21648
21649 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21650         and Simon Josefsson  <jas@extundo.com>
21651         and Oskar Liljeblad  <oskar@osk.mine.nu>
21652
21653         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21654         * gnulib-tool (func_import): New license type 'unmodifiable license
21655         text'.
21656         * modules/fdl: Use it.  Longer description.
21657         * module/gpl, module/lgpl: New files.
21658
21659 2006-08-30  Jim Meyering  <jim@meyering.net>
21660
21661         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21662         shadowing the parameter.
21663
21664 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21665
21666         Sync from Libtool:
21667
21668         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21669
21670         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21671         sharing with gnulib.  Report by Eric Blake.
21672
21673 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21674
21675         * modules/isapipe: New file.
21676         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21677
21678 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21679
21680         * modules/configmake (Makefile.am): Add a comment, and omit
21681         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21682         by Bruno Haible.
21683
21684 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21685
21686         * m4/isapipe.m4: New file.
21687
21688 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21689
21690         * lib/isapipe.c, lib/isapipe.h: New files.
21691
21692 2006-08-29  Jim Meyering  <jim@meyering.net>
21693
21694         * modules/configmake (Makefile.am): Make configmake.h depend on
21695         Makefile.  Otherwise, a stale configmake.h could hang around.
21696
21697 2006-08-29  Eric Blake  <ebb9@byu.net>
21698
21699         * lib/error.c (error_at_line, print_errno_message): Match libc, after
21700         resolution of upstream bug 3044.
21701
21702 2006-08-29  Bruno Haible  <bruno@clisp.org>
21703
21704         * modules/localcharset (Depends-on): Add configmake.
21705         (Makefile.am): Remove setting of LIBDIR through DEFS.
21706
21707 2006-08-29  Bruno Haible  <bruno@clisp.org>
21708
21709         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21710         defined.
21711
21712 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21713
21714         * modules/fcntl: New file.
21715         * modules/chdir-safer (Depends-on): Add fcntl.
21716         * modules/fts: Likewise.
21717         * modules/mkdir-p: Likewise.
21718
21719         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21720         This undoes the most recent change, since we're now addressing the
21721         problem in a different way.
21722
21723         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
21724         into output, since the output might be called Makefile.am even
21725         if $makefile_name is something different.
21726         (func_import): Use $makefile_am rather than
21727         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
21728         empty.
21729
21730         * modules/inttypes (Files): Add m4/inttypes-h.m4.
21731
21732 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21733
21734         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
21735         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
21736         recent change to stdint.m4, since we're now addressing the problem in a
21737         different way.
21738
21739 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21740
21741         * m4/fcntl_h.m4: New file.
21742
21743 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21744
21745         * lib/fcntl_.h: New file.
21746         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
21747         the fcntl module.
21748         * lib/dirchownmod.c: Likewise.
21749         * lib/fts.c: Likewise.
21750
21751         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
21752         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
21753         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
21754         just before including <inttypes.h>, to avoid circular inclusion.
21755
21756 2006-08-28  Jim Meyering  <jim@meyering.net>
21757
21758         * doc/visibility.texi: Actually read and correct the grammar of the
21759         sentence affected by yesterday's change.
21760
21761 2006-08-28  Eric Blake  <ebb9@byu.net>
21762
21763         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
21764         needs wrapper.
21765
21766 2006-08-28  Eric Blake  <ebb9@byu.net>
21767
21768         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
21769
21770 2006-08-28  Eric Blake  <ebb9@byu.net>
21771
21772         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
21773
21774 2006-08-28  Bruno Haible  <bruno@clisp.org>
21775
21776         * modules/c-strstr: New file, from GNU gettext.
21777         * MODULES.html.sh (String handling): Add c-strstr.
21778
21779 2006-08-28  Bruno Haible  <bruno@clisp.org>
21780
21781         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
21782         macros.
21783         Reported by Eric Blake.
21784
21785 2006-08-28  Bruno Haible  <bruno@clisp.org>
21786
21787         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
21788         (VASNPRINTF): Return a string of length > INT_MAX without failing.
21789         * lib/vasprintf.c: Include errno.h, limits.h.
21790         (EOVERFLOW): New fallback definition.
21791         (vasprintf): Test here whether the string length is > INT_MAX.
21792         * lib/vsnprintf.c: Include errno.h, limits.h.
21793         (EOVERFLOW): New fallback definition.
21794         (vsnprintf): Fix bug when generated string was too long for the buffer.
21795         Test here whether the string length is > INT_MAX.
21796
21797 2006-08-28  Bruno Haible  <bruno@clisp.org>
21798
21799         * lib/inttypes_.h (SCNX*): Remove definitions.
21800         Reported by Eric Blake.
21801
21802 2006-08-28  Bruno Haible  <bruno@clisp.org>
21803
21804         * lib/c-strstr.h: New file, from GNU gettext.
21805         * lib/c-strstr.c: New file, from GNU gettext.
21806
21807 2006-08-28  Bruno Haible  <bruno@clisp.org>
21808
21809         * gnulib-tool: Reorder some statements.
21810
21811 2006-08-28  Bruno Haible  <bruno@clisp.org>
21812
21813         * gnulib-tool: New option --makefile-name.
21814         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
21815         $makefile_name.
21816         (func_import): Write $makefile_name to the cache file, and read it from
21817         there unless explicitly specified. Use $makefile_name as file name
21818         instead of Makefile.am. Adjust the recommendations accordingly.
21819
21820 2006-08-28  Bruno Haible  <bruno@clisp.org>
21821
21822         * gnulib-tool (func_verify_module): Check against misapplying patch.
21823
21824 2006-08-28  Bruno Haible  <bruno@clisp.org>
21825
21826         * gnulib-tool (func_relativize, func_relconcat): New functions.
21827         Give an error if --local-dir is given with --update.
21828         Remove trailing slashes from $local_gnulib_dir.
21829         (func_import): Store the relativized $local_gnulib_dir in
21830         gnulib-cache.m4, and read it from there if not specified explicitly.
21831
21832 2006-08-28  Bruno Haible  <bruno@clisp.org>
21833
21834         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
21835         is the current directory. Respect also $local_gnulib_dir.
21836
21837 2006-08-28  Bruno Haible  <bruno@clisp.org>
21838             Simon Josefsson  <jas@extundo.com>
21839
21840         BeOS portability.
21841         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
21842
21843 2006-08-27  Jim Meyering  <jim@meyering.net>
21844
21845         * doc/visibility.texi: Remove duplicate word: "pointer".
21846
21847 2006-08-26  Bruno Haible  <bruno@clisp.org>
21848
21849         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
21850         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
21851         (Makefile.am): Create inttypes.h from inttypes_.h.
21852         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
21853
21854         * modules/imaxabs: New file.
21855
21856         * modules/imaxdiv: New file.
21857
21858 2006-08-26  Bruno Haible  <bruno@clisp.org>
21859
21860         * m4/inttypes.m4: New file.
21861         * m4/_inttypes_h.m4: Remove file.
21862         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
21863         PRI_MACROS_BROKEN.
21864         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
21865
21866         * m4/imaxabs.m4: New file.
21867
21868         * m4/imaxdiv.m4: New file.
21869
21870 2006-08-26  Bruno Haible  <bruno@clisp.org>
21871
21872         * lib/inttypes_.h: New file.
21873         * lib/inttypes.h: Remove file.
21874         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
21875
21876         * lib/imaxabs.c: New file.
21877
21878         * lib/imaxdiv.c: New file.
21879
21880 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21881
21882         New config-h module, so that "make" output needn't be cluttered
21883         by -DHAVE_CONFIG_H.
21884         * MODULES.html.sh (Support for building libraries and executables):
21885         Add config-h.
21886         * modules/config-h: New file.
21887         * gnulib-tool (nl, sed_transform_lib_file): New vars.
21888         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
21889         the config-h module is used.
21890
21891         New configmake module, so that "make" output needn't be cluttered
21892         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
21893         * MODULES.html.sh (Support for building libraries and executables):
21894         Add configmake.
21895         * modules/configmake: New file.
21896
21897 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21898
21899         * m4/config-h.m4: New file.
21900
21901 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21902
21903         * config/srclist.txt: Add elisp-comp.
21904
21905 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21906
21907         * MODULES.html.sh (Support for building libraries and executables):
21908         Add elisp-comp.
21909         * build-aux/elisp-comp: New file.
21910         * modules/elisp-comp: New file.
21911
21912 2006-08-24  Bruno Haible  <bruno@clisp.org>
21913
21914         * gnulib-tool (func_create_testdir): Use non-default values of
21915         sourcebase and m4base.
21916
21917 2006-08-24  Bruno Haible  <bruno@clisp.org>
21918
21919         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
21920         HTML structure.
21921
21922 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21923
21924         * modules/openat (Depends-on): Add lchown.
21925
21926 2006-08-23  Bruno Haible  <bruno@clisp.org>
21927
21928         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
21929         of gl_LOCK_EARLY instead of gl_LOCK.
21930
21931 2006-08-23  Bruno Haible  <bruno@clisp.org>
21932
21933         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
21934         on OSF/1 to no.
21935         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
21936
21937 2006-08-23  Bruno Haible  <bruno@clisp.org>
21938
21939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
21940         as unusable.
21941
21942         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
21943         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
21944         (gl_LOCK): New macro.
21945
21946 2006-08-22  Simon Josefsson  <jas@extundo.com>
21947
21948         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
21949         to md5 module.
21950
21951 2006-08-22  Simon Josefsson  <jas@extundo.com>
21952
21953         * MODULES.html.sh: Add "Support for maintaining and release
21954         projects".
21955
21956         * build-aux/gnupload: New file, from coreutils.
21957
21958 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21959
21960         Avoid the need for AC_LIBSOURCES in m4 macros.
21961         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
21962         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
21963         * modules/check-version (EXTRA_DIST): Add check-version.h.
21964         * modules/crc (EXTRA_DIST): Add crc.h.
21965         * modules/des (EXTRA_DIST): Add des.h.
21966         * modules/gc (EXTRA_DIST): Add gc.h.
21967         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
21968         * modules/getline (EXTRA_DIST): Add getline.h.
21969         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
21970         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
21971         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
21972         * modules/md2 (EXTRA_DIST): Add md2.h.
21973         * modules/md4 (EXTRA_DIST): Add md4.h.
21974         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
21975         * modules/read-file (EXTRA_DIST): Add read-file.h.
21976         * modules/readline (EXTRA_DIST): Add readline.h.
21977         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
21978         rijndael-api-fst.h.
21979
21980 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21981
21982         * m4/rijndael.m4 (gl_ARCFOUR):
21983         * m4/arctwo.m4 (gl_ARCTWO):
21984         * m4/check-version.m4 (gl_CHECK_VERSION):
21985         * m4/crc.m4 (gl_CRC):
21986         * m4/des.m4 (gl_DES):
21987         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
21988         * m4/gc.m4 (gl_GC):
21989         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
21990         * m4/getline.m4 (gl_FUNC_GETLINE):
21991         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
21992         * m4/hmac-md5.m4 (gl_HMAC_MD5):
21993         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
21994         * m4/md2.m4 (gl_MD2):
21995         * m4/md4.m4 (gl_MD4):
21996         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
21997         * m4/read-file.m4 (gl_FUNC_READ_FILE):
21998         * m4/readline.m4 (gl_FUNC_READLINE):
21999         * m4/rijndael.m4 (gl_RIJNDAEL):
22000         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22001         to get the necessary .h files and whatnot.
22002
22003 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
22006         gnulib rather than the other way around.
22007         * config/srclistvars.sh (COREUTILS): Remove.
22008
22009 2006-08-22  Jim Meyering  <jim@meyering.net>
22010
22011         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
22012
22013         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
22014
22015 2006-08-22  Eric Blake  <ebb9@byu.net>
22016
22017         * modules/regexprops-generic: New file.
22018         * MODULES.html.sh (Support for building documentation): List it.
22019
22020 2006-08-22  Eric Blake  <ebb9@byu.net>
22021
22022         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
22023         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22024         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
22025         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22026
22027 2006-08-22  Bruno Haible  <bruno@clisp.org>
22028
22029         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
22030         and lib_LTLIBRARIES like the other lib_* variables.
22031
22032 2006-08-22  Bruno Haible  <bruno@clisp.org>
22033
22034         * build-aux/x-to-1.in: New file, from GNU gettext.
22035
22036 2006-08-22  Bruno Haible  <bruno@clisp.org>
22037
22038         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
22039         <utmpx.h> exists.
22040
22041 2006-08-22  Bruno Haible  <bruno@clisp.org>
22042
22043         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
22044         <utmpx.h> exists.
22045
22046 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22047
22048         BeOS portability.
22049         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
22050         exist.
22051         Problem reported by Bruno Haible.
22052
22053 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22054
22055         Avoid the need for AC_LIBSOURCES in m4 macros.
22056         * modules/acl (EXTRA_DIST): Add acl.h.
22057         * modules/argmatch (Files): Add m4/argmatch.m4.
22058         (configure.ac): Add gl_ARGMATCH.
22059         (EXTRA_DIST): Renamed from lib_SOURCES, for
22060         consistency with the other modules.  Remove argmatch.c.
22061         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
22062         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
22063         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
22064         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
22065         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
22066         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
22067         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
22068         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
22069         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
22070         * modules/closeout (EXTRA_DIST): Add closeout.h.
22071         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
22072         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
22073         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
22074         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
22075         dirname.h; remove basename.c and stripslash.c.
22076         * modules/exclude (EXTRA_DIST): Add exclude.h.
22077         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
22078         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
22079         * modules/file-type (EXTRA_DIST): Add file-type.h.
22080         * modules/filemode (EXTRA_DIST): Add filemode.h.
22081         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
22082         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22083         * modules/fpending (EXTRA_DIST): Add __fpending.h.
22084         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
22085         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
22086         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
22087         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
22088         * modules/getdate (EXTRA_DIST): Add getdate.c.
22089         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
22090         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
22091         * modules/getpass (EXTRA_DIST): Add getpass.h.
22092         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
22093         * modules/group-member (EXTRA_DIST): Add group-member.h.
22094         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
22095         * modules/hash (EXTRA_DIST): Add hash.h.
22096         * modules/human (EXTRA_DIST): Add human.h.
22097         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
22098         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
22099         * modules/lchown (EXTRA_DIST): Add lchown.h.
22100         * modules/long-options (EXTRA_DIST): Add long-options.h.
22101         * modules/lstat (EXTRA_DIST): Add lstat.h.
22102         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
22103         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
22104         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
22105         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
22106         * modules/memxor (EXTRA_DIST): Add memxor.h.
22107         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
22108         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
22109         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
22110         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
22111         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
22112         * modules/physmem (EXTRA_DIST): Add physmem.h.
22113         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
22114         * modules/posixver (EXTRA_DIST): Add posixver.h.
22115         * modules/quote (EXTRA_DIST): Add quote.h.
22116         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
22117         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
22118         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22119         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22120         regex_internal.h regexec.c.
22121         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22122         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22123         * modules/same (EXTRA_DIST): Add same.h.
22124         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22125         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22126         * modules/savedir (EXTRA_DIST): Add savedir.h.
22127         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22128         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22129         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22130         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22131         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22132         * modules/strdup (EXTRA_DIST): Add strdup.h.
22133         * modules/strftime (EXTRA_DIST): Add strftime.h.
22134         * modules/strndup (EXTRA_DIST): Add strndup.h.
22135         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22136         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22137         * modules/time_r (EXTRA_DIST): Add time_r.h.
22138         * modules/timespec (EXTRA_DIST): Add timespec.h.
22139         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22140         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22141         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22142         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22143         * modules/userspec (EXTRA_DIST): Add userspec.h.
22144         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22145         * modules/utimens (EXTRA_DIST): Add utimens.h.
22146         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22147         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22148         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22149         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22150         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22151         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22152         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22153         * modules/yesno (EXTRA_DIST): Add yesno.h.
22154
22155 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22156
22157         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22158
22159         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22160         * m4/dev-ino.m4, same-inode.m4: Remove.
22161
22162         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22163         * m4/acl.m4 (AC_FUNC_ACL):
22164         * m4/backupfile.m4 (gl_BACKUPFILE):
22165         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22166         * m4/canon-host.m4 (gl_CANON_HOST):
22167         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22168         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22169         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22170         * m4/cloexec.m4 (gl_CLOEXEC):
22171         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22172         * m4/closeout.m4 (gl_CLOSEOUT):
22173         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22174         * m4/dirname.m4 (gl_DIRNAME):
22175         * m4/exclude.m4 (gl_EXCLUDE):
22176         * m4/exitfail.m4 (gl_EXITFAIL):
22177         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22178         * m4/file-type.m4 (gl_FILE_TYPE):
22179         * m4/filemode.m4 (gl_FILEMODE):
22180         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22181         * m4/fpending.m4 (gl_FUNC_FPENDING):
22182         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22183         * m4/fts.m4 (gl_FUNC_FTS):
22184         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22185         * m4/getdate.m4 (gl_GETDATE):
22186         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22187         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22188         * m4/getpass.m4 (gl_FUNC_GETPASS):
22189         * m4/gettime.m4 (gl_GETTIME):
22190         * m4/getugroups.m4 (gl_GETUGROUPS):
22191         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22192         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22193         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22194         * m4/hash.m4 (gl_HASH):
22195         * m4/idcache.m4 (gl_IDCACHE):
22196         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22197         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22198         * m4/long-options.m4 (gl_LONG_OPTIONS):
22199         * m4/lstat.m4 (gl_FUNC_LSTAT):
22200         * m4/md5.m4 (gl_MD5):
22201         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22202         * m4/memcoll.m4 (gl_MEMCOLL):
22203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22205         * m4/memxor.m4 (gl_MEMXOR):
22206         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22207         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22208         * m4/modechange.m4 (gl_MODECHANGE):
22209         * m4/mountlist.m4 (gl_MOUNTLIST):
22210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22211         * m4/openat.m4 (gl_FUNC_OPENAT):
22212         * m4/pathmax.m4 (gl_PATHMAX):
22213         * m4/physmem.m4 (gl_PHYSMEM):
22214         * m4/posixtm.m4 (gl_POSIXTM):
22215         * m4/posixver.m4 (gl_POSIXVER):
22216         * m4/quote.m4 (gl_QUOTE):
22217         * m4/quotearg.m4 (gl_QUOTEARG):
22218         * m4/readtokens.m4 (gl_READTOKENS):
22219         * m4/readutmp.m4 (gl_READUTMP):
22220         * m4/regex.m4 (gl_REGEX):
22221         * m4/safe-read.m4 (gl_SAFE_READ):
22222         * m4/safe-write.m4 (gl_SAFE_WRITE):
22223         * m4/same.m4 (gl_SAME):
22224         * m4/save-cwd.m4 (gl_SAVE_CWD):
22225         * m4/savedir.m4 (gl_SAVEDIR):
22226         * m4/settime.m4 (gl_SETTIME):
22227         * m4/sha1.m4 (gl_SHA1):
22228         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22229         * m4/stat-macros.m4 (gl_STAT_MACROS):
22230         * m4/stat-time.m4 (gl_STAT_TIME):
22231         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22232         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22233         * m4/strdup.m4 (gl_FUNC_STRDUP):
22234         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22235         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22236         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22237         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22238         * m4/time_r.m4 (gl_TIME_R):
22239         * m4/timespec.m4 (gl_TIMESPEC):
22240         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22241         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22242         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22243         * m4/userspec.m4 (gl_USERSPEC):
22244         * m4/utimecmp.m4 (gl_UTIMECMP):
22245         * m4/utimens.m4 (gl_UTIMENS):
22246         * m4/xalloc.m4 (gl_XALLOC):
22247         * m4/xgetcwd.m4 (gl_XGETCWD):
22248         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22249         * m4/xreadlink.m4 (gl_XREADLINK):
22250         * m4/xstrtod.m4 (gl_XSTRTOD):
22251         * m4/yesno.m4 (gl_YESNO):
22252         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22253         to get the necessary .h files and whatnot.
22254
22255 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22256             Bruno Haible  <bruno@clisp.org>
22257
22258         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22259         /bin/sh understanding of '!' conditional negation.
22260
22261 2006-08-21  Jim Meyering  <jim@meyering.net>
22262
22263         * modules/openat (Depends-on): Really alphabetize.
22264
22265         * modules/acl (Depends-on): Add error and quote.
22266
22267         * check-module (find_included_lib_files): Add at-func.c to the
22268         ok-to-include-more-than-once white list.
22269
22270         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22271
22272 2006-08-21  Bruno Haible  <bruno@clisp.org>
22273
22274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22275         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22276         Reported by Martin Lambers <marlam@marlam.de>.
22277
22278 2006-08-21  Bruno Haible  <bruno@clisp.org>
22279
22280         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22281         specify an installation location, don't emit a noinst_LIBRARIES or
22282         noinst_LTLIBRARIES assignment.
22283
22284 2006-08-21  Bruno Haible  <bruno@clisp.org>
22285
22286         BeOS portability.
22287         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22288         BeOS has mbrtowc() but no <wctype.h>.
22289
22290 2006-08-21  Bruno Haible  <bruno@clisp.org>
22291
22292         BeOS portability.
22293         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22294         exist.
22295
22296 2006-08-21  Bruno Haible  <bruno@clisp.org>
22297
22298         BeOS portability.
22299         * lib/mbchar.h: Include <wctype.h> only if it exists.
22300
22301 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         Remove files that are no longer needed by their respective modules.
22304         * m4/obstack.m4: Remove.
22305         * m4/strerror_r.m4: Remove.
22306         * m4/uint32_t.m4: Remove.
22307         * m4/uintptr_t.m4: Remove.
22308         * m4/ullong_max.m4: Remove.
22309         * m4/xstrtoimax.m4: Remove.
22310         * m4/xstrtoumax.m4: Remove.
22311
22312         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22313         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22314         dependencies now capture this.
22315
22316         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22317         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22318         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22319         * m4/human.m4 (gl_HUMAN): Likewise.
22320         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22321         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22322
22323         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22324
22325         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22326         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22327         stdint.
22328         * m4/human.m4 (gl_HUMAN): Likewise.
22329         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22330         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22331         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22332         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22333         * m4/xstrtol (gl_XSTRTOL): Likewise.
22334
22335         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22336         AC_TYPE_LONG_LONG_INT.
22337         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22338         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22339         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22340         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22341
22342         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22343         on stdbool.
22344
22345         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22346         (gl_PREREQ_XSTRTOUL): Remove.
22347
22348         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22349
22350         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22351         mode.
22352
22353 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22354
22355         Add and change modules to make it easier for coreutils to use
22356         gnulib-tool.
22357         * modules/backupfile (Files): Remove m4/d-ino.m4.
22358         (Depends-on): Add d-ino.
22359         * modules/cycle-check (Depends-on): Add stdint.
22360         (lib_SOURCES): Add cycle-check.h.
22361         * modules/d-ino: New module.
22362         * modules/d-type: New module.
22363         * modules/error (Files): Remove m4/strerror_r.m4.
22364         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22365         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22366         m4/inttypes_h.m4, m4/uintmax_t.m4.
22367         (Depends-on): Add stdint.
22368         (lib_SOURCES): Add fsusage.h.
22369         * modules/getcwd (Files): Remove d-ino.m4.
22370         (Depends-on): Add d-ino.
22371         * modules/getndelim2 (Depends-on): Add stdint.
22372         * modules/glob (Files): Remove m4/d-type.m4.
22373         (Depends-on): Add d-type.
22374         * modules/host-os: New module.
22375         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22376         m4/inttypes_h.m4, m4/uintmax_t.m4.
22377         * Depends-on: Add stdint.
22378         (lib_SOURCES): Add human.h.
22379         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22380         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22381         m4/uintmax_t.m4, m4/ulonglong.m4.
22382         (Depends-on): Add stdint.
22383         (EXTRA_DIST): Add inttostr.h.
22384         * modules/lchmod: New module.
22385         * modules/link-follow: New module.
22386         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22387         (Depends-on): Add lchmod.
22388         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22389         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22390         (Depends-on): Add stdint.
22391         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22392         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22393         (Depends-on): Add stdint.
22394         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22395         * modules/perl: New module.
22396         * modules/regex (Depends-on): Add stdint.
22397         * modules/rmdir-errno: New module.
22398         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22399         m4/intmax_t.m4.
22400         (Depends-on): Add stdint.
22401         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22402         m4/uintmax_t.m4.
22403         (Depends-on): Add stdint.
22404         * modules/unlink-busy: New module.
22405         * modules/utimecmp (Depends-on): Add stdint.
22406         * modules/uptime: New module.
22407         * modules/winsz-ioctl: New module.
22408         * modules/winsz-termios: New module.
22409         * modules/xnanosleep (Depends-on): Add nanosleep.
22410         * modules/ullong_max: Remove.
22411         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22412         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22413         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22414         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22415         (Depends-on): Add inttypes.
22416         (lib_SOURCES): Add xstrtol.h.
22417         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22418         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22419         * MODULES.html.sh: Move 'assert' into the assert section.
22420         Move 'dummy' into the linking section.
22421         Remove ullong_max.
22422         Add section for compatibility checks for POSIX:2001 functions,
22423         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22424         winsz-ioctl, and winsz-termios into it.
22425         Add lchmod.
22426         Add top-level Misc section and put host-os, perl, and uptime
22427         into it.
22428
22429 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22430
22431         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22432         now assume the stdint module.  Do not include inttypes.h.
22433         * lib/fsusage.h: Likewise.
22434         * lib/getndelim2.c: Likewise.
22435         * lib/human.h: Likewise.
22436         * lib/inttostr.h: Likewise.
22437         * lib/obstack.c: Likewise.
22438         * lib/regex_internal.h: Likewise.
22439         * lib/tempname.c: Likewise.
22440         * lib/utimecmp.c: Likewise.
22441         * lib/xstrtol.h: Likewise.
22442
22443         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22444
22445         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22446         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22447         * lib/xtime.h: Likewise.
22448
22449 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22450
22451         * modules/openat (Files): Add lib/fchmodat.c.
22452         Fixes problem reported by Jay Youngman.
22453
22454 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22455
22456         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22457         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22458
22459 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22460             Bruno Haible  <bruno@clisp.org>
22461
22462         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22463         and is a script that invokes bison. Tighten the code. Add comments.
22464
22465 2006-08-18  Jim Meyering  <jim@meyering.net>
22466
22467         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22468         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22469         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22470         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22471
22472 2006-08-18  Bruno Haible  <bruno@clisp.org>
22473
22474         * modules/bison-i18n: New file.
22475         * MODULES.html.sh (Internationalization functions): Add it.
22476
22477 2006-08-18  Bruno Haible  <bruno@clisp.org>
22478
22479         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22480         sys/statvfs.h. When getmntinfo was found, check its declaration and
22481         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22482
22483 2006-08-18  Bruno Haible  <bruno@clisp.org>
22484
22485         * m4/bison-i18n.m4: New file, from bison.
22486
22487 2006-08-18  Bruno Haible  <bruno@clisp.org>
22488
22489         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22490         (ME_DUMMY): Treat "kernfs" as a dummy.
22491         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22492
22493 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         Update from coreutils.
22496
22497         2006-08-15  Jim Meyering  <jim@meyering.net>
22498
22499         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22500
22501         2006-01-17  Jim Meyering  <jim@meyering.net>
22502
22503         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22504
22505         2006-01-11  Jim Meyering  <jim@meyering.net>
22506
22507         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22508         Check for the lchmod function.
22509
22510 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22511
22512         Update from coreutils.
22513
22514         * lib/__fpending.h: Add copyright notice.
22515         * lib/fprintftime.h: Likewise.
22516         * lib/savedir.c: Use (C) in copyright notice.
22517         * lib/savedir.h: Likewise.
22518
22519         2006-08-15  Jim Meyering  <jim@meyering.net>
22520
22521         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22522         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22523         in support of the EXPECTED_ERRNO macro.
22524         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22525         definitions.  Instead, define the appropriate symbols and include
22526         "at-func.c".
22527         * lib/mkdirat.c (mkdirat): Likewise.
22528         * lib/fchmodat.c (fchmodat): Likewise.
22529         (ENOSYS): Remove definition.
22530         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22531         it.  Don't include "unistd--.h" -- it wasn't ever used.
22532
22533         2006-01-17  Jim Meyering  <jim@meyering.net>
22534
22535         Rewrite fts.c not to change the current working directory,
22536         by using openat, fstatat, fdopendir, etc..
22537
22538         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22539         (HAVE_OPENAT_SUPPORT): Define.
22540         [_LIBC] (fchdir): Don't undef or define; no longer used.
22541         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22542         Now, this `function' always succeeds, and consumes its file descriptor
22543         parameter -- so callers must not close such FDs.  Update callers.
22544         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22545         (diropen): Add parameter, SP.  Adjust all callers.
22546         Implement using diropen_fd, rather than open.
22547         (fts_open): Initialize new member, fts_cwd_fd.
22548         Remove fts_rft-setting code.
22549         (fts_close): Close fts_cwd_fd, if necessary.
22550         (__opendir2): Define in terms of opendir or opendirat,
22551         depending on whether the FST_NOCHDIR flag is set.
22552         (fts_build): Since fts_safe_changedir consumes its FD, and since
22553         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22554         and close the dup'd file descriptor upon failure.
22555         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22556         (fts_safe_changedir): Tweak semantics to reflect that this function
22557         now calls cwd_advance_fd and hence consumes its FD argument.
22558         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22559         [struct FTS] (fts_rft): Remove now-unused member.
22560         [struct FTS] (fts_cycle.state): Improve comment.
22561
22562         * lib/openat.c (openat_needs_fchdir): New function.
22563         * lib/openat.h (openat_needs_fchdir): Declare it.
22564
22565 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22566
22567         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22568         Problem and fix reported by Pádraig Brady in
22569         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22570
22571 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22572
22573         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22574
22575 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22576
22577         * lib/memcoll.c (memcoll): Optimize for the common case where the
22578         arguments are bytewise equal.
22579
22580 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22581
22582         * doc/regexprops-generic.texi: Add a copyright notice.
22583
22584 2006-08-15  Bruno Haible  <bruno@clisp.org>
22585
22586         * modules/tmpdir (License): Change to LGPL.
22587
22588 2006-08-15  Bruno Haible  <bruno@clisp.org>
22589
22590         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22591         module.
22592
22593 2006-08-14  Simon Josefsson  <jas@extundo.com>
22594
22595         * config/srclist.txt: Add gnupload.
22596
22597 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22598
22599         Change copyright notice from LGPL 2 to GPL 2, since that's the
22600         standard form used in the gnulib repository.
22601         * tests/test-lock.c: Likewise.
22602         * tests/test-stdint.c: Likewise.
22603         * tests/test-tls.c: Likewise.
22604
22605         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22606         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22607         Add copyright notice.
22608
22609         * check-module: Add copyright notice.  Output a copyright
22610         notice if "--version" is specified.
22611         * modules/COPYING: New file.
22612         * tests/test-getaddrinfo.c: Add copyright notice.
22613         * tests/test-verify.c: Likewise.
22614
22615 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22616
22617         Change copyright notice from LGPL 2 to GPL 2, since that's the
22618         standard form used in the gnulib repository.
22619         * lib/lock.c: LGPL -> GPL.
22620         * lib/lock.h: Likewise.
22621         * lib/strnlen1.c: Likewise.
22622         * lib/strnlen1.h: Likewise.
22623         * lib/tls.c: Likewise.
22624         * lib/tls.h: Likewise.
22625         * lib/tmpdir.c: Likewise.
22626
22627         * lib/TODO: Remove; this belongs only in coreutils.
22628
22629 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22630
22631         Add copyright notices to long-enough files that lack them, since
22632         otherwise the files aren't clearly free.  Use the same notice that
22633         getdate.texi already uses.
22634         * doc/alloca-opt.texi: Add copyright notice.
22635         * doc/alloca.texi: Likewise.
22636         * doc/ctime.texi: Likewise.
22637         * doc/functions.texi: Likewise.
22638         * doc/gcd.texi: Likewise.
22639         * doc/gnulib-tool.texi: Likewise.
22640         * doc/inet_ntoa.texi: Likewise.
22641         * doc/visibility.texi: Likewise.
22642
22643         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22644         * doc/quote.texi: Add copyright notice.
22645
22646         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22647         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22648         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22649         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22650         is now obsolete, and give a pointer to the Sun list.
22651         Add copyright notice.
22652
22653 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22654
22655         * config/srclistvars.sh: Add copyright notice.
22656
22657 2006-08-14  Eric Blake  <ebb9@byu.net>
22658
22659         Import the following change from libc:
22660
22661         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22662
22663         Upstream bug 2997.
22664         * lib/misc/error.c: Add space between program name and message if file
22665         name is missing.
22666
22667 2006-08-12  Karl Berry  <karl@gnu.org>
22668
22669         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22670         remove, these originate in gnulib now.
22671
22672 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22673
22674         * doc/Makefile (standards.info standards.html standards.dvi):
22675         Also depend on make-stds.texi.
22676
22677 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22678
22679         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22680         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22681
22682         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22683         in wchar_t.  Problem reported by Eric Blake.
22684
22685         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22686         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22687         Also, help the compiler to keep LEN in a register.
22688
22689 2006-08-11  Eric Blake  <ebb9@byu.net>
22690
22691         * users.txt: Sort.  Add tar.
22692
22693 2006-08-11  Bruno Haible  <bruno@clisp.org>
22694
22695         * users.txt: New file.
22696
22697 2006-08-11  Bruno Haible  <bruno@clisp.org>
22698
22699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22700         before <wchar.h>. Needed for OSF/1 and BSD/OS.
22701
22702 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22703
22704         * modules/snprintf (Depends-on): Remove minmax.
22705         (Maintainer): Add self and Bruno.
22706
22707 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22708
22709         * lib/.cppi-disable: Add snprintf.h, socket_.h.
22710         * lib/snprintf.c: Include <errno.h> and <limits.h>.
22711         (EOVERFLOW): Define if the system does not.
22712         Do not include "minmax.h"; it wasn't used.
22713         (snprintf): Don't assume size_t promotes to an unsigned type.
22714         Fix bug when generated string was too long for the buffer: the
22715         buffer's contents are supposed to be the initial prefix of the
22716         output.  Don't assume vasnprintf returns EOVERFLOW if the size
22717         exceeds INT_MAX; do the check ourselves.
22718
22719         Import the following changes from libc:
22720
22721         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
22722
22723         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
22724         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
22725         set wc to the byte which couldn't be converted.
22726         (re_string_reconstruct): Don't clear valid_raw_len before calling
22727         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
22728         tip_context using re_string_context_at.
22729
22730         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
22731
22732         * lib/posix/regex.h: g++ still cannot handled [restrict].
22733
22734         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
22735
22736         * lib/posix/regex.h: Remove special handling for VMS.
22737
22738 2006-08-10  Jim Meyering  <jim@meyering.net>
22739
22740         * modules/same-inode: New module.
22741         * modules/dev-ino: New module.
22742         * modules/cycle-check: Depend on these modules, rather than simply
22743         including their .h files.
22744         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
22745         required via m4/cycle-check.m4.
22746         * modules/same: Depend on new same-inode module, rather than
22747         including same-inode.h.
22748         * modules/chdir-safer: New file.
22749
22750         * modules/chown (Depends-on): Add stat-macros.
22751
22752 2006-08-10  Jim Meyering  <jim@meyering.net>
22753
22754         * m4/cycle-check.m4: New file.
22755         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
22756         * m4/dev-ino.m4, m4/same-inode.m4: New files.
22757
22758 2006-08-10  Eric Blake  <ebb9@byu.net>
22759
22760         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
22761         in from original proposal.
22762
22763 2006-08-10  Eric Blake  <ebb9@byu.net>
22764         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22765
22766         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
22767         namespace.
22768
22769 2006-08-10  Bruno Haible  <bruno@clisp.org>
22770
22771         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
22772         as well.
22773
22774 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22775
22776         Sync from coreutils.
22777
22778         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
22779
22780         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
22781         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
22782
22783 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22784
22785         * modules/restrict: Remove; no longer needed now that we assume
22786         Autoconf 2.59 or later.
22787         * MODULES.html.sh: Remove 'restrict'.
22788         * modules/argp (Depends-on): Remove 'restrict'.
22789         * modules/base64 (Depends-on): Likewise.
22790         * modules/gc (Depends-on): Likewise.
22791         * modules/getaddrinfo (Depends-on): Likewise.
22792         * modules/glob (Depends-on): Likewise.
22793         * modules/inet_ntop (Depends-on): Likewise.
22794         * modules/inet_pton (Depends-on): Likewise.
22795         * modules/memxor (Depends-on): Likewise.
22796         * modules/regex (Depends-on): Likewise.
22797         * modules/strtok_r (Depends-on): Likewise.
22798         * modules/time_r (Depends-on): Likewise.
22799
22800 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22801
22802         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
22803         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
22804         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22805         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
22806         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22807         * m4/memxor.m4 (gl_MEMXOR): Likewise.
22808         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
22809         gl_C_RESTRICT replaced by AC_C_RESTRICT.
22810
22811         Merge from coreutils.
22812         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
22813         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
22814         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22815         * m4/time_r.m4 (gl_TIME_R): Likewise.
22816
22817 2006-08-09  Karl Berry  <karl@gnu.org>
22818
22819         * config/srclist.txt: no more gettext-tools, per Bruno.
22820
22821 2006-08-08  Eric Blake  <ebb9@byu.net>
22822
22823         * modules/verror: New module.
22824         * MODULES.html.sh: Document it.
22825
22826 2006-08-08  Eric Blake  <ebb9@byu.net>
22827
22828         * lib/verror.h, lib/verror.c: New files.
22829
22830 2006-08-08  Eric Blake  <ebb9@byu.net>
22831
22832         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
22833         verror_at_line output complies with GNU Coding Standards even when
22834         file is NULL.
22835
22836 2006-08-07  Bruno Haible  <bruno@clisp.org>
22837
22838         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
22839         versions of AIX.
22840         Reported by Ralf Wildenhues.
22841
22842 2006-08-07  Bruno Haible  <bruno@clisp.org>
22843
22844         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
22845         in an AC_DEFUN. Needed so that the autoconf snippets can use
22846         AC_REQUIRE.
22847
22848 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22849
22850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22851         Initialize pkgdata_DATA.
22852         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
22853         overriding it.
22854
22855 2006-08-06  Eric Blake  <ebb9@byu.net>
22856
22857         * lib/error.h: Fold in some upstream changes from glibc.
22858         * lib/error.c: Likewise.
22859
22860 2006-08-04  Bruno Haible  <bruno@clisp.org>
22861
22862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22863         Make the mostlyclean-local rule depend on mostlyclean-generic.
22864         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
22865
22866 2006-07-31  Bruno Haible  <bruno@clisp.org>
22867
22868         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
22869         <stdlib.h>, <string.h>.
22870
22871 2006-07-30  Bruno Haible  <bruno@clisp.org>
22872
22873         * modules/readlink (License): Change to LGPL.
22874
22875 2006-07-30  Bruno Haible  <bruno@clisp.org>
22876
22877         * modules/javaversion (Makefile.am): Distribute javaversion.java and
22878         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
22879         set PKGDATADIR to point to it.
22880
22881 2006-07-30  Bruno Haible  <bruno@clisp.org>
22882
22883         * modules/csharpexec (configure.ac): Comment out macro invocation.
22884         * modules/javaexec (configure.ac): Likewise.
22885         * modules/javacomp-script (configure.ac): Likewise.
22886
22887         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
22888
22889 2006-07-30  Bruno Haible  <bruno@clisp.org>
22890
22891         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
22892         linked-list.
22893
22894 2006-07-30  Bruno Haible  <bruno@clisp.org>
22895
22896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
22897
22898 2006-07-30  Bruno Haible  <bruno@clisp.org>
22899
22900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22901         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
22902         get removed.
22903
22904 2006-07-29  Bruno Haible  <bruno@clisp.org>
22905
22906         Make it possible for gnulib-tool to work with locally modified or
22907         augmented gnulib repositories.
22908         * gnulib-tool (func_usage): Document --local-dir option.
22909         (local_gnulib_dir): New variable.
22910         Handle --local-dir option.
22911         (func_lookup_file): New function.
22912         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
22913         (func_get_description, func_get_filelist, func_get_description,
22914         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
22915         func_get_automake_snippet, func_get_include_directive,
22916         func_get_license, func_get_maintainer): Use func_lookup_file.
22917         (func_import, func_create_testdir): Use func_lookup_file.
22918
22919 2006-07-29  Bruno Haible  <bruno@clisp.org>
22920
22921         * modules/setenv (Depends-on): Add unistd.
22922
22923 2006-07-29  Bruno Haible  <bruno@clisp.org>
22924
22925         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
22926
22927 2006-07-29  Bruno Haible  <bruno@clisp.org>
22928
22929         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
22930
22931 2006-07-29  Bruno Haible  <bruno@clisp.org>
22932
22933         * gnulib-tool (import, update): If there is no Makefile.am, look at
22934         aclocal.m4, instead of bailing out.
22935
22936 2006-07-29  Bruno Haible  <bruno@clisp.org>
22937
22938         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
22939         Categorize the options by when they are useful.
22940
22941 2006-07-29  Bruno Haible  <bruno@clisp.org>
22942
22943         * gnulib-tool (func_usage): Document option --no-libtool.
22944         Handle option --no-libtool.
22945         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
22946         for changed semantics of $libtool variable.
22947         (func_import): Likewise. If libtool is not used, show this through
22948         an option --no-libtool.
22949         (func_create_testdir): Update.
22950
22951 2006-07-29  Bruno Haible  <bruno@clisp.org>
22952
22953         * gnulib-tool (func_import): Extend error message about missing
22954         --doc-base.
22955
22956 2006-07-29  Bruno Haible  <bruno@clisp.org>
22957
22958         * gnulib-tool (func_import): Don't create the $docbase directory if
22959         there is no file to store there.
22960
22961 2006-07-29  Bruno Haible  <bruno@clisp.org>
22962
22963         * gnulib-tool (autoconf_minversion): If a --dir option is given and
22964         relevant, look for configure.ac there, not in the current directory.
22965         Also use a simple search for AC_PREREQ, not "autoconf --trace".
22966
22967 2006-07-29  Bruno Haible  <bruno@clisp.org>
22968
22969         * gnulib-tool (SORT): New variable.
22970         (func_usage): Undocument --assume-autoconf option.
22971         Remove --assume-autoconf option handling.
22972         (autoconf_minversion): Determine from the contents of configure.ac.
22973         (func_import): Remove autoconf_minversion handling.
22974         Suggested by Eric Blake.
22975
22976 2006-07-29  Bruno Haible  <bruno@clisp.org>
22977
22978         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
22979
22980 2006-07-29  Bruno Haible  <bruno@clisp.org>
22981
22982         * config/srclist.txt (*setenv.[ch]): Remove rules.
22983
22984 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22985
22986         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
22987
22988 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22989
22990         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
22991         arpa/inet.h.
22992
22993 2006-07-28  Simon Josefsson  <jas@extundo.com>
22994
22995         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
22996         * modules/inet_pton (Depends-on): Likewise.
22997
22998 2006-07-28  Simon Josefsson  <jas@extundo.com>
22999
23000         * m4/netinet_in_h.m4: New file.
23001
23002 2006-07-28  Simon Josefsson  <jas@extundo.com>
23003
23004         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
23005         #include's.
23006
23007 2006-07-28  Simon Josefsson  <jas@extundo.com>
23008
23009         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
23010         #include's.
23011
23012 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
23013
23014         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
23015         setgid on directories only if they set these bits.
23016         * lib/modechange.h: Remove obsolete comment about masks.
23017
23018 2006-07-28  Eric Blake  <ebb9@byu.net>
23019
23020         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
23021         macro expansion.
23022
23023 2006-07-28  Bruno Haible  <bruno@clisp.org>
23024
23025         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
23026
23027 2006-07-28  Bruno Haible  <bruno@clisp.org>
23028
23029         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
23030
23031 2006-07-28  Bruno Haible  <bruno@clisp.org>
23032
23033         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23034         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23035         Define fallbacks.
23036         Avoids link error on FreeBSD 4.x.
23037         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23038
23039         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
23040         encoding.
23041         * lib/mbswidth.c (iswcntrl): Likewise.
23042
23043 2006-07-27  Bruno Haible  <bruno@clisp.org>
23044
23045         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
23046         test.
23047
23048 2006-07-27  Bruno Haible  <bruno@clisp.org>
23049
23050         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
23051         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
23052         defined.
23053
23054 2006-07-26  Eric Blake  <ebb9@byu.net>
23055
23056         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
23057
23058 2006-07-26  Eric Blake  <ebb9@byu.net>
23059
23060         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
23061         like mingw that lack mkstemp.
23062         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
23063         avoid compilation warning on mingw.
23064
23065 2006-07-26  Bruno Haible  <bruno@clisp.org>
23066
23067         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
23068         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
23069         INT_FAST*_MIN, INTPTR_MIN.
23070
23071 2006-07-25  Bruno Haible  <bruno@clisp.org>
23072
23073         * modules/version-etc (Depends-on): Add stdarg.
23074
23075 2006-07-25  Bruno Haible  <bruno@clisp.org>
23076
23077         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
23078         complex commands.
23079
23080 2006-07-25  Bruno Haible  <bruno@clisp.org>
23081
23082         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
23083         defined in <stdarg.h> or config.h.
23084
23085 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23086
23087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
23088         (gl_STDIO_SAFER): Remove.
23089
23090 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23091
23092         * MODULES.html.sh (File stream based Input/Output):
23093         Add fopen-safer, tmpfile-safer; remove stdio-safer.
23094         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
23095         * modules/fopen-safer, modules/tmpfile-safer: New files.
23096         * modules/stdio-safer: Remove.
23097
23098 2006-07-24  Bruno Haible  <bruno@clisp.org>
23099
23100         * modules/tmpdir: New file.
23101         * MODULES.html.sh (File system functions): Add it.
23102
23103 2006-07-24  Bruno Haible  <bruno@clisp.org>
23104
23105         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
23106         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
23107
23108 2006-07-24  Bruno Haible  <bruno@clisp.org>
23109
23110         * modules/clean-temp: New file.
23111
23112 2006-07-24  Bruno Haible  <bruno@clisp.org>
23113
23114         * m4/tmpdir.m4: New file, from GNU gettext.
23115
23116 2006-07-24  Bruno Haible  <bruno@clisp.org>
23117
23118         * lib/tmpdir.h: New file, from GNU gettext.
23119         * lib/tmpdir.c: New file, from GNU gettext.
23120
23121 2006-07-24  Bruno Haible  <bruno@clisp.org>
23122
23123         * lib/clean-temp.h: New file, from GNU gettext.
23124         * lib/clean-temp.c: New file, from GNU gettext.
23125
23126 2006-07-23  Eric Blake  <ebb9@byu.net>
23127
23128         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23129         (Depends-on): Add binary-io.
23130
23131 2006-07-23  Eric Blake  <ebb9@byu.net>
23132
23133         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23134
23135 2006-07-23  Eric Blake  <ebb9@byu.net>
23136
23137         * lib/tmpfile-safer.c: New file.
23138         * lib/stdio-safer.h (fopen_safer): Add prototype.
23139         * lib/stdio--.h (tmpfile): Make safer.
23140
23141 2006-07-23  Bruno Haible  <bruno@clisp.org>
23142
23143         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23144         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23145         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23146         gl_linked_remove_at): Use it.
23147
23148 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23149         and Simon Josefsson <jas@extundo.com>
23150
23151         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23152
23153         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23154
23155 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23156
23157         * modules/close-stream: New file.
23158         * modules/closeout (Description): Make it clear that it exits
23159         with a diagnostic on error.
23160         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23161         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23162
23163 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23164
23165         * m4/close-stream.m4: New file.
23166
23167 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23168
23169         * lib/close-stream.c, lib/close-stream.h: New files.
23170
23171 2006-07-22  Bruno Haible  <bruno@clisp.org>
23172
23173         Merge from GNU gettext 0.15.
23174
23175         2006-05-01  Bruno Haible  <bruno@clisp.org>
23176
23177                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23178
23179         2006-07-22  Bruno Haible  <bruno@clisp.org>
23180
23181                 * modules/javaversion: New file.
23182                 * MODULES.html.sh (Java): Add javaversion.
23183
23184         2006-03-12  Bruno Haible  <bruno@clisp.org>
23185
23186                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23187
23188         2005-12-04  Bruno Haible  <bruno@clisp.org>
23189
23190                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23191                 (untested).
23192
23193         2006-06-21  Bruno Haible  <bruno@clisp.org>
23194
23195                 Avoid warnings from recent versions of mcs.
23196                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23197                 -o, -L, -r any more. Use options documented since mcs-1.0
23198                 instead. Similarly for -g.
23199
23200         2005-12-04  Bruno Haible  <bruno@clisp.org>
23201
23202                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23203                 .resources, not .resource.
23204
23205         2005-07-09  Bruno Haible  <bruno@clisp.org>
23206
23207                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23208                 add a .dll suffix.
23209                 Reported by Mark Junker <mjscod@gmx.de>.
23210
23211         2006-07-22  Bruno Haible  <bruno@clisp.org>
23212
23213                 * modules/gettext: Upgrade to gettext-0.15.
23214                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23215                 m4/visibility.m4.
23216                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23217
23218 2006-07-22  Bruno Haible  <bruno@clisp.org>
23219
23220         Merge from GNU gettext 0.15.
23221
23222         2006-03-25  Bruno Haible  <bruno@clisp.org>
23223
23224                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23225
23226         2006-07-21  Bruno Haible  <bruno@clisp.org>
23227
23228                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23229                 "1.1".
23230
23231         2006-05-09  Bruno Haible  <bruno@clisp.org>
23232
23233                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23234                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23235                 for the conftestver execution.
23236
23237         2006-05-01  Bruno Haible  <bruno@clisp.org>
23238
23239                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23240                 optional target-version argument. Verify that the compiler
23241                 groks source of the specified source-version, or add -source
23242                 option as necessary. Verify that the compiler produces
23243                 bytecode in the specified target-version, or add -target and
23244                 -source options as necessary. Make the result of the test
23245                 available as variable CONF_JAVAC. Also log error output in
23246                 config.log.
23247
23248         2006-03-11  Bruno Haible  <bruno@clisp.org>
23249
23250                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23251
23252         2006-05-09  Bruno Haible  <bruno@clisp.org>
23253
23254                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23255                 CLASSPATH_SEPARATOR to a semicolon.
23256
23257         2006-03-12  Bruno Haible  <bruno@clisp.org>
23258
23259                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23260                 available as variable CONF_JAVA, for subsequent autoconf
23261                 tests. Also log error output in config.log.
23262
23263         2006-07-19  Bruno Haible  <bruno@clisp.org>
23264
23265                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23266                 that getline works on glibc2 systems. Needed to avoid trouble
23267                 in relocatable.c.
23268                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23269
23270         2005-12-04  Bruno Haible  <bruno@clisp.org>
23271
23272                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23273                 launcher (untested).
23274
23275         2005-12-04  Bruno Haible  <bruno@clisp.org>
23276
23277                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23278
23279         2006-07-22  Bruno Haible  <bruno@clisp.org>
23280
23281                 * gettext.m4: Update from GNU gettext-0.15.
23282                 * nls.m4: Likewise.
23283                 * po.m4: Likewise.
23284                 * inttypes-pri.m4: Likewise.
23285                 * inttypes-h.m4: Renamed from inttypes.m4.
23286                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23287
23288 2006-07-22  Bruno Haible  <bruno@clisp.org>
23289
23290         Merge from GNU gettext 0.15.
23291
23292         2005-07-05  Bruno Haible  <bruno@clisp.org>
23293
23294                 * printf-args.c (printf_fetchargs): Work around broken
23295                 definition of wint_t on mingw.
23296
23297         2005-02-12  Bruno Haible  <bruno@clisp.org>
23298
23299                 * xallocsa.h: Add extern "C" for C++.
23300
23301         2006-05-17  Bruno Haible  <bruno@clisp.org>
23302
23303                 Cygwin portability.
23304                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23305
23306         2006-04-30  Bruno Haible  <bruno@clisp.org>
23307
23308                 * progreloc.c: Include <mach-o/dyld.h> if available.
23309                 (find_executable): Use _NSGetExecutablePath when possible.
23310
23311         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23312
23313                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23314                 function.
23315
23316         2005-12-29  Bruno Haible  <bruno@clisp.org>
23317
23318                 * progreloc.c (set_program_name_and_installdir): Fix
23319                 compilation error.
23320
23321         2005-12-04  Bruno Haible  <bruno@clisp.org>
23322
23323                 Cygwin portability.
23324                 * progreloc.c: Include <windows.h> also on Cygwin.
23325                 (find_executable): Add support for Cygwin.
23326                 (set_program_name_and_installdir): Handle also platforms with
23327                 nonempty EXEEXT.
23328
23329         2006-07-11  Bruno Haible  <bruno@clisp.org>
23330
23331                 * javacomp.c: Fix a comment.
23332                 Reported by Jim Meyering.
23333
23334         2006-04-30  Bruno Haible  <bruno@clisp.org>
23335
23336                 * javacomp.h (compile_java_class): Add source_version,
23337                 target_version arguments.
23338                 * javacomp.c: Rewritten to choose only a compiler that
23339                 respects the specified source_version and target_version.
23340
23341         2006-06-27  Bruno Haible  <bruno@clisp.org>
23342
23343                 Assume correct S_ISDIR macro.
23344                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23345
23346         2006-07-22  Bruno Haible  <bruno@clisp.org>
23347
23348                 * javaversion.h: New file, from GNU gettext.
23349                 * javaversion.c: New file, from GNU gettext.
23350                 * javaversion.java: New file, from GNU gettext.
23351                 * javaversion.class: New file, from GNU gettext.
23352
23353         2006-05-17  Bruno Haible  <bruno@clisp.org>
23354
23355                 Cygwin portability.
23356                 * javaexec.c (execute_java_class): Test for jview program
23357                 also on Cygwin.
23358
23359         2006-04-09  Bruno Haible  <bruno@clisp.org>
23360
23361                 * fatal-signal.c: Don't include string.h.
23362                 (at_fatal_signal): Use a copying loop instead of memcpy.
23363
23364         2005-12-04  Bruno Haible  <bruno@clisp.org>
23365
23366                 * csharpexec.c: Add support for 'clix' launcher (untested).
23367                 (execute_csharp_using_sscli): New function.
23368                 (execute_csharp_program): Call it.
23369
23370         2006-06-21  Bruno Haible  <bruno@clisp.org>
23371
23372                 Avoid warnings from recent versions of mcs.
23373                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23374                 -o, -L, -r any more. Use options documented since mcs-1.0
23375                 instead. Similarly for -g.
23376
23377         2005-07-09  Bruno Haible  <bruno@clisp.org>
23378
23379                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23380                 add a .dll suffix.
23381                 Reported by Mark Junker <mjscod@gmx.de>.
23382
23383         2006-06-17  Bruno Haible  <bruno@clisp.org>
23384
23385                 * config.charset: Update for NetBSD 3.0.
23386
23387         2006-05-17  Bruno Haible  <bruno@clisp.org>
23388
23389                 Cygwin portability.
23390                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23391
23392         2006-05-16  Bruno Haible  <bruno@clisp.org>
23393
23394                 * localcharset.c [CYGWIN]: Include <windows.h>.
23395                 (get_charset_aliases): For Cygwin, return the same CPxxx
23396                 aliases list as under WIN32.
23397                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23398                 the environment variables. Fall back to GetACP().
23399
23400         2006-04-05  Bruno Haible  <bruno@clisp.org>
23401
23402                 * config.charset: Update Juan Manuel Guerrero's address.
23403
23404         2005-02-12  Bruno Haible  <bruno@clisp.org>
23405
23406                 * allocsa.h: Add extern "C" for C++.
23407
23408         2005-02-10  Bruno Haible  <bruno@clisp.org>
23409
23410                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23411                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23412
23413         2006-07-22  Bruno Haible  <bruno@clisp.org>
23414
23415                 * gettext.h: Update to GNU gettext-0.15.
23416
23417 2006-07-22  Bruno Haible  <bruno@clisp.org>
23418
23419         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23420         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23421         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23422
23423 2006-07-21  Eric Blake  <ebb9@byu.net>
23424
23425         * modules/stdlib-safer: New file.
23426         * MODULES.html.sh (File stream based Input/Output): Add
23427         stdlib-safer.
23428
23429 2006-07-21  Eric Blake  <ebb9@byu.net>
23430
23431         * lib/stdlib-safer.h: New file from coreutils, required by
23432         stdlib--.h.
23433
23434 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23435
23436         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23437
23438 2006-07-20  Bruno Haible  <bruno@clisp.org>
23439
23440         * gnulib-tool: Recognize new option --assume-autoconf.
23441         (autoconf_minversion): New variable.
23442         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23443
23444 2006-07-20  Bruno Haible  <bruno@clisp.org>
23445
23446         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23447
23448 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23449
23450         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23451         Reindent and repaginate.
23452
23453 2006-07-19  Derek Price  <derek@ximbiot.com>
23454
23455         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23456         Correct grammar.
23457
23458 2006-07-17  Bruno Haible  <bruno@clisp.org>
23459
23460         * modules/list: New file.
23461         * modules/array-list: New file.
23462         * modules/carray-list, modules/carray-list-tests: New files.
23463         * modules/linked-list, modules/linked-list-tests: New files.
23464         * modules/avltree-list, modules/avltree-list-tests: New files.
23465         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23466         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23467         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23468         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23469         * modules/oset: New file.
23470         * modules/array-oset: New file.
23471         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23472         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23473         * tests/test-carray_list.c: New file.
23474         * tests/test-linked_list.c: New file.
23475         * tests/test-avltree_list.c: New file.
23476         * tests/test-rbtree_list.c: New file.
23477         * tests/test-linkedhash_list.c: New file.
23478         * tests/test-avltreehash_list.c: New file.
23479         * tests/test-rbtreehash_list.c: New file.
23480         * tests/test-avltree_oset.c: New file.
23481         * tests/test-rbtree_oset.c: New file.
23482         * MODULES.html.sh (Container data structures): New section.
23483
23484 2006-07-17  Bruno Haible  <bruno@clisp.org>
23485
23486         * m4/gl_list.m4: New file.
23487
23488 2006-07-17  Bruno Haible  <bruno@clisp.org>
23489
23490         * lib/gl_list.h: New file.
23491         * lib/gl_list.c: New file.
23492         * lib/gl_array_list.h: New file.
23493         * lib/gl_array_list.c: New file.
23494         * lib/gl_carray_list.h: New file.
23495         * lib/gl_carray_list.c: New file.
23496         * lib/gl_linked_list.h: New file.
23497         * lib/gl_linked_list.c: New file.
23498         * lib/gl_anylinked_list1.h: New file.
23499         * lib/gl_anylinked_list2.h: New file.
23500         * lib/gl_avltree_list.h: New file.
23501         * lib/gl_avltree_list.c: New file.
23502         * lib/gl_anyavltree_list1.h: New file.
23503         * lib/gl_anyavltree_list2.h: New file.
23504         * lib/gl_rbtree_list.h: New file.
23505         * lib/gl_rbtree_list.c: New file.
23506         * lib/gl_anyrbtree_list1.h: New file.
23507         * lib/gl_anyrbtree_list2.h: New file.
23508         * lib/gl_anytree_list1.h: New file.
23509         * lib/gl_anytree_list2.h: New file.
23510         * lib/gl_linkedhash_list.h: New file.
23511         * lib/gl_linkedhash_list.c: New file.
23512         * lib/gl_anyhash_list1.h: New file.
23513         * lib/gl_anyhash_list2.h: New file.
23514         * lib/gl_avltreehash_list.h: New file.
23515         * lib/gl_avltreehash_list.c: New file.
23516         * lib/gl_rbtreehash_list.h: New file.
23517         * lib/gl_rbtreehash_list.c: New file.
23518         * lib/gl_anytreehash_list1.h: New file.
23519         * lib/gl_anytreehash_list2.h: New file.
23520
23521         * lib/gl_oset.h: New file.
23522         * lib/gl_oset.c: New file.
23523         * lib/gl_array_oset.h: New file.
23524         * lib/gl_array_oset.c: New file.
23525         * lib/gl_avltree_oset.h: New file.
23526         * lib/gl_avltree_oset.c: New file.
23527         * lib/gl_rbtree_oset.h: New file.
23528         * lib/gl_rbtree_oset.c: New file.
23529         * lib/gl_anytree_oset.h: New file.
23530
23531 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23532
23533         * m4/mkancesdirs.m4: New file.
23534         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23535         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23536         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23537         it.
23538
23539 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23540
23541         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23542         * lib/mkancesdirs.h: New files.
23543         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23544         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23545         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23546         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23547         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23548         callers changed.  Revamp internals significantly, by not
23549         attempting to create directories that are temporarily more
23550         permissive than the final results.  Do not attempt to use
23551         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23552         This removes some race conditions, fixes some bugs, and simplifies
23553         things.  Use new dirchownmod function to do owner and mode changes.
23554         * lib/mkdir-p.h: Likewise.
23555         * lib/modechange.c (octal_to_mode): New function.
23556         (struct mode_change): New member mentioned.
23557         (make_node_op_equals): New arg mentioned.  All callers changed.
23558         (mode_compile): Keep track of which mode bits the user has explicitly
23559         mentioned.
23560         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23561         New arg PMODE_BITS, to keep track of which mode bits the user
23562         mentioned; it treats S_ISUID and S_ISGID speciall.
23563         All callers changed.
23564         * lib/modechange.h: Likewise.
23565
23566 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23567
23568         * MODULES.html.sh: Add mkancestors.
23569         * modules/mkancesdirs: New module.
23570         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23571         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23572         The chdir-safer and afs files are now orphans; I'll remove them
23573         unless someone speaks up.
23574         Add lib/dirchownmod.c, lib/dirchownmod.h.
23575         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23576         Add lchown, mkancesdirs.
23577         (Maintainer): Add self.
23578
23579 2006-07-15  Karl Berry  <karl@gnu.org>
23580
23581         * gnulib-tool: help message wording/arrangement.
23582
23583 2006-07-14  Simon Josefsson  <jas@extundo.com>
23584
23585         * doc/gnulib.texi (Libtool and Windows): New section.
23586
23587 2006-07-12  Simon Josefsson  <jas@extundo.com>
23588
23589         * modules/gendocs (License): Fix license, approved by Karl.
23590
23591 2006-07-12  Eric Blake  <ebb9@byu.net>
23592
23593         * MODULES.html.sh: Add gendocs.
23594
23595 2006-07-11  Eric Blake  <ebb9@byu.net>
23596
23597         * modules/fdl: New module, to install doc/fdl.texi.
23598         * MODULES.html.sh: Add new section for documentation modules.
23599         * gnulib-tool: Avoid space-tab.
23600         (--doc-base): New option, to manage files from doc.
23601
23602 2006-07-11  Eric Blake  <ebb9@byu.net>
23603
23604         * m4/absolute-header.m4: Fix comments to match recent change.
23605
23606 2006-07-11  Eric Blake  <ebb9@byu.net>
23607
23608         * gnulib-tool: List --doc-base before --tests-base.
23609
23610 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23611
23612         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23613
23614 2006-07-11  Bruno Haible  <bruno@clisp.org>
23615
23616         * README: Mention where to put documentation.
23617
23618 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23619
23620         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23621
23622 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23623
23624         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23625         to stdint.m4.
23626
23627 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23628
23629         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23630         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23631         "no/such/file/stdint.h" when there is no such file, so that
23632         the resulting C code can be parsed by dodgy compilers.
23633         Problems reported by Bob Proulx.
23634
23635 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23636
23637         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23638         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23639         macros into the GNU _D_EXACT_NAMLEN.
23640         * lib/savedir.c:  Likewise.
23641         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23642
23643 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23644         and Paul Eggert  <eggert@cs.ucla.edu>
23645
23646         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23647         * m4/savedir.m4:
23648         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23649         macros into the GNU _D_EXACT_NAMLEN.
23650
23651 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23652
23653         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23654         around the absolute name, to work around a problem with the HP-UX
23655         11.23 native C compiler, reported by Bob Proulx.
23656
23657 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23658
23659         * doc/maintain.texi, make-stds.texi: Sync from
23660         <http://savannah.gnu.org/projects/gnustandards>.
23661
23662 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23663
23664         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23665
23666 2006-07-09  Jim Meyering  <jim@meyering.net>
23667
23668         * m4/glob.m4: Remove a doubled word in a comment.
23669
23670 2006-07-09  Jim Meyering  <jim@meyering.net>
23671
23672         * lib/argp-pv.c: Remove a doubled word in a comment.
23673         * lib/check-version.c (check_version): Likewise.
23674         * lib/javacomp.c (compile_java_class): Likewise.
23675
23676 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23677
23678         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23679         for the benefit of people using Autoconf 2.60.  If you want to
23680         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23681         (or m4/onceonly.m4, if pre-2.57) manually.
23682
23683 2006-07-08  Jim Meyering  <jim@meyering.net>
23684
23685         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23686         comment.
23687         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23688         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23689         comment.
23690
23691 2006-07-08  Jim Meyering  <jim@meyering.net>
23692
23693         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23694
23695 2006-07-07  Simon Josefsson  <jas@extundo.com>
23696
23697         * tests/test-crc.c: Change expected crc value, the test vector
23698         were probably computed using the old broken crc.c?
23699
23700 2006-07-06  Simon Josefsson  <jas@extundo.com>
23701
23702         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23703         now the canonical place for the M4 file).
23704
23705         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23706         from the sys_socket dependency now.
23707
23708         * modules/inet_pton (Files): Ditto.
23709
23710         * modules/inet_ntop (Files): Ditto.
23711
23712 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23713
23714         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23715         not gl_PREREQ_GETUSERSHELL.
23716
23717 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23718
23719         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23720         with only one argument, for Autoconf 2.60.
23721         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
23722         expand to nothing, so add a shell command to avoid syntax error.
23723         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23724
23725 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23726
23727         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
23728
23729 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23730
23731         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
23732         no longer needed.  Check for isblank decl.
23733         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
23734         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
23735         of existence.
23736
23737 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23738
23739         * lib/getloadavg.c: Use __VMS, not VMS.
23740         * lib/getopt.c: Likewise.
23741         * lib/getpagesize.h: Likewise.
23742         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
23743         and probably does not work.
23744
23745 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23746
23747         * lib/.cppi-disable: Add wcwidth.
23748         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
23749         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
23750         (ISGRAPH): Remove.  All uses changed to isgraph.
23751         (FOLD) [!defined _LIBC]: Remove special case.
23752         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
23753         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
23754         HAVE_ISBLANK.
23755         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
23756         case.
23757
23758 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23759
23760         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
23761         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
23762         brackets.  Other minor changes to suppress some compiler
23763         warnings.
23764
23765 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23766         and Paul Eggert  <eggert@cs.ucla.edu>
23767
23768         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
23769         of invoking obsolescent AC_HEADER_DIRENT macro.
23770         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23771         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23773         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23774         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
23775         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23776         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
23777         * m4/readdir.m4: Remove; no longer needed.
23778
23779 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23780         and Paul Eggert  <eggert@cs.ucla.edu>
23781
23782         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
23783         Don't worry about this obsolete case any more.
23784         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
23785         directories.
23786         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
23787         worry about this obsolete case any more.
23788         * lib/fts.c: Likewise.
23789         * lib/getcwd.c: Likewise.
23790         * lib/glob.h: Likewise.
23791         * lib/savedir.c: Likewise.
23792
23793 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23794
23795         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
23796         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
23797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
23798         needed.
23799         All uses removed.
23800         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23801         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23802         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
23803         needed.
23804         * m4/getdate.m4 (gl_GETDATE): Likewise.
23805         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23806         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23807         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23808         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23809         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23810         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23811         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
23812         needed.
23813
23814 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23815
23816         * lib/memcasecmp.c: Include <limits.h>.
23817         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
23818         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
23819         Don't assume isdigit succeeds only on '0' through '9'.
23820
23821 2006-07-05  Eric Blake  <ebb9@byu.net>
23822
23823         * modules/getaddrinfo (Depends-on): Add snprintf.
23824
23825 2006-07-05  Eric Blake  <ebb9@byu.net>
23826
23827         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
23828         to avoid 'header present but could not be compiled' on cygwin.
23829
23830 2006-07-05  Eric Blake  <ebb9@byu.net>
23831
23832         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
23833         missing from netdb.h.
23834         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
23835
23836 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23837
23838         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
23839         no longer needed.
23840         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
23841         * m4/getdate.m4 (gl_GETDATE): Likewise.
23842         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23843         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23844         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23845         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23846         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23847
23848 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23849
23850         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
23851         All uses of is_space replaced by isspace.
23852         * lib/exit.h: Don't talk about STDC_HEADERS.
23853         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
23854         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
23855         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
23856         replaced by isprint etc.
23857         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
23858         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23859         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
23860         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
23861         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
23862         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23863
23864 2006-07-05  Bruno Haible  <bruno@clisp.org>
23865
23866         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
23867         the function exists, before testing against AIX.
23868         Reported by Martin Lambers <marlam@marlam.de>.
23869
23870 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23871
23872         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
23873         From Mark D. Baushke.
23874
23875 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
23878         to the absolute name, not just one, to bypass Sun C 5.8's
23879         "warning: #include of /usr/include/... may be non-portable".
23880
23881 2006-07-04  Eric Blake  <ebb9@byu.net>
23882
23883         * modules/dirname-tests: New test module.
23884         * tests/test-dirname.c: New file, replacing dirname.c
23885         TEST_DIRNAME section that was recently deleted.
23886
23887 2006-07-04  Bruno Haible  <bruno@clisp.org>
23888
23889         Assume ANSI C header files and <ctype.h> functions.
23890         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
23891         (mbsnwidth): Use isprint, iscntrl instead.
23892
23893 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23894
23895         Merge from coreutils.
23896         * MODULES.html.sh: Add xstrtold.
23897         * modules/xstrtold: New file.
23898         * modules/cycle-check (Files): Add lib/same-inode.h.
23899         * modules/dirname (Files): Add m4/double-slash-root.m4.
23900         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
23901         * modules/mkdir-p (Files): Add lib/same-inode.h.
23902         * modules/same (Files): Add lib/same-inode.h.
23903
23904 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23905
23906         * m4/absolute-header.m4: Renamed from full-header-path.m4.
23907         This is to keep the terminology clean; POSIX talks about
23908         "absolute pathnames", not "full pathnames", but the GNU
23909         Coding Standards say to use "path" for something else;
23910         so use "absolute" to keep both sides happy.
23911         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
23912         Set gl_absolute_header, not gl_full_header_path.
23913         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
23914         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
23915         All uses changed.
23916
23917         Merge from coreutils.
23918
23919         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23920
23921         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
23922         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
23923         want to require the building of c-strtod.o.
23924         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
23925         needs -lm directly.
23926         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
23927
23928         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
23929
23930         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
23931         --as-needed option if available.  Problem reported by Albert Chin in
23932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
23933         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
23934         cc merely issues a bunch of annoying warnings for --as-needed
23935         (this problem was reported by Bob Proulx).  Also, try linking with
23936         -lm to detect a bug in binutils 2.16 (this problem was reported
23937         by Ralf Wildenhues).
23938
23939         2006-06-18  Jim Meyering  <jim@meyering.net>
23940
23941         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
23942         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
23943         macro.
23944         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
23945         also check for glibc-2.4's abort-inducing bug.
23946
23947         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
23948         Low-probability clean-up should be to use rmdir to get rid of
23949         the just-created directory, not unlink.
23950
23951         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
23952         configure fail, and request a bug report to inform us about it.
23953         Add a comment that, barring reports to the contrary, in 2007 we'll
23954         assume ftruncate is universally available.
23955
23956         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23957
23958         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
23959
23960         2006-03-12  Jim Meyering  <jim@meyering.net>
23961
23962         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
23963         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
23964         * m4/same.m4 (gl_SAME): Likewise.
23965         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
23966
23967         2006-03-11  Eric Blake  <ebb9@byu.net>
23968
23969         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
23970         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
23971         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
23972         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
23973
23974 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23975
23976         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
23977         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
23978         reported by Mark D. Baushke, one in
23979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
23980
23981         Merge from coreutils.
23982
23983         * lib/.cppi-disable: Add stdint_.h.
23984         * lib/.cvsignore: Add stdint.h.
23985
23986         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23987
23988         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
23989         both double and long double versions.
23990         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
23991         * lib/xstrtold.c: New file.
23992         * lib/xstrtod.h (xstrtold): New decl.
23993
23994         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23995
23996         * lib/filemode.c (setst): Remove.
23997         (strmode): Rewrite to avoid setst.  This makes the code shorter,
23998         (arguably) clearer, and the generated code is a bit smaller on my
23999         Debian GNU/Linux stable x86 host.
24000
24001         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
24002
24003         * lib/filemode.c: Include "filemode.h" first, to test the interface.
24004         Assume that filemode.h includes sys/types.h and sys/stat.h.
24005         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
24006         (ftypelet): Reorder to put common cases first, for efficiency.
24007         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
24008         to do 'M'.
24009         (strmode): Renamed from mode_string, and now stores 12 bytes instead
24010         of 10, for compatibility with FreeBSD.  All callers changed.
24011         (filemodestring): Now stores 12 bytes instead of 10, and sets file
24012         types that can't be deduced solely from st_mode.  First arg is now a
24013         const pointer.
24014         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
24015         (strmode): Renamed from mode_string.
24016         (filemodestring): New decl.
24017         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
24018         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
24019         needed.
24020         (S_ISPORT, S_ISWHT): New macros, if not already defined.
24021
24022         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24023
24024         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
24025         fsusage.h now does that.  Include fsusage.h first, to test interface.
24026         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
24027         at most one method (the old code could have generated decls that
24028         didn't conform to C89, not that this was ever exercised).
24029         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
24030
24031         2006-03-19  Jim Meyering  <jim@meyering.net>
24032
24033         Work even in a chroot where d_ino values for entries in "/"
24034         don't match the stat.st_ino values for the same names.
24035         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
24036         number, iterate through all entries again, using lstat instead.
24037         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
24038         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
24039
24040         * lib/getcwd.c (__getcwd): Clarify a comment.
24041         Use memcpy in place of a call to strcpy.
24042
24043         2006-03-12  Jim Meyering  <jim@meyering.net>
24044
24045         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
24046         matches that of the current directory (which we're about to chdir ".."
24047         out of), then save the dev-ino of the parent, instead.
24048
24049         * lib/same-inode.h (SAME_INODE): New file/macro.
24050         * lib/chdir-safer.c (SAME_INODE): Remove definition.
24051         Include "same-inode.h", instead.
24052         * lib/same.c: Likewise.
24053         * lib/cycle-check.h: Include "same-inode.h".
24054         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
24055         * lib/cycle-check.c (SAME_INODE): Remove definition.
24056         * lib/root-dev-ino.h: Include "same-inode.h".
24057
24058         2006-03-11  Eric Blake  <ebb9@byu.net>
24059
24060         * lib/same.c (same_name): s/base_name/last_component/
24061         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
24062         * lib/filenamecat.c (file_name_concat): Likewise.
24063
24064         2006-03-11  Eric Blake  <ebb9@byu.net>,
24065                     Paul Eggert  <eggert@cs.ucla.edu>
24066
24067         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
24068         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
24069         drive prefix.
24070         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
24071         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
24072         (last_component): New method.
24073         * lib/dirname.c (dir_len): Determine when drive letters need a
24074         subsequent slash.  Preserve // when it is special.
24075         (dir_name): Don't append dot when drive letter is absolute.
24076         [TEST_DIRNAME]: Move into a full-blown gnulib test.
24077         * lib/basename.c (base_name): New semantics - malloc the result.
24078         Preserve // when it is special.  Preserve relative files that look
24079         like drive letters.
24080         (base_len): Preserve // when it is special.
24081         (last_component): New method, similar to old base_name semantics.
24082         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
24083         base_name.  Strip redundant slashes from ///.
24084
24085 2006-07-03  Jim Meyering  <jim@meyering.net>
24086
24087         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
24088         macro is used before the first cycle_check call.
24089
24090 2006-07-03  Eric Blake  <ebb9@byu.net>
24091
24092         * modules/dirname (Depends-on): Add xstrndup.
24093
24094 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24095
24096         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
24097         test cases, so that config.log is a bit easier to follow.
24098
24099 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24100
24101         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
24102         both are 64 bits, since this seems to be the tradition, and this
24103         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
24104         we ever run into a host that prefers long long to long in this
24105         case, we'll need another configure-time test.  Problem reported by
24106         Jim Meyering.
24107
24108 2006-07-02  Eric Blake  <ebb9@byu.net>
24109
24110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
24111
24112 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24113
24114         * modules/inttypes (Depends-on): No longer depends on stdint.
24115         * modules/stdint (Description): Say more about assumptions.
24116         Say that the fast types might differ.  Say macros are used.
24117         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
24118         (Makefile.am): Revise list of substituted symbols to match
24119         new stdint.m4.
24120         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24121         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24122         * tests/test-stdint.c (verify_same_types)
24123         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24124         the code conforms to C99/C89.
24125         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24126         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24127
24128 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24129
24130         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24131         but fix a bug, by requiring at least 64 bits.
24132         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24133         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24134         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24135         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24136
24137         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24138         changes.  Make 2.59 a prerequisite.  Check and substitute for
24139         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24140         inttypes.h.  Do not use special include files; just use the
24141         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24142         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24143         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24144         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24145         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24146         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24147         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24148         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24149         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24150         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24151         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24152         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24153         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24154         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24155         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24156         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24157         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24158         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24159         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24160         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24161         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24162         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24163         not check for things that C99 does not require, e.g., int8_t.  If
24164         a test isn't needed unless <stdint.h> isn't working, and is
24165         unlikely to be needed for any other reason, then don't do it
24166         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24167         size_t, since we assume C89 freestanding at least.  Do not check
24168         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24169         the right thing even if the types are not defined.  Instead use:
24170         (gl_STDINT_TYPE_PROPERTIES): New macro.
24171         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24172         testing whether <sys/types.h> clashes, as Autoconf does this for
24173         us now.  All uses removed.
24174         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24175         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24176         (gl_CHECK_TYPE_SAME):
24177         Remove; no longer needed.
24178         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24179         exists, since we'll return 0 anyway in that case.
24180         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24181
24182 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24183
24184         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24185         possible collision with system files.
24186         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24187         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24188         WCHAR_MIN and WCHAR_MAX in this case.
24189         (<stddef.h>): Do not include; no longer needed.
24190         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24191         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24192         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24193         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24194         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24195         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24196         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24197         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24198         !defined(__c99))]: Include in this case too, since it's harmless
24199         now.
24200         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24201         dangerous to do so.
24202         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24203         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24204         (_STDINT_MIN, _STDINT_MAX): New macros.
24205         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24206         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24207         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24208         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24209         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24210         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24211         macros, not typedefs; this simplifies things quite a bit.
24212         Use long int for all types narrower than int64_t.
24213         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24214         Define in terms of long long int or int64_t or long int,
24215         not int64_t or int32_t.  This saves some compile-time testing.
24216         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24217         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24218         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24219         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24220         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24221         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24222         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24223         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24224         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24225         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24226         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24227         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24228         undef any previous version and define our own version, for
24229         simplicity and consistency with the new macros for types.
24230         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24231         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24232         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24233         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24234         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24235         @WINT_T_SUFFIX@ to keep things simple here.
24236         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24237         Simplify by assuming typical 8/16/32/64 host, since we're
24238         already doing that elsewhere anyway.
24239         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24240         and assume long long int is 64 bits if available.  This
24241         speeds up 'configure'.
24242
24243 2006-07-01  Eric Blake  <ebb9@byu.net>
24244
24245         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24246         Reported by Andreas Buening.
24247
24248 2006-07-01  Eric Blake  <ebb9@byu.net>
24249
24250         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24251
24252 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24253
24254         * lib/getaddrinfo.c: fixed typo
24255
24256 2006-06-29  Jim Meyering  <jim@meyering.net>
24257
24258         * modules/strftime (Maintainer): Add my name, since with the
24259         FPRINTFTIME changes strftime.c has forked from glibc.
24260
24261 2006-06-29  Eric Blake  <ebb9@byu.net>
24262
24263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24264
24265 2006-06-29  Eric Blake  <ebb9@byu.net>
24266
24267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24268
24269 2006-06-29  Eric Blake  <ebb9@byu.net>
24270
24271         * lib/stat_.h: New file.
24272
24273 2006-06-29  Eric Blake  <ebb9@byu.net>
24274
24275         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24276         unused static function.
24277
24278 2006-06-29  Eric Blake  <ebb9@byu.net>
24279
24280         * doc/functions.texi (Function Portability): Document missing lstat
24281         on mingw.
24282
24283 2006-06-29  Eric Blake  <ebb9@byu.net>
24284
24285         * MODULES.html.sh: Add sys_stat.
24286         * modules/sys_stat: New module.
24287         * modules/mkstemp (Depends-on): Add sys_stat.
24288
24289 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24290
24291         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24292
24293 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24294
24295         * m4/c-bs-a.m4: Removed.
24296
24297 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24298
24299         * lib/strftime.c: Assume strftime() exists.
24300
24301 2006-06-29  Derek Price  <derek@ximbiot.com>
24302
24303         * modules/c-bs-a: Removed - \a is C89.
24304         * MODULES.html.sh: Remove c-bs-a.
24305
24306 2006-06-29  Bruno Haible  <bruno@clisp.org>
24307
24308         * modules/wcwidth (License): Change to LGPL.
24309
24310 2006-06-28  Simon Josefsson  <jas@extundo.com>
24311
24312         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24313         on _WIN32.
24314
24315         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24316         getnameinfo.
24317
24318 2006-06-28  Simon Josefsson  <jas@extundo.com>
24319
24320         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24321
24322 2006-06-28  Simon Josefsson  <jas@extundo.com>
24323
24324         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24325         functions there.  It will succeed on Windows XP, but on Windows
24326         2000 and (presumably) earlier, it will fail, and use the internal
24327         re-implementation.
24328         (use_win32_p): New function.
24329         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24330         Support AI_NUMERICSERV to disable getservbyname.
24331         (getnameinfo): New function, only supports
24332         NI_NUMERICHOST|NI_NUMERICSERV for now.
24333
24334         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24335         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24336         getnameinfo.
24337
24338 2006-06-28  Eric Blake  <ebb9@byu.net>
24339
24340         * modules/wcwidth: New file.
24341         * modules/mbchar (Depends-on): Add wcwidth.
24342         * modules/mbswidth (Depends-on): Add wcwidth.
24343         * MODULES.html.sh: Add wcwidth.
24344
24345 2006-06-28  Eric Blake  <ebb9@byu.net>
24346
24347         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24349
24350 2006-06-28  Eric Blake  <ebb9@byu.net>
24351
24352         * lib/xvasprintf.h: Fix comments.
24353
24354 2006-06-28  Eric Blake  <ebb9@byu.net>
24355
24356         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24357         * lib/mbswidth.c (wcwidth): Move from here...
24358         * lib/wcwidth.h: ...to this new file.
24359
24360 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24361
24362         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24363
24364         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24365         it's obsolete.
24366         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24367
24368 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24369
24370         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24371         Autoconf 2.60 says this stuff was obsolete.
24372
24373 2006-06-28  Bruno Haible  <bruno@clisp.org>
24374
24375         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24376
24377 2006-06-28  Bruno Haible  <bruno@clisp.org>
24378
24379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24380         gt_TYPE_WCHAR_T.
24381
24382 2006-06-28  Bruno Haible  <bruno@clisp.org>
24383
24384         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24385         declaration for wcwidth.
24386         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24387
24388 2006-06-28  Bruno Haible  <bruno@clisp.org>
24389
24390         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24391         (mkdir): Define using _mkdir.
24392
24393 2006-06-28  Bruno Haible  <bruno@clisp.org>
24394
24395         * lib/getaddrinfo.h: Fix POSIX URL.
24396         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24397         _WIN32.
24398         (use_win32_p): Make static.
24399         (getaddrinfo): Reject service name if it is empty or does not consist
24400         solely of decimal digits, or if its value is > 65535.
24401         (getnameinfo): Remove useless casts.
24402
24403 2006-06-27  Simon Josefsson  <jas@extundo.com>
24404
24405         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24406         Eggert and Martin Lambers.
24407
24408 2006-06-27  Simon Josefsson  <jas@extundo.com>
24409
24410         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24411         Eggert and Martin Lambers.
24412
24413 2006-06-27  Bruno Haible  <bruno@clisp.org>
24414
24415         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24416         result to 0, not to empty.
24417         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24418
24419 2006-06-27  Bruno Haible  <bruno@clisp.org>
24420
24421         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24422
24423 2006-06-26  Simon Josefsson  <jas@extundo.com>
24424
24425         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24426         present.
24427
24428 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24429
24430         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24431         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24433
24434 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24435
24436         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24437
24438 2006-06-26  Bruno Haible  <bruno@clisp.org>
24439
24440         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24441
24442 2006-06-26  Bruno Haible  <bruno@clisp.org>
24443
24444         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24445
24446 2006-06-26  Bruno Haible  <bruno@clisp.org>
24447
24448         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24449         SGI C compiler in pre-C99 mode.
24450         Suggested by Mark D. Baushke and Larry Jones.
24451
24452 2006-06-26  Bruno Haible  <bruno@clisp.org>
24453
24454         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24455         WCHAR_MAX.
24456         Reported by Mark D. Baushke and Larry Jones.
24457
24458 2006-06-26  Bruno Haible  <bruno@clisp.org>
24459
24460         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24461         in pre-C99 mode.
24462         Suggested by Mark D. Baushke and Larry Jones.
24463
24464 2006-06-23  Simon Josefsson  <jas@extundo.com>
24465             Bruno Haible  <bruno@clisp.org>
24466
24467         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24468         Emit mostlyclean-local rule.
24469         (func_emit_tests_Makefile_am): Likewise.
24470         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24471
24472 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24473
24474         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24475
24476 2006-06-23  Bruno Haible  <bruno@clisp.org>
24477
24478         * tests/test-stdint.c: Update to match ISO C 99 Technical
24479         Corrigendum 1.
24480
24481 2006-06-23  Bruno Haible  <bruno@clisp.org>
24482
24483         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24484
24485 2006-06-23  Bruno Haible  <bruno@clisp.org>
24486
24487         * lib/stdint_.h: Treat IRIX like OpenBSD.
24488
24489 2006-06-23  Bruno Haible  <bruno@clisp.org>
24490
24491         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24492         ISO C 99 Technical Corrigendum 1.
24493
24494 2006-06-22  Simon Josefsson  <jas@extundo.com>
24495
24496         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24497         MinGW.
24498
24499 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24500
24501         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24502         needed.  Some compiler complained about some of them.  Problem reported
24503         by Larry Jones in
24504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24505
24506 2006-06-21  Simon Josefsson  <jas@extundo.com>
24507
24508         * tests/test-getaddrinfo.c: New file.
24509
24510         * modules/getaddrinfo-tests: New file.
24511
24512         * MODULES.html.sh: Add inet_pton.
24513
24514         * modules/inet_pton: New file.
24515
24516 2006-06-21  Simon Josefsson  <jas@extundo.com>
24517
24518         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24519         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24520         of using the (limited) gnulib implementation on Windows XP.
24521
24522         * m4/inet_pton.m4: New file.
24523
24524 2006-06-21  Simon Josefsson  <jas@extundo.com>
24525
24526         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24527         variable.
24528
24529         * lib/socket_.h: Don't define WINVER.
24530
24531         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24532         slightly modified to work in gnulib.
24533
24534 2006-06-21  Simon Josefsson  <jas@extundo.com>
24535
24536         * doc/gnulib.texi (Windows sockets): Add.
24537
24538 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24539
24540         * lib/read-file.c (fread_file): Start with buffer allocation of
24541         0 bytes rather than 1 byte; this simplifies the code.
24542         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24543         code to free buffer and save/restore errno.
24544         (internal_read_file): Remove unused local.
24545
24546 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24547
24548         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24549         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24550         Problem reported by Denis Excoffier in
24551         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24552
24553 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24554
24555         * modules/sys_socket, modules/socklen: Include sys/types since
24556         FreeBSD 4.x's sys/socket.h needs it.
24557
24558 2006-06-19  Simon Josefsson  <jas@extundo.com>
24559
24560         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24561
24562 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24565
24566 2006-06-19  Bruno Haible  <bruno@clisp.org>
24567
24568         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24569         and FULL_PATH_INTTYPES_H in angle brackets.
24570         Reported by Mark D. Baushke <mdb@gnu.org>.
24571
24572 2006-06-17  Eric Blake  <ebb9@byu.net>
24573
24574         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24575         errno.
24576
24577 2006-06-17  Bruno Haible  <bruno@clisp.org>
24578
24579         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24580         <sys/inttypes.h>.
24581
24582 2006-06-17  Bruno Haible  <bruno@clisp.org>
24583
24584         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24585         whether errno is declared. Assume <errno.h> declares errno.
24586
24587 2006-06-17  Bruno Haible  <bruno@clisp.org>
24588
24589         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24590
24591 2006-06-17  Bruno Haible  <bruno@clisp.org>
24592
24593         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24594         problem on Solaris 2.5.1.
24595
24596 2006-06-16  Eric Blake  <ebb9@byu.net>
24597
24598         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24599         * lib/unicodeio.c [!defined errno]: Likewise.
24600         * lib/strtol.c [!defined errno]: Likewise.
24601         * lib/strtod.c [!defined errno]: Likewise.
24602
24603 2006-06-15  Eric Blake  <ebb9@byu.net>
24604
24605         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24606
24607 2006-06-15  Eric Blake  <ebb9@byu.net>
24608
24609         * config/srclist.txt (ssize_t.m4): Lose sync.
24610
24611 2006-06-15  Bruno Haible  <bruno@clisp.org>
24612
24613         * modules/stdint (Files): Include m4/full-header-path.m4,
24614         m4/size_max.m4, m4/wchar_t.m4.
24615         (Makefile.am): Many more substitutions.
24616         * modules/stdint-tests: New file.
24617         * tests/test-stdint.c: New file.
24618
24619 2006-06-15  Bruno Haible  <bruno@clisp.org>
24620
24621         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24622         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24623         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24624         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24625         gl_CHECK_TYPE_SAME): New macros.
24626
24627 2006-06-15  Bruno Haible  <bruno@clisp.org>
24628
24629         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24630
24631 2006-06-15  Bruno Haible  <bruno@clisp.org>
24632
24633         * lib/stdint_.h: Rewritten to be fully auto-configured.
24634         Fixes bug on HP-UX/IA64.
24635
24636 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24637
24638         * lib/getdate.y (__attribute__): Don't define if already defined.
24639         Problem reported by Larry Jones.
24640         * lib/utimens.c (__attribute__): Likewise.
24641
24642 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24643
24644         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24645         reported by Andreas Schwab.
24646
24647 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24648             Bruno Haible  <bruno@clisp.org>
24649
24650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24651         check for the declaration of strnlen and a run test that exposes the
24652         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24653         rpl_strndup.
24654
24655 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24656             Bruno Haible  <bruno@clisp.org>
24657
24658         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24659
24660 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24661
24662         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24663         compile test, for Tru64 4.0D.
24664
24665 2006-05-28  Karl Berry  <karl@gnu.org>
24666
24667         * config/srclist.txt (printf-args.c): lose sync.
24668
24669 2006-05-26  Martin Lambers  <marlam@marlam.de>
24670
24671         * lib/getpass.c: Updates the test for the native W32 API, and adds
24672         missing includes, thus fixing compilation warnings.
24673
24674 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24675
24676         * lib/exclude.c (exclude_fnmatch): New function.
24677         (excluded_file_name): Call exclude_fnmatch.
24678         * lib/exclude.h (excluded_file_name): New prototype
24679
24680 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24681
24682         * lib/tempname.c (small_open, large_open): New macros.
24683         (__open, __open64) [!_LIBC]: Remove.
24684         (__gen_tempname): Use small_open and large_open instead of __open
24685         and __open64.  This fixes a portability bug on HP-UX 11.11i
24686         reported by Simon Wing-Tang in
24687         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24688
24689 2006-05-24  Bruno Haible  <bruno@clisp.org>
24690
24691         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24692         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24693         Reported by Thorsten Maerz <torte@netztorte.de> via
24694         Aaron Stone <aaron@serendipity.cx>.
24695
24696 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24697
24698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24699         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
24700         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
24701         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24702         not really conditional on the cache.
24703         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24704
24705 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24706
24707         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24708         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24709         (my_usleep): Don't mishandle maximum value.
24710
24711 2006-05-19  Jim Meyering  <jim@meyering.net>
24712
24713         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
24714
24715 2006-05-17  Bruno Haible  <bruno@clisp.org>
24716
24717         Cygwin portability.
24718         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24719
24720 2006-05-17  Bruno Haible  <bruno@clisp.org>
24721
24722         * lib/stdint_.h: Fix recognition of Cygwin.
24723
24724 2006-05-15  Bruno Haible  <bruno@clisp.org>
24725
24726         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
24727         on libtool patch by Ralf Wildenhues.
24728
24729 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24730
24731         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
24732         test for C99 conformance; (bool) 0.5 is an integer constant
24733         expression, but (bool) -0.5 is not.  Problem reported by Fedor
24734         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
24735
24736 2006-05-11  Simon Josefsson  <jas@extundo.com>
24737
24738         * m4/xvasprintf.m4: Fix obvious typo.
24739
24740 2006-05-11  Jim Meyering  <jim@meyering.net>
24741
24742         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
24743         James Lemley.
24744
24745 2006-05-10  Simon Josefsson  <jas@extundo.com>
24746
24747         * lib/md4.c: Typo fix, update copyright years.
24748         (K1, K2): Don't use L because it turn computations into 64-bit on
24749         64-bit platforms.
24750
24751 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24752
24753         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
24754         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
24755         unwanted sign propagation, e.g., on hosts with 64-bit int.
24756         There still are some problems with reeelly weird theoretical hosts
24757         (e.g., 33-bit int) but it's not worth worrying about now.
24758         * lib/sha1.c (rol): Likewise.
24759         (K1, K2, K3, K4): Remove unnecessary L suffix.
24760
24761 2006-05-10  Bruno Haible  <bruno@clisp.org>
24762
24763         * lib/des.c: Cast to avoid warnings.
24764
24765 2006-05-09  Bruno Haible  <bruno@clisp.org>
24766
24767         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
24768         (Depends-on): Depend also on xsize, stdarg.
24769         (configure.ac): Add gl_XVASPRINTF.
24770
24771 2006-05-09  Bruno Haible  <bruno@clisp.org>
24772
24773         * m4/xvasprintf.m4: New file.
24774
24775 2006-05-09  Bruno Haible  <bruno@clisp.org>
24776
24777         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
24778         (EOVERFLOW): Define fallback value.
24779         (xstrcat): New function.
24780         (xvasprintf): Recognize the special case of a string concatenation.
24781
24782 2006-05-08  Eric Blake  <ebb9@byu.net>
24783
24784         * gnulib-tool (func_version): Base copyright year on CVS date.
24785         (func_emit_copyright_notice): New function.
24786         (func_emit_lib_Makefile_am): Use it.
24787         (func_emit_tests_Makefile_am): Likewise.
24788         (func_import): Likewise.
24789
24790 2006-05-08  Bruno Haible  <bruno@clisp.org>
24791
24792         * modules/stdarg: New file.
24793         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
24794
24795 2006-05-08  Bruno Haible  <bruno@clisp.org>
24796
24797         * m4/stdarg.m4: New file, from GNU gettext.
24798
24799 2006-05-08  Bruno Haible  <bruno@clisp.org>
24800
24801         * config/srclist.txt (build-aux/config.rpath): different from latest
24802         release.
24803
24804 2006-05-08  Bruno Haible  <bruno@clisp.org>
24805
24806         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
24807
24808 2006-05-05  Jim Meyering  <jim@meyering.net>
24809
24810         * m4/warning.m4: New file, derived from bison's file by the same name.
24811
24812 2006-05-03  Bruno Haible  <bruno@clisp.org>
24813
24814         * lib/stdint_.h: Shorter URL.
24815         * lib/inttypes.h: Likewise.
24816
24817 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24818
24819         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
24820
24821 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24822
24823         * lib/verify.h: Document the internals better.  Most of this change
24824         was written by Bruno Haible.
24825
24826 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24827
24828         * doc/verify.texi: New file, partly based on a proposal by
24829         Bruno Haible.
24830
24831 2006-05-02  Bruno Haible  <bruno@clisp.org>
24832
24833         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
24834         test from here...
24835         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
24836
24837 2006-04-29  Bruno Haible  <bruno@clisp.org>
24838
24839         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
24840         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
24841
24842 2006-04-29  Bruno Haible  <bruno@clisp.org>
24843
24844         * gnulib-tool: Make --update option actually work.
24845
24846 2006-04-29  Bruno Haible  <bruno@clisp.org>
24847
24848         * doc/gcd.texi: New file.
24849         * doc/gnulib.texi: Include it.
24850
24851 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24852
24853         * lib/getdate.y (get_date): When adding relative date, start with the
24854         initial time, not with the result of the first mktime call.
24855
24856 2006-04-25  Bruno Haible  <bruno@clisp.org>
24857
24858         * gnulib-tool (func_import): Output the include directives in three
24859         blocks, sorted separately.
24860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24861
24862 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24863
24864         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
24865         to define main with arguments, for C++.  Reported by Eric Blake.
24866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
24867         Prefer 'int main ()' to 'int main (void)', for C++.
24868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24869         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
24870         for 'main', for C99 and C++.
24871
24872 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24873
24874         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
24875         Don't assume that exit status -1 is valid.
24876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24877         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24878         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24879         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
24880         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
24881         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
24882         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
24883         functions can be used without declaring them, or that you can
24884         exit with status -1.
24885         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24886
24887 2006-04-24  Karl Berry  <karl@gnu.org>
24888
24889         * config/srclist.txt (longdouble.m4): sync lost.
24890
24891 2006-04-24  Eric Blake  <ebb9@byu.net>
24892
24893         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
24894
24895 2006-04-24  Bruno Haible  <bruno@clisp.org>
24896
24897         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
24898         poll() implementation in AIX.
24899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24900
24901 2006-04-24  Bruno Haible  <bruno@clisp.org>
24902
24903         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
24904         assigned exactly once.
24905
24906 2006-04-23  Claudio Fontana  <claudio@gnu.org>
24907             Bruno Haible  <bruno@clisp.org>
24908
24909         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
24910         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
24911         for AM_CPPFLAGS.
24912
24913 2006-04-23  Bruno Haible  <bruno@clisp.org>
24914
24915         * modules/copy-file: Depend on unistd.
24916         * modules/execute: Likewise.
24917         * modules/fatal-signal: Likewise.
24918         * modules/findprog: Likewise.
24919         * modules/mkdtemp : Likewise.
24920         * modules/pipe: Likewise.
24921         * modules/wait-process: Likewise.
24922
24923 2006-04-23  Bruno Haible  <bruno@clisp.org>
24924
24925         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
24926         condition was already detected.
24927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24928
24929 2006-04-23  Bruno Haible  <bruno@clisp.org>
24930
24931         * lib/copy-file.c: Include <unistd.h> unconditionally.
24932         * lib/execute.c: Likewise.
24933         * lib/fatal-signal.c: Likewise.
24934         * lib/findprog.c: Likewise.
24935         * lib/mkdtemp.c: Likewise.
24936         * lib/pipe.h: Likewise.
24937         * lib/pipe.c: Likewise.
24938         * lib/wait-process.h: Likewise.
24939
24940 2006-04-23  Bruno Haible  <bruno@clisp.org>
24941
24942         * gnulib-tool (func_usage): Fix --import description. Document
24943         --update.
24944         (func_import): Create temporary file in a temporary directory, if
24945         --dry-run is specified. Silence errors from 'grep' when there are no
24946         m4 files in $m4dir.
24947         (func_create_testdir): Silence errors from 'grep' when there are no
24948         m4 files in $m4dir.
24949         Reported by Karl Berry <karl@freefriends.org>.
24950
24951 2006-04-20  Bruno Haible  <bruno@clisp.org>
24952
24953         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
24954         one argument, so that the code will be portable to Autoconf 2.60.
24955         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
24956         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24957         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
24958
24959 2006-04-19  Derek Price  <derek@ximbiot.com>
24960             Eric Blake  <ebb9@byu.net>
24961
24962         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
24963         rather than "/full/path.h".  Update comment to match.  Shorten &
24964         generalize m4_translit call via AS_TR_CPP.
24965
24966 2006-04-19  Derek Price  <derek@ximbiot.com>
24967             Eric Blake  <ebb9@byu.net>
24968
24969         * lib/inttypes.h: Correct grammar in comment.
24970
24971 2006-04-18  Derek Price  <derek@ximbiot.com>
24972             Paul Eggert  <eggert@cs.ucla.edu>
24973
24974         * modules/inttypes: New file.
24975         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
24976
24977 2006-04-18  Derek Price  <derek@ximbiot.com>
24978             Paul Eggert  <eggert@cs.ucla.edu>
24979
24980         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
24981         New files.
24982
24983 2006-04-18  Derek Price  <derek@ximbiot.com>
24984             Paul Eggert  <eggert@cs.ucla.edu>
24985
24986         * lib/inttypes.h: New file.
24987         * lib/strtoimax.c: Assume <inttypes.h>.
24988
24989 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
24990
24991         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
24992         isn't mounted.  Problem reported by Kir Kolyshkin.
24993
24994 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24995
24996         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
24997         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
24998         Derek R. Price.
24999         * lib/regex.h (RE_DUP_MAX): Update comment to match current
25000         implementation.
25001
25002 2006-04-12  Eric Blake  <ebb9@byu.net>
25003
25004         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
25005         is now done automatically by the corresponding Autoconf macro.
25006
25007 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25008
25009         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
25010         time_r.h.
25011
25012 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25013
25014         Merge regex changes from libc, removing some of our
25015         POSIX-conformance changes that were rejected and redoing them in a
25016         less-intrusive way.
25017
25018         * lib/regcomp.c (re_compile_internal, init_dfa):
25019         Length arg is now size_t, not Idx.  All uses changed.
25020         (peek_token): Forward decl now says internal_function.
25021         (__re_error_msgid, __re_error_msgid_idx):
25022         Now static rather than extern with attribute_hidden.
25023         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
25024         For some reason libc prefers K&R style defns for external functions.
25025         (regerror) [!defined _LIBC]: Likewise.
25026         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
25027         (seek_collating_symbol_entry, lookup_collation_sequence_value):
25028         (build_range_exp, build_collating_symbol):
25029         Use K&R-style defn.
25030         (re_compile_fastmap): Use '\0' to memset, not 0.
25031         (utf8_sb_map): Make the calculations more obvious.
25032         (init_dfa, parse_bracket_exp, build_charclass_op):
25033         Call calloc and cast result, as glibc does.
25034         (init_word_char, fetch_token, peek_token, peek_token_bracket):
25035         (build_range_exp, build_collating_symbol):
25036         Now internal functions.
25037
25038         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
25039
25040         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
25041         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
25042         Don't depend on VMS; depend on __VMS instead, for POSIX
25043         namespace cleanness.
25044         (regoff_t): Define to ssize_t, not long int.
25045
25046         Remove the REG_ macros named below.  Instead, make the old names
25047         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
25048         __USE_GNU_REGEX.
25049         (REG_BACKSLASH_ESCAPE_IN_LISTS):
25050         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
25051         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
25052         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
25053         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
25054         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
25055         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
25056         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
25057         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
25058         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
25059         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
25060         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
25061         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
25062         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
25063         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
25064         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
25065         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
25066         (REG_NREGS):
25067         Remove.  All uses replaced by the old RE_* names.
25068         (RE_BACKSLASH_ESCAPE_IN_LISTS):
25069         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
25070         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
25071         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
25072         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
25073         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
25074         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
25075         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
25076         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
25077         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
25078         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
25079         Don't bother having these macros be independent of each others'
25080         values, since they no longer exist in the POSIX name space.
25081
25082         Rename the following member names back to their old names,
25083         unless !__USE_GNU_REGEX.  All uses changed back.
25084         (buffer): Renamed from re_buffer.
25085         (allocated): Renamed from re_allocated.
25086         (used): Renamed from re_used.
25087         (syntax): Renamed from re_syntax.
25088         (fastmap): Renamed from re_fastmap.
25089         (translate): Renamed from re_translate.
25090         (can_be_null): Renamed from re_can_be_null.
25091         (regs_allocated): Renamed from re_regs_allocated.
25092         (fastmap_accurate): Renamed from re_fastmap_accurate.
25093         (no_sub): Renamed from re_no_sub.
25094         (not_bol): Renamed from re_not_bol.
25095         (not_eol): Renamed from re_not_eol.
25096         (newline_anchor): Renamed from re_newline_anchor.
25097         (num_regs): Renamed from rm_num_regs.
25098         (start): Renamed from rm_start.
25099         (end): Renamed from rm_end.
25100
25101         (free_state): Move up a bit.
25102
25103         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
25104         #define to be empty.
25105         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
25106         when that is what is intended.
25107         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
25108         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
25109         (MAX): New macro.
25110         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
25111         All uses changed back to re_malloc, etc.  It's now the caller's
25112         responsibility to check for overflow; all callers changed.
25113         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
25114         (re_x2nrealloc): Remove.
25115         (free_state): Remove decl.
25116
25117         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
25118         (re_set_registers, re_exec):
25119         Use K&R-style defn.
25120
25121         2006-01-31  Roland McGrath  <roland@redhat.com>
25122
25123         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25124         Reported by Mike Frysinger <vapier@gentoo.org>.
25125
25126         2006-01-15  Andreas Jaeger  <aj@suse.de>
25127
25128         [BZ #1950]
25129         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25130         build_wcs_upper_buffer change.
25131         (build_wcs_upper_buffer): Change return type.
25132
25133         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25134
25135         * lib/regex_internal.h: Include <stdint.h> if available.
25136
25137         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25138
25139         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25140
25141         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25142
25143         * lib/regcomp.c: Adjust for changed secondary hash function.
25144
25145         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25146
25147         * lib/regex.h: Pretty printing.
25148         Clean up namespace a bit.
25149
25150         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25151
25152         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25153         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25154
25155         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25156                     Ulrich Drepper  <drepper@redhat.com>
25157
25158         [BZ #1302]
25159         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25160         changed.
25161         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25162
25163         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25164
25165         [BZ #281]
25166         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25167         * lib/regcomp.c: Remove unnecessary uses of
25168         unsigned RE_TRANSLATE_TYPE.
25169         * lib/regex_internal.h: Likewise.
25170         * lib/regex_internal.c: Likewise.
25171         * lib/regexec.c: Likewise.
25172         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25173
25174         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25175
25176         * lib/regexec.c (find_recover_state): Remove unnecessary
25177         initialization.
25178         (transit_state_bkref): Make DFA a const pointer.
25179         (get_subexp): Likewise.
25180         (check_arrival): Likewise.
25181         (update_cur_sifted_state): Likewise.
25182         (re_search_internal): Likewise.
25183         (prune_impossible_nodes): Likewise.
25184         (acquire_init_state_context): Likewise.
25185         (proceed_next_node): Likewise.
25186         (set_regs): Likewise.
25187         (free_fail_stack_return): Likewise.
25188         (check_arrival_expand_ecl): Mark DFA parameter as const.
25189         (check_arrival_expand_ecl_sub): Likewise.
25190         (check_subexp_limits): Likewise.
25191         (sub_epsilon_src_nodes):  Likewise.
25192         (add_epsilon_src_nodes):  Likewise.
25193         (merge_state_array): Likewise.
25194         (update_regs): Likewise.
25195         (build_trtable): Likewise.
25196         (sift_states_backward): Mark MCTX parameter as const.
25197         (build_sifted_states): Likewise.
25198         (update_cur_sifted_state): Likewise.
25199         (sift_states_mkref): Likewise.
25200         (check_arrival_expand_ecl): Mark eclosure as const.
25201         (check_dst_limits_calc_pos_1): Likewise.
25202         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25203         pointer.
25204
25205         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25206
25207         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25208         (transit_state_sb): Likewise.
25209         (transit_state_mb): Likewise.
25210         (sift_states_iter_mb): Likewise.
25211         (check_arrival_add_next_nodes): Likewise.
25212         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25213         [_LIBC] (re_search_2_stub): Use mempcpy.
25214
25215         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25216         mbrtowc for very simple UTF-8 case.
25217
25218         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25219         a pointer-to-const.
25220         (re_acquire_state_context): Likewise.
25221         * lib/regex_internal.h: Adjust prototypes.
25222
25223         * lib/regex.c: Prevent using C++ compilers.
25224
25225         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25226         (re_acquire_state_context): Likewise.
25227
25228 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25229
25230         * modules/regex (Depends-on): Add ssize_t.
25231
25232 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25233
25234         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25235         translation table.
25236
25237 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25238
25239         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25240
25241 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25242             Bruno Haible  <bruno@clisp.org>
25243
25244         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25245         <sys/types.h> and <inttypes.h>.
25246
25247 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25248
25249         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25250         `__error_t_defined', so argp.h will not typedef the former.
25251
25252 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25253
25254         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25255         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25256         glibc names.  Even if glibc is changed to conform to POSIX, the
25257         traditional names will be available anyway, since regex depends on
25258         the extensions module.  Also, fix a longstanding typo in the
25259         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25260         reported by Emanuele Giaquinta.  Also, change sense of cached
25261         variable, so that the message makes sense.
25262
25263 2006-03-24  Simon Josefsson  <jas@extundo.com>
25264
25265         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25266         including some doc fixes.
25267         (base64_encode_alloc): Fix +1 bug on allocation failures.
25268
25269 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25270
25271         * lib/base64.c (base64_encode): Do not read past end of array with
25272         unsanitized input on systems with CHAR_BIT > 8.
25273
25274 2006-03-24  Eric Blake  <ebb9@byu.net>
25275
25276         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25277
25278 2006-03-22  Karl Berry  <karl@gnu.org>
25279
25280         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25281         * config/srclistvars.sh (COREUTILS): new var.
25282
25283 2006-03-17  Jim Meyering  <jim@meyering.net>
25284
25285         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25286         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25287
25288 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25289
25290         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25291         no longer needs it.  Instead, check that regoff_t is as least
25292         as wide as ptrdiff_t.
25293
25294         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25295         so that our regex.h stays compatible with the installed regex.
25296         This is helpful for installers who configure --without-included-regex.
25297         Problem reported by Emanuele Giaquinta.
25298
25299 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25300
25301         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25302         Typedef to long int, not to off_, as POSIX will likely change
25303         in that direction.
25304
25305 2006-03-15  Eric Blake  <ebb9@byu.net>
25306
25307         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25308
25309 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25310
25311         * lib/argp-help.c (validate_uparams): Fix typo
25312         * lib/argp-parse.c (argp_default_options): Consistently begin help
25313         messages with a lowercase letter.
25314
25315 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25316
25317         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25318         overrun buffers and shouldn't be used (much as gets shouldn't be
25319         used).
25320         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25321
25322 2006-03-08  Simon Josefsson  <jas@extundo.com>
25323
25324         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25325         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25326
25327 2006-03-08  Simon Josefsson  <jas@extundo.com>
25328
25329         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25330         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25331
25332 2006-03-08  Simon Josefsson  <jas@extundo.com>
25333
25334         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25335         signal that configure disabled the device.
25336
25337 2006-03-08  Simon Josefsson  <jas@extundo.com>
25338
25339         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25340         languages.
25341
25342 2006-03-07  Simon Josefsson  <jas@extundo.com>
25343
25344         * modules/getopt (Depends-on): Add unistd.
25345
25346         * modules/unistd: New file.
25347
25348 2006-03-07  Simon Josefsson  <jas@extundo.com>
25349
25350         * modules/gc-random: New file.
25351
25352 2006-03-07  Simon Josefsson  <jas@extundo.com>
25353
25354         * m4/unistd_h.m4: New file.
25355
25356 2006-03-07  Simon Josefsson  <jas@extundo.com>
25357
25358         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25359         test to be side-effect free by storing the result in the cache
25360         variable gl_cv_lib_readline, and moving the assignment of
25361         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25362         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25363
25364 2006-03-07  Simon Josefsson  <jas@extundo.com>
25365
25366         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25367         error on missing devices (the functions will return an error).
25368
25369         * m4/gc.m4: Move random stuff to gc-random.m4
25370
25371 2006-03-07  Simon Josefsson  <jas@extundo.com>
25372
25373         * lib/unistd_.h: New file.
25374
25375 2006-03-07  Simon Josefsson  <jas@extundo.com>
25376
25377         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25378
25379 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25380
25381         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25382         Problem reported by Juan Manuel Guerrero.
25383
25384 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25385
25386         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25387         the unistd module.
25388         * lib/getlogin_r.c: Likewise.
25389         * lib/getlogin_r.h: Likewise.
25390         * lib/glob.c: Likewise.
25391         * lib/pagealign_alloc.c: Likewise.
25392         * lib/unistd_.h: Remove; no longer needed.
25393
25394 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25395
25396         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25397         Add unistd.
25398         * modules/c-stack (Depends-on): Add unistd.
25399         * modules/getlogin_r: Likewise.
25400         * modules/glob: Likewise.
25401         * modules/pagealign_alloc: Likewise.
25402         * modules/unistd (Files): Remove lib/unistd_.h.
25403         (EXTRA_DIST): Remove.
25404         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25405         need unistd_.h.
25406         (MOSTLYCLEANFILES): Remove unistd.h-t.
25407
25408 2006-03-03  Simon Josefsson  <jas@extundo.com>
25409
25410         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25411
25412 2006-03-03  Simon Josefsson  <jas@extundo.com>
25413
25414         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25415         libidn and bison.
25416
25417 2006-03-03  Simon Josefsson  <jas@extundo.com>
25418
25419         * build-aux/maint.mk: Add indent target.
25420
25421 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25422
25423         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25424         our replacement poll.h in any case, to avoid a differing
25425         declaration from a system header.  Seen on AIX.
25426
25427 2006-03-01  Simon Josefsson  <jas@extundo.com>
25428
25429         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25430         <kasal@ucw.cz>.
25431
25432 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         * modules/gettime (Depends-on): Add extensions module.
25435         * modules/nanosleep (Depends-on): Likewise.
25436         * modules/settime (Depends-on): Likewise.
25437
25438 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25439
25440         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25441         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25442         pedantically.
25443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25444         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25445
25446         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25447         not "==".  Reported by Ralf Wildenhues.
25448
25449 2006-03-01  Karl Berry  <karl@gnu.org>
25450
25451         * doc/Copyright/request-*: new files, synced from gnuorg.
25452
25453 2006-03-01  Karl Berry  <karl@gnu.org>
25454
25455         * config/srclist.txt (Copyright/*): new entries.
25456
25457 2006-02-28  Simon Josefsson  <jas@extundo.com>
25458
25459         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25460
25461 2006-02-27  Simon Josefsson  <jas@extundo.com>
25462
25463         * lib/base64.h: Indent #define's.  From Jim Meyering
25464         <jim@meyering.net>.
25465
25466 2006-02-27  Jim Meyering  <jim@meyering.net>
25467
25468         Revert the change of 2006-02-24, so these files can continue
25469         to be sync'd from gettext.
25470         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25471         of `config.h'.
25472
25473 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25474
25475         * modules/intprops: New file.
25476         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25477         Add intprops.
25478         * modules/getloadavg (Files): Remove lib/intprops.h.
25479         (Depends-on): Add intprops.
25480         * modules/human: Likewise.
25481         * modules/inttostr: Likewise.
25482         * modules/openat: Likewise.
25483         * modules/sig2str: Likewise.
25484         * modules/userspec: Likewise.
25485         * modules/utimecmp: Likewise.
25486         * modules/xnanosleep: Likewise.
25487         * modules/xstrtol: Likewise.
25488
25489 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25490
25491         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25492         * modules/lock-tests (TESTS): Use $(EXEEXT).
25493         * modules/tls-tests: Likewise.
25494         * modules/argp-tests: Likewise.
25495         (check_PROGRAMS): New var, replacing...
25496         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25497
25498 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25499
25500         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25501         `config.h'.
25502
25503 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25504
25505         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25506
25507 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25508
25509         Sync from coreutils.
25510         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25511         gl_CHDIR_SAFER.
25512
25513 2006-02-22  Jim Meyering  <jim@meyering.net>
25514
25515         Sync from coreutils.
25516         * m4/chdir-safer.m4: New file.
25517
25518 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25519
25520         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25521         AT_FDCWD exceeds INT_MAX.
25522         * lib/openat.h (AT_FDCWD): Likewise.
25523
25524 2006-02-17  Eric Blake  <address@hidden>
25525
25526         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25527
25528 2006-02-16  Simon Josefsson  <jas@extundo.com>
25529
25530         * modules/getaddrinfo (Depends-on): Add sys_socket.
25531
25532 2006-02-15  Simon Josefsson  <jas@extundo.com>
25533
25534         * build-aux/maint.mk: Add dsyntax-check rule.
25535
25536 2006-02-15  Eric Blake  <ebb9@byu.net>
25537
25538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25539         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25540         'present but cannot compile' warnings on cygwin.
25541         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25542         use ws2tcpip.h if sys/socket.h works.
25543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25544         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25545
25546 2006-02-14  Simon Josefsson  <jas@extundo.com>
25547
25548         * modules/maintainer-makefile (Files): Rename.
25549
25550         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25551         and (the local) Makefile.cfg to maint-cfg.mk.
25552
25553         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25554         to the latter.
25555
25556         * modules/maintainer-makefile: New module.
25557
25558         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25559         severaly stripped to make it possible to build it up from scratch
25560         with reliable tests.
25561
25562         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25563         fixes to permit overriding the default actions when configure and
25564         makefile are not available.
25565
25566 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25567
25568         Sync from coreutils.
25569         * modules/lstat (Depends-on): Don't depend on xalloc.
25570         (License): Change from GPL to LGPL, since this is now simply a
25571         replacement for a libc function.
25572
25573 2006-02-14  Jim Meyering  <jim@meyering.net>
25574
25575         Sync from coreutils.
25576
25577         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25578         failure on deficient systems, and simplify gnulib lgpl dependencies.
25579         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25580         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25581
25582         * lib/xalloc-die.c: Remove unused definition of N_.
25583
25584 2006-02-14  Jim Meyering  <jim@meyering.net>
25585
25586         Sync from coreutils.
25587         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25588         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25589         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25590         double-quote uses of that variable, to accommodate the rare case in
25591         which getmntent is available in none of the libraries checked.  This
25592         happens at least on FreeBSD 5.0.
25593
25594 2006-02-13  Simon Josefsson  <jas@extundo.com>
25595
25596         * gnulib-tool (Usage): Fix --import, from
25597         karl@freefriends.org (Karl Berry).
25598
25599 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25600
25601         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25602
25603 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25604
25605         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25606         "autoupdate" on 2005-12-12.
25607
25608 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25609
25610         * modules/closeout (Depends-on): Remove atexit.
25611
25612 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25613
25614         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25615         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25616
25617 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25618
25619         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25620         __EXTENSIONS__ if this causes compilation to fail.  Problem
25621         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25622         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25623
25624 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25627         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25628         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25629         All uses changed.
25630
25631 2006-01-26  Simon Josefsson  <jas@extundo.com>
25632
25633         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25634         prototype is visible on mingw32.
25635
25636         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25637         for mingw32.
25638
25639         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25640         mingw32).
25641
25642 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25643
25644         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25645         attempt to open for write; this always fails, at least on POSIX
25646         hosts.  This reinstates the 2006-01-09 change, which was
25647         inadvertently removed.
25648
25649 2006-01-26  Bruno Haible  <bruno@clisp.org>
25650
25651         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25652         Reported by Paul Eggert.
25653
25654 2006-01-26  Bruno Haible  <bruno@clisp.org>
25655             Paul Eggert  <eggert@cs.ucla.edu>
25656
25657         * lib/stdbool_.h (_Bool)
25658         [(! (defined __cplusplus || defined __BEOS__)
25659           && !defined __GNUC__
25660           && !(defined __HP_cc || defined __xlc__
25661                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25662                || defined __sgi))]:
25663         #define to signed char in these cases too; this simplifies
25664         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25665         etc., separately) and makes it more conservative.
25666
25667 2006-01-25  Simon Josefsson  <jas@extundo.com>
25668
25669         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25670         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25671         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25672
25673 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25674
25675         * lib/argp-namefrob.h: Bugfix. Remove stray #
25676
25677 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25678
25679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25680         so that we test the test.
25681         Check for yet another HP-UX cc bug involving *bool |= bool.
25682
25683 2006-01-25  Karl Berry  <karl@gnu.org>
25684
25685         * config/srclist.txt (vasnprintf.c): sync lost.
25686
25687 2006-01-25  Jim Meyering  <jim@meyering.net>
25688
25689         Sync from the stable (b5) branch of coreutils:
25690
25691         * lib/fts.c (fts_children): Don't let close() clobber errno from
25692         failed fchdir().
25693
25694         * lib/fts.c (fts_stat): When following a symlink-to-directory,
25695         don't necessarily interpret stat-fails+lstat-succeeds as indicating
25696         a dangling symlink.  That can also happen at least for ELOOP.
25697         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25698         FYI, this bug predates the inclusion of fts.c in coreutils.
25699
25700         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25701         in their own block, so pre-c99 compilers don't object.
25702
25703         Avoid the double-free (first in fts_read, second in fts_close) that
25704         would occur when an `active' directory is made inaccessible (e.g.,
25705         via chmod a-x) during a traversal.
25706         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25707         before returning.  Reproduce this failure by
25708         mkdir -p a/b; cd a; chmod a-x . b
25709         Reported by Stavros Passas.
25710
25711 2006-01-25  Jim Meyering  <jim@meyering.net>
25712
25713         * lib/fileblocks.c: Remove more useless parentheses.
25714         * lib/readutmp.h: Likewise.
25715
25716 2006-01-25  Bruno Haible  <bruno@clisp.org>
25717
25718         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25719         warnings.
25720         Reported by Paul Eggert.
25721
25722 2006-01-25  Bruno Haible  <bruno@clisp.org>
25723
25724         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
25725         rid of a trap command. For Solaris sh.
25726         Reported by Mark D. Baushke <mdb@gnu.org>.
25727
25728 2006-01-24  Simon Josefsson  <jas@extundo.com>
25729
25730         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
25731         Bruno.
25732
25733 2006-01-24  Karl Berry  <karl@gnu.org>
25734
25735         * config/srclist.txt (argp-namefrob.h): sync lost.
25736
25737 2006-01-24  Jim Meyering  <jim@meyering.net>
25738
25739         * modules/openat (Files): Add lib/intprops.h.
25740         From Mark D. Baushke.
25741
25742 2006-01-24  Jim Meyering  <jim@meyering.net>
25743
25744         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
25745         Reported by Mark D. Baushke.
25746
25747 2006-01-24  Jim Meyering  <jim@meyering.net>
25748
25749         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
25750
25751 2006-01-24  Bruno Haible  <bruno@clisp.org>
25752
25753         * modules/strnlen (Maintainer): Change from glibc to all.
25754
25755 2006-01-24  Bruno Haible  <bruno@clisp.org>
25756
25757         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
25758         Patch by Paul Eggert.
25759
25760 2006-01-24  Bruno Haible  <bruno@clisp.org>
25761
25762         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
25763         already has it.
25764         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
25765         2005-11-26.
25766
25767         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
25768         'signed char' to avoid problems with the built-in _Bool type.
25769         Reported by Paul Eggert on 2005-11-26.
25770
25771 2006-01-24  Bruno Haible  <bruno@clisp.org>
25772
25773         * gnulib-tool (func_import): Avoid constructing complicated sed
25774         expressions inside backquote.
25775         Report and solution by Mark D. Baushke <mdb@gnu.org>.
25776
25777 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
25778
25779         These changes imported from libc.
25780         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
25781         test and two separate function calls.
25782         * lib/strndup.c (__strndup): Add libc_hidden_def.
25783
25784 2006-01-23  Simon Josefsson  <jas@extundo.com>
25785
25786         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
25787         Remove the test_*_SOURCES variable: automake infers it by default.
25788         * modules/tls-tests: Likewise.
25789
25790 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25791
25792         Work around porting bugs reported by Dieter in
25793         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
25794         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
25795         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
25796         Include "getopt.h" first, to check interface.
25797         (getenv): Declare only if defined HAVE_DECL_GETENV &&
25798         !HAVE_DECL_GETENV.
25799         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
25800         (__strndup): Revert to K&R-style function dfns, the glibc style.
25801         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
25802         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
25803         Include strnlen.h first, to get prototype properly.
25804         (strnlen): Renamed from __strnlen.
25805         Remove weak alias.
25806
25807 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25808
25809         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
25810
25811 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25812
25813         * config/srclist.txt: Adjust to reflect glibc reorganization.
25814         This affects only comments.
25815
25816 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25817
25818          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
25819          Reported by Bruce Korb <bkorb@gnu.org>.
25820
25821 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25822
25823         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
25824         to pacify gcc -Wswitch-default.
25825
25826 2006-01-22  Bruno Haible  <bruno@clisp.org>
25827
25828         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
25829         temporary buffer for sprintf, take into account the precision also
25830         for 'd', 'i', 'u', 'o', 'x', 'X'.
25831
25832 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25833
25834         * modules/argp-tests: New module
25835         * tests/test-argp.c: New file
25836         * tests/test-argp-2.sh: New file
25837
25838 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25839
25840         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
25841         (__argp_base_name): Removed
25842         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
25843         typo.
25844         (__argp_base_name): Provide macro definition or extern declaration
25845         depending on the configuration
25846
25847 2006-01-20  Simon Josefsson  <jas@extundo.com>
25848
25849         * modules/inet_ntop (Depends-on): Depend on sys_socket.
25850
25851 2006-01-20  Simon Josefsson  <jas@extundo.com>
25852
25853         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
25854
25855 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25856
25857         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
25858         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
25859         Suggested by Bruno Haible.
25860
25861 2006-01-20  Karl Berry  <karl@gnu.org>
25862
25863         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
25864         until changes propagate, I guess.
25865
25866 2006-01-19  Simon Josefsson  <jas@extundo.com>
25867
25868         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
25869
25870 2006-01-19  Simon Josefsson  <jas@extundo.com>
25871
25872         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
25873
25874 2006-01-19  Simon Josefsson  <jas@extundo.com>
25875
25876         * gnulib-tool: Set check_PROGRAMS.
25877
25878         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25879         modules/des-tests, modules/gc-arcfour-tests,
25880         modules/gc-arctwo-tests, modules/gc-des-tests,
25881         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25882         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25883         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25884         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25885         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25886         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
25887         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
25888         test_*_SOURCES.
25889
25890 2006-01-18  Simon Josefsson  <jas@extundo.com>
25891
25892         * modules/socklen (Depends-on): Depend on sys_socket.
25893
25894 2006-01-18  Simon Josefsson  <jas@extundo.com>
25895
25896         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25897         modules/des-tests, modules/gc-arcfour-tests,
25898         modules/gc-arctwo-tests, modules/gc-des-tests,
25899         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25900         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25901         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25902         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25903         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25904         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
25905         $(EXEEXT) to automake TESTS variable, for mingw32.
25906
25907 2006-01-17  Simon Josefsson  <jas@extundo.com>
25908
25909         * modules/socklen (Include): Need sys/socket.h.
25910
25911 2006-01-17  Bruno Haible  <bruno@clisp.org>
25912
25913         * modules/ssize_t (Include): Add <sys/types.h>.
25914
25915 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25916
25917         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
25918         it's not portable and it doesn't work with cross-compiles.
25919         Problem reported by Bruno Haible.  Fix missing-$ typo in
25920         'test "gl_cv_ignore_unused_libraries" ...' that prevented
25921         -zignore from being used with Sun's C compiler.
25922
25923 2006-01-12  Simon Josefsson  <jas@extundo.com>
25924
25925         * lib/base64.c: Fix warning, reported by Bruno Haible
25926         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
25927
25928 2006-01-12  Bruno Haible  <bruno@clisp.org>
25929
25930         * modules/ldd: New file.
25931         * build-aux/ldd.sh.in: New file.
25932         * MODULES.html.sh (Support for building libraries and executables): Add
25933         ldd.
25934
25935 2006-01-12  Bruno Haible  <bruno@clisp.org>
25936
25937         * m4/ldd.m4: New file.
25938
25939 2006-01-12  Bruno Haible  <bruno@clisp.org>
25940
25941         * gnulib-tool (func_import, func_create_testdir): Don't go into an
25942         endless loop while replacing $auxdir with build-aux.
25943
25944 2006-01-11  Simon Josefsson  <jas@extundo.com>
25945
25946         * lib/stdint_.h (SIZE_MAX): Add missing (.
25947
25948 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25949
25950         Sync from coreutils.
25951         * lib/md5.c: Fix commentary typos.
25952         (alignof, UNALIGNED_P): No need for a GCC-specific version.
25953         * lib/md5.h (__attribute__): Remove; unused.
25954         * lib/sha1.c: Fix commentary to match md5 better.
25955         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
25956         so that we don't need to worry about alignment.  All uses changed.
25957         This merges the 2005-10-28 md5 change into sha1.
25958
25959 2006-01-11  Jim Meyering  <jim@meyering.net>
25960
25961         Sync from coreutils.
25962         * lib/md5.c (OP): Fix spacing.
25963
25964 2006-01-11  Bruno Haible  <bruno@clisp.org>
25965
25966         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25967         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
25968         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
25969
25970 2006-01-11  Bruno Haible  <bruno@clisp.org>
25971
25972         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25973         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
25974         the "early" section as well.
25975
25976 2006-01-11  Bruno Haible  <bruno@clisp.org>
25977
25978         Avoid "ar: no archive members specified" error on MacOS X.
25979         * gnulib-tool (func_modules_add_dummy): New function.
25980         (func_import, func_create_testdir): Invoke it.
25981
25982 2006-01-11  Bruno Haible  <bruno@clisp.org>
25983
25984         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
25985         with $auxdir in AC_CONFIG_FILES statements.
25986
25987 2006-01-11  Bruno Haible  <bruno@clisp.org>
25988
25989         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25990         Initialize also noinst_HEADERS to empty.
25991
25992 2006-01-11  Bruno Haible  <bruno@clisp.org>
25993
25994         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
25995         variables.
25996         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
25997         autoreconf.
25998
25999 2006-01-11  Bruno Haible  <bruno@clisp.org>
26000
26001         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
26002         overridable by the user.
26003         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26004
26005 2006-01-10  Simon Josefsson  <jas@extundo.com>
26006
26007         * modules/sys_socket: New file.
26008
26009 2006-01-10  Simon Josefsson  <jas@extundo.com>
26010
26011         * m4/sys_socket_h.m4: New file.
26012
26013 2006-01-10  Simon Josefsson  <jas@extundo.com>
26014
26015         * lib/socket_.h: New file.
26016
26017 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         * modules/readutmp (Maintainer): Add myself.
26020
26021 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26022
26023         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
26024         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
26025         People who are still concerned with buggy memcmp implementations
26026         can invoke gl_FUNC_MEMCMP themselves.
26027
26028 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26029
26030         * lib/regex_internal.h (BITSET_WORD_BITS):
26031         Work around a bug in 64-bit PGC (before version 6.1-2), where the
26032         preprocessor mishandles large unsigned values as if they were signed.
26033         Problem reported by Claudio Fontana in
26034         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
26035
26036 2006-01-10  Jim Meyering  <jim@meyering.net>
26037
26038         Avoid the double-free (first in fts_read, second in fts_close) that
26039         would occur when an `active' directory is made inaccessible (e.g.,
26040         via chmod a-x) during a traversal.
26041         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
26042         before returning.  Reproduce this failure by
26043         mkdir -p a/b; cd a; chmod a-x . b
26044         Reported by Stavros Passas.
26045
26046         Sync from coreutils.
26047         * lib/sha1.c: Tweak grammar in a comment.
26048
26049 2006-01-10  Jim Meyering  <jim@meyering.net>
26050
26051         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
26052         Patch by Joerg Sonnenberger.
26053
26054 2006-01-10  Bruno Haible  <bruno@clisp.org>
26055
26056         * modules/readutmp: Depend on module free.
26057         * modules/strtok_r: Depend on module restrict.
26058
26059 2006-01-10  Bruno Haible  <bruno@clisp.org>
26060
26061         * modules/gettext (configure.ac): Add an invocation of
26062         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
26063
26064 2006-01-10  Bruno Haible  <bruno@clisp.org>
26065
26066         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
26067         Reported by Werner Lemberg <wl@gnu.org>.
26068
26069 2006-01-10  Bruno Haible  <bruno@clisp.org>
26070
26071         * lib/localcharset.c: Update from GNU gettext.
26072
26073 2006-01-10  Bruno Haible  <bruno@clisp.org>
26074
26075         * lib/argp.h (__const): Remove macro. Use const instead.
26076         * lib/argp-fmtstream.h (__const): Likewise.
26077         * lib/glob_.h (__const): Remove macro.
26078         * lib/glob-libc.h: Use const instead of __const.
26079
26080 2006-01-10  Bruno Haible  <bruno@clisp.org>
26081
26082         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
26083         variable.
26084         Needed to avoid an automake error regarding the 'gettext' module.
26085
26086 2006-01-09  Simon Josefsson  <jas@extundo.com>
26087
26088         * modules/inet_ntop (Depends-on): Add restrict.
26089
26090 2006-01-09  Simon Josefsson  <jas@extundo.com>
26091
26092         * modules/gc-rijndael-tests (License): Put under LGPL.
26093
26094         * modules/gc-des-tests (License): Likewise.
26095
26096         * modules/gc-arcfour-tests (License): Likewise.
26097
26098         * modules/gc-arctwo-tests (License): Likewise.
26099
26100         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
26101
26102         * modules/gc-hmac-sha1-tests (Files): Likewise.
26103
26104         * modules/gc-hmac-md5-tests (License): Likewise.
26105
26106         * modules/gc-sha1-tests (License): Likewise.
26107
26108         * modules/gc-md5-tests (License): Likewise.
26109
26110         * modules/gc-md4-tests (License): Likewise.
26111
26112         * modules/gc-md2-tests (License): Likewise.
26113
26114         * modules/gc-tests (License): Likewise.
26115
26116         * modules/des-tests (License): Likewise.
26117
26118         * modules/md4-tests (License): Likewise.
26119
26120         * modules/md2-tests (License): Likewise.
26121
26122 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26123
26124         Sync from coreutils:
26125
26126         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26127         * modules/lib-ignore: New file.
26128         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26129         chdir-safer.m4, lchmod.m4.
26130         * modules/openat: Add mkdirat.c, openat-priv.h.
26131
26132 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26133
26134         Sync from coreutils.
26135         * m4/lib-ignore.m4: New file.
26136         * m4/lchmod.m4: New file.
26137
26138 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26139
26140         Sync from coreutils.
26141         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26142         for write access: POSIX says that must fail.
26143         * lib/fts.c (diropen): Likewise.
26144         * lib/save-cwd.c (save_cwd): Likewise.
26145         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26146         well, for minor improvements on hosts that lack O_DIRECTORY.
26147         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26148         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26149         Fall back on chown if open failed with EACCES.
26150
26151         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26152         Report an error at compile-time if only a 1-second nominal clock
26153         resolution is found.
26154
26155         * lib/lchmod.h: New file.
26156         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26157         (make_dir_parents): Use lchown rather than chown, and
26158         lchmod rather than chmod.
26159
26160         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26161         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26162         "proc" reported by n0dalus.
26163
26164         * lib/mountlist.c: Include <limits.h>.
26165         (dev_from_mount_options)
26166         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26167         New function.  It no longer assumes "dev=" has the System V meaning
26168         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26169         (read_file_system_list)
26170         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26171         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26172         dev= in that case.
26173
26174         * lib/posixtm.h (PDS_PRE_2000): New macro.
26175         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26176         allow_century.  All usages changed.  Reject dates outside the range
26177         1969-1999 if PDS_PRE_2000 is used.
26178
26179 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26180
26181         Sync from coreutils.
26182         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26183         (Time of day items): Mention the possibility of leap seconds.
26184         Problem reported by Dr. David Alan Gilbert.
26185
26186 2006-01-09  Jim Meyering  <jim@meyering.net>
26187
26188         Sync from coreutils.
26189
26190         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26191
26192         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26193
26194         * lib/modechange.c (mode_compile): Reject an invalid mode string
26195         that starts with an octal digit.  From Andreas Gruenbacher.
26196
26197         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26198         and dup to open_safer and dup_safer, respectively.
26199         (openat_permissive): Fix typo in comment.
26200
26201         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26202         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26203         (_): Remove; no longer needed.
26204         (openat): Renamed from rpl_openat; no need for rpl_openat
26205         since openat.h renames openat for us.
26206         Replace most of the body with a call to openat_permissive,
26207         to avoid duplicate code.
26208         Port to (probably hypothetical) environments were mode_t is
26209         wider than int.
26210         (openat_permissive): Require mode arg, so that we can check
26211         types better.  Put it just after flags.  Change cwd failure
26212         indicator from pointer-to-bool to pointer-to-errno-value.
26213         All callers changed.
26214         Invoke openat_save_fail and/or openat_restore_fail if
26215         cwd_errno is null, so that openat can call us.
26216         (openat_permissive, fdopendir, fstatat, unlinkat):
26217         Simplify errno handling to avoid some duplicate code,
26218         as it's OK to set errno on success.
26219         * lib/openat.h: Revamp code so that function macros depend on
26220         __OPENAT_PREFIX only, not also on AT_FDCWD.
26221         (openat_ro): Remove.  Caller changed to use openat_permissive.
26222         (openat_permissive): Now a macro, if not a function.
26223         (openat_restore_fail, openat_save_fail): Now always functions,
26224         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26225
26226         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26227         and openat.c.
26228         * lib/mkdirat.c: Include openat-priv.h.
26229         Remove definitions of macros defined therein.
26230         * lib/openat.c: Likewise.
26231
26232         * lib/mkdirat.c (mkdirat): New file and function.
26233         * lib/openat.h (mkdirat): Declare.
26234
26235         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26236
26237         * lib/openat.h (openat_permissive): Declare.
26238         (openat_ro): Define.
26239
26240         * lib/openat.c (EXPECTED_ERRNO): New macro.
26241         (openat_permissive): New function -- used in remove.c rewrite.
26242         (all functions): Set errno just before returning, only if there
26243         was an actual failure.
26244         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26245
26246         Emulate openat-family functions using Linux's procfs, if possible.
26247         Idea and some code based on Ulrich Drepper's glibc changes.
26248
26249         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26250         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26251         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26252         before falling back on save_cwd and restore_cwd.
26253         (fdopendir, fstatat, unlinkat): Likewise.
26254
26255         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26256         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26257
26258         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26259         as second argument to va_arg.  Otherwise, some versions of gcc
26260         warn that `if this code is reached, the program will abort'.
26261
26262 2006-01-09  Jim Meyering  <jim@meyering.net>
26263
26264         Sync from coreutils.
26265         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26266         Require openat-priv.h.
26267
26268 2006-01-09  Bruno Haible  <bruno@clisp.org>
26269
26270         * modules/strnlen (Include): Use strnlen.h.
26271
26272 2006-01-09  Bruno Haible  <bruno@clisp.org>
26273
26274         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26275
26276 2006-01-09  Bruno Haible  <bruno@clisp.org>
26277
26278         * lib/sysexit_.h (EX_OK): New macro.
26279         Suggested by Martin Lambers <marlam@marlam.de>.
26280
26281 2006-01-09  Bruno Haible  <bruno@clisp.org>
26282
26283         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26284         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26285
26286 2006-01-09  Bruno Haible  <bruno@clisp.org>
26287
26288         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26289         numbers.
26290
26291 2006-01-09  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26294         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26295         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26296         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26297
26298 2006-01-09  Bruno Haible  <bruno@clisp.org>
26299
26300         * build-aux/javacomp.sh.in: New file, moved from lib/.
26301         * modules/javacomp-script (Files): Update.
26302         (configure.ac): Add AC_CONFIG_FILES invocation.
26303         (EXTRA_DIST): Remove variable.
26304
26305         * build-aux/javaexec.sh.in: New file, moved from lib/.
26306         * modules/javaexec (Files): Update.
26307         (configure.ac): Add AC_CONFIG_FILES invocation.
26308         (EXTRA_DIST): Remove javaexec.sh.in.
26309
26310         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26311         * modules/csharpcomp-script (Files): Update.
26312         (configure.ac): Add AC_CONFIG_FILES invocation.
26313         (EXTRA_DIST): Remove variable.
26314
26315         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26316         * modules/csharpexec (Files): Update.
26317         (configure.ac): Add AC_CONFIG_FILES invocation.
26318         (EXTRA_DIST): Remove csharpexec.sh.in.
26319
26320 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26321
26322         Sync from coreutils.
26323
26324         Add POSIX ACL support
26325         * lib/acl.h (copy_acl, set_acl): Add declarations.
26326         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26327         systems other than Linux.
26328         (chmod_or_fchmod): New function: use fchmod when possible,
26329         and chmod otherwise.
26330         (file_has_acl): Add a POSIX ACL implementation, with a
26331         Linux-specific subcase.
26332         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26333         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26334         acls are unsupported.
26335         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26336         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26337         are unsupported.
26338
26339 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26340
26341         Sync from coreutils.
26342         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26343
26344 2006-01-07  Bruno Haible  <bruno@clisp.org>
26345
26346         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26347         gl_EARLY.
26348
26349 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26350
26351         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26352         Problem reported for Mingw by Mark Junker.
26353
26354 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26355
26356         * README: Gnulib normally doesn't generate a tarball.
26357
26358 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26359
26360         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26361         long int, not int, for nanosecond counts, so that people who are
26362         used to POSIX struct timespec won't be surprised.  Reported by Jim
26363         Meyering.
26364
26365 2005-12-28  Bruno Haible  <bruno@clisp.org>
26366
26367         * build-aux/config.rpath: Update from GNU gettext.
26368
26369 2005-12-16  Jim Meyering  <jim@meyering.net>
26370
26371         * modules/fprintftime: New module.
26372         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26373
26374 2005-12-16  Jim Meyering  <jim@meyering.net>
26375
26376         * m4/fprintftime.m4: New file.
26377
26378 2005-12-16  Jim Meyering  <jim@meyering.net>
26379
26380         * lib/fprintftime.c, lib/fprintftime.h: New files.
26381
26382 2005-12-15  Simon Josefsson  <jas@extundo.com>
26383
26384         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26385         new m4/socklen.m4.
26386
26387 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26388
26389         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26390         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26391
26392 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26393
26394         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26395         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26396         struct uparams is valid. Fall back to the default values if it is
26397         not.
26398
26399 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26400
26401         * modules/argp (Files): Add argp-pin.c
26402         (Depends-on): dirname
26403         (lib_SOURCES): Add argp-pin.c
26404
26405 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26406
26407         * m4/argp.m4:  Check if program_invocation_name and
26408         program_invocation_short_name are declared and define appropriate
26409         macros if they are not.
26410
26411 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26412
26413         * lib/argp-help.c (__argp_base_name): New function
26414         (__argp_short_program_name): Rewrite using __argp_base_name
26415         * lib/argp-namefrob.h: Define program_invocation_name and
26416         program_invocation_short_name if requested
26417         (__argp_base_name): Add prototype
26418         * lib/argp-parse.c (argp_def): Use gettext wrappers
26419         (argp_default_parser): Use __argp_base_name
26420         * lib/argp-pin.c: New file. Defines program_invocation_name and
26421         program_invocation_short_name on systems that lack them.
26422
26423 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26424
26425         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26426         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26427         porting problem reported by Georg Schwarz in
26428         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26429
26430 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26431
26432         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26433         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26434         porting problem reported by Georg Schwarz in
26435         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26436
26437 2005-12-05  Bruno Haible  <bruno@clisp.org>
26438
26439         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26440         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26441         Reported by Mark Junker <mjscod@gmx.de>.
26442
26443 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26446         Use implementation from Albert Chin, with some
26447         comments/corrections by Stepan Kasal and myself.
26448
26449 2005-12-02  Bruno Haible  <bruno@clisp.org>
26450
26451         * gnulib-tool (func_import): Accept GPLed build tool modules when
26452         --lgpl is given.
26453         * modules/csharpcomp-script: New file.
26454         * modules/csharpcomp: Depend on it.
26455         * modules/javacomp-script: New file.
26456         * modules/javacomp: Depend on it.
26457         Suggested by Simon Josefsson.
26458
26459 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26460
26461         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26462         statement, to work around an HP-UX 10.20 compiler bug reported by
26463         Peter O'Gorman.
26464
26465 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26466
26467         * modules/savedir (Depends-on): Add openat.
26468
26469 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26470
26471         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26472         (uintmax_t) [defined uintmax_t]: Do not declare.
26473         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26474         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26475         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26476         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26477         sake of portability to weird hosts that C allows (though we don't
26478         know of any practical examples).
26479
26480         * lib/savedir.h (fdsavedir): New decl.
26481         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26482         contains most of the former guts of savedir.
26483         (savedir): Use savedirstream.
26484         Include "openat.h".
26485
26486 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26487
26488         * modules/obstack (Files): Add m4/ulonglong.m4.
26489         Problem reported by Davide Angelocola.
26490
26491 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26492
26493         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26494         coreutils no longer futzes with rounding modes.
26495
26496 2005-11-14  Jim Meyering  <jim@meyering.net>
26497
26498         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26499         replacement of mkstemp.
26500
26501 2005-11-10  Simon Josefsson  <jas@extundo.com>
26502
26503         * lib/readline.c: Remove EOL.
26504
26505 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26506
26507         * modules/gethrxtime (Depends-on): Add gettime.
26508
26509 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26510
26511         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26512         or gettimeofday; no longer needed.
26513
26514 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26515
26516         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26517         time business.
26518         (gethrxtime) [! (HAVE_NANOUPTIME
26519         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26520         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26521         our own approximation.
26522
26523 2005-11-08  Eric Blake  <ebb9@byu.net>
26524
26525         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26526
26527 2005-11-08  Eric Blake  <ebb9@byu.net>
26528
26529         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26530
26531 2005-11-04  Bruno Haible  <bruno@clisp.org>
26532
26533         * gnulib-tool: Implement --update mode.
26534
26535 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26536
26537         Fix porting problem reported by Theodoros V. Kalamatianos.
26538         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26539         Don't assume that futimes failing means we must fail.
26540
26541 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26542
26543         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26544         variables to suggest the intended function of the PATH_MAX check.
26545
26546 2005-10-30  Kean Johnston  <jkj@sco.com>
26547
26548         Trivial changes to support SCO systems.
26549         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26550         as PATH_MAX.
26551         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26552         where __ptr is null when no I/O is pending.
26553
26554 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26555
26556         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26557         leave errno alone.  Problem reported by Dmitry V. Levin.
26558
26559 2005-10-28  Simon Josefsson  <jas@extundo.com>
26560
26561         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26562         Test more.
26563
26564         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26565
26566         * modules/md2, modules/md2-tests: New files.
26567
26568 2005-10-28  Simon Josefsson  <jas@extundo.com>
26569
26570         * m4/inet_ntop.m4: More tests.
26571
26572         * m4/gc-md2.m4, md2.m4: New file.
26573
26574 2005-10-28  Simon Josefsson  <jas@extundo.com>
26575
26576         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26577         "restrict" keywords, as per POSIX.  Protect the function
26578         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26579         Don't use K&R prototypes.  Check the sprintf return values.
26580         Re-define EAFNOSUPPORT if not present.  Indent.
26581
26582         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26583         suggested by Bruno Haible <bruno@clisp.org>.
26584
26585         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26586
26587         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26588
26589         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26590         libgcrypt).
26591
26592         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26593
26594         * lib/md2.h, lib/md2.c: New files.
26595
26596 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26597
26598         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26599         errno alone.  Problem reported by Frederic Jolliton.
26600
26601 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26602
26603         * modules/verify (License): Change from GPL to LGPL.  This is a
26604         tiny module and there are apparently near-equivalents that are
26605         under the BSD license.
26606
26607 2005-10-24  Simon Josefsson  <jas@extundo.com>
26608
26609         * modules/sha1: Relicense to LGPL.
26610
26611 2005-10-24  Simon Josefsson  <jas@extundo.com>
26612
26613         * lib/md4.h: Shrink buffer size, now that we changed the type.
26614
26615 2005-10-23  Simon Josefsson  <jas@extundo.com>
26616
26617         * gnulib-tool (func_import): Fix --tests-base.
26618
26619 2005-10-22  Simon Josefsson  <jas@extundo.com>
26620
26621         * modules/arcfour (Depends-on): Need stdint.
26622
26623 2005-10-22  Simon Josefsson  <jas@extundo.com>
26624
26625         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26626         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26627
26628 2005-10-22  Simon Josefsson  <jas@extundo.com>
26629
26630         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26631         suggested by Bruno Haible <bruno@clisp.org>.
26632
26633 2005-10-22  Simon Josefsson  <jas@extundo.com>
26634
26635         * lib/crc.h: Include stddef.h, for size_t.
26636
26637 2005-10-22  Simon Josefsson  <jas@extundo.com>
26638
26639         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26640         arcfour_context struct (simplify test vector testing in GNU
26641         Shishi).
26642
26643 2005-10-21  Simon Josefsson  <jas@extundo.com>
26644
26645         * modules/des, modules/des-tests: New files.
26646
26647         * modules/gc-des, modules/gc-des-tests: New files.
26648
26649         * tests/test-des.c, tests/test-gc-des.c: New file.
26650
26651 2005-10-21  Simon Josefsson  <jas@extundo.com>
26652
26653         * modules/arctwo, modules/arctwo-tests: New files.
26654
26655         * tests/test-arctwo.c: New file.
26656
26657         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26658
26659         * tests/test-gc-arctwo.c: New file.
26660
26661 2005-10-21  Simon Josefsson  <jas@extundo.com>
26662
26663         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26664         Bruno Haible <bruno@clisp.org>.
26665
26666         * m4/gc-des.m4: New file.
26667
26668 2005-10-21  Simon Josefsson  <jas@extundo.com>
26669
26670         * m4/arctwo.m4: New file.
26671
26672         * m4/gc-arctwo.m4: New file.
26673
26674 2005-10-21  Simon Josefsson  <jas@extundo.com>
26675
26676         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26677         block.
26678
26679 2005-10-21  Simon Josefsson  <jas@extundo.com>
26680
26681         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26682         <bruno@clisp.org>.
26683
26684         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26685
26686         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26687         Bruno Haible <bruno@clisp.org>.
26688
26689         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26690         <bruno@clisp.org>.
26691
26692 2005-10-21  Simon Josefsson  <jas@extundo.com>
26693
26694         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26695
26696 2005-10-21  Simon Josefsson  <jas@extundo.com>
26697
26698         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26699
26700 2005-10-21  Simon Josefsson  <jas@extundo.com>
26701
26702         * lib/des.h, lib/des.c: New files.
26703
26704         * lib/gc-gnulib.c: Support DES.c
26705
26706 2005-10-21  Simon Josefsson  <jas@extundo.com>
26707
26708         * lib/arctwo.h, lib/arctwo.c: New files.
26709
26710         * lib/gc-gnulib.c: Support ARCTWO.
26711
26712 2005-10-21  Simon Josefsson  <jas@extundo.com>
26713
26714         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26715         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26716
26717 2005-10-21  Simon Josefsson  <jas@extundo.com>
26718
26719         * gnulib-tool (func_import, func_create_testdir): Define automake
26720         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
26721         Makefile.am snippet),
26722         suggested by Bruno Haible <bruno@clisp.org>.
26723
26724         * modules/gc (Makefile.am): Use it.
26725
26726 2005-10-21  Bruno Haible  <bruno@clisp.org>
26727
26728         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
26729         patch.
26730
26731 2005-10-19  Simon Josefsson  <jas@extundo.com>
26732
26733         * tests/test-gc-rijndael.c: New file.
26734
26735         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
26736
26737 2005-10-19  Simon Josefsson  <jas@extundo.com>
26738
26739         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
26740         interface too.
26741
26742 2005-10-19  Simon Josefsson  <jas@extundo.com>
26743
26744         * tests/test-gc-arcfour.c: New file.
26745
26746         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
26747
26748 2005-10-19  Simon Josefsson  <jas@extundo.com>
26749
26750         * modules/gc-md4, modules/gc-md4-tests: New file.
26751
26752         * tests/test-gc-md4.c: New file.
26753
26754 2005-10-19  Simon Josefsson  <jas@extundo.com>
26755
26756         * m4/gc-md4.m4: New file.
26757
26758 2005-10-19  Simon Josefsson  <jas@extundo.com>
26759
26760         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
26761         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
26762         <kasal@ucw.cz>.
26763
26764 2005-10-19  Simon Josefsson  <jas@extundo.com>
26765
26766         * m4/gc-arcfour.m4: New file.
26767
26768         * m4/gc-rijndael.m4: New file.
26769
26770 2005-10-19  Simon Josefsson  <jas@extundo.com>
26771
26772         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
26773
26774 2005-10-19  Simon Josefsson  <jas@extundo.com>
26775
26776         * lib/gc-gnulib.c: Support ARCFOUR.
26777
26778 2005-10-19  Simon Josefsson  <jas@extundo.com>
26779
26780         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
26781         support.
26782
26783         * lib/gc.h: Add ECB enum type.
26784
26785         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
26786
26787 2005-10-18  Simon Josefsson  <jas@extundo.com>
26788
26789         * tests/test-md5.c: New file.
26790
26791         * modules/md5-tests: New file.
26792
26793 2005-10-18  Simon Josefsson  <jas@extundo.com>
26794
26795         * tests/test-md4.c: New file.
26796
26797         * modules/md4, modules/md4-tests: New files.
26798
26799 2005-10-18  Simon Josefsson  <jas@extundo.com>
26800
26801         * m4/md4.m4: New file.
26802
26803 2005-10-18  Simon Josefsson  <jas@extundo.com>
26804
26805         * lib/md4.h, lib/md4.c: New files, based on md5.?.
26806
26807 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
26808
26809         * gnulib-tool (func_create_testdir): Omit the second check whether
26810         BUILT_SOURCES in nonempty.
26811
26812 2005-10-17  Simon Josefsson  <jas@extundo.com>
26813
26814         * tests/test-rijndael.c: New file.
26815
26816 2005-10-17  Simon Josefsson  <jas@extundo.com>
26817
26818         * modules/sha1: Depend on stdint instead of md5.
26819
26820         * modules/md5: Depend on stdint, remove uint32_t.
26821
26822 2005-10-17  Simon Josefsson  <jas@extundo.com>
26823
26824         * modules/gc-sha1-tests: New file.
26825
26826         * tests/test-gc-sha1.c: New file.
26827
26828 2005-10-17  Simon Josefsson  <jas@extundo.com>
26829
26830         * m4/md5.m4: Remove call to uint32_t.m4.
26831
26832 2005-10-17  Simon Josefsson  <jas@extundo.com>
26833
26834         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
26835
26836         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
26837         md5.h.
26838
26839         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
26840
26841         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
26842
26843 2005-10-17  Simon Josefsson  <jas@extundo.com>
26844
26845         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
26846
26847 2005-10-17  Simon Josefsson  <jas@extundo.com>
26848
26849         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
26850
26851 2005-10-17  Simon Josefsson  <jas@extundo.com>
26852
26853         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
26854
26855         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
26856
26857 2005-10-17  Bruno Haible  <bruno@clisp.org>
26858
26859         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
26860         that it can also be used in a test.
26861
26862 2005-10-16  Bruno Haible  <bruno@clisp.org>
26863
26864         * gnulib-tool (func_emit_tests_Makefile_am): Also define
26865         TESTS_ENVIRONMENT, so that individual tests can augment it.
26866
26867         * gnulib-tool (func_create_testdir): Use an intermediate target for
26868         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
26869         macros, like $(ALLOCA_H), which cannot be passed through the command
26870         line.
26871
26872 2005-10-15  Simon Josefsson  <jas@extundo.com>
26873
26874         * modules/rijndael-tests: New file.
26875
26876         * modules/rijndael: New file.
26877
26878 2005-10-15  Simon Josefsson  <jas@extundo.com>
26879
26880         * m4/rijndael.m4: New file.
26881
26882 2005-10-15  Simon Josefsson  <jas@extundo.com>
26883
26884         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
26885
26886         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
26887
26888 2005-10-14  Simon Josefsson  <jas@extundo.com>
26889
26890         * tests/test-arcfour.c: New file.
26891
26892         * modules/arcfour, modules/arcfour-tests: New files.
26893
26894 2005-10-14  Simon Josefsson  <jas@extundo.com>
26895
26896         * m4/arcfour.m4: New file.
26897
26898 2005-10-14  Simon Josefsson  <jas@extundo.com>
26899
26900         * lib/arcfour.h, lib/arcfour.c: New files.
26901
26902 2005-10-14  Roland McGrath  <roland@redhat.com>
26903
26904         Import from libc.  [BZ #1331]
26905         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
26906         macro argument.
26907         Reported by Matej Vela <vela@debian.org>.
26908
26909 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26910
26911         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
26912         include <wchar.h>; no longer needed.
26913
26914 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26915
26916         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
26917
26918 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
26919         and  Ulrich Drepper  <drepper@redhat.com>
26920
26921         Import from libc.
26922         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
26923         instead of inline stream orientation test and two separate
26924         function calls.  Pay no attention to USE_IN_LIBIO.
26925
26926 2005-10-13  Simon Josefsson  <jas@extundo.com>
26927
26928         * modules/gc-hmac-md5-tests: New file.
26929
26930         * tests/test-gc-hmac-sha1.c: New file.
26931
26932         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
26933
26934         * modules/gc-hmac-md5-tests: New file.
26935
26936         * tests/test-gc-md5.c: New file.
26937
26938         * modules/gc-md5-tests: New file.
26939
26940 2005-10-13  Simon Josefsson  <jas@extundo.com>
26941
26942         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
26943         Move memory allocation outside of loop.
26944
26945 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26946
26947         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
26948         intermediate directory is in a read-only file system.  Problem
26949         reported by Eric Blake.
26950
26951 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
26952
26953         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
26954
26955 2005-10-12  Simon Josefsson  <jas@extundo.com>
26956
26957         * tests/test-hmac-sha1.c: New file.
26958
26959         * modules/hmac-sha1-tests: New file.
26960
26961         * modules/hmac-sha1: New file.
26962
26963 2005-10-12  Simon Josefsson  <jas@extundo.com>
26964
26965         * modules/gc-sha1: New file.
26966
26967 2005-10-12  Simon Josefsson  <jas@extundo.com>
26968
26969         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
26970
26971         * tests/test-gc-pbkdf2-sha1.c: New file.
26972
26973 2005-10-12  Simon Josefsson  <jas@extundo.com>
26974
26975         * modules/gc-md5, modules/gc-hmac-md5: New files.
26976
26977         * modules/gc (Files): Remove md5, memxor and hmac files.
26978
26979 2005-10-12  Simon Josefsson  <jas@extundo.com>
26980
26981         * m4/gc-pbkdf2-sha1.m4: New file.
26982
26983         * m4/gc-hmac-sha1.m4: New file.
26984
26985         * m4/gc-sha1: New file.
26986
26987         * m4/hmac-sha1.m4: New file.
26988
26989 2005-10-12  Simon Josefsson  <jas@extundo.com>
26990
26991         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
26992
26993         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
26994
26995 2005-10-12  Simon Josefsson  <jas@extundo.com>
26996
26997         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
26998         suggested by Bruno Haible <bruno@clisp.org>.
26999
27000 2005-10-12  Simon Josefsson  <jas@extundo.com>
27001
27002         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
27003
27004 2005-10-12  Simon Josefsson  <jas@extundo.com>
27005
27006         * lib/gc-pbkdf2-sha1.c: New file.
27007
27008         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
27009
27010 2005-10-12  Simon Josefsson  <jas@extundo.com>
27011
27012         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
27013
27014         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
27015
27016 2005-10-12  Simon Josefsson  <jas@extundo.com>
27017
27018         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
27019         GC_USE_HMAC_MD5, respectively.
27020
27021         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
27022         (gc_md5): Fix typo.
27023
27024         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
27025
27026         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
27027
27028         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
27029
27030 2005-10-12  Bruno Haible  <bruno@clisp.org>
27031
27032         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
27033         Reported by Stepan Kasal <kasal@ucw.cz>.
27034
27035 2005-10-11  Simon Josefsson  <jas@extundo.com>
27036
27037         * tests/test-crc.c: New file.
27038
27039         * modules/crc, modules/crc-tests: New files.
27040
27041 2005-10-11  Simon Josefsson  <jas@extundo.com>
27042
27043         * m4/crc.m4: New file.
27044
27045 2005-10-11  Simon Josefsson  <jas@extundo.com>
27046
27047         * lib/gc.h: Add gc_hash and gc_hash_buffer.
27048
27049         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
27050
27051         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
27052
27053 2005-10-11  Simon Josefsson  <jas@extundo.com>
27054
27055         * lib/crc.h, lib/crc.c: New files.
27056
27057         * lib/gc.h (gc_hash_buffer): Add doc.
27058
27059 2005-10-11  Bruno Haible  <bruno@clisp.org>
27060
27061         * modules/c-strcasestr: New file.
27062         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
27063
27064 2005-10-11  Bruno Haible  <bruno@clisp.org>
27065
27066         * modules/c-strcase: New file.
27067         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
27068
27069 2005-10-11  Bruno Haible  <bruno@clisp.org>
27070
27071         * lib/strcasecmp.c: Include limits.h.
27072         (strcasecmp): Avoid integer overflow on exotic platforms.
27073         * lib/strncasecmp.c: Include limits.h.
27074         (strncasecmp): Avoid integer overflow on exotic platforms.
27075         Reported by Paul Eggert.
27076
27077 2005-10-11  Bruno Haible  <bruno@clisp.org>
27078
27079         * lib/c-strcasestr.h: New file, from GNU gettext.
27080         * lib/c-strcasestr.c: New file, from GNU gettext.
27081
27082 2005-10-11  Bruno Haible  <bruno@clisp.org>
27083
27084         * lib/c-strcase.h: New file, from GNU gettext.
27085         * lib/c-strcasecmp.c: New file, from GNU gettext.
27086         * lib/c-strncasecmp.c: New file, from GNU gettext.
27087
27088 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27089
27090         * modules/mempcpy (License): GPL -> LGPL.
27091         * modules/strchrnul (License): Likewise.
27092         * modules/sysexits (License): Likewise.
27093
27094 2005-10-08  Simon Josefsson  <jas@extundo.com>
27095
27096         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
27097
27098 2005-10-07  Simon Josefsson  <jas@extundo.com>
27099
27100         * m4/memxor.m4: Remove gl_C_RESTRICT call.
27101
27102 2005-10-06  Simon Josefsson  <jas@extundo.com>
27103
27104         * tests/test-hmac-md5.c: New file.
27105
27106         * modules/hmac-md5-tests: New file.
27107
27108         * modules/hmac-md5: New file.
27109
27110 2005-10-06  Simon Josefsson  <jas@extundo.com>
27111
27112         * m4/hmac-md5.m4: New file.
27113
27114         * m4/memxor.m4: Require gl_C_RESTRICT.
27115
27116 2005-10-06  Simon Josefsson  <jas@extundo.com>
27117
27118         * lib/memxor.c (memxor): Avoid casts and warnings.
27119
27120 2005-10-06  Simon Josefsson  <jas@extundo.com>
27121
27122         * lib/hmac-md5.c: New file.
27123
27124         * lib/hmac.h: New file.
27125
27126 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27127
27128         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27129         promotes to int, not unsigned int, to catch the AIX 5.3
27130         compiler bug.
27131
27132 2005-10-05  Simon Josefsson  <jas@extundo.com>
27133
27134         * modules/memxor: New file.
27135
27136         * modules/iconv (Files): Move config.rpath to havelib, it is used
27137         there.
27138
27139         * modules/havelib (Files): Add config.rpath.
27140
27141 2005-10-05  Simon Josefsson  <jas@extundo.com>
27142
27143         * m4/memxor.m4: New file.
27144
27145 2005-10-05  Simon Josefsson  <jas@extundo.com>
27146
27147         * lib/memxor.c (memxor): Fix compiler error.
27148
27149         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27150         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27151
27152         * lib/memxor.h, lib/memxor.c: New files.
27153
27154         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27155         we assume all systems have it, suggested by Jim Meyering
27156         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27157         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27158         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27159         same reasons.
27160
27161 2005-10-05  Simon Josefsson  <jas@extundo.com>
27162
27163         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27164
27165 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27166
27167         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27168         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27169         needed, since the source code now assumes these .h files.
27170
27171 2005-10-05  Derek Price  <derek@ximbiot.com>
27172
27173         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27174
27175 2005-10-05  Bruno Haible  <bruno@clisp.org>
27176
27177         * modules/stdint (License): Change to LGPL.
27178
27179 2005-10-04  Simon Josefsson  <jas@extundo.com>
27180
27181         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27182         D. Baushke" <mdb@gnu.org>.
27183
27184 2005-10-04  Bruno Haible  <bruno@clisp.org>
27185
27186         * lib/verify.h (verify_true): Provide alternative definition for C++.
27187
27188 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27189
27190         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27191         (SSIZE_MAX): New macro, if not already defined.
27192         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27193         than 2 GiB.
27194
27195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27196
27197         Sync from coreutils.
27198         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27199         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27200         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27201         ULLONG_MAX doesn't work with 2.7.2.1.
27202
27203 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27204
27205         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27206         From Ben Pfaff.
27207
27208         * modules/exclude (Depends-on): Depend on verify.
27209         * modules/strtoimax (Depends-on): Likewise.
27210         * modules/utimecmp (Depends-on): Likewise.
27211
27212 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27213
27214         * lib/exclude.c: Include verify.h.
27215         (verify): Remove.  All callers changed to use verify.h's version.
27216         * lib/strtoimax.c: Likewise.
27217         * lib/utimecmp.c: Likewis.e
27218
27219         Sync from coreutils.
27220         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27221         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27222         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27223         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27224         bother returning ENOSYS if settimeofday or stime fails; just let
27225         them return whatever errno they want to return.
27226         * lib/utimens.c: Include unistd.h, for dup2.
27227         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27228         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27229
27230 2005-10-02  Jim Meyering  <jim@meyering.net>
27231
27232         Sync from coreutils.
27233         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27234         from glibc-2.2.5 that fails for read-only files.
27235
27236 2005-10-02  Jim Meyering  <jim@meyering.net>
27237
27238         Sync from coreutils.
27239         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27240         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27241         `#if HAVE_CONFIG_H'.
27242         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27243         Remove AT_FDCWD test.
27244         Do not consume the fd unless successful.
27245         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27246         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27247         block, so that we don't even try to compile it if settimeofday is
27248         available.  This works around a compilation failure on OSF1 V5.1,
27249         due to stime requiring a `long int*' while tv_sec is `int'.
27250
27251 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27252
27253         Sync from coreutils.
27254         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27255         against `yes', rather than just testing for nonempty.
27256
27257 2005-10-01  Simon Josefsson  <jas@extundo.com>
27258
27259         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27260         and Darwin.
27261
27262         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27263         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27264         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27265         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27266         Check if struct addrinfo is declared.
27267
27268 2005-10-01  Simon Josefsson  <jas@extundo.com>
27269
27270         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27271         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27272         AI_* and EAI_* definitions.  Protect function declarations.
27273
27274 2005-10-01  Jim Meyering  <jim@meyering.net>
27275
27276         Sync from coreutils.
27277
27278         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27279         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27280         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27282         in the inet and nsl libraries.  Required on Solaris 5.7.
27283
27284 2005-10-01  Jim Meyering  <jim@meyering.net>
27285
27286         Sync from coreutils.
27287         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27288         in the inet and nsl libraries.  Required on Solaris 5.7.
27289
27290 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27291
27292         * lib/getdelim.c (getdelim): Remove unused variables.
27293
27294 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27295
27296         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27297         so that the code works even with ancient cpp.  Portability problem
27298         with GCC 2.7.2.1 reported by Thomas M.Ott.
27299
27300 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27301
27302         * modules/regex (Depends-on): Add strcase.
27303
27304         * modules/gethostname (Licence): Change from GPL to LGPL, since
27305         gethostname.c is a trivial implementation of a standard library
27306         function.
27307         * modules/poll (License): Change from GPL to LGPL, since it's
27308         derived from LGPL code.
27309
27310 2005-09-27  Jim Meyering  <jim@meyering.net>
27311
27312         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27313         HAVE_CONFIG_H.
27314
27315         * lib/intprops.h (signed_type_or_expr__): Define.
27316         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27317         for unsigned types.
27318
27319 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27320
27321         * lib/verify.h (verify_expr): Remove, replacing with:
27322         (verify_true): New macro that returns true instead of void.
27323         (verify_type__): Remove.
27324         (verify): Use verify_true rather than verify_type__.
27325
27326 2005-09-26  Bruno Haible  <bruno@clisp.org>
27327
27328         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27329         is necessary.
27330         (lib_SOURCES): Remove mbchar.c.
27331         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27332         (Files): Add m4/mbrtowc.m4.
27333         * modules/mbiter: Likewise.
27334         * modules/mbuiter: Likewise.
27335
27336 2005-09-26  Bruno Haible  <bruno@clisp.org>
27337
27338         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27339         compile mbchar.c if they are not both present.
27340         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27341         * m4/mbiter.m4 (gl_MBITER): Likewise.
27342         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27343         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27344         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27345
27346 2005-09-25  Jim Meyering  <jim@meyering.net>
27347
27348         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27349         also uses socklen_t.
27350
27351 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27352
27353         * lib/utimens.c (ENOSYS): Define if not already defined.
27354         (futimens): Support having a null PATH if the file descriptor
27355         is nonnegative.
27356
27357         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27358         Remove.
27359         (__attribute): Define to empty unless GCC 3.1 or later.
27360         This works around a core dump on OpenBSD 3.4, which has GCC
27361         2.95.3, which dumps core when given __attribute__(()).  It also
27362         simplifies other tests, since we really don't want to bother with
27363         worrying about which ancient version of GCC supported what.
27364         Original problem reported by Yoann Vandoorselaere, with part of
27365         the fix suggested by Derek Price.
27366
27367 2005-09-24  Jim Meyering  <jim@meyering.net>
27368
27369         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27370         so we can once again use a positive bitfield width of 1 -- now we
27371         don't have to explain why we were using a bitfield width of 2.
27372
27373 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27374
27375         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27376         and similarly for the other external symbols.  Problem reported
27377         by James Gallager.
27378
27379         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27380         bug reported by Jim Meyering.
27381
27382         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27383         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27384         not needed, since socklen is a prerequisite module.
27385
27386 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27387
27388         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27389         Problem reported by Eric Blake.
27390         (getaddrinfo): Initialize se so that it's not garbage.
27391         Redo internal storage allocation so that it doesn't make unportable
27392         assumptions about alignment.
27393         Fix a memory leak.
27394
27395         * lib/utimens.c (futimens): Use futimesat if available.
27396         Prefer it to futimes since it doesn't have the futimes bug.
27397
27398         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27399         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27400         Instead, declare a function that returns a pointer to an array,
27401         and use verify_type__ to declare the size of the array.
27402         Problem and germ of a solution reported by Bruno Haible.
27403         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27404         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27405
27406 2005-09-23  Jim Meyering  <jim@meyering.net>
27407
27408         Sync from coreutils.
27409         Correct build failure (socklen_t not defined) on at least
27410         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27411         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27412
27413 2005-09-23  Jim Meyering  <jim@meyering.net>
27414
27415         * modules/getaddrinfo (Depends-on): Add socklen.
27416
27417 2005-09-23  Bruno Haible  <bruno@clisp.org>
27418
27419         * tests/test-verify.c: New file.
27420
27421 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27422
27423         Sync from coreutils.
27424
27425         * modules/argmatch (Depends-on): Add verify.
27426         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27427         unistd-safer.
27428         * modules/save-cwd (Depends-on): Likewise.
27429
27430         * modules/openat (Files): Add lib/openat-die.c.
27431         (Depends-on): Remove error, exitfail.
27432         Add dirname.
27433
27434         * modules/verify: New file.
27435         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27436         with "verify" module.
27437
27438 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27439
27440         Sync from coreutils.
27441
27442         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27443         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27444         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27445         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27446         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27447         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27448         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27449         Don't bother checking for string.h, stdlib.h, unistd.h.
27450         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27451         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27452         module's job.
27453         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27454         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27455
27456         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27457         (gl_GETDATE): Use it.
27458
27459         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27460
27461 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27462
27463         Sync from coreutils.
27464
27465         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27466         stat-time.h.
27467         * lib/argmatch.h: Include verify.h
27468         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27469         (ARGMATCH_ASSERT): Remove; unused.
27470         * lib/canonicalize.c: Assume STDC_HEADERS.
27471         * lib/exclude.c: Include "strcase.h".
27472         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27473         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27474         and stdio-safer.h.
27475         (getusershell): Call fopen, not fopen_safer.
27476         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27477         Do not include unistd-safer.h.
27478         (save_cwd): Don't call fd_safer; no longer needed
27479         now that we include fcntl--.h.
27480
27481         * lib/getdate.y (relative_time): New type.
27482         (RELATIVE_TIME_0): New constant.
27483         (parser_control): Use relative_time instead of doing it ourselves.
27484         (%union): Add new relative_time rel member.
27485         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27486         Now typeless.
27487         (relunit, relunit_snumber): Now of type rel.
27488         (zone, rel, relunit, get_date): Adjust to above changes.
27489
27490         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27491         Do not include unistd-safer.h.
27492         (getloadavg): Don't call fd_safer; no longer needed
27493         now that we include fcntl--.h.
27494
27495         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27496         (make_dir_parents): Treat ENOSYS like EEXIST.
27497
27498         Improve quality of diagnostics on restore_cwd failure.
27499         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27500         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27501         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27502         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27503         each time through the loop.  Do not diagnose restore_cwd failure;
27504         that is the caller's job (and perhaps the caller does not care).
27505
27506         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27507         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27508         If the file already exists but is not a directory, don't bother
27509         to try to make its parents.
27510         Close potential file descriptor leak if we can't chdir("/") (!).
27511         Don't always return true if chdir($PWD) fails; return true only
27512         if the requested action was done successfully (except for the
27513         chdir($PWD)).
27514         Don't log final directory unless we actually made it.
27515         Refactor to avoid duplicate code to fix up permissions.
27516         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27517
27518         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27519         to make it a bit faster and (I hope) clearer.
27520         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27521         Fix bug in formats like %2N.
27522
27523         * lib/verify.h: New file.
27524
27525 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27526
27527         Sync from coreutils.
27528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27529
27530 2005-09-22  Jim Meyering  <jim@meyering.net>
27531
27532         Sync from coreutils.
27533
27534         * m4/lstat.m4 (gl_FUNC_LSTAT):
27535         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27536         Remove obsolete comment.
27537         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27538         * m4/xstrtod.m4: Likewise.
27539
27540         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27541
27542 2005-09-22  Jim Meyering  <jim@meyering.net>
27543
27544         Sync from coreutils.
27545
27546         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27547
27548         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27549         the .tm_year member, since otherwise gcc-4.0 would now warn about
27550         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27551
27552         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27553         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27554
27555         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27556         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27557         when run in a time zone for which daylight savings time is in effect
27558         for the starting date.
27559
27560         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27561         stop us from restricting permissions of just-created absolute-named
27562         directories.
27563         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27564         to restore initial working directory.
27565         * lib/mkdir-p.c (make_dir_parents): New parameter:
27566         different_working_dir, to tell caller if/when we change the working
27567         directory and are unable to return to the initial one.
27568         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27569         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27570         `return false'.  This fixes a bug introduced on 2004-07-30.
27571
27572         * lib/openat.c (fdopendir): Be sure to close the supplied
27573         file descriptor before returning.  This makes our replacement
27574         implementation a little closer to Solaris's, where fdopendir
27575         ties the file descriptor to the returned DIR* pointer.
27576         * lib/openat.c (unlinkat): New function.
27577         * lib/openat.h (unlinkat): Add prototype.
27578         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27579         (openat_restore_fail): Rename from openat_restore_die.
27580         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27581
27582         Provide an alternative to exiting immediately upon save_cwd or
27583         restore_cwd failure.  Now, an application can arrange e.g.,
27584         to perform a longjump in that case.
27585         * lib/openat.c: Include dirname.h.
27586         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27587         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27588         and openat_restore_die rather than calling error directly.
27589         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27590
27591         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27592         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27593         define.
27594
27595         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27596         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27597                             int utc, int nanoseconds);
27598         Background:
27599         date should not have to allocate a megabyte of virtual memory to
27600         handle a format argument like +%1048575T.  When implemented with
27601         strftime, it must allocate such a buffer, use strftime to fill it
27602         in, print it, then free it.
27603         With fprintftime, it simply prints everything and exits.
27604         With no need for memory allocation, that's one fewer way to fail.
27605         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27606         optional field width, not before, so we accept %9:z, not %:9z.
27607         (my_strftime): Be sure to use L_('x') for literals.
27608
27609         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27610         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27611         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27612         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27613         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27614         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27615         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27616         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27617         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27618         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27619         * lib/xgethostname.c, lib/xreadlink.c:
27620         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27621
27622         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27623         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27624         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27625         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27626         and don't include <sys/file.h>).
27627
27628 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27629
27630         Sync from coreutils.
27631
27632         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27633         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27634         [!LDAV_DONE]: Avoid unused variable warning.
27635
27636 2005-09-21  Bruno Haible  <bruno@clisp.org>
27637
27638         * lib/unicodeio.h (unicode_to_mb): New declaration.
27639
27640 2005-09-20  Derek Price  <derek@ximbiot.com>
27641
27642         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27643         getaddrinfo.h.
27644
27645 2005-09-20  Bruno Haible  <bruno@clisp.org>
27646
27647         * gnulib-tool: Remove trailing slashes from the values specified for
27648         --source-base, --m4-base, --tests-base, --aux-dir.
27649         Suggested by Simon Josefsson <jas@extundo.com>.
27650
27651 2005-09-20  Bruno Haible  <bruno@clisp.org>
27652
27653         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27654         func_modules_to_filelist, func_import, func_create_testdir): Make all
27655         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27656         change when gnulib-tool is invoked in a different locale.
27657
27658 2005-09-19  Simon Josefsson  <jas@extundo.com>
27659
27660         * m4/socklen.m4: Fix typo.
27661
27662 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27663
27664         Use a consistent style for including <config.h>.
27665         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27666         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27667         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27668         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27669         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27670         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27671         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27672         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27673         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27674         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27675         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27676         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27677         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27678         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27679         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27680         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27681         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27682         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27683         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27684         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27685         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27686         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27687         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27688         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27689         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27690         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27691         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27692         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27693         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27694         lib/xstrtoumax.c, lib/yesno.c:
27695         Standardize inclusion of config.h.
27696         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27697         lib/inttostr.h:  Removed inclusion of config.h from header files.
27698         * lib/inttostr.c:  Adjusted in-tree users.
27699         * lib/timespec.h: Remove superfluous warning to include config.h.
27700         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27701         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27702         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27703         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27704         config.h with HAVE_CONFIG_H.
27705
27706 2005-09-19  Jim Meyering  <jim@meyering.net>
27707
27708         * modules/pathmax (License): Change to LGPL.
27709
27710 2005-09-19  Derek Price  <derek@ximbiot.com>
27711
27712         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27713
27714 2005-09-19  Bruno Haible  <bruno@clisp.org>
27715
27716         * gnulib-tool (import): Provide default for --tests-base.
27717
27718 2005-09-19  Bruno Haible  <bruno@clisp.org>
27719
27720         * doc/quote.texi: New file, extracted from gnulib.texi.
27721         * doc/ctime.texi: New file, extracted from gnulib.texi.
27722         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
27723         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
27724         * doc/gnulib.texi: Include them.
27725
27726 2005-09-18  Bruno Haible  <bruno@clisp.org>
27727
27728         Portability fix.
27729         * gnulib-tool (func_readlink): New function.
27730         (func_ln_if_changed): Use it.
27731
27732 2005-09-18  Bruno Haible  <bruno@clisp.org>
27733
27734         * gnulib-tool: Support --with-tests also with --import.
27735         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
27736         (func_import): Use variables $testsbase and $inctests. Emit a
27737         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
27738         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
27739         SUBDIRS += $testsdir.
27740         (func_create_testdir): Update.
27741
27742 2005-09-18  Bruno Haible  <bruno@clisp.org>
27743
27744         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
27745         instead of $dry_run.
27746         (func_cp_if_changed, func_mv_if_changed): Remove functions.
27747         (func_ln_if_changed): Don't handle dry-run here.
27748         (func_import): In dry-run mode, detect more precisely which actions
27749         would be performed, and don't use "...ing" verbs.
27750
27751 2005-09-18  Bruno Haible  <bruno@clisp.org>
27752
27753         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
27754         (func_import): Use join on two temporary files instead of three nested
27755         loops, in order to determine which files are new or old.
27756
27757 2005-09-18  Bruno Haible  <bruno@clisp.org>
27758
27759         * gnulib-tool (func_import): Comment out code that spits out the
27760         new files with --dry-run.
27761
27762 2005-09-18  Bruno Haible  <bruno@clisp.org>
27763
27764         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
27765
27766 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27767
27768         * lib/stat-time.h: New file.
27769         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
27770         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
27771         in a different way.
27772         (timespec_cmp): New function.
27773         * lib/utimecmp.c: Include stat-time.h.
27774         (SYSCALL_RESOLUTION): Depend on whether various struct stat
27775         members exist, not on the obsolescent ST_MTIM_NSEC.
27776         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
27777
27778 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27779
27780         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
27781
27782 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27783
27784         * MODULES.html.sh (File system functions): Add stat-time.
27785         * modules/stat-time: New file.
27786         * modules/timespec (Files): Remove m4/st_mtim.m4; this
27787         is now done in a different way, by the stat-time module.
27788         * modules/utimecmp (Depends-on): Add stat-time.
27789
27790 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27791
27792         * m4/st_mtim.m4: Remove.  Superseded by...
27793         * m4/stat-time.m4: New file.
27794         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
27795         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
27796
27797 2005-09-15  Derek Price  <derek@ximbiot.com>
27798
27799         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
27800
27801 2005-09-15  Derek Price  <derek@ximbiot.com>
27802
27803         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
27804         * lib/regex_internal.c: Ditto, using this...
27805         (__GNUC_PREREQ): ...new macro.
27806         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
27807         using...
27808         (__GNUC_PREREQ): ...this new macro.
27809
27810         * lib/strstr.h: Include string.h. Define strstr as a macro here.
27811
27812 2005-09-15  Derek Price  <derek@ximbiot.com>
27813             Paul Eggert  <eggert@cs.ucla.edu>
27814
27815         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
27816         changes, consolidating in...
27817         * lib/regex_internal.h: ...this file.
27818
27819 2005-09-13  Jim Meyering  <jim@meyering.net>
27820
27821         * lib/canon-host.c: Filter through gnu indent and reword comments
27822         slightly.
27823         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
27824
27825 2005-09-13  Derek Price  <derek@ximbiot.com>
27826
27827         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
27828         failure.
27829         Reported by Jim Meyering  <jim@meyering.net>.
27830
27831 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27832
27833         * lib/base64.c: Typo.
27834         (base64_encode): Put b64str in initialized data section.
27835
27836 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27837
27838         Merge glibc and coreutils changes into gnulib, plus a few
27839         extra fixes.
27840         * lib/md5.c: Use #error rather than a string.
27841         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
27842         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
27843         (__attribute__): Define to empty for non recent-GCC.
27844         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
27845         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
27846         Renamed from their non-__ counterparts, with new macros replacing
27847         them if not _LIBC.  Add __THROW attribute.
27848         (rol): Remove.
27849         (struct md5_ctx): Align buffer if using GCC.
27850         * lib/sha1.h (struct sha1_ctx): Likewise.
27851         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
27852         The old name was backwards.
27853         (NOTSWAP): Remove; not used.
27854         (rol): New macro, moved here from md5.h.
27855         (sha1_process_block): Remove a FIXME that doesn't make sense.
27856
27857 2005-09-12  Derek Price  <derek@ximbiot.com>
27858
27859         Return usable errors from canon-host.
27860         * lib/canon-host.h: New file.
27861         * lib/canon-host.c (canon_host): Wrap...
27862         (canon_host_r): ...this new function, which now relies exclusively on
27863         getaddrinfo.
27864         (ch_strerror): New function.
27865         (last_cherror): New global.
27866         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
27867         interface.
27868         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
27869         void *.
27870         (freeaddrinfo): Free ai->ai_canonname when set.
27871
27872 2005-09-12  Derek Price  <derek@ximbiot.com>
27873
27874         Make canon-host require getaddrinfo.
27875         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
27876         AC_LIBSOURCE canon-host.h.  Call...
27877         (gl_PREREQ_CANON_HOST): ...this new function, which requires
27878         gl_GETADDRINFO.
27879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
27880
27881 2005-09-12  Derek Price  <derek@ximbiot.com>
27882
27883         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
27884         LGPL.
27885         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
27886
27887 2005-09-12  Derek Price  <derek@ximbiot.com>
27888
27889         * lib/gai_strerror.c: Include config.h when available.  Include
27890         getaddrinfo.h before other headers to test interface.
27891         Reported by Larry Jones <lawrence.jones@ugs.com>.
27892
27893 2005-09-12  Derek Price  <derek@ximbiot.com>
27894             Paul Eggert  <eggert@cs.ucla.edu>
27895
27896         * modules/glob (Files): Add glob-libc.h.
27897
27898 2005-09-12  Derek Price  <derek@ximbiot.com>
27899             Paul Eggert  <eggert@cs.ucla.edu>
27900
27901         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
27902         glob_.h, glob-libc.h.
27903         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
27904
27905 2005-09-12  Derek Price  <derek@ximbiot.com>
27906             Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
27909         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
27910         protecting things that should be done only in gnulib contexts.
27911         * lib/glob_.h: New file, containing only the glob things needed for
27912         gnulib.
27913         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
27914         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
27915         (glob, globfree, glob_pattern_p): Now defined simply in terms of
27916         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
27917         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
27918         and to respect the namespace rules better.
27919
27920 2005-09-08  Simon Josefsson  <jas@extundo.com>
27921
27922         * modules/socklen: New file.
27923
27924 2005-09-08  Simon Josefsson  <jas@extundo.com>
27925
27926         * m4/socklen.m4: New file.
27927
27928 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27929
27930         * modules/utimens (Files): Add m4/utimbuf.m4, since
27931         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
27932         Reported by Sergey Poznyakoff.
27933
27934 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27935
27936         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
27937         definitions, since that's the preferred style in glibc.
27938         Fix a minor spacing issue, and update copyright notice to match
27939         glibc's.
27940
27941 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27942
27943         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
27944
27945 2005-09-06  Simon Josefsson  <jas@extundo.com>
27946
27947         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
27948         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
27949
27950 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27951
27952         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
27953         warning.
27954
27955 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27956
27957         * config/srclist.txt: Add glibc bug 1302.
27958
27959 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27960
27961         Change bitset word type from unsigned int to unsigned long int,
27962         as this has better performance on typical 64-bit hosts.
27963         Port bitset code to hosts with unusual word sizes.
27964         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
27965         (build_collating_symbol):
27966         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
27967         argument is a bitset.  This is merely a style issue, but it makes
27968         it clearer that an entire array is expected.
27969         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
27970         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
27971         Port to the case where bitset_word is not the same as unsigned int.
27972         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27973         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
27974         Likewise.
27975         * lib/regexec.c (check_dst_limits_calc_pos_1,
27976         check_subexp_matching_top):
27977         (build_trtable, group_nodes_into_DFAstates):
27978         Likewise.
27979         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
27980         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
27981         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
27982         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
27983         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
27984         * lib/regcomp.c (optimize_subexps, lower_subexp):
27985         Work even if bitset_word has holes in its bitwise representation.
27986         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
27987         * lib/regexec.c (check_dst_limits_calc_pos_1,
27988         check_subexp_matching_top):
27989         Likewise.
27990         * lib/regex_internal.c (re_string_reconstruct):
27991         Don't assume UCHAR_MAX == 255.
27992         * lib/regex_internal.h (bitset_set_all): Likewise.
27993         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
27994         All uses changed.
27995         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
27996         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
27997         All uses changed.
27998         (BITSET_WORD_MAX): New macro.
27999         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
28000         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
28001         (bitset_empty, bitset_copy):
28002         Prefer sizeof (bitset) to multiplying it out ourselves.
28003         (bitset_not_merge): Remove; unused.
28004         (bitset_contain): Return bool, not unsigned int with one bit on.
28005         All callers changed.
28006         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
28007         alignment than re_node_set; do this by defining a new internal
28008         type struct dests_alloc and using it to allocate memory.
28009
28010 2005-09-05  Bruno Haible  <bruno@clisp.org>
28011
28012         * gnulib-tool (func_import): Fix comparison in handling of symbolic
28013         links.
28014
28015 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
28016
28017         * modules/size_max (Makefile.am): Add size_max.h
28018
28019 2005-09-04  Derek Price  <derek@ximbiot.com>
28020
28021         * gnulib-tool (func_import): Fix reversed $symbolic logic.
28022
28023 2005-09-03  Simon Josefsson  <jas@extundo.com>
28024
28025         * gnulib-tool: Fix typo.
28026
28027 2005-09-03  Simon Josefsson  <jas@extundo.com>
28028
28029         * config/srclist.txt: Add glibc bug 1293.
28030
28031 2005-09-03  Derek Price  <derek@ximbiot.com>
28032
28033         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
28034         From Larry Jones <lawrence.jones@ugs.com>.
28035
28036 2005-09-02  Simon Josefsson  <jas@extundo.com>
28037
28038         * modules/socklen: New file.
28039
28040 2005-09-02  Simon Josefsson  <jas@extundo.com>
28041
28042         * modules/havelib: New module.
28043
28044         * modules/gettext, modules/iconv, modules/lock, modules/readline:
28045         Use havelib.
28046
28047 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28048
28049         Check for arithmetic overflow when calculating sizes, to prevent
28050         some buffer-overflow issues.  These patches are conservative, in the
28051         sense that when I couldn't determine whether an overflow was possible,
28052         I inserted a run-time check.
28053         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
28054         macros.
28055         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
28056         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
28057         (re_xnrealloc, re_x2nrealloc): New inline functions.
28058         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
28059         parse_bracket_exp):
28060         (build_equiv_class, build_charclass): Check for arithmetic overflow
28061         in size expression calculations.
28062         * lib/regex_internal.c (re_string_realloc_buffers):
28063         (build_wcs_upper_buffer, re_node_set_add_intersect):
28064         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
28065         (re_dfa_add_node, register_state): Likewise.
28066         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
28067         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
28068         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
28069         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
28070
28071 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28072
28073         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
28074         m4/ulonglong.m4.  Problem reported by Martin Lambers.
28075
28076 2005-09-02  Bruno Haible  <bruno@clisp.org>
28077
28078         Support for lib vs. lib64 distinction on biarch platforms.
28079         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
28080         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
28081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
28082
28083 2005-09-02  Bruno Haible  <bruno@clisp.org>
28084
28085         * gnulib-tool (import): In the other first-use case, provide defaults
28086         as well.
28087
28088 2005-09-02  Bruno Haible  <bruno@clisp.org>
28089
28090         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
28091         patches not yet found in the latest gettext release.
28092
28093 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
28096         to avoid a collision with bits/local_lim.h in glibc.
28097         All uses changed.  Problem reported by Dmitry V. Levin in
28098         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
28099
28100         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
28101         bugs in int versus size_t comparisons.
28102         (re_string_context_at): Fix bug where the code assumed that
28103         Idx is signed.
28104
28105         Use bool where appropriate.
28106         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
28107         All callers changed.
28108         (calc_eclosure_iter): Likewise, for ROOT arg.
28109         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
28110         (build_charclass_op): Likewise, for NON_MATCH arg.
28111         * lib/regex_internal.c (re_string_allocate, re_string_construct):
28112         (re_string_construct_common): Likewise, for ICASE arg.
28113         * lib/regexec.c (re_search_2_stub, re_search_stub):
28114         Likewise, for RET_LEN arg.
28115         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
28116         (set_regs): Likewise, for FL_BACKTRACK arg.
28117         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
28118         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28119         (calc_eclosure_iter, parse_bracket_exp):
28120         Use bool for internal variables that are booleans.
28121         * lib/regexec.c (re_search_internal, check_matching,
28122         proceed_next_node):
28123         (set_regs, build_sifted_states, sift_states_bkref):
28124         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28125         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28126         (find_collation_sequence_value):
28127         Likewise.
28128         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28129         (re_node_set_compare):
28130         Return bool, not int. All callers changed.
28131         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28132         (build_trtable, check_node_accept): Likewise.
28133         * lib/regex_internal.h: Include stdbool.h.
28134
28135         Fix bugs uncovered when converting to bool.
28136         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28137         failure instead of charging ahead blindly.
28138         * lib/regex_internal.c (register_state): Likewise.
28139         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28140         for freeing internal storage.
28141         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28142         bitset pieces used as boolean, to avoid undefined behavior
28143         on hosts that do int overflow checking.
28144
28145 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         * config/srclist.txt: Add glibc bugs 1285-1287.
28148
28149 2005-09-01  Jim Meyering  <jim@meyering.net>
28150
28151         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28152         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28153         Require gl_STAT_MACROS, too.
28154
28155 2005-09-01  Bruno Haible  <bruno@clisp.org>
28156
28157         * gnulib-tool (import): In the first-use case, provide defaults.
28158
28159 2005-09-01  Bruno Haible  <bruno@clisp.org>
28160
28161         * gnulib-tool (func_import): Remove the .tmp files.
28162
28163 2005-09-01  Bruno Haible  <bruno@clisp.org>
28164
28165         * gnulib-tool (func_import): Fix handling of symbolic links.
28166
28167 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28168
28169         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28170         old glibc regex code mishandles strings longer than 2**31 bytes.
28171         This patch fixes this when the regex code is used in gnulib
28172         (i.e., outside glibc).
28173
28174         This patch should not affect the use of the regex code inside
28175         glibc.  No doubt this problem also needs to be handled for glibc
28176         as well, but the result will be an incompatible change to the
28177         glibc ABI, and the old ABI will have to be supported too.  That
28178         can be the the subject for another patch.
28179
28180         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28181         governing whether the rest of this patch is active.  By default,
28182         the macro is disabled and the patch has no effect.
28183         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28184         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28185         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28186         (re_match_2, re_set_registers): Use the new types.
28187         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28188         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28189         New macros.
28190         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28191         (re_string_context_at, bin_tree_t, re_dfastate_t):
28192         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28193         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28194         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28195         (re_string_char_size_at, re_string_wchar_at):
28196         (re_string_elem_size_at):
28197         Use the new types and macros to port to 64-bit hosts.
28198         Use unsigned types for internal values, so that the code
28199         mostly works even for arrays larger than SSIZE_MAX.
28200         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28201         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28202         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28203         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28204         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28205         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28206         (calc_inveclosure, parse_dup_op, build_range_exp):
28207         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28208         (fetch_number, create_token_tree, mark_opt_subexp):
28209         Likewise.
28210         * lib/regex_internal.c (re_string_construct_common,
28211         create_ci_newstate):
28212         (create_cd_newstate, re_string_allocate, re_string_construct):
28213         (re_string_realloc_buffers, build_wcs_upper_buffer):
28214         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28215         (re_string_reconstruct, re_string_peek_byte_case):
28216         (re_string_fetch_byte_case, re_string_context_at):
28217         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28218         (re_node_set_init_copy, re_node_set_add_intersect):
28219         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28220         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28221         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28222         (re_acquire_state, re_acquire_state_context, register_state):
28223         Likewise.
28224         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28225         search_cur_bkref_entry):
28226         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28227         (re_search_internal, re_search_2_stub, re_search_stub)
28228         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28229         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28230         (update_cur_sifted_state, check_dst_limits):
28231         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28232         (check_subexp_limits, sift_states_bkref, merge_state_array):
28233         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28234         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28235         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28236         (expand_bkref_cache, check_node_accept_bytes):
28237         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28238         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28239         (acquire_init_state_context, check_halt_node_context):
28240         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28241         (sift_states_backward, clean_state_log_if_needed):
28242         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28243         (find_recover_state, transit_state_sb, transit_state_mb):
28244         (transit_state_bkref, build_trtable, match_ctx_clean):
28245         Likewise.
28246         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28247         to work around an assumption that REG_MISSING is negative.
28248
28249         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28250         (seek_collating_symbol_entry) [defined _LIBC]:
28251         (lookup_collation_sequence_value) [defined _LIBC]:
28252         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28253         Use prototypes rather than old-style function definitions.
28254         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28255         (transit_state_sb) [0]:
28256         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28257
28258         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28259         rm_eo.
28260
28261         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28262         (optimize_subexps, lower_subexp):
28263         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28264         since the signed shift might overflow.  Use 1u<<31 instead.
28265         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28266         Likewise.
28267         * lib/regexec.c (check_dst_limits_calc_pos_1,
28268         check_subexp_matching_top): Likewise.
28269
28270         * lib/regcomp.c (optimize_subexps, lower_subexp):
28271         Use CHAR_BIT rather than 8, for clarity.
28272         * lib/regexec.c (check_dst_limits_calc_pos_1):
28273         (check_subexp_matching_top): Likewise.
28274         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28275         have to worry about portability issues when shifting it left.
28276         Remove no-longer-needed test for table_size > 0.
28277         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28278         in a word, as the resulting behavior is undefined.
28279         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28280         in one case, a <= should have been an <, and in another case the
28281         whole test was missing.
28282         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28283         the standard name CHAR_BIT.
28284         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28285         this is not true on one's complement and signed-magnitude hosts.
28286
28287         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28288         next_last_offset.
28289         (struct re_dfa_t): Remove unused member states_alloc.
28290         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28291
28292 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28293
28294         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28295         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28296         and large-file glibc and in 32-bit large-file Solaris.
28297
28298 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28299
28300         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28301         lengths fit in regoff_t; this isn't true if regoff_t is the same
28302         width as size_t.
28303         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28304         (= START + RANGE) instead of RANGE.  This avoids overflow
28305         problems when regoff_t is the same width as size_t.
28306         All callers changed.
28307         (re_search_2_stub): Check for overflow when adding the
28308         sizes of the two strings.
28309         (re_search_stub): Check for overflow when adding START
28310         to RANGE; if it occurs, substitute the extreme value.
28311
28312 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28313
28314         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28315
28316 2005-08-31  Jim Meyering  <jim@meyering.net>
28317
28318         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28319         a pointer-to-const.
28320         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28321         (register_state): Likewise.
28322         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28323         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28324         (group_nodes_into_DFAstates): Likewise.
28325
28326 2005-08-31  Jim Meyering  <jim@meyering.net>
28327
28328         * check-module: Add a FIXME comment.
28329
28330 2005-08-31  Eric Blake  <ebb9@byu.net>
28331
28332         * modules/unistd-safer (Files): Add unistd--.h.
28333         * modules/stdio-safer (Files): Add stdio--.h.
28334
28335 2005-08-31  Derek Price  <derek@ximbiot.com>
28336
28337         * lib/getdelim.c (getdelim): Return EOF on EOF.
28338         Reported by Larry Jones <lawrence.jones@ugs.com>.
28339
28340 2005-08-31  Bruno Haible  <bruno@clisp.org>
28341
28342         Avoid unnecessary diffs in the generated lib/Makefile.am.
28343         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28344         the generated files.
28345         (func_import): Don't set cmd.
28346
28347 2005-08-31  Bruno Haible  <bruno@clisp.org>
28348
28349         * lib/strstr.c: Include <stddef.h>, for NULL.
28350         * lib/strcasestr.c: Likewise.
28351         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28352
28353 2005-08-31  Bruno Haible  <bruno@clisp.org>
28354
28355         * gnulib-tool: New option --macro-prefix.
28356         (func_import): Use macro_prefix.
28357         (import): Handle option --macro-prefix.
28358
28359 2005-08-31  Bruno Haible  <bruno@clisp.org>
28360
28361         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28362         Also use new variables cached_lgpl, cached_libtool.
28363
28364 2005-08-31  Bruno Haible  <bruno@clisp.org>
28365
28366         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28367         always instantiating them.
28368
28369 2005-08-31  Bruno Haible  <bruno@clisp.org>
28370
28371         * gnulib-tool (func_import): Read the previous cached settings
28372         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28373         earlier added by gnulib but are now dropped. Warn when a gnulib file
28374         overwrites a non-gnulib file.
28375
28376 2005-08-31  Bruno Haible  <bruno@clisp.org>
28377
28378         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28379         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28380         projects that don't keep autogenerated files in CVS. Put into
28381         actioncmd only the specified modules, not the transitive closure.
28382
28383 2005-08-31  Bruno Haible  <bruno@clisp.org>
28384
28385         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28386         Create directories that shall be filled.
28387         (import): Don't look for gl_* macros in configure.ac. Recurse across
28388         all directories containing a gnulib-cache.m4 files, if meaningful.
28389
28390 2005-08-31  Bruno Haible  <bruno@clisp.org>
28391
28392         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28393         (import): Set seen_libtool when we see gl_LIBTOOL.
28394
28395 2005-08-31  Bruno Haible  <bruno@clisp.org>
28396
28397         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28398         declaration macro definitions from generated gnulib.m4.
28399
28400 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28401
28402         * lib/iconvme.h: Add prototype for iconv_alloc.
28403
28404 2005-08-29  Simon Josefsson  <jas@extundo.com>
28405
28406         * lib/iconvme.c: Fix errno.
28407
28408 2005-08-29  Bruno Haible  <bruno@clisp.org>
28409
28410         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28411         that it works when the directory contains spaces.
28412
28413 2005-08-29  Bruno Haible  <bruno@clisp.org>
28414
28415         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28416
28417 2005-08-29  Bruno Haible  <bruno@clisp.org>
28418
28419         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28420         Emit more advice.
28421
28422 2005-08-29  Bruno Haible  <bruno@clisp.org>
28423         and Stepan Kasal  <kasal@ucw.cz>
28424
28425         * check-module: If more parameters are given, check each of them
28426         separately; add more exceptions, as noted by Jim Meyering.
28427         (check_module): New procedure.
28428         (%exempt_header): Now contains all exceptions.
28429
28430 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28431
28432         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28433
28434 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28435
28436         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28437
28438 2005-08-28  Bruno Haible  <bruno@clisp.org>
28439
28440         * m4/gnulib-tool.m4: New file.
28441
28442 2005-08-27  Jim Meyering  <jim@meyering.net>
28443
28444         * modules/unistd-safer (Files): Add pipe-safer.c.
28445         * modules/fcntl-safer (Files): Add creat-safer.c.
28446
28447 2005-08-27  Jim Meyering  <jim@meyering.net>
28448
28449         * m4/stdlib-safer.m4: New file.  From coreutils.
28450         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28451         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28452         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28453         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28454         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28455
28456 2005-08-27  Jim Meyering  <jim@meyering.net>
28457
28458         * lib/fopen-safer.c: Merge minor changes from coreutils.
28459         * lib/dup-safer.c: Likewise.
28460         * lib/fd-safer.c: Likewise.
28461
28462         Merge from coreutils.
28463         * lib/stdio--.h: New file.
28464         * lib/stdlib--.h: New file.
28465         * lib/mkstemp-safer.c: New file.
28466
28467         GNU tar needs these.
28468         * lib/pipe-safer.c: New file.
28469         * lib/creat-safer.c: New file.
28470         * lib/fcntl--.h (creat): Define to creat_safer.
28471         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28472         * lib/unistd--.h (pipe): Define to pipe_safer.
28473         * lib/unistd-safer.h: Declare pipe_safer.
28474
28475 2005-08-26  Simon Josefsson  <jas@extundo.com>
28476
28477         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28478         Haible <bruno@clisp.org>.
28479
28480 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28481
28482         * lib/regex_internal.h: Remove all references to
28483         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28484         or better.
28485         (bitset_not, bitset_merge, bitset_not_merge):
28486         (bitset_mask, re_string_allocate, re_string_construct):
28487         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28488         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28489         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28490         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28491         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28492         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28493         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28494         (re_acquire_state_context):
28495         Remove unnecessary forward decls.
28496         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28497         Put __attribute at function definition,
28498         now that the function decl has been removed.
28499         * lib/regex_internal.c (re_string_peek_byte_case):
28500         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28501         Likewise.
28502
28503 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28504
28505         * m4/regex.m4: Add AC_PREREQ(2.50).
28506         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28507
28508 2005-08-25  Simon Josefsson  <jas@extundo.com>
28509
28510         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28511         __fsetlocking.
28512
28513 2005-08-25  Simon Josefsson  <jas@extundo.com>
28514
28515         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28516         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28517         GLIBC specific code.
28518
28519 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28520
28521         Make regex safe for g++.  This fixes one real bug (an "err"
28522         that should have been "*err").  g++ problem reported by
28523         Sam Steingold.
28524         * lib/regex_internal.h (re_calloc): New macro, consistent with
28525         re_malloc etc.  All callers of calloc changed to use re_calloc.
28526         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28527         not int.  All callers changed.
28528         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28529         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28530         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28531         (find_recover_state): Change "err" to "*err"; this fixes what
28532         appears to be a real bug.
28533         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28534         versus int.
28535
28536 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28537
28538         * modules/regex (Depends-on): Add malloc, since the code
28539         assumes that !malloc(0) means failure.
28540
28541 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28542
28543         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28544
28545         alloca modernization/simplification for regex.
28546         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28547         needs to be at the start of the file, and can be moved into
28548         regex_internal.h and simplified.
28549         * lib/regex_internal.h: Include <alloca.h>.
28550         (__libc_use_alloca) [!defined _LIBC]: New macro.
28551         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28552         now works outside glibc.
28553
28554 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28555
28556         * config/srclist.txt: Add glibc bugs 1241, 1245.
28557
28558 2005-08-25  Jim Meyering  <jim@meyering.net>
28559
28560         * lib/open-safer.c: Include <config.h>.
28561         Otherwise, we'd lose LARGEFILE support in any file using
28562         e.g. "fcntl--.h"
28563
28564 2005-08-25  Bruno Haible  <bruno@clisp.org>
28565
28566         * m4/minmax.m4: Require autoconf 2.52.
28567         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28568         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28569         alternatives of translit over the alphabet.
28570         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28571
28572 2005-08-24  Simon Josefsson  <jas@extundo.com>
28573
28574         * tests/test-getpass.c: New file.
28575
28576 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28577
28578         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28579         for GNU regex features.
28580
28581 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28582
28583         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28584         * lib/regex.h (regerror): Likewise.
28585
28586         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28587         requires this.  (The code never needed it.)
28588
28589         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28590         All uses of recently-renamed identifiers changed to use the new,
28591         POSIX-compliant names.  The code will build and run just fine
28592         without these changes, but it's better to eat our own dog food
28593         and use the standard-conforming names.
28594
28595         * lib/regex.h: Fix a multitude of POSIX name space violations.
28596         These changes have an effect only for programs that define
28597         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28598         do not change anything for programs compiled in the normal way.
28599         Also, there is no effect on the ABI.
28600
28601         (_REGEX_SOURCE): New macro.
28602         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28603         defined and _GNU_SOURCE is not; this fixes a name space violation.
28604
28605         Rename the following macros to obey POSIX requirements.
28606         The old names are still visible as macros if _REGEX_SOURCE is defined.
28607         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28608         RE_BACKSLASH_ESCAPE_IN_LISTS.
28609         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28610         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28611         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28612         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28613         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28614         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28615         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28616         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28617         (REG_INTERVALS): renamed from RE_INTERVALS.
28618         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28619         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28620         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28621         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28622         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28623         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28624         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28625         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28626         RE_UNMATCHED_RIGHT_PAREN_ORD.
28627         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28628         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28629         (REG_DEBUG): renamed from RE_DEBUG.
28630         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28631         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28632         unusual, since we can't clash with the POSIX REG_ICASE.
28633         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28634         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28635         (REG_NO_SUB): renamed from RE_NO_SUB.
28636         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28637         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28638         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28639         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28640         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28641         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28642         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28643         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28644         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28645         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28646         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28647         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28648         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28649         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28650         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28651         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28652         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28653         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28654         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28655         (REG_FIXED): Renamed from REGS_FIXED.
28656         (REG_NREGS): Renamed from RE_NREGS.
28657
28658         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28659         of other REG_* macros, since POSIX says the user is allowed to
28660         #undef these macros selectively.
28661
28662         (reg_errcode_t): Update comment stating what other tables need
28663         to be consistent.
28664
28665         Rename the following enum values to obey POSIX requirements.
28666         The old names are still visible as macros.
28667         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28668         is not defined, since GNU is supposed to be a superset of POSIX as
28669         much as possible, and since we want reg_errcode_t to be a signed
28670         type for implementation consistency.
28671         (_REG_NOERROR): Renamed from REG_NOERROR.
28672         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28673         (_REG_BADPAT): Renamed from REG_BADPAT.
28674         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28675         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28676         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28677         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28678         (_REG_EBRACK): Renamed from REG_EBRACK.
28679         (_REG_EPAREN): Renamed from REG_EPAREN.
28680         (_REG_EBRACE): Renamed from REG_EBRACE.
28681         (_REG_BADBR): Renamed from REG_BADBR.
28682         (_REG_ERANGE): Renamed from REG_ERANGE.
28683         (_REG_ESPACE): Renamed from REG_ESPACE.
28684         (_REG_BADRPT): Renamed from REG_BADRPT.
28685         (_REG_EEND): Renamed from REG_EEND.
28686         (_REG_ESIZE): Renamed from REG_ESIZE.
28687         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28688         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28689         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28690         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28691         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28692
28693         (_REG_RE_NAME, _REG_RM_NAME): New macros.
28694         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
28695         changed.  But support the old name if the new one is not defined
28696         and if _REGEX_SOURCE.
28697
28698         Change the following member names in struct re_pattern_buffer.
28699         The old names are still supported if !_REGEX_SOURCE.
28700         The new names are always supported, regardless of _REGEX_SOURCE.
28701         (re_buffer): Renamed from buffer.
28702         (re_allocated): Renamed from allocated.
28703         (re_used): Renamed from used.
28704         (re_syntax): Renamed from syntax.
28705         (re_fastmap): Renamed from fastmap.
28706         (re_translate): Renamed from translate.
28707         (re_can_be_null): Renamed from can_be_null.
28708         (re_regs_allocated): Renamed from regs_allocated.
28709         (re_fastmap_accurate): Renamed from fastmap_accurate.
28710         (re_no_sub): Renamed from no_sub.
28711         (re_not_bol): Renamed from not_bol.
28712         (re_not_eol): Renamed from not_eol.
28713         (re_newline_anchor): Renamed from newline_anchor.
28714
28715         Change the following member names in struct re_registers.
28716         The old names are still supported if !_REGEX_SOURCE.
28717         The new names are always supported, regardless of _REGEX_SOURCE.
28718         (rm_num_regs): Renamed from num_regs.
28719         (rm_start): Renamed from start.
28720         (rm_end): Renamed from end.
28721
28722         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
28723         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
28724         Prepend __ to parameter names.
28725
28726         Undo yesterday's changes.
28727
28728 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28729
28730         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
28731         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
28732         lib/regex.c.
28733
28734 2005-08-24  Jim Meyering  <jim@meyering.net>
28735
28736         Sync from coreutils.
28737         * m4/fcntl-safer.m4: New file.
28738
28739         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
28740         and object files for this module.
28741
28742 2005-08-24  Jim Meyering  <jim@meyering.net>
28743
28744         Sync from coreutils.
28745         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
28746
28747 2005-08-24  Jim Meyering  <jim@meyering.net>
28748
28749         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
28750         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
28751
28752 2005-08-24  Jim Meyering  <jim@meyering.net>
28753
28754         * modules/fcntl-safer: New module.
28755         * modules/fts (Depends-on): Add fcntl-safer.
28756         * MODULES.html.sh (File descriptor based Input/Output):
28757         Add fcntl-safer.
28758
28759 2005-08-24  Bruno Haible  <bruno@clisp.org>
28760
28761         Support for unit test modules.
28762         * modules/README: Mention tests modules.
28763         * modules/TEMPLATE-TESTS: New file.
28764         * gnulib-tool: New options --extract-tests-module, --with-tests and
28765         --tests-base (unused for the moment).
28766         (testsbase, inctests): New variables.
28767         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
28768         (func_verify_module): Exclude TEMPLATE-TESTS.
28769         (func_verify_nontests_module, func_verify_tests_module): New functions.
28770         (func_get_dependencies): Add implicit dependency for tests modules.
28771         (func_get_tests_module): New function.
28772         (func_modules_transitive_closure): When --with-tests was specified,
28773         include the unit tests as well, unless explicitly avoided.
28774         (func_emit_lib_Makefile_am): Ignore the tests modules here.
28775         (func_emit_tests_Makefile_am): New function.
28776         (func_create_testdir): When --with-tests was specified, emit a
28777         tests/ directory.
28778         * MODULES.html.sh (Future developments): Update.
28779
28780 2005-08-24  Bruno Haible  <bruno@clisp.org>
28781
28782         * modules/tls-tests: New file.
28783         * tests/test-tls.c: New file, from GNU gettext.
28784
28785 2005-08-24  Bruno Haible  <bruno@clisp.org>
28786
28787         * modules/lock-tests: New file.
28788         * tests/test-lock.c: New file, from GNU gettext.
28789
28790 2005-08-24  Bruno Haible  <bruno@clisp.org>
28791
28792         * lib/lock.h: Add multiple inclusion guard.
28793         * lib/tls.h: Add multiple inclusion guard.
28794
28795 2005-08-24  Bruno Haible  <bruno@clisp.org>
28796
28797         * gnulib-tool: Add support for the --aux-dir option to
28798         --create-testdir, --create-megatestdir, --test, --megatest.
28799         (func_create_testdir, func_create_megatestdir): Optionally emit a
28800         AC_CONFIG_AUX_DIR directive.
28801         (create-testdir, create-megatestdir, test, megatest): Provide a
28802         default value for $auxdir.
28803
28804 2005-08-24  Bruno Haible  <bruno@clisp.org>
28805
28806         * gnulib-tool (import): Use compound statement instead of subshell
28807         where possible.
28808
28809 2005-08-24  Bruno Haible  <bruno@clisp.org>
28810
28811         * gnulib-tool (import): Change --aux-dir default to "build-aux".
28812
28813 2005-08-24  Bruno Haible  <bruno@clisp.org>
28814
28815         * gnulib-tool (func_version): Update.
28816
28817 2005-08-24  Bruno Haible  <bruno@clisp.org>
28818
28819         * gnulib-tool (func_import, func_create_testdir,
28820         func_create_megatestdir): Quote all autoconf macro arguments.
28821
28822 2005-08-24  Bruno Haible  <bruno@clisp.org>
28823
28824         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
28825         option --force, because --force causes the aclocal.m4 of each
28826         subdirectory to be newer than the corresponding config.h.in.
28827
28828 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
28831         All contents moved to gl_REGEX.
28832         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
28833         assume that it does.
28834
28835 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28836
28837         * lib/regex.h (REG_NOSYS)
28838         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
28839         Define, since POSIX requires it as of 2001.
28840         (_REG_ENOSYS)
28841         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
28842         New private symbol, used to keep the enum signed in all cases.
28843         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
28844         Youngman in
28845         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
28846
28847         * lib/regex_internal.c (re_string_skip_chars, register_state):
28848         (calc_state_hash):
28849         Remove forward decls; no longer needed now that we use prototypes.
28850         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
28851         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
28852         (clean_state_log_if_needed): Likewise.
28853
28854 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28855
28856         * config/srclist.txt: Add glibc bugs 1231-1233.
28857
28858 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28859
28860         Fix problems reported by Sam Steingold in
28861         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
28862         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
28863         assumed that reg_errcode_t is a signed type, which is not
28864         necessarily true if _XOPEN_SOURCE is not defined.
28865         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
28866         since some compilers warn about it otherwise.
28867
28868 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28869
28870         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
28871         (init_word_char, create_initial_state, duplicate_node_closure):
28872         (fetch_token, peek_token_bracket, build_range_exp):
28873         (build_collating_symbol): Remove forward decls; no longer needed
28874         now that we use prototypes.
28875
28876         * lib/regcomp.c:
28877         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
28878         (re_compile_fastmap_iter, regcomp, regerror, regfree):
28879         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
28880         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
28881         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
28882         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
28883         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
28884         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
28885         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
28886         (build_range_exp, build_collating_symbol, parse_bracket_exp):
28887         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
28888         (build_charclass, build_charclass_op, fetch_number, create_tree):
28889         (create_token_tree, mark_opt_subexp, duplicate_tree):
28890         Use prototypes rather than old-style definitions.
28891
28892         * lib/regex_internal.c:
28893         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
28894         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
28895         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28896         (re_string_reconstruct, re_string_peek_byte_case):
28897         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
28898         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28899         (re_node_set_init_copy, re_node_set_add_intersect):
28900         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28901         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28902         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28903         (re_acquire_state, re_acquire_state_context, register_state):
28904         (create_ci_newstate, create_cd_newstate, free_state):
28905         Likewise.
28906         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
28907         re_search_2):
28908         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
28909         (re_search_internal, prune_impossible_nodes):
28910         (acquire_init_state_context, check_matching, static):
28911         (check_halt_node_context, check_halt_state_context, proceed_next_node):
28912         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
28913         (update_regs, sift_states_backward, build_sifted_states):
28914         (clean_state_log_if_needed, merge_state_array):
28915         (update_cur_sifted_state, add_epsilon_src_nodes):
28916         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
28917         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
28918         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
28919         (find_recover_state, check_subexp_matching_top, transit_state_mb):
28920         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
28921         (check_arrival, check_arrival_add_next_nodes):
28922         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28923         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28924         (check_node_accept_bytes, check_node_accept, extend_buffers):
28925         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
28926         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
28927         (sift_ctx_init):
28928         Likewise.
28929
28930         * lib/regex_internal.h:
28931         (re_string_allocate, re_string_construct, re_string_reconstruct):
28932         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
28933         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
28934         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
28935         (re_string_context_at, re_string_peek_byte_case):
28936         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
28937         is defined, since we now use prototypes always.
28938
28939         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
28940         C89 or better.  All uses removed.
28941
28942 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28943
28944         * config/srclist.txt: Add glibc bugs 1220-1227.
28945
28946 2005-08-20  Jim Meyering  <jim@meyering.net>
28947
28948         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
28949         of unused local, dfa.
28950
28951 2005-08-20  Bruno Haible  <bruno@clisp.org>
28952
28953         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
28954
28955 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28956
28957         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
28958         (re_node_set_insert_last, re_dfa_add_node):
28959         Rename local variables to avoid GCC shadowing warnings.
28960
28961 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28962
28963         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
28964         [defined lint]: Suppress bogus uninitialized-variable warnings.
28965
28966         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
28967         and let the caller return REG_ESPACE if out of space.  This
28968         removes an uninitialied-variable warning with GCC 4.0.1, and also
28969         avoids taking the address of a local variable.  All callers
28970         changed.
28971
28972 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28973
28974         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
28975         $LIBCSRC/posix/regexec.c.
28976         Add glibc bug 1217 for regcomp.c.
28977
28978 2005-08-19  Jim Meyering  <jim@meyering.net>
28979
28980         * lib/regexec.c (proceed_next_node): Redo local variables to
28981         avoid GCC shadowing warnings.
28982
28983 2005-08-18  Bruno Haible  <bruno@clisp.org>
28984
28985         * lib/strstr.c (strstr): Fix return value in multibyte case.
28986         * lib/strcasestr.c (strcasestr): Likewise.
28987
28988 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28989
28990         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
28991
28992 2005-08-17  Jim Meyering  <jim@meyering.net>
28993
28994         Make the %s format (seconds since the epoch) work for a negative
28995         number and when used with a zero-padded field width, e.g. %015s.
28996
28997         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
28998         label so that it precedes the code to set `digits'.  Otherwise,
28999         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
29000         print `00-22'.  Now, it prints `-0022', as it should.
29001
29002 2005-08-17  Bruno Haible  <bruno@clisp.org>
29003
29004         * modules/strstr (Files): Add m4/mbrtowc.m4.
29005         (Depends-on): Add mbuiter.
29006
29007 2005-08-17  Bruno Haible  <bruno@clisp.org>
29008
29009         * modules/strcasestr: New file.
29010         * MODULES.html.sh (String handling, based on ANSI C 89): Add
29011         strcasestr.
29012
29013 2005-08-17  Bruno Haible  <bruno@clisp.org>
29014
29015         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
29016
29017 2005-08-17  Bruno Haible  <bruno@clisp.org>
29018
29019         * modules/mbuiter: New file.
29020         * MODULES.html.sh (Extended multibyte and wide character utilities):
29021         Add mbuiter.
29022
29023 2005-08-17  Bruno Haible  <bruno@clisp.org>
29024
29025         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
29026         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
29027
29028 2005-08-17  Bruno Haible  <bruno@clisp.org>
29029
29030         * m4/strcasestr.m4: New file.
29031
29032 2005-08-17  Bruno Haible  <bruno@clisp.org>
29033
29034         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
29035         * lib/strstr.c: Completely rewritten, with multibyte locale support.
29036
29037 2005-08-17  Bruno Haible  <bruno@clisp.org>
29038
29039         * lib/strcasestr.h: New file.
29040         * lib/strcasestr.c: New file.
29041
29042 2005-08-17  Bruno Haible  <bruno@clisp.org>
29043
29044         * lib/strcasecmp.c: Use mbuiter.h.
29045
29046 2005-08-17  Bruno Haible  <bruno@clisp.org>
29047
29048         * lib/mbuiter.h: New file.
29049
29050 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
29051
29052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
29053         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
29054         and gl_GETOPT are both invoked via different paths (as happens
29055         with GNU tar CVS because it uses both argp and getopt), the former
29056         wins.
29057
29058 2005-08-16  Bruno Haible  <bruno@clisp.org>
29059
29060         * modules/tls: New file.
29061         * MODULES.html.sh (Multithreading): Add tls.
29062
29063 2005-08-16  Bruno Haible  <bruno@clisp.org>
29064
29065         * modules/strnlen1: New file.
29066         * MODULES.html.sh (String handling): Add strnlen1.
29067
29068 2005-08-16  Bruno Haible  <bruno@clisp.org>
29069
29070         * modules/strcase (Files): Add m4/mbrtowc.m4.
29071         (Depends-on): Add strnlen1, mbchar.
29072
29073 2005-08-16  Bruno Haible  <bruno@clisp.org>
29074
29075         * modules/mbiter: New file.
29076         * MODULES.html.sh (Extended multibyte and wide character utilities):
29077         Add mbiter.
29078
29079 2005-08-16  Bruno Haible  <bruno@clisp.org>
29080
29081         * modules/mbfile: New file.
29082         * MODULES.html.sh (Extended multibyte and wide character utilities):
29083         Add mbfile.
29084
29085 2005-08-16  Bruno Haible  <bruno@clisp.org>
29086
29087         * modules/mbchar: New file.
29088         * MODULES.html.sh (Extended multibyte and wide character utilities):
29089         New section.
29090
29091 2005-08-16  Bruno Haible  <bruno@clisp.org>
29092
29093         * m4/tls.m4: New file, from GNU gettext.
29094
29095 2005-08-16  Bruno Haible  <bruno@clisp.org>
29096
29097         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
29098         always.
29099         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
29100
29101 2005-08-16  Bruno Haible  <bruno@clisp.org>
29102
29103         * m4/mbiter.m4: New file.
29104
29105 2005-08-16  Bruno Haible  <bruno@clisp.org>
29106
29107         * m4/mbfile.m4: New file.
29108
29109 2005-08-16  Bruno Haible  <bruno@clisp.org>
29110
29111         * m4/mbchar.m4: New file.
29112
29113 2005-08-16  Bruno Haible  <bruno@clisp.org>
29114
29115         * lib/tls.h: New file, from GNU gettext.
29116         * lib/tls.c: New file, from GNU gettext.
29117
29118 2005-08-16  Bruno Haible  <bruno@clisp.org>
29119
29120         * lib/strnlen1.h: New file.
29121         * lib/strnlen1.c: New file.
29122
29123 2005-08-16  Bruno Haible  <bruno@clisp.org>
29124
29125         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29126         (mbi_init): Update.
29127         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29128         NUL byte, not after it.
29129
29130 2005-08-16  Bruno Haible  <bruno@clisp.org>
29131
29132         * lib/strcase.h (strcasecmp): Add note in comments.
29133         * lib/strncasecmp.c: Use code from strcasecmp.c.
29134         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29135         (strcasecmp): Work correctly in multibyte locales.
29136
29137 2005-08-16  Bruno Haible  <bruno@clisp.org>
29138
29139         * lib/mbiter.h: New file.
29140
29141 2005-08-16  Bruno Haible  <bruno@clisp.org>
29142
29143         * lib/mbfile.h: New file.
29144
29145 2005-08-16  Bruno Haible  <bruno@clisp.org>
29146
29147         * lib/mbchar.h: New file.
29148         * lib/mbchar.c: New file.
29149
29150 2005-08-16  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29153         the valid ones. Makes the comparison operations transitive:
29154         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29155         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29156
29157 2005-08-15  Simon Josefsson  <jas@extundo.com>
29158
29159         * modules/ssize_t (License): Change to 'unlimited'.
29160
29161         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29162
29163 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29164
29165         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29166         Add comments for each pending glibc patch.
29167
29168 2005-08-15  Bruno Haible  <bruno@clisp.org>
29169
29170         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29171         __cplusplus is defined.
29172
29173 2005-08-14  Jim Meyering  <jim@meyering.net>
29174
29175         Sync from coreutils.
29176
29177         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29178         Use the hash-table-based cycle-detection code not just when
29179         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29180         Reported by James Youngman in
29181         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29182         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29183         FTS_TIGHT_CYCLE_CHECK.
29184         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29185         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29186         once again.
29187         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29188         * lib/fts.c (fd_safer): Remove decl.
29189         Include fcntl--.h rather than unistd-safer.h
29190         (fts_safe_changedir): Don't call fd_safer; no longer needed
29191         now that we include fcntl--.h.
29192
29193 2005-08-12  Simon Josefsson  <jas@extundo.com>
29194
29195         * modules/getndelim2: Use ssize_t module.
29196         * modules/getnline: Likewise.
29197         * modules/safe-read: Likewise.
29198         * modules/xreadlink: Likewise.
29199
29200         * modules/ssize_t: New file.
29201
29202 2005-08-12  Simon Josefsson  <jas@extundo.com>
29203
29204         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29205
29206 2005-08-12  Simon Josefsson  <jas@extundo.com>
29207
29208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29209         ssize_t.
29210
29211 2005-08-12  Simon Josefsson  <jas@extundo.com>
29212
29213         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29214         readline, getdelim and check_version.
29215         (Support for systems lacking ISO C 99: Sizes of integer types):
29216         Add size_max.
29217
29218 2005-08-12  Bruno Haible  <bruno@clisp.org>
29219
29220         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29221
29222 2005-08-11  Simon Josefsson  <jas@extundo.com>
29223
29224         * modules/readline: New file.
29225
29226         * modules/strnlen (Files): Add strnlen.h.
29227
29228 2005-08-11  Simon Josefsson  <jas@extundo.com>
29229
29230         * m4/readline.m4: New file.
29231
29232 2005-08-11  Simon Josefsson  <jas@extundo.com>
29233
29234         * lib/readline.h, readline.c: New file.
29235
29236 2005-08-11  Simon Josefsson  <jas@extundo.com>
29237
29238         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29239         gl_AVOID.
29240
29241 2005-08-11  Bruno Haible  <bruno@clisp.org>
29242
29243         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29244
29245 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29246
29247         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29248
29249 2005-08-10  Simon Josefsson  <jas@extundo.com>
29250
29251         * tests/test-iconvme.c: New file.
29252
29253 2005-08-10  Simon Josefsson  <jas@extundo.com>
29254
29255         * m4/strnlen.m4: New file.
29256
29257         * m4/strndup.m4: Don't check for strnlen declaration, done in
29258         strnlen.m4.
29259
29260 2005-08-10  Simon Josefsson  <jas@extundo.com>
29261
29262         * lib/strndup.c: Use strnlen.h.
29263
29264         * lib/strnlen.h: New file.
29265
29266 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29267
29268         * README: Typos.
29269
29270 2005-08-02  Simon Josefsson  <jas@extundo.com>
29271
29272         * modules/readline: New file.
29273
29274 2005-08-02  Simon Josefsson  <jas@extundo.com>
29275
29276         * modules/getdelim: New file.
29277
29278         * modules/getline: Rewrite, don't use getndelim2.
29279
29280 2005-08-02  Simon Josefsson  <jas@extundo.com>
29281
29282         * m4/getline.m4: Separate out getdelim stuff into separate module.
29283
29284         * m4/getdelim.m4: New file.
29285
29286 2005-08-02  Simon Josefsson  <jas@extundo.com>
29287
29288         * lib/getline.h, getline.c: Rewrite.
29289
29290         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29291
29292 2005-07-31  Bruno Haible  <bruno@clisp.org>
29293
29294         * lib/lock.h (gl_lock_initializer): New macro.
29295         (gl_lock_define_initialized): Use it.
29296         (gl_rwlock_initializer): New macro.
29297         (gl_rwlock_define_initialized): Use it.
29298         (gl_recursive_lock_initializer): New macro.
29299         (gl_recursive_lock_define_initialized): Use it.
29300
29301 2005-07-30  Karl Berry  <karl@gnu.org>
29302
29303         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29304         Report from Ben Pfaff, regarding getopt.
29305
29306 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29309         normal way.
29310         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29311         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29312         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29313         (gl_GETOPT): Use the new macros.  Most of the implementation
29314         is moved to the new macros.  This is for programs like Emacs
29315         that don't want all the functionality of gl_GETOPT.
29316
29317 2005-07-26  Bruno Haible  <bruno@clisp.org>
29318
29319         * m4/lock.m4: Update from GNU gettext.
29320
29321 2005-07-26  Bruno Haible  <bruno@clisp.org>
29322
29323         * lib/lock.h: Update from GNU gettext.
29324         * lib/lock.c: Update from GNU gettext.
29325
29326 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29327
29328         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29329         obsolescent AC_TRY_RUN.  Include the default includes files, for
29330         'exit'.
29331
29332 2005-07-24  Bruno Haible  <bruno@clisp.org>
29333
29334         * modules/visibility: New file.
29335         * MODULES.html.sh (Misc): Add visibility.
29336
29337 2005-07-24  Bruno Haible  <bruno@clisp.org>
29338
29339         * m4/visibility.m4: New file.
29340
29341 2005-07-24  Bruno Haible  <bruno@clisp.org>
29342
29343         * doc/visibility.texi: New file.
29344
29345 2005-07-22  Bruno Haible  <bruno@clisp.org>
29346
29347         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29348         $(ALLOCA_H), redundant through BUILT_SOURCES.
29349         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29350         redundant through BUILT_SOURCES.
29351         * modules/byteswap (Makefile.am): Remove explicit dependency on
29352         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29353         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29354         $(FNMATCH_H), redundant through BUILT_SOURCES.
29355         * modules/getopt (Makefile.am): Remove explicit dependency on
29356         $(GETOPT_H), redundant through BUILT_SOURCES.
29357         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29358         redundant through BUILT_SOURCES.
29359         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29360         redundant through BUILT_SOURCES.
29361         * modules/stdbool (Makefile.am): Remove explicit dependency on
29362         $(STDBOOL_H), redundant through BUILT_SOURCES.
29363         * modules/stdint (Makefile.am): Remove explicit dependency on
29364         $(STDINT_H), redundant through BUILT_SOURCES.
29365         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29366         Remove explicit dependency on $(SYSEXITS_H).
29367         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29368
29369 2005-07-18  Simon Josefsson  <jas@extundo.com>
29370
29371         * lib/check-version.c (check_version): Accept identical versions too.
29372
29373 2005-07-18  Bruno Haible  <bruno@clisp.org>
29374
29375         * modules/lock: New file.
29376         * MODULES.html.sh (Multithreading): New section.
29377
29378 2005-07-18  Bruno Haible  <bruno@clisp.org>
29379
29380         * m4/lock.m4: New file, from GNU gettext.
29381
29382 2005-07-18  Bruno Haible  <bruno@clisp.org>
29383
29384         * lib/lock.h: New file, from GNU gettext.
29385         * lib/lock.c: New file, from GNU gettext.
29386
29387 2005-07-18  Bruno Haible  <bruno@clisp.org>
29388
29389         * lib/lock.h (gl_once_t): New type.
29390         (gl_once_define, gl_once): New macros.
29391         * lib/lock.c (fresh_once): New variable.
29392         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29393         functions.
29394
29395 2005-07-16  Simon Josefsson  <jas@extundo.com>
29396
29397         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29398         workaround, suggested by Bruno.
29399
29400 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29401
29402         * modules/xalloc (Depends-on): Add xalloc-die.
29403         * modules/xvasprintf (Depends-on): Add xalloc-die.
29404
29405 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29406
29407         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29408         with a minor change.
29409
29410 2005-07-15  Bruno Haible  <bruno@clisp.org>
29411
29412         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29413         When using lib/poll.c, define poll as rpl_poll.
29414
29415 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29416
29417         * modules/argp (Depends-on): Remove unlocked-io.
29418
29419 2005-07-14  Derek Price  <derek@ximbiot.com>
29420
29421         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29422         for glob symlink bug.
29423
29424 2005-07-14  Bruno Haible  <bruno@clisp.org>
29425
29426         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29427         Instead, test for *_unlocked function declarations directly.
29428
29429 2005-07-11  Simon Josefsson  <jas@extundo.com>
29430
29431         * modules/size_max: New file.
29432
29433         * modules/xsize: Depend on size_max module for size_max.m4.
29434
29435 2005-07-11  Simon Josefsson  <jas@extundo.com>
29436
29437         * lib/size_max.h: New file.
29438
29439 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29440
29441         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29442         copyright symbol and the year.
29443         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29444         (version_etc_va): Use parameterized copyright notice.
29445         Reword to conform to the current GNU coding standards.
29446
29447 2005-07-11  Karl Berry  <karl@gnu.org>
29448
29449         * doc/gnulib.texi (Quoting): new node.
29450         (Initial import): more info, from Patrice.
29451
29452 2005-07-11  Bruno Haible  <bruno@clisp.org>
29453
29454         * gnulib-tool (func_usage): Document option --avoid.
29455         (Command line options): Handle --avoid.
29456         (func_acceptable): New function.
29457         (func_modules_transitive_closure): Use it.
29458
29459 2005-07-11  Bruno Haible  <bruno@clisp.org>
29460
29461         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29462         Reported by Jim Meyering.
29463
29464 2005-07-10  Bruno Haible  <bruno@clisp.org>
29465
29466         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29467         Needed when size_t is smaller than 'unsigned int'.
29468         Reported by Paul Eggert.
29469
29470 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29471
29472         * modules/argp (Depends-on): Add unlocked-io
29473
29474 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29475
29476         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29477         block of defines.
29478
29479 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29480
29481         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29482         fix now.
29483
29484 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29485         and Paul Eggert  <eggert@cs.ucla.edu>
29486
29487         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29488         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29489
29490 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29491
29492         * modules/regex (Files): Add lib/regex_internal.c,
29493         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29494         (Depends-on): Add extensions.
29495         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29496
29497 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29498
29499         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29500         pathconf.
29501         * m4/same.m4 (gl_SAME): Likewise.
29502         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29503
29504         * m4/regex.m4: Adjust to new libc regex implementation.
29505         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29506         all the .c and .h parts of (the new) regex.
29507         Quote the m4 stuff better.
29508         Check for RE_ICASE bug of old gnulib.
29509         Check for REG_STARTEND of recent libc.
29510         Rename local variables from jm_* to gl_*.
29511         Quote operand of "test -f".
29512         Say "recent enough" version of libc, not "version 2".
29513         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29514         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29515         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29516         Remove check for btowc, isascii.
29517         Require AM_LANGINFO_CODESET.
29518
29519 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29520
29521         * lib/regex.c, regex.h: Sync from libc.
29522         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29523         * lib/regexec.c:
29524         New files, synced from libc, except that regex_internal.h
29525         currently has a small porting fix.
29526
29527 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29528
29529         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29530         regex_internal.c, regexec.c.
29531         Add regex_internal.h too, but as a comment, since the libc version
29532         is currently broken in gnulib mode.
29533
29534 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29535
29536         Support programs like Emacs that use gnulib but not gettext.
29537         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29538         * modules/gettext-h: New file.
29539         * modules/gettext (Files): Remove lib/gettext.h.
29540         (Depends-on): Add gettext-h.
29541         (Makefile.am): Remove lib_SOURCES.
29542         * modules/argmatch, modules/c-stack, modules/closeout:
29543         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29544         * modules/execute, modules/file-type, modules/getaddrinfo:
29545         * modules/getopt, modules/human, modules/javacomp:
29546         * modules/javaexec, modules/mkdir-p, modules/obstack:
29547         * modules/openat, modules/pagealign_alloc, modules/pipe:
29548         * modules/quotearg, modules/regex, modules/rpmatch:
29549         * modules/unicodeio, modules/userspec, modules/version-etc:
29550         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29551         * modules/xsetenv:
29552         Depend on gettext-h, not gettext.
29553
29554 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         * gnulib-tool (func_import): Add support for 'public domain' license.
29557         * modules/alloca, modules/atexit, modules/memmove:
29558         Now public domain, not GPL.
29559         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29560         * modules/realloc, modules/strerror, modules/strtod:
29561         Now LGPL, not GPL.
29562
29563 2005-07-05  Bruno Haible  <bruno@clisp.org>
29564
29565         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29566         autoconf CVS. Needed for mingw.
29567
29568 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29569
29570         Remove the dependency of the strftime module on the tzset module.
29571         * modules/strftime (Depends-on): Remove dependency on tzset.
29572
29573 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29574
29575         Remove the dependency of the strftime module on the tzset module.
29576         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29577         gl_FUNC_TZSET_CLOBBER.
29578
29579 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29580
29581         Remove the dependency of the strftime module on the tzset module.
29582         * lib/strftime.c (my_strftime)
29583         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29584         Copy the input structure, to work around some of the bug with
29585         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29586         Solaris releases, you should also use the tzset module, but we won't
29587         require it as a dependency any more since we don't want LGPLed code
29588         to depend on GPLed code.
29589
29590 2005-07-02  Jim Meyering  <jim@meyering.net>
29591
29592         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29593         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29594         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29595         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29596
29597 2005-07-02  Jim Meyering  <jim@meyering.net>
29598
29599         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29600
29601 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29602
29603         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29604         declares only 'struct timespec;' (!).
29605
29606 2005-07-01  Jim Meyering  <jim@meyering.net>
29607
29608         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29609         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29610         * lib/save-cwd.c, tempname.c:
29611         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29612         and don't include <sys/file.h>).
29613
29614 2005-06-29  Jim Meyering  <jim@meyering.net>
29615
29616         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29617         type name.  Use the variable name instead.
29618         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29619         Likewise.
29620
29621 2005-06-28  Simon Josefsson  <jas@extundo.com>
29622
29623         * modules/check-version (Files): Add check-version.m4.
29624
29625 2005-06-28  Simon Josefsson  <jas@extundo.com>
29626
29627         * m4/check-version.m4: New file, suggested by Jim Meyering
29628         <jim@meyering.net>.
29629
29630 2005-06-28  Simon Josefsson  <jas@extundo.com>
29631
29632         * lib/check-version.h, lib/check-version.c: New files.
29633
29634 2005-06-28  Simon Josefsson  <jas@extundo.com>
29635
29636         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29637         collision with global variable.  Better indentation.  Don't
29638         increment buffer pointer beyond buffer end.  Based on comments
29639         from Paul Eggert <eggert@cs.ucla.edu>.
29640
29641         * lib/base64.h: Indent.
29642
29643 2005-06-28  Simon Josefsson  <jas@extundo.com>
29644
29645         * doc/gnulib.texi (Library version handling): New section.
29646
29647 2005-06-28  Jim Meyering  <jim@meyering.net>
29648
29649         * check-module (find_included_lib_files): Hard-code another
29650         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29651         but modules/fts-lgpl (correctly) does not list those files.
29652
29653         * modules/canonicalize (Files): Add lib/pathmax.h.
29654
29655 2005-06-25  Simon Josefsson  <jas@extundo.com>
29656
29657         * modules/check-version: New file.
29658
29659 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29660
29661         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29662         initializer of struct addrinfo, as an indication that we don't
29663         care how many members the structure has.
29664
29665 2005-06-24  Derek Price  <derek@ximbiot.com>
29666         and Bruno Haible  <bruno@clisp.org>
29667
29668         Remove stat module & update lstat.
29669         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29670         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29671         * m4/stat.m4: Remove this file.
29672
29673 2005-06-24  Derek Price  <derek@ximbiot.com>
29674         and Bruno Haible  <bruno@clisp.org>
29675
29676         Remove stat module & update lstat.
29677         * lib/stat.c: Remove this file...
29678         (slash_aware_lstat): ...moving this content and its support...
29679         * lib/lstat.c (rpl_lstat): ...into here.
29680         * lib/lstat.h: New file.
29681
29682 2005-06-24  Derek Price  <derek@ximbiot.com>
29683         and Bruno Haible  <bruno@clisp.org>
29684
29685         Remove stat module & update lstat.
29686         * config/srclist.txt (libc sources): Remove stat.
29687
29688 2005-06-24  Derek Price  <derek@ximbiot.com>
29689         and Bruno Haible  <bruno@clisp.org>
29690
29691         Remove stat module & update lstat.
29692         * MODULES.html.sh (stat): Remove.
29693         * MODULES.html: Regenerated.
29694         * modules/lstat (Description): Correct function name.
29695         (Files): Add "lstat.h".
29696         (Depends-on): Remove stat, add xalloc, stat-macros.
29697         * modules/stat: Remove this file.
29698         (Include): Add "lstat.h", remove <sys/stat.h>.
29699
29700 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29701
29702         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
29703         (ranged_convert): Don't save conversion in a temporary struct.
29704         This causes a warning with GCC 4.0.0, and anyway in the typical
29705         case it's not worth the extra 100 bytes or so of code.
29706         (ranged_convert, __mktime_internal): When calling a function via a
29707         pointer P, use P () rather than (*P) (), as we now assume C89 or
29708         better.
29709
29710 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29711
29712         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29713         "who -r" failed to give output.  Problem reported by Tim Waugh.
29714
29715         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29716         (xcalloc): Use it to avoid needless tests.
29717         Problem reported by Jim Meyering.
29718
29719 2005-06-20  Derek Price  <derek@ximbiot.com>
29720
29721         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
29722         unnecessary for Autoconfs > 2.59c.
29723
29724 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29725
29726         * lib/argp.h (__option_is_short): Check upper limit of
29727         __key. Isprint() requires its argument to have the value
29728         of an unsigned char or EOF.
29729
29730 2005-06-16  Jim Meyering  <jim@meyering.net>
29731
29732         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
29733         when either N or S is zero.
29734
29735 2005-06-16  Derek Price  <derek@ximbiot.com>
29736
29737         * m4/bison.m4: Declare YACC & YFLAGS precious.
29738
29739 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
29740
29741         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
29742         multibyte string or pattern, fall back on unibyte matching.
29743         Problem reported by James Youngman.
29744
29745 2005-06-08  Bruno Haible  <bruno@clisp.org>
29746
29747         * modules/csharpcomp: New file.
29748         * MODULES.html.sh (C#): Add csharpcomp.
29749
29750 2005-06-08  Bruno Haible  <bruno@clisp.org>
29751
29752         * m4/csharpcomp.m4: New file, from GNU gettext.
29753
29754 2005-06-08  Bruno Haible  <bruno@clisp.org>
29755
29756         * lib/csharpcomp.h: New file, from GNU gettext.
29757         * lib/csharpcomp.c: New file, from GNU gettext.
29758         * lib/csharpcomp.sh.in: New file, from GNU gettext.
29759
29760 2005-06-08  Bruno Haible  <bruno@clisp.org>
29761
29762         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
29763         warning on mingw.
29764
29765 2005-06-07  Derek Price  <derek@ximbiot.com>
29766
29767         Sync from CVS.
29768         * lib/glob_.h: Indent nested #ifdef.
29769
29770 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29771
29772         Sync from coreutils.
29773         Use "file name" when talking about file names, instead of "filename"
29774         or "path", as per the GNU coding standards.
29775         * lib/mkdir-p.c: Renamed from makepath.c.
29776         (make_dir_parents): Renamed from make_path.  All callers changed.
29777         * lib/mkdir-p.h: Likewise.  All includers changed.
29778         * lib/filenamecat.c: Renamed from path-concat.c.
29779         (file_name_concat): Renamed from path_concat.  All callers changed.
29780         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
29781         * lib/filenamecat.h: Likewise.  All includers changed.
29782         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
29783         in comments or local variable names.
29784         * lib/basename.c: Likewise.
29785         * lib/canonicalize.c, canonicalize.h: Likewise.
29786         * lib/dirname.c, dirname.h: Likewise.
29787         * lib/euidaccess.c: Likewise.
29788         * lib/exclude.c: Likewise
29789         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
29790         * lib/fsusage.c, fsuage.h: Likewise.
29791         * lib/fts.c, fts_.h: Likewise.
29792         * lib/getcwd.c: Likewise.
29793         * lib/getloadavg.c: Likewise.
29794         * lib/mkstemp.c: Likewise.
29795         * lib/mountlist.c, mountlist.h: Likewise.
29796         * lib/openat.c, openat.h: Likewise.
29797         * lib/readlink-stub.c: Likewise.
29798         * lib/readutmp.c, readutmp.h: Likewise.
29799         * lib/rename.c: Likewise.
29800         * lib/rmdir.c: Likewise.
29801         * lib/same.c: Likewise.
29802         * lib/savedir.c: Likewise.
29803         * lib/stripslash.c: Likewise.
29804         * lib/tempname.c: Likewise.
29805         * lib/xreadlink.c: Likewise.
29806         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
29807         All uses changed.
29808         * lib/exclude.h: Likewise.
29809
29810         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
29811         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29812         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
29813         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29814         * lib/pathmax.h: Include <limits.h> unconditionally, since other
29815         files have been getting away with it for years (MORE/BSD 4.3
29816         is extinct now).
29817         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
29818         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29819
29820         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
29821         Define to 256, not 255, as per modern POSIX.
29822
29823 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29824
29825         Sync from coreutils.
29826         Use "file name" when talking about file names, instead of "filename"
29827         or "path", as per the GNU coding standards.
29828         * MODULES.html.sh: mkdir-p renamed from makepath.
29829         filenamecat renamed from path-concat.
29830         * modules/filenamecat: Renamed from modules/path-concat.
29831         (Files): filenamecat.h and filenamecat.c renamed from
29832         path-concat.h and path-concat.c.
29833         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
29834         (Include): filenamecat.h, not path-concat.h.
29835         * modules/mkdir-p: Renamed from modules/makepath.
29836         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
29837         makepath.c.
29838         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
29839         (Include): mkdir-p.h, not makepath.h.
29840
29841 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29842
29843         Sync from coreutils.
29844         * m4/mkdir-p.m4: Renamed from makepath.m4.
29845         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
29846         Rename files from makepath.c to mkdir-p.c, and from
29847         makepath.h to mkdir-p.h.
29848         * m4/filenamecat.m4: Renamed from path-concat.m4.
29849         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
29850         Rename files from path-concat.c to filenamecat.c,
29851         and from path-concat.h to filenamecat.h.
29852         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
29853         "file name" in local variables or comments.
29854         * m4/rename.m4: Likewise.
29855
29856 2005-06-01  Bruno Haible  <bruno@clisp.org>
29857
29858         * modules/csharpexec: New file.
29859         * MODULES.html.sh (C#): New section.
29860
29861 2005-06-01  Bruno Haible  <bruno@clisp.org>
29862
29863         * m4/csharp.m4: New file, from GNU gettext.
29864         * m4/csharpexec.m4: New file, from GNU gettext.
29865
29866 2005-06-01  Bruno Haible  <bruno@clisp.org>
29867
29868         * lib/csharpexec.h: New file, from GNU gettext.
29869         * lib/csharpexec.c: New file, from GNU gettext.
29870         * lib/csharpexec.sh.in: New file, from GNU gettext.
29871
29872 2005-05-31  Derek Price  <derek@ximbiot.com>
29873             Paul Eggert  <eggert@cs.ucla.edu>
29874
29875         Sync from cvs.
29876         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29877
29878 2005-05-31  Derek Price  <derek@ximbiot.com>
29879             Paul Eggert  <eggert@cs.ucla.edu>
29880
29881         Sync from cvs.
29882         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29883
29884 2005-05-29  Derek Price  <derek@ximbiot.com>
29885
29886         * config/srclist.txt (glob_.h, glob.c): Add these files.
29887
29888 2005-05-29  Derek Price  <derek@ximbiot.com>
29889
29890         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
29891         * modules/glob: New file.
29892         * modules/getlogin_r: Add link to POSIX spec in description.
29893
29894 2005-05-29  Derek Price  <derek@ximbiot.com>
29895             Paul Eggert  <eggert@cs.ucla.edu>
29896
29897         * m4/glob.m4: New file.
29898
29899 2005-05-29  Derek Price  <derek@ximbiot.com>
29900             Paul Eggert  <eggert@cs.ucla.edu>
29901
29902         * lib/glob_.h, lib/glob.c: New files.
29903
29904 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29905
29906         * modules/fts (Files): Remove m4/inttypes-pri.m4.
29907         * modules/fts-lgpl (Depends-on): Remove gettext.
29908
29909 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29910
29911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
29912         and don't require gt_INTTYPES_PRI.
29913
29914 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29915
29916         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
29917
29918         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
29919         the configuration hassle isn't worth it.
29920         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
29921         (LONGEST_MODIFIER, PRIuMAX): Remove.
29922
29923 2005-05-27  Bruno Haible  <bruno@clisp.org>
29924
29925         * lib/getlogin_r.h: Remove second include of <stddef.h>.
29926
29927 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
29928
29929         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
29930         _POSIX_PTHREAD_SEMANTICS for Solaris.
29931
29932 2005-05-25  Derek Price  <derek@ximbiot.com>
29933
29934         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
29935
29936 2005-05-25  Derek Price  <derek@ximbiot.com>
29937             Paul Eggert  <eggert@cs.ucla.edu>
29938
29939         * modules/getlogin_r, m4/getlogin_r.m4: New files.
29940         * lib/getlogin_r.c, getlogin_r.h: New files.
29941
29942 2005-05-25  Bruno Haible  <bruno@clisp.org>
29943             Derek Price  <derek@ximbiot.com>
29944
29945         * lib/getlogin_r.h: Simplify API documentation.
29946
29947 2005-05-23  Derek Price  <derek@ximbiot.com>
29948
29949         * modules/minmax (Files): Add m4/minmax.m4.
29950         (configure.ac): Add gl_MINMAX.
29951
29952 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29953
29954         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
29955         so that unistd-safer.h (GPL'ed code) need not be included.
29956
29957 2005-05-22  Bruno Haible  <bruno@clisp.org>
29958
29959         * m4/minmax.m4: New file.
29960         Based on a patch by Derek Price <derek@ximbiot.com>.
29961
29962 2005-05-22  Bruno Haible  <bruno@clisp.org>
29963
29964         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
29965         (INT64_MIN): Fix definition.
29966         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
29967
29968         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
29969         NEED_SIGNED_INT_TYPES.
29970
29971         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
29972         HAVE_SYSTEM_INTTYPES.
29973
29974 2005-05-22  Bruno Haible  <bruno@clisp.org>
29975
29976         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
29977         Also include <sys/param.h> if it defines MIN, MAX.
29978         Based on a patch by Derek Price <derek@ximbiot.com>.
29979
29980 2005-05-21  Jim Meyering  <jim@meyering.net>
29981
29982         * modules/fts (Files): Add m4/inttypes-pri.m4.
29983         (Depends-on): Add lstat and remove gettext.  Alphabetize.
29984
29985 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29986
29987         New fts module.
29988         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
29989         (setup_dir, free_dir): New functions.
29990         (enter_dir, leave_dir): Define trivial
29991         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
29992         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
29993         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
29994         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
29995         Move to fts-cycle.c.
29996         (fts_open): Use setup_dir.
29997         (fts_close): Use free_dir.
29998         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
29999         This adds a label and some gotos, but the alternatives were messier.
30000         Check for memory allocation failure when entering a dir.
30001         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
30002         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
30003         (FTS): New member fts_cycle, that is a union that contains the
30004         old active_dir_ht and cycle_state.  All uses changed to mention
30005         fts_cycle.ht and fts_cycle.state.
30006         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
30007         fts.c, with the following changes:
30008         (setup_dir, free_dir): New functions.
30009         (enter_dir): Now returns bool.  Return true if successful, false
30010         if memory exhausted.  All callers changed.
30011         Do not bother partly cleaning up on
30012         memory allocation failure; that is free_dir's job.
30013         However, free ad if hash_insert fails, to avoid memory leak.
30014         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
30015         fts->fts_options to see which union member to use.
30016
30017 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30018
30019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
30020         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
30021
30022 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30023
30024         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
30025
30026 2005-05-20  Jim Meyering  <jim@meyering.net>
30027
30028         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
30029         Now a macro, to pacify GCC.
30030
30031 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30032
30033         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
30034         of -1.
30035
30036 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
30037
30038         * lib/chown.c (rpl_chown): Return -1 on failure.
30039
30040 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30041
30042         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
30043         Don't check for stddef.h.
30044         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
30045         don't use its results.
30046         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
30047         since we include them unconditionally.  Don't require
30048         AM_STDBOOL_H, since stdbool is a prerequisite.
30049         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
30050         since we assume C89 or better.
30051         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
30052         as we don't use their results.
30053         Don't check for fchdir, memmove, memset, strrchr, as we use
30054         them unconditionally.
30055         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
30056         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
30057
30058 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30059
30060         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
30061         Include <stddef.h> unconditionally, since we assume C89 now.
30062         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
30063         * lib/fts.c: Include fts_.h first, to check interface.
30064         Do not include intprops.h; no longer needed.
30065         Include cycle-check.h and hash.h, since fts_.h no longer does.
30066         Remove unnecessary casts of closedir to void.
30067         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
30068         decide whether to decrement nlinks.
30069         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
30070         (FTS): Use struct hash_table * instead of Hash_table, so that
30071         we no longer need to include hash.h here.
30072
30073 2005-05-18  Jim Meyering  <jim@meyering.net>
30074
30075         * modules/dirfd (License): Change to LGPL.  Most of the code
30076         is already in the public domain.
30077
30078 2005-05-18  Jim Meyering  <jim@meyering.net>
30079
30080         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
30081         Reported by Yoann Vandoorselaere.
30082
30083 2005-05-17  Jim Meyering  <jim@meyering.net>
30084
30085         * m4/fts.m4: New file, from coreutils.
30086
30087 2005-05-17  Jim Meyering  <jim@meyering.net>
30088
30089         * lib/fts.c, lib/fts_.h: New files, from coreutils.
30090
30091 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30092
30093         Sync from coreutils.
30094         * m4/unlinkdir.m4: New file.
30095
30096 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30097
30098         Sync from coreutils.
30099         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
30100         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
30101         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
30102         White space changes only.
30103         * lib/makepath.c (make_path): Port to hosts where leading "//" is
30104         special.
30105         * lib/yesno.c: Include getline.h, not ctype.h.
30106         (yesno): Don't remove leading white space; POSIX doesn't allow it.
30107         Use getline to remove arbitrary restriction on response length.
30108
30109 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
30110
30111         * config/srclist-update: Spell out "Street" in FSF postal
30112         mail address; this is the style the FSF seems to prefer.
30113
30114         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
30115         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
30116         this updates FSF postal mail address.
30117
30118         Sync from coreutils.
30119         * modules/unlinkdir: New file.
30120         * modules/yesno (Depends-on): Add getline.
30121         * MODULES.html.sh (File system functions): Add unlinkdir.
30122
30123 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30124
30125         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30126         lib/strsep.h:
30127         Change the initial comment to refer to GPL, not LGPL.
30128         gnulib-tool will change it to LGPL as needed.
30129
30130         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30131         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30132         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30133         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30134         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30135         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30136         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30137         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30138         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30139         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30140         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30141         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30142         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30143         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30144         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30145         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30146         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30147         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30148         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30149         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30150         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30151         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30152         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30153         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30154         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30155         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30156         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30157         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30158         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30159         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30160         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30161         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30162         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30163         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30164         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30165         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30166         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30167         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30168         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30169         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30170         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30171         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30172         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30173         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30174         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30175         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30176         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30177         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30178         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30179         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30180         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30181         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30182         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30183         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30184         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30185         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30186         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30187         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30188         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30189         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30190         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30191         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30192         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30193         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30194         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30195         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30196         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30197         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30198         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30199         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30200         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30201         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30202         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30203         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30204         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30205         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30206         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30207         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30208         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30209         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30210         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30211         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30212         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30213         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30214         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30215         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30216         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30217         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30218         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30219         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30220         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30221         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30222         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30223         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30224         lib/yesno.c, lib/yesno.h:
30225         Update FSF postal mail address.
30226
30227 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30228
30229         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30230         tests/test-memmem.c, tests/test-stpncpy.c:
30231         Update FSF postal mail address.
30232
30233 2005-05-13  Bruno Haible  <bruno@clisp.org>
30234
30235         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30236         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30237         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30238         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30239         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30240         Add support for 64-bit integers in the MSVC compiler.
30241
30242 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30243
30244         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30245
30246 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30247
30248         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30249
30250 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30251
30252         * doc/getdate.texi (General date syntax): Don't say that date
30253         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30254         Problem reported by Nic Ferrier.
30255
30256 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30257
30258         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30259         specified in ai_socktype. Fix invalid ai_protocol
30260         check. ai_protocol is usually set to 0 or depending on
30261         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30262         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30263         ai_socktype / ai_protocol in the returned addrinfo structure.
30264
30265 2005-05-10  Simon Josefsson  <jas@extundo.com>
30266
30267         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30268         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30269
30270 2005-05-10  Karl Berry  <karl@gnu.org>
30271
30272         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30273         (from http://www.gnu.org/licenses).
30274         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30275         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30276         fdl.texi suffices.
30277
30278 2005-05-10  Karl Berry  <karl@gnu.org>
30279
30280         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30281         (COPYING.DOC): remove.
30282
30283         * config/srclist-update: new FSF address.
30284
30285 2005-05-10  Derek Price  <derek@ximbiot.com>
30286
30287         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30288         possible.
30289
30290 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30291             Bruno Haible  <bruno@clisp.org>
30292
30293         * modules/inet_ntop: New file.
30294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30295         inet_ntop.
30296
30297 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30298             Bruno Haible  <bruno@clisp.org>
30299
30300         * m4/inet_ntop.m4: New file.
30301
30302 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30303             Bruno Haible  <bruno@clisp.org>
30304
30305         * lib/inet_ntop.h: New file.
30306         * lib/inet_ntop.c: New file, from glibc with modifications.
30307
30308 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30309
30310         * modules/time_r (License): Change to LGPL.
30311         * modules/extensions (License): Change to LGPL.  Actually,
30312         the license is more permissive than that, but currently gnulib-tool
30313         doesn't know how to handle more-permissive licenses.
30314
30315         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30316         Problem reported by Dave Love.
30317
30318 2005-05-08  Jim Meyering  <jim@meyering.net>
30319
30320         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30321         blank.
30322
30323 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30324
30325         * modules/argmatch (Depends-on): Add stdbool.
30326         * modules/backupfile (Depends-on): Likewise.
30327         * modules/chdir-long (Depends-on): Likewise.
30328         * modules/closeout (Depends-on): Likewise.
30329         * modules/cycle-check (Depends-on): Likewise.
30330         * modules/dirname (Depends-on): Likewise.
30331         * modules/fnmatch (Depends-on): Likewise.
30332         * modules/fsusage (Depends-on): Likewise.
30333         * modules/fwriteerror (Depends-on): Likewise.
30334         * modules/getcwd (Depends-on): Likewise.
30335         * modules/getloadavg (Depends-on): Likewise.
30336         * modules/hard-locale (Depends-on): Likewise.
30337         * modules/makepath (Depends-on): Likewise.
30338         * modules/mountlist (Depends-on): Likewise.
30339         * modules/nanosleep (Depends-on): Likewise.
30340         * modules/posixtm (Depends-on): Likewise.
30341         * modules/quotearg (Depends-on): Likewise.
30342         * modules/readtokens (Depends-on): Likewise.
30343         * modules/readtokens0 (Depends-on): Likewise.
30344         * modules/readutmp (Depends-on): Likewise.
30345         * modules/save-cwd (Depends-on): Likewise.
30346         * modules/strftime (Depends-on): Likewise.
30347         * modules/userspec (Depends-on): Likewise.
30348         * modules/utimecmp (Depends-on): Likewise.
30349         * modules/xgetcwd (Depends-on): Likewise.
30350         * modules/xnanosleep (Depends-on): Likewise.
30351         * modules/xstrtod (Depends-on): Likewise.
30352         * modules/yesno (Depends-on): Likewise.
30353
30354 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30355
30356         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30357         needless checks.
30358
30359 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30360
30361         Merge from coreutils.  Among other things,
30362         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30363         * lib/fd-safer.c: New file.
30364         * lib/fcntl-safer.h, open-safer.c: Remove.
30365         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30366         * lib/dup-safer.c: Include unistd-safer.h first.
30367         Don't include errno.h.
30368         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30369         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30370         * lib/file-type.c: Rely on file-type.h change.
30371         * lib/getloadavg.c: Include unistd-safer.h.
30372         (getloadavg): Use safer open.
30373         * lib/getusershell.c: Include "stdio-safer.h".
30374         (getusershell): Use safer fopen.
30375         * lib/long-options.c (long_options): Use NULL rather than 0.
30376         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30377         'free'.
30378         * lib/modechange.c: Likewise.
30379         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30380         (MODE_DONE): New constant.
30381         (struct mode_change): Remove 'next' member.
30382         (make_node_op_equals): New function; like the old one of the
30383         same name, except it allocates an array.
30384         (mode_compile, mode_create_from_ref): Use it.
30385         (mode_compile): Allocate result as an array, not a linked list.
30386         Parse octal string ourself, so that we catch mistakes like "+0".
30387         (mode_adjust): Arg is an array, not a linked list.
30388         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30389         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30390         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30391         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30392         Remove.  This is now stat-macros.h's job.
30393         (talloc): Remove.  All callers replaced by xalloc, so that
30394         our invokers don't have to worry about reporting memory failures.
30395         (make_node_op_equals): Remove.
30396         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30397         New constants.
30398         (struct mode_change): Moved here from modechange.h.
30399         (mode_append_entry): Remove.
30400         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30401         apps to have incorrect behavior.  Use simpler algorithm for head
30402         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30403         Detect more invalid usages rather than having somewhat-random behavior.
30404         Don't insert an "a=" action, as that leads to incorrect behavior.
30405         (mode_compile, mode_create_from_ref): Return NULL on error instead
30406         of an enum, since now there's only one way to have an error.  All
30407         callers changed.
30408         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30409         at the correct time.  Simplify calculation of "+u" and its ilk.
30410         Don't mishandle "+X".
30411         (mode_free): Remove "register" and localize decls.
30412         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30413         (struct mode_change): Move to modechange.c; callers don't
30414         need to see this stuff.
30415         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30416         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30417         (mode_change, mode_adjust): Reflect the new signatures noted above.
30418         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30419         that might redefine system include files.
30420         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30421         (my_usleep): Use NULL rather than (void *) 0.
30422         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30423         Use siginterrupt to specify that system calls should be interrupted.
30424         (rpl_nanosleep): Move initialization of suspended closer to call of
30425         my_usleep.
30426         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30427         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30428         (desirable_utmp_entry): New function.
30429         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30430         using x2nrealloc, to simplify logic.
30431         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30432         size calculation.  Do not assume utmp file is a regular file.
30433         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30434         (READ_UTMP_CHECK_PIDS): New constant.
30435         * lib/save-cwd.c: Include unistd-safer.h.
30436         (save_cwd): Use fd_safer.
30437         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30438         [!_LIBC] Include "stat-macros.h" instead.
30439         * lib/unistd-safer.h (fd_safer): New decl.
30440
30441 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30442
30443         * modules/getloadavg (Depends-on): Add unistd-safer.
30444         * modules/getusershell (Depends-on): Add stdio-safer.
30445         * modules/lstat (Depends-on): Remove xalloc.
30446         * modules/mkstemp (Depends-on): Add stat-macros.
30447         * modules/modechange (Depends-on): Remove xstrtol.
30448         Add stat-macros, xalloc.
30449         * modules/save-cwd (Depends-on): Add unistd-safer.
30450         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30451         * modules/unistd-safer (Files): Add lib/fd-safer.c
30452         (Makefile.am): Remove lib_SOURCES.
30453
30454         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30455         Remove fcntl-safer; unistd-safer supersedes it.
30456
30457 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30458
30459         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30460         AC_HEADER_STAT.
30461         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30462         (gl_PREREQ_CHOWN): Remove.
30463         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30464         it.  Don't require AC_HEADER_STAT.
30465         (gl_PREREQ_LSTAT): Remove.
30466         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30467         Don't require AC_HEADER_STAT.
30468         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30469         (gl_PREREQ_RMDIR): Remove.
30470         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30471         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30472         the stat-macros module a prerequisite.
30473         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30474         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30475         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30476         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30477         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30478         variable names.
30479         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30480         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30481         variable prefixes.
30482         * m4/fcntl-safer.m4: Remove.
30483         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30484         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30485         Invoke gl_PREREQ_FD_SAFER.
30486         (gl_PREREQ_FD_SAFER): New macro.
30487         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30488         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30489         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30490         Remove duplicate call to AC_LIBOBJ(readutmp).
30491         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30492
30493         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30494         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30495
30496 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30497
30498         * MODULES.html.sh (Misc): Add byteswap.
30499
30500 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30501
30502         * modules/getcwd (Depends-on): Add extensions.
30503         * modules/openat (Depends-on): Likewise.
30504
30505 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30506
30507         * modules/byteswap: New file.
30508
30509 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30510
30511         * m4/byteswap.m4: New file.
30512
30513 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30514
30515         * lib/byteswap_.h: New file.
30516
30517 2005-04-25  Karl Berry  <karl@gnu.org>
30518
30519         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30520
30521 2005-04-25  Albert Chin  <china@thewrittenword.com>
30522
30523         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30524         Toolkit C bug.
30525
30526 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30527
30528         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30529         (func_ln_if_changed) Remove forcibly for no error message
30530         in case file does not exist.
30531
30532 2005-04-19  Simon Josefsson  <jas@extundo.com>
30533
30534         * gnulib-tool (Options): Make --symlink mean --symbolic.
30535
30536 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30537
30538         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30539
30540 2005-04-16  Simon Josefsson  <jas@extundo.com>
30541
30542         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30543
30544 2005-04-15  Simon Josefsson  <jas@extundo.com>
30545
30546         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30547
30548 2005-04-15  Simon Josefsson  <jas@extundo.com>
30549
30550         * gnulib-tool: Rename --symlink to --symbolic.
30551
30552 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30553
30554         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30555         symbolic links to files instead of copying/moving.  Add --aux-dir,
30556         specifying directory relative --dir where auxiliary build tools
30557         are placed.
30558
30559 2005-04-14  Bruno Haible  <bruno@clisp.org>
30560
30561         * modules/allocsa (License): Change to LGPL.
30562         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30563
30564 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30565
30566         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30567         that "UTC +1 second" continues to work.  Problem reported
30568         by Dmitry V. Levin.
30569         (relunit_snumber): New rule.
30570         (relunit): Use it.
30571
30572 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30573
30574         * lib/getdate.y (universal_time_zone_table): New constant.
30575         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30576         universal_time_zone_table.
30577         (lookup_zone): Prefer universal_time_zone_table to
30578         local_time_zone_table, so that "GMT" time stamps are allowed in
30579         London during the summer.  Problem reported by Ian Abbott.
30580
30581 2005-04-12  Jim Meyering  <jim@meyering.net>
30582
30583         * lib/human.c (humblock): Set *options even when returning due to
30584         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30585         warning from gcc-4.
30586
30587 2005-04-09  Jim Meyering  <jim@meyering.net>
30588
30589         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30590         -Wuninitialized: initialize tm0.tm_year.
30591
30592 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30593
30594         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30595         count, since there's no maximum.  All uses changed.
30596         Add member dsts_seen.
30597         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30598         not being INT_MAX.
30599         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30600         Use pc_rels_seen to decide whther a date is absolute.
30601
30602         * lib/getdate.y (number): Don't overwrite year.
30603         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30604         check.
30605
30606 2005-04-02  Simon Josefsson  <jas@extundo.com>
30607
30608         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30609         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30610
30611 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30612
30613         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30614         where no absolute path name can be longer than PATH_MAX.
30615
30616 2005-03-27  Jim Meyering  <jim@meyering.net>
30617
30618         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30619
30620 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30621
30622         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30623         "one's complement" -> "ones' complement" in comment, as per Knuth.
30624         "value of type" -> "type or expression" in comment.
30625         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30626
30627 2005-03-26  Jim Meyering  <jim@meyering.net>
30628
30629         Comment nits.
30630         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30631         Correct typos: s/or/of/.
30632
30633 2005-03-26  Jim Meyering  <jim@meyering.net>
30634
30635         * modules/check-include-files: Move to ../ and rename to...
30636         * check-module: ...this.
30637
30638 2005-03-25  Jim Meyering  <jim@meyering.net>
30639
30640         * modules/xvasprintf (Files): Add xalloc.h.
30641
30642 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30643
30644         * modules/gettext (Files): config/config.rpath ->
30645         build-aux/config.rpath
30646         * modules/iconv (Files): Likewise.
30647         Problem reported by Oskar Liljeblad.
30648
30649 2005-03-23  Jim Meyering  <jim@meyering.net>
30650
30651         * modules/check-include-files: New script to check for
30652         missing dependencies, multiple includes, etc.
30653
30654         * modules/c-strtold (Depends-on): Add xalloc.
30655         * modules/c-strtod (Depends-on): Add xalloc.
30656         * modules/hash (Depends-on): Add xalloc.
30657         (Files): Remove lib/xalloc.h.
30658
30659         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30660         * modules/userspec (Files): Add lib/inttostr.h.
30661
30662 2005-03-23  Jim Meyering  <jim@meyering.net>
30663
30664         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30665
30666 2005-03-22  Jim Meyering  <jim@meyering.net>
30667
30668         * modules/stat-macros: New module.
30669         * modules/canonicalize, modules/euidaccess, modules/file-type,
30670         * modules/filemode, modules/lchown, modules/makepath,
30671         * modules/rmdir, modules/stat: Depend on new stat-macros module
30672         rather than listing lib/stat-macros.h manually.
30673         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30674
30675 2005-03-22  Jim Meyering  <jim@meyering.net>
30676
30677         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30678
30679 2005-03-22  Bruno Haible  <bruno@clisp.org>
30680
30681         * config/srclist.txt: Replace target directory 'config' with
30682         'build-aux'.
30683         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30684         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30685         ../build-aux/.
30686
30687 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30688
30689         * modules/chdir-long (Depends-on): Add mempcpy.
30690
30691         * modules/acl, modules/backupfile, modules/c-strtod,
30692         modules/c-strtold, modules/canon-host, modules/canonicalize,
30693         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30694         modules/exclude, modules/exitfail, modules/file-type,
30695         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30696         modules/getdate, modules/getline, modules/getpagesize,
30697         modules/getpass, modules/getugroups, modules/group-member,
30698         modules/hard-locale, modules/hash, modules/human, modules/idcache,
30699         modules/inttostr, modules/long-options, modules/makepath,
30700         modules/md5, modules/memcasecmp, modules/memcoll,
30701         modules/modechange, modules/mountlist, modules/path-concat,
30702         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30703         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30704         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30705         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30706         modules/strftime, modules/strndup, modules/strverscmp,
30707         modules/timespec, modules/unlocked-io, modules/userspec,
30708         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30709         modules/yesno:
30710         Remove lib_SOURCES line from Makefile.am section, as this is now
30711         done automatically by the corresponding Autoconf macro.
30712
30713 2005-03-21  Jim Meyering  <jim@meyering.net>
30714
30715         Changes imported from coreutils.
30716
30717         * lib/cycle-check.c: Don't include xalloc.h.
30718
30719         * lib/path-concat.c: Don't include assert.h.
30720         (path_concat): Remove assertion that would have triggered
30721         for ABASE starting with more than one slash.
30722         Reported by Andreas Schwab.
30723
30724         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
30725         properly when ABASE is an absolute file name.
30726         Correct the description of this function.
30727         Include <assert.h>.
30728         Add an assertion and a test driver.
30729         This fixes a bug introduced on 2004-07-02.
30730         Andreas Schwab reported the resulting failure of cp --parents:
30731         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
30732
30733 2005-03-21  Jim Meyering  <jim@meyering.net>
30734
30735         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
30736         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
30737
30738 2005-03-21  Jim Meyering  <jim@meyering.net>
30739         and  Paul Eggert  <eggert@cs.ucla.edu>
30740
30741         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
30742         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
30743         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
30744         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
30745         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
30746         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
30747         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
30748         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
30749         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
30750         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
30751         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
30752         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
30753         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
30754         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
30755         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
30756         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
30757         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
30758         for these modules.
30759
30760 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30761
30762         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
30763         (which shouldn't happen), generate nothing instead of returning 0
30764         immediately, so that nstrftime (NULL, ...) doesn't return 0.
30765
30766 2005-03-16  Bruno Haible  <bruno@clisp.org>
30767
30768         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
30769         HAVE_LONGLONG_64BIT.
30770
30771 2005-03-16  Bruno Haible  <bruno@clisp.org>
30772
30773         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
30774         HAVE_LONGLONG_64BIT.
30775
30776 2005-03-16  Bruno Haible  <bruno@clisp.org>
30777
30778         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
30779         HAVE_LONGLONG_64BIT.
30780
30781 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30782
30783         * lib/strftime.c (my_strftime): Prepend space to format so that we can
30784         reliably distinguish strftime failure from empty output on POSIX
30785         hosts.
30786
30787 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30788
30789         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
30790         (iconv_string): Don't guess a size-zero buffer, as that might cause
30791         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
30792         result would be 'too large', where 'too large' is (heuristically)
30793         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
30794         overflow concerns.  This will prevent some unwanted malloc failures
30795         when the inputs are very large.
30796
30797 2005-03-15  Karl Berry  <karl@gnu.org>
30798
30799         * config/srclist.txt (config.rpath): from gettext.
30800         * config/config.rpath: update.
30801
30802 2005-03-15  Bruno Haible  <bruno@clisp.org>
30803
30804         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
30805         to 'negate'.
30806
30807         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
30808         variable.
30809
30810         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
30811         results.
30812
30813 2005-03-14  Simon Josefsson  <jas@extundo.com>
30814
30815         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
30816         <fx@gnu.org>.
30817
30818 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
30819
30820         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
30821         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
30822         intprops.h.
30823         * lib/strtol.c: Likewise.
30824
30825 2005-03-14  Jim Meyering  <jim@meyering.net>
30826
30827         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
30828         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
30829         to be nonzero so that we (and caller) can detect the difference
30830         between a valid zero-length expansion and an error return, even
30831         when the underlying strftime fails before writing anything into
30832         that location.
30833
30834 2005-03-14  Bruno Haible  <bruno@clisp.org>
30835
30836         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
30837         Update from GNU gettext 0.14.3.
30838
30839 2005-03-10  Jim Meyering  <jim@meyering.net>
30840
30841         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
30842
30843 2005-03-10  Jim Meyering  <jim@meyering.net>
30844
30845         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
30846         so that this module works on systems without fchdir.
30847
30848 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
30849
30850         Factor int-properties macros into a single file, except for
30851         glibc-related files.
30852         * lib/intprops.h: New file.
30853         * lib/getloadavg.c: Include it instead of limits.h.
30854         (INT_STRLEN_BOUND): Remove.
30855         * lib/human.c: Include intprops.h.
30856         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
30857         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
30858         302/1000.
30859         * lib/inttostr.h: Include intprops.h instead of limits.h.
30860         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
30861         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
30862         for consistency with intprops.h.
30863         (time_t_is_integer, twos_complement_arithmetic): Use them.
30864         * lib/sig2str.h: Include <signal.h>, intprops.h.
30865         (INT_STRLEN_BOUND): Remove.
30866         * lib/strftime.c (TYPE_SIGNED): Remove.
30867         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
30868         * lib/strtol.c: Adjust comments to match intprops.h.
30869         * lib/userspec.c: Include intprops.h.
30870         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
30871         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
30872         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
30873         instead of rolling our own expressions.
30874         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
30875
30876         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
30877         instead of int.
30878         (my_strftime): Do not mishandle years close to INT_MAX, by doing
30879         the right thing even if adding 1900 would overflow.  Similarly
30880         for tm_mon + 1 and tm_yday + 1.
30881         Make %Y always equivalent to %C%y, and similarly for %G and %g.
30882         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
30883         (DO_SIGNED_NUMBER): New macro.
30884         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
30885
30886 2005-03-07  Bruno Haible  <bruno@clisp.org>
30887
30888         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
30889
30890 2005-03-07  Bruno Haible  <bruno@clisp.org>
30891
30892         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
30893
30894 2005-03-04  Derek R. Price  <derek@ximbiot.com>
30895
30896         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
30897         (func_import): Only replace files via --import when they have actually
30898         changed.
30899
30900 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30901
30902         * m4/mmap-anon.m4: New file.
30903         * m4/pagealign_alloc.m4: New file.
30904
30905 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30906             Bruno Haible  <bruno@clisp.org>
30907
30908         * modules/pagealign_alloc: New file.
30909         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
30910
30911 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30912             Bruno Haible  <bruno@clisp.org>
30913
30914         * lib/pagealign_alloc.h: New file.
30915         * lib/pagealign_alloc.c: New file.
30916
30917 2005-03-03  Bruno Haible  <bruno@clisp.org>
30918
30919         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
30920         Use an all-permissive copyright notice, recommended by RMS.
30921
30922 2005-03-02  Bruno Haible  <bruno@clisp.org>
30923
30924         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
30925         of AIX, the replacement has to be done only after <string.h> is
30926         included, therefore not in config.h. stpncpy.h does the replacement,
30927         and stpncpy.c uses it.
30928
30929 2005-03-02  Bruno Haible  <bruno@clisp.org>
30930
30931         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
30932         stpncpy.c uses it.
30933
30934 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30935
30936         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
30937         The workaround isn't strictly needed for POSIX conformance, and
30938         it's too much of a pain to configure and maintain.  We'll ask
30939         people to fix their kernels instead.
30940         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
30941         (NANOSLEEP_BUG_WORKAROUND): Remove.
30942         (xnanosleep): Remove the workaround.
30943
30944 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30945
30946         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
30947         Reported by Derek Price.
30948         (Include): Add "timespec.h".
30949
30950         * modules/xnanosleep (Depends-on): Remove gethrxtime.
30951
30952 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30953
30954         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
30955         to detect nanosleep bug.
30956
30957 2005-03-01  Bruno Haible  <bruno@clisp.org>
30958
30959         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
30960
30961 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30962
30963         * modules/gethrxtime: New file.
30964         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
30965         (Depends-on): Add gethrxtime.
30966         (configure.ac): Add gl_XNANOSLEEP.
30967         (Makefile.am): Remove lib_SOURCES line.
30968
30969 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
30972         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
30973
30974 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
30977         * lib/timespec.h (gettime): Return void, since it always
30978         succeeds now.  All uses changed.
30979         * lib/gettime.c (gettime) Likewise.
30980         [HAVE_NANOTIME]: Prefer nanotime.
30981         Assume gettimeofday succeeds, as POSIX requires.
30982         Assime time () succeeds, since other code already does.
30983         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
30984         (timespec_subtract): Remove.
30985         (NANOSLEEP_BUG_WORKAROUND): New constant.
30986         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
30987         things considerably.  Use it only on GNU/Linux hosts, since the
30988         workaround shouldn't be needed elsewhere.
30989
30990 2005-02-24  Bruno Haible  <bruno@clisp.org>
30991
30992         * modules/gettext (Files): Add m4/glibc2.m4.
30993
30994 2005-02-24  Bruno Haible  <bruno@clisp.org>
30995
30996         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
30997         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
30998         * m4/progtest.m4:
30999         Update from GNU gettext 0.14.2.
31000         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
31001
31002 2005-02-24  Bruno Haible  <bruno@clisp.org>
31003
31004         * lib/localcharset.c: Update from GNU gettext 0.14.2.
31005         * lib/config.charset: Update from GNU gettext 0.14.2.
31006
31007 2005-02-24  Bruno Haible  <bruno@clisp.org>
31008
31009         * lib/gettext.h: Update from GNU gettext 0.14.2.
31010
31011 2005-02-23  Simon Josefsson  <jas@extundo.com>
31012
31013         * m4/iconvme.m4: New file.
31014
31015 2005-02-23  Jim Meyering  <jim@meyering.net>
31016
31017         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
31018         change.
31019         Thanks to Bruno Haible for catching it.
31020
31021 2005-02-22  Simon Josefsson  <jas@extundo.com>
31022
31023         * modules/iconvme: New file.
31024
31025         * MODULES.html.sh: Add iconvme.
31026
31027 2005-02-22  Simon Josefsson  <jas@extundo.com>
31028
31029         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
31030
31031 2005-02-22  Simon Josefsson  <jas@extundo.com>
31032
31033         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
31034
31035 2005-02-22  Jim Meyering  <jim@meyering.net>
31036
31037         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
31038         s/ifndef/ifdef/.
31039
31040 2005-02-20  Neil Conway  <neilc@samurai.com>
31041
31042         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
31043         returned by OSX/Darwin if the specified buffer is not large
31044         enough for the hostname.
31045
31046 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31047
31048         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
31049         pass it to _help, otherwise the latter coredumps trying to
31050         dereference state.root_argp.
31051
31052 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31053
31054         * modules/chdir-long (Depends-on): Add memrchr.
31055         * modules/memrchr (Files): Add lib/memrchr.h.
31056         (Include): "memrchr.h".
31057
31058 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31059
31060         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
31061
31062 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31063
31064         * lib/memrchr.h: New file.
31065         * lib/chdir-long.c: Include it.
31066         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
31067         Don't bother including stddef.h.
31068
31069 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
31070
31071         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
31072         inclusion.
31073         Include <sys/types.h>, for dev_t.
31074         (ME_DUMMY, ME_REMOTE): Move from here....
31075         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
31076         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
31077         Dmitry V. Levin.
31078         Include mountlist.h first, to test the interface.
31079
31080 2005-01-29  Bruno Haible  <bruno@clisp.org>
31081
31082         * lib/progname.c (program_name): Initialize.
31083         Needed when linking statically on MacOS X.
31084
31085 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31086
31087         Sync from coreutils.
31088         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
31089         (Depends-on): Add c-strtod.
31090         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
31091
31092 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
31093
31094         Sync from coreutils.
31095         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
31096
31097         Remove files that are specific to coreutils.
31098         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
31099
31100 2005-01-28  Bruno Haible  <bruno@clisp.org>
31101
31102         * modules/javacomp: New file.
31103         * MODULES.html.sh (Java): Add javacomp.
31104
31105 2005-01-28  Bruno Haible  <bruno@clisp.org>
31106
31107         * m4/javacomp.m4: New file, from GNU gettext.
31108
31109 2005-01-28  Bruno Haible  <bruno@clisp.org>
31110
31111         * lib/javacomp.sh.in: New file, from GNU gettext.
31112         * lib/javacomp.h: New file, from GNU gettext.
31113         * lib/javacomp.c: New file, from GNU gettext.
31114
31115 2005-01-26  Simon Josefsson  <jas@extundo.com>
31116
31117         * lib/gai_strerror.c: Use GPL in header.
31118
31119 2005-01-26  Bruno Haible  <bruno@clisp.org>
31120
31121         * modules/javaexec: New file.
31122         * MODULES.html.sh (Java): Add javaexec.
31123
31124 2005-01-26  Bruno Haible  <bruno@clisp.org>
31125
31126         * m4/javaexec.m4: New file, from GNU gettext.
31127
31128 2005-01-26  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/javaexec.sh.in: New file, from GNU gettext.
31131         * lib/javaexec.h: New file, from GNU gettext.
31132         * lib/javaexec.c: New file, from GNU gettext.
31133
31134 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31135
31136         * modules/lchown (Depends-on): Remove lchown.h
31137
31138 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31139
31140         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31141         must be defined if the header file was not found, in order
31142         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31143
31144 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31145
31146         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31147         initializers for struct pentry_state.
31148         (__argp_error): Check return value of __asprintf
31149         (__argp_failure): Translate error message
31150
31151         * lib/argp-parse.c: Removed braces around the expansion of N_()
31152
31153 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31154
31155         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31156         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31157         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31158         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31159         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31160         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31161         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31162         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31163         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31164         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31165         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31166         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31167         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31168         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31169         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31170         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31171         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31172         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31173         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31174         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31175         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31176         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31177         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31178         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31179         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31180         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31181         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31182         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31183         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31184         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31185         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31186         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31187         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31188         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31189         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31190         Use an all-permissive copyright notice, recommended by RMS.
31191
31192 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31193
31194         * modules/chdir-long (Depends-on): Remove mempcpy.
31195
31196 2005-01-21  Jim Meyering  <jim@meyering.net>
31197
31198         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31199         same value as for Solaris 9.
31200
31201         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31202         component length.  This included changing the parameter to be
31203         of type `char *' rather than `char const *'.
31204         * lib/chdir-long.h (chdir_long): Update prototype.
31205
31206         * lib/openat.c (fdopendir, fstatat): New functions.
31207         * lib/openat.h: Include headers required for use of DIR and struct
31208         stat.
31209         [AT_SYMLINK_NOFOLLOW]: Define.
31210         (fdopendir, fstatat): Add prototypes.
31211
31212 2005-01-21  Bruno Haible  <bruno@clisp.org>
31213
31214         * modules/classpath: New file.
31215         * MODULES.html.sh (Java): Add classpath.
31216
31217 2005-01-21  Bruno Haible  <bruno@clisp.org>
31218
31219         * lib/classpath.h: New file, from GNU gettext.
31220         * lib/classpath.c: New file, from GNU gettext.
31221
31222 2005-01-20  Simon Josefsson  <jas@extundo.com>
31223
31224         * modules/version-etc-fsf: New file.
31225
31226 2005-01-20  Simon Josefsson  <jas@extundo.com>
31227
31228         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31229         * lib/version-etc.c: Remove version_etc_copyright.
31230         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31231         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31232
31233 2005-01-20  Simon Josefsson  <jas@extundo.com>
31234
31235         * lib/base64.h (isbase64): Add.
31236
31237         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31238         using a unsigned prototype, don't inline.
31239         (base64_decode): Use it.
31240
31241 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31242
31243         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31244         it.
31245
31246 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31247
31248         * lib/save-cwd.c (save_cwd): Remove code to support the case
31249         where fchdir is missing or flaky.
31250
31251 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31252
31253         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31254
31255 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31256
31257         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31258         AC_LIBSOURCES now does this.
31259         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31260         with new ullong_max module.
31261
31262 2005-01-19  Bruno Haible  <bruno@clisp.org>
31263
31264         * modules/sh-quote: New file.
31265         * MODULES.html.sh (Executing programs): Add sh-quote.
31266
31267 2005-01-19  Bruno Haible  <bruno@clisp.org>
31268
31269         * lib/sh-quote.h: New file, from GNU gettext.
31270         * lib/sh-quote.c: New file, from GNU gettext.
31271
31272 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31273
31274         Merge from coreutils.
31275         * m4/ullong_max.m4: New file.
31276         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31277         (gl_MACROS): Assume localeconv exists.
31278
31279 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31280
31281         Merge changes from coreutils, as described below in several
31282         changelogs dated today.
31283
31284         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31285         (O_DIRECTORY): Remove; not needed here, since "." must be
31286         a directory.  All uses removed.
31287         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31288         universal on Suns, and we also need to test for IRIX.
31289         Revamp code to use 'if' rather than '#if'.
31290         Avoid unnecessary comparison of cwd->desc to 0.
31291
31292         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31293         for known valid error numbers rather than observed invalid ones.
31294
31295 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31296
31297         * modules/ullong_max: New file.
31298
31299         * modules/chdir-long, modules/openat: New files.
31300         * modules/save-cwd (Depends-on): Depend on chdir-long.
31301         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31302
31303 2005-01-18  Jim Meyering  <jim@meyering.net>
31304
31305         Merge from coreutils.
31306         * m4/chdir-long.m4, m4/openat.m4: New files.
31307         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31308         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31309         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31310         is sane and DOES follow symlinks.  Besides, testing 20 different
31311         systems found no broken chown implementations.
31312         Prompted by a change in rsync's copy of this macro.
31313         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31314
31315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31316
31317         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31318         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31319         NULL-means-set-to-current-time semantics.
31320         Remove temporary file immediately, rather than waiting
31321         for configure's at-exit trap code to do it.
31322
31323 2005-01-18  Jim Meyering  <jim@meyering.net>
31324
31325         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31326
31327         * lib/utimens.c (futimens): Account for the fact that futimes
31328         can also fail with errno == ENOSYS or errno == ENOENT.
31329         Patch from Dmitry V. Levin.
31330
31331         Change the name of the robust chdir function from chdir to chdir_long.
31332         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31333         (restore_cwd): Use chdir_long, not chdir.
31334         * lib/chdir-long.c: Renamed from chdir.c.
31335         * lib/chdir-long.h: Renamed from chdir.h.
31336         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31337         Hurd.
31338
31339 2005-01-18  Bruno Haible  <bruno@clisp.org>
31340
31341         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31342         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31343         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31344         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31345         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31346         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31347         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31348         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31349         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31350         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31351         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31352         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31353         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31354         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31355         Use an all-permissive copyright notice, recommended by RMS.
31356
31357 2005-01-18  Bob Proulx  <bob@proulx.com>
31358
31359         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31360         simplify offsetof() macro construct to avoid compile failure with
31361         native HP-UX 11.0 ANSI C compiler.
31362
31363 2005-01-17  Bruno Haible  <bruno@clisp.org>
31364
31365         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31366         redundant because stpncpy.m4 takes care of it.
31367
31368 2005-01-17  Bruno Haible  <bruno@clisp.org>
31369
31370         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31371
31372 2005-01-17  Bruno Haible  <bruno@clisp.org>
31373
31374         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31375         used.
31376
31377 2005-01-17  Bruno Haible  <bruno@clisp.org>
31378
31379         * lib/fwriteerror.h (fwriteerror): Change specification to include
31380         fclose.
31381         * lib/fwriteerror.c: Include <stdbool.h>.
31382         (fwriteerror): At the end, close the file stream. Record whether
31383         stdout was already closed.
31384
31385 2005-01-17  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/execute.c (environ): Declare if needed.
31388         * lib/pipe.c (environ): Likewise.
31389         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31390
31391 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31392
31393         * modules/argp: Depend on vsnprintf
31394
31395 2005-01-10  Jim Meyering  <jim@meyering.net>
31396
31397         * modules/closeout (Depends-on): Add atexit.
31398
31399 2005-01-06  Bruno Haible  <bruno@clisp.org>
31400
31401         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31402
31403 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31404
31405         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31406         definitions to be after all include files, to avoid collisions.
31407         Problem reported by Bob Proulx.
31408
31409 2005-01-04  Jim Meyering  <jim@meyering.net>
31410
31411         Changes imported from coreutils.
31412         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31413         as the mkstemp template, use a temporary directory and an
31414         8.3-friendly template to avoid trouble on systems like DJGPP.
31415         Reported by Juan M. Guerrero via Stepan Kasal.
31416         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31417         close. Remove the temporary directory right away, rather than waiting
31418         for configure's at-exit trap code to do it.
31419         Suggestion from Stepan Kasal.
31420
31421 2005-01-01  Simon Josefsson  <jas@extundo.com>
31422
31423         * gnulib-tool: Print #include directives when --import'ing.
31424
31425 2004-12-28  Simon Josefsson  <jas@extundo.com>
31426
31427         * tests/test-base64.c: Include required header files.  Remove
31428         unused variables.
31429
31430 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31431
31432         * modules/error (Depends-on): Remove gettext.
31433
31434 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31435
31436         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31437         not needed.  This removes a dependency on the gettext module.
31438         [defined _LIBC]: Do not include <libintl.h>; not needed.
31439
31440 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31441
31442         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31443         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31444
31445 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31446
31447         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31448         HAVE_DECL_STRTOLD.
31449
31450 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31451
31452         * modules/getdate (Depends-on): Remove alloca-opt.
31453
31454 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31455
31456         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31457
31458 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31459
31460         * lib/argp-parse.c: Include <stddef.h>.
31461         (alignof, alignto): New macros.
31462         (parser_init): Don't assume that void * is aligned sufficiently
31463         for struct option.
31464
31465         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31466         need to extend the stack.
31467         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31468         large.
31469
31470 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31471
31472         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31473
31474 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31475
31476         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31477         (2004-10-24) change.  Apparently this was a false alarm.
31478
31479         * modules/getdate: Depend on alloca-opt, not alloca.
31480
31481 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31482
31483         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31484         Remove now-obsolete comment about AIX.
31485         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31486         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31487         (YYMAXDEPTH): New macro.
31488
31489 2004-12-18  Simon Josefsson  <jas@extundo.com>
31490
31491         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31492
31493 2004-12-18  Bruno Haible  <bruno@clisp.org>
31494
31495         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31496
31497 2004-12-18  Bruno Haible  <bruno@clisp.org>
31498
31499         * lib/fatal-signal.c (fatal_signals): Make non-const.
31500         (init_fatal_signals): New function.
31501         (uninstall_handlers, install_handlers): Ignore signals that were set to
31502         SIG_IGN.
31503         (at_fatal_signal): Call init_fatal_signals.
31504         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31505         SIG_IGN.
31506         Reported by Paul Eggert.
31507
31508 2004-12-18  Bruno Haible  <bruno@clisp.org>
31509
31510         * doc/alloca.texi: New file.
31511         * doc/alloca-opt.texi: New file.
31512
31513 2004-12-17  Jim Meyering  <jim@meyering.net>
31514
31515         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31516         Otherwise, install-sh could exit with improper exit status when
31517         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31518
31519 2004-12-16  Simon Josefsson  <jas@extundo.com>
31520
31521         * tests/test-base64.c: Add license.
31522
31523 2004-12-15  Stepan Kasal  <address@hidden>
31524
31525         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31526
31527 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31528
31529         * modules/getcwd (Files): Add m4/d-ino.m4.
31530         Suggested by Mark D. Baushke.
31531
31532 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31533
31534         * lib/getdate.y (textint): New member "negative".
31535         (time_zone_hhmm): New function.
31536         Expect 14 shift-reduce conflicts, not 13.
31537         (o_colon_minutes): New rule.
31538         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31539         (yylex): Set the "negative" member of signed numbers.
31540
31541 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31542
31543         * doc/getdate.texi (Time of day items, Time zone items):
31544         Describe new formats +00:00, UTC+00:00.
31545
31546 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31547
31548         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31549         spurious "-l"s.  Problem reported by Stepan Kasal.
31550
31551 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31552
31553         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31554         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31555
31556 2004-12-04  Simon Josefsson  <jas@extundo.com>
31557
31558         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31559         Vandoorselaere <yoann@prelude-ids.org>.
31560
31561 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31562
31563         Changes imported from coreutils.
31564         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31565         exist.
31566         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31567
31568 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31569
31570         Changes imported from coreutils.
31571         * lib/hard-locale.c: Assume <locale.h> exists.
31572         Include "strdup.h".
31573         (GLIBC_VERSION): New macro.
31574         (hard_locale): Assume setlocale exists.
31575         Rewrite to avoid #ifdef.
31576         Use strdup rather than malloc + strcpy.
31577         * lib/human.c: Assume <locale.h> exists.
31578         (human_readable): Assume localeconv exists.
31579
31580 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31581
31582         * modules/hard-locale (Depends-on): Add strdup.
31583
31584 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31585
31586         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31587         convert T2, not T.  (Imported from libc.)
31588
31589 2004-11-30  Simon Josefsson  <jas@extundo.com>
31590
31591         * modules/restrict (License): Change to LGPL.
31592
31593 2004-11-30  Simon Josefsson  <jas@extundo.com>
31594
31595         * m4/restrict.m4: Add copyright and copying conditions.
31596
31597 2004-11-30  Simon Josefsson  <jas@extundo.com>
31598
31599         * m4/base64.m4: New file.
31600
31601 2004-11-30  Simon Josefsson  <jas@extundo.com>
31602
31603         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31604         base64.
31605
31606         * tests/test-base64.c: New file.
31607
31608         * modules/base64: New file.
31609
31610 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31611
31612         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31613         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31614
31615         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31616
31617 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31618
31619         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31620         (__getcwd.c): Don't restore errno; glibc doesn't.
31621         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31622         first, falling back to our code only if its results look suspicious.
31623         Ensure that the resulting buffer is only as large as necessary.
31624
31625         * lib/readutmp.c: Include readutmp.h first.
31626         Include <errno.h>, since readutmp.h no longer does that.
31627         * lib/readutmp.h: Don't include <errno.h>,
31628         <sys/param.h>, <time.h>; not needed to establish interface.
31629         (errno): Remove decl.
31630         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31631         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31632         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31633
31634 2004-11-28  Simon Josefsson  <jas@extundo.com>
31635
31636         * lib/base64.h, base64.c: New file.
31637
31638 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31639
31640         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31641
31642 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31643
31644         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31645         (Depends-on): Remove pathmax, same.  Add mempcpy.
31646         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31647         (Makefile.am): Append getcwd.h to lib_SOURCES.
31648         (Include): Add getcwd.h.
31649         (Maintainer): Change from Jim Meyering to "all, glibc",
31650         since getdate now uses intended-for-glibc code.
31651         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31652         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31653
31654 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31655
31656         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31657         HP's ANSI C compiler.
31658         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31659         Declaring int functions causes warnings on some modern systems and
31660         shouldn't be needed to compile on ancient ones.
31661         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31662         defined.
31663
31664         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31665         with the following changes.
31666         (__set_errno): Parenthesize properly.
31667         Include <stdbool.h>.
31668         (MIN, MAX, MATCHING_INO): New macros.
31669         (__getcwd): Define with prototype, not K&R form.
31670         Use heuristics to allocate default buffer on stack if possible.
31671         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31672         behavior, and to avoid the PATH_MAX limit when computing
31673         ../../../../...
31674         Use MATCHING_INO to compare inode number to file.
31675         Check for arithmetic overflow in size calculations.
31676         Fix bug in reallocation of dot array that caused getcwd to fail
31677         on directories nested deeper than 75.
31678         Be more careful about saving errno on error.
31679         Do not use realloc; use only free+malloc, as this is a bit
31680         more flexible and avoids a needless copy operation.
31681         Do not inspect st_dev and st_ino for symbolic links; POSIX
31682         doesn't specify the latter.
31683         Check for closedir errors.
31684         Avoid needless casts.
31685         Use "#ifdef weak_alias" around weak_alias, to be like other
31686         glibc code.
31687         The following changes to getcwd.c have effect only when used in
31688         gnulib; they have no effect inside glibc proper.
31689         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31690         as alloca isn't used.
31691         (alloca, __alloca): Likewise.
31692         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31693         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31694         unconditionally, as gnulib assumes C89 or better.
31695         Do not include <sys/param.h>.
31696         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31697         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31698         better.
31699         (NULL) [!defined NULL]: Remove; we assume C89 or better.
31700         Include <dirent.h> in a way that is compatible with modern Autoconf.
31701         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31702         New macros, if not already defined.
31703         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31704         Use "_LIBC", not "defined _LIBC", for consistency.
31705         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31706         a mempcpy module.
31707         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31708         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
31709         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31710         credit only to Jim Meyering and adjust the copyright dates.
31711         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31712         <stdlib.h>, <unistd.h>, "pathmax.h".
31713         Instead, include "xgetcwd.h" (first) and "getcwd.h".
31714         (INITIAL_BUFFER_SIZE): Remove.
31715         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31716
31717 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31718
31719         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31720         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
31721         Use the _ONCE methods, for efficiency.
31722         Check for fcntl.h.  In test program, include <errno.h>
31723         and <fcntl.h> if available.  Remove old K&R cruft from
31724         test program.  Check for common errors in GNU/Linux,
31725         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
31726         don't do AC_LIBOBJ, as that's getcwd.m4's job.
31727         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
31728         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
31729         name accordingly.
31730         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
31731         accommodate new getcwd.c.
31732         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
31733         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
31734         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
31735         that's all we need now.
31736
31737 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31738
31739         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
31740         argp-parse.c depends on getopt internals, that means we should
31741         always use our getopt, to be on the safe side.
31742         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
31743         order not to spoil the result of an eventual previous invocation
31744         of gl_GETOPT_SUBSTITUTE.
31745
31746 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31747
31748         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
31749         redefinition warnings. To avoid them, include the defines
31750         in `#if !defined __need_getopt ... #endif'. The only place
31751         where __getopt_argv_const is used is in definitions
31752         of getopt_long and getopt_long_only below, which are as well
31753         protected by `#ifndef __need_getopt'.
31754         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
31755         __need_getopt after including <stdio.h> and <unistd.h> These
31756         headers might have defined it.
31757
31758 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31759
31760         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
31761
31762 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31763
31764         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
31765         (futimens): New function, which uses futimes if available.
31766         (futimens, utimens): Support timespec==NULL, with same semantics
31767         as utime and utimens.
31768         * lib/utimens.h (futimens): New decl.
31769
31770 2004-11-23  Jim Meyering  <jim@meyering.net>
31771
31772         * lib/getopt_.h: Remove trailing blanks.
31773
31774 2004-11-23  Jim Meyering  <jim@meyering.net>
31775
31776         * lib/__fpending.c: Add comment.
31777
31778 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
31779
31780         * modules/canonicalize (Depends-on): Add xreadlink.
31781         Problem reported by James Youngman.
31782
31783 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31784
31785         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
31786         New macros.
31787         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
31788         optopt): Use them instead of invoking ## directly; otherwise, the
31789         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
31790
31791 2004-11-19  Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/strtok_r.c: Move comments from here...
31794         * lib/strtok_r.h: ... to here.
31795
31796 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31797
31798         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
31799         implementations that mishandle size_t overflow.
31800
31801 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31802
31803         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
31804         might fail.  Problem reported by Yoann Vandoorselaere.
31805         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
31806         implementations that mishandle size_t overflow.
31807
31808 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31809
31810         * modules/canon-host (Depends-on): Add strdup.
31811
31812 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31813
31814         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
31815
31816 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31817
31818         * lib/canon-host.c: Include "strdup.h".
31819         (canon_host): Use getaddrinfo if available, so that IPv6 works.
31820         Use strdup instead of malloc/strcpy to duplicate strings.
31821
31822         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
31823         (human_space_before_unit): New constant.
31824         * lib/human.c (human_readable): Support it.
31825
31826         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
31827         (xgetcwd): Set errno correctly when failing.
31828         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
31829         the failure is actually due to a PATH_MAX problem.
31830
31831         Further getopt changes to make it more likely that glibc will
31832         buy the changes back.
31833         * lib/getopt.c (POSIXLY_CORRECT): New constant.
31834         (getopt): Use it, so to preserve glibc semantic
31835         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
31836         when compiling for libc.
31837         * lib/getopt_.h (__getopt_argv_const): Bring it back.
31838         (getopt_long, getopt_long_only): Use it.
31839
31840         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31841         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
31842         (getopt): Argv is now char * const *, as per standard.
31843         (_getopt_internal_r, _getopt_internal): Argv is now char **,
31844         not char *__getopt_argv_const *.
31845         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31846         _getopt_long_only_r): Likewise.
31847         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
31848         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31849         _getopt_long_r, _getopt_long_only_r): Likewise.
31850         * lib/getopt_.h (__getopt_argv_const): Remove.
31851         (getopt): Argv is now char * const *, as per standard.
31852
31853         * lib/getdate.y (tORDINAL): New token.
31854         (day, relunit): Allow it for relative times.
31855         (relative_time_table): Use tORDINAL for ordinals.
31856
31857 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31858
31859         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
31860         Document that "second" isn't allowed as an ordinal number.
31861
31862 2004-11-16  Jim Meyering  <jim@meyering.net>
31863
31864         * modules/closeout (Depends-on): Add fpending.
31865
31866 2004-11-15  Jim Meyering  <jim@meyering.net>
31867
31868         * lib/closeout.c: Include "__fpending.h" once again.
31869         Include <stdbool.h>.
31870         (close_stdout): Don't fail just because stdout was closed initially,
31871         since some programs don't write to stdout in the normal course of
31872         operation (other than --version and --help), and we don't want this
31873         function to make e.g. `touch file >&-' fail.
31874         But do fail if it was closed and someone has tried to write to it.
31875         E.g., `printf foo >&-' must fail.
31876
31877 2004-11-13  Jim Meyering  <jim@meyering.net>
31878
31879         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
31880
31881 2004-11-12  Simon Josefsson  <jas@extundo.com>
31882
31883         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
31884         small doc fix is still pending.
31885
31886 2004-11-11  Simon Josefsson  <jas@extundo.com>
31887
31888         * modules/strtok_r: New file.
31889
31890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31891         strtok_r.
31892
31893 2004-11-11  Simon Josefsson  <jas@extundo.com>
31894
31895         * m4/strtok_r.m4: New file.
31896
31897         * m4/getopt.m4: Replace opterr.
31898
31899 2004-11-11  Simon Josefsson  <jas@extundo.com>
31900
31901         * lib/strtok_r.h, strtok_r.c: New file.
31902
31903 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31904
31905         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
31906         of replacing opterr, getopt, etc.  This should handle the
31907         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
31908
31909 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31910
31911         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
31912         we can stop lying to compilers about the constness of argv when we
31913         are compiled outside glibc.
31914         (getopt, getopt_long, getopt_long_only): Use it.
31915         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31916         _getopt_internal, getopt): Likewise.
31917         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31918         _getopt_long_only_r): Likewise.
31919         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31920         _getopt_long_r, _getopt_long_only_r): Likewise.
31921
31922         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
31923         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
31924         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
31925         the other external symbols.
31926         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
31927         declaration, since the above renaming now works around collisions.
31928
31929 2004-11-11  Jim Meyering  <jim@meyering.net>
31930
31931         * lib/linebreak.c: Remove trailing blanks.
31932         * lib/alloca_.h: Likewise.
31933         * lib/acosl.c: Likewise.
31934         * lib/euidaccess.c: Likewise.
31935         * lib/allocsa.h: Likewise.
31936
31937 2004-11-10  Simon Josefsson  <jas@extundo.com>
31938
31939         * m4/getaddrinfo.m4: New file.
31940
31941 2004-11-10  Simon Josefsson  <jas@extundo.com>
31942
31943         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
31944
31945 2004-11-10  Simon Josefsson  <jas@extundo.com>
31946
31947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31948         getaddrinfo.
31949
31950         * modules/getaddrinfo: New file.
31951
31952 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31953
31954         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
31955
31956 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31957
31958         * lib/mktime.c (SHR): New macro, which is a portable
31959         substitute for >> that should work even on Crays.
31960         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
31961         Problem reported by Mark D. Baushke in
31962         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
31963         * lib/getdate.y (SHR): Likewise.
31964         (tm_diff): Use it.
31965         * lib/strftime.c (SHR): Likewise.
31966         (tm_diff): Use it.
31967         * lib/quotearg.c (struct quoting_options): Use unsigned int for
31968         quote_these_too, so that right shifts are well defined.  All uses
31969         changed.
31970
31971 2004-11-10  Jim Meyering  <jim@meyering.net>
31972
31973         Ensure that no close failure goes unreported.
31974         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
31975         return early when it seems there's nothing to flush.
31976         Don't include __fpending.h.
31977
31978 2004-11-10  Jim Meyering  <jim@meyering.net>
31979
31980         * modules/closeout (Depends-on): Remove fpending.
31981
31982 2004-11-10  Jim Meyering  <jim@meyering.net>
31983
31984         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
31985
31986 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31987
31988         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
31989         gl_FUNC_STRFTIME.
31990         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
31991         and AC_REQUIRE when possible, to avoid duplicate checks.
31992         Check for <wchar.h>.
31993
31994 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31995
31996         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
31997
31998 2004-11-09  Bruno Haible  <bruno@clisp.org>
31999
32000         * m4/sockpfaf.m4: New file.
32001
32002 2004-11-05  Bruno Haible  <bruno@clisp.org>
32003
32004         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
32005         Reported by Mark D. Baushke <mdb@cvshome.org>.
32006
32007 2004-11-04  Bruno Haible  <bruno@clisp.org>
32008
32009         2004-09-11  Bruno Haible  <bruno@clisp.org>
32010                 * allocsa.valgrind: New file.
32011         2004-02-06  Bruno Haible  <bruno@clisp.org>
32012                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
32013                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
32014                 Reported by Christopher Seip <chris.seip@hp.com>.
32015
32016 2004-11-04  Bruno Haible  <bruno@clisp.org>
32017
32018         * modules/allocsa (Files): Add lib/allocsa.valgrind.
32019         (Makefile.am): Distribute it.
32020
32021 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32022
32023         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
32024         with errno == ERANGE if the buffer is too small.
32025         Problem reported by Mark D. Baushke.
32026
32027 2004-11-03  Albert Chin  <china@thewrittenword.com>
32028             Paul Eggert  <eggert@cs.ucla.edu>
32029
32030         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
32031         equivalent, substitute $ac_type for equivalent type rather than
32032         blindly using uint32_t *always* which won't work if uint32_t is not
32033         available.  Define _UINT32_T to work around typedef of uint32_t if
32034         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
32035         2.5.1.
32036
32037 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32038
32039         * m4/jm-macros.m4: Sync from coreutils.
32040         (gl_MACROS): Check for mbrlen, for pathchk.
32041         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
32042
32043 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32044
32045         * lib/xreadlink.c (MAXSIZE): New macro.
32046         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
32047         size does not exceed MAXSIZE.  Avoid cast.
32048         As suggested by Mark D. Baushke in
32049         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
32050         if readlink fails with buffer size just under MAXSIZE, try again
32051         with MAXSIZE.
32052
32053 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32054
32055         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
32056
32057 2004-11-02  Derek R. Price  <derek@ximbiot.com>
32058         and  Paul Eggert  <eggert@cs.ucla.edu>
32059
32060         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
32061         (get_date): Overparenthesize to avoid GCC warning.
32062
32063 2004-11-02  Bruno Haible  <bruno@clisp.org>
32064
32065         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
32066         returns void.
32067
32068 2004-11-02  Bruno Haible  <bruno@clisp.org>
32069
32070         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
32071         function returns void.
32072
32073 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32074
32075         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
32076         fflush_unlocked, flockfile, funlockfile, funlockfile,
32077         fputs_unlocked, putc_unlocked.
32078
32079 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32080
32081         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32082         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
32083         already declared.
32084
32085 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32086
32087         * modules/getdate (Files): Add doc/getdate.texi.
32088         (Depends-on): Add setenv, xalloc.
32089
32090 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32091
32092         * lib/getdate.y: Add support for TZ="foo" within a date string.
32093         Fix some bugs near time_t boundaries.  Reject dates with
32094         out-of-range components, e.g., "Sept 31".
32095         Include <stdlib.h>, "setenv.h", "xalloc.h".
32096         (ISDIGIT_LOCALE): Remove; unused.
32097         Note that the TZ and time functions used here are not reentrant.
32098         (mktime_ok, get_tz): New functions.
32099         (TZBUFSIZE): New constant.
32100         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
32101         This requires that we sometimes generate our own TZ="XXX..." setting.
32102
32103 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32104
32105         * doc/getdate.texi: New file, from coreutils with modifications for
32106         the new TZ parsing.
32107
32108 2004-10-27  Derek R. Price  <derek@ximbiot.com>
32109
32110         * lib/mktime.c (not_equal_tm): Remove redundant check.
32111
32112 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32113
32114         * modules/regex (lib_SOURCES): Add regex.c.
32115         Reported by James Youngman in
32116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
32117
32118 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32119
32120         * lib/getdate.y: Use Bison 1.875 features, and some minor
32121         code cleanups.  This change does not affect semantics.
32122         Don't include <stdlib.h>; no longer needed.
32123         Don't include unlocked-io.h; only the "#if TEST" code uses
32124         stdio, and performance isn't crucial there.
32125         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32126         Bison 1.875 features as described below.
32127         All uses of "PC." replaced by "pc->".
32128         (YYSTYPE): Add a forward declaration.
32129         (yylex, yyerror): Use full prototypes in forward decls.
32130         Use "%pure-parser" rather than obsolescent "%pure_parser".
32131         Use %parse-param and %lex-param instead of obsolescent
32132         YYPARSE_PARAM and YYLEX_PARAM.
32133         (meridian_table, month_and_day_table, time_units_table,
32134         relative_time_table, time_zone_table, military_table,
32135         lookup_zone, lookup_word, get_date):
32136         Use NULL instead of 0 where appropriate.
32137         (to_hour): Avoid abort (), to avoid a dependency on
32138         stdlib.h.
32139         (yyerror, yylex): Now accepts parser_control * arg.
32140         (main) [TEST]: Use '\0' rather than 0 for char.
32141
32142 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32143
32144         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32145
32146 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32147
32148         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32149         It's now the caller's responsibility to handle the case where
32150         !HAVE_GETPAGESIZE && !defined getpagesize.
32151
32152         * lib/mktime.c (leapyear): Arg is long int, not int.
32153
32154 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32155
32156         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32157
32158 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32159
32160         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32161         missing.  Problem reported by James Youngman.
32162
32163 2004-10-16  Simon Josefsson  <jas@extundo.com>
32164
32165         * gnulib-tool: Fix comments.  Fix parse problem.
32166         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32167
32168 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32169
32170         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32171         implementation of getopt_long.  Problem reported by Alexander Taler in:
32172         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32173
32174 2004-10-15  Bruno Haible  <bruno@clisp.org>
32175
32176         * gnulib-tool: Untabify. Initialize supplied_libname.
32177         (func_usage): More homogenous output.
32178         (func_modules_transitive_closure, func_modules_to_filelist,
32179         func_emit_lib_Makefile_am): New functions.
32180         (func_import): New function, extracted from big case statement. Use
32181         func_get_license, func_modules_transitive_closure,
32182         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32183         opt_lgpl. Don't use test -a, as it's not portable.
32184         (func_create_testdir): Use func_modules_transitive_closure,
32185         func_modules_to_filelist, func_emit_lib_Makefile_am.
32186
32187 2004-10-15  Bruno Haible  <bruno@clisp.org>
32188
32189         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32190
32191 2004-10-15  Bruno Haible  <bruno@clisp.org>
32192
32193         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32194         the portions belonging to each module.
32195         Suggested by Derek Robert Price <derek@ximbiot.com>.
32196
32197 2004-10-12  Simon Josefsson  <jas@extundo.com>
32198
32199         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32200         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32201         to real functions.
32202
32203 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32204
32205         * modules/vsnprintf: New file.
32206
32207 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32208
32209         * m4/vsnprintf.m4: New file.
32210
32211 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32212
32213         * lib/vsnprintf.h: New file.
32214         * lib/vsnprintf.c: New file.
32215
32216 2004-10-11  Bruno Haible  <bruno@clisp.org>
32217
32218         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32219         vsnprintf.
32220
32221 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32222
32223         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32224
32225 2004-10-07  Bruno Haible  <bruno@clisp.org>
32226
32227         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32228         fits into the provided buffer.
32229
32230 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32231
32232         * lib/diacrit.c, diacrit.h: Add GPL notice.
32233
32234         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32235         notice.
32236         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32237         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32238         This avoids a potential constant-folding bug.
32239
32240 2004-10-05  Bruno Haible  <bruno@clisp.org>
32241
32242         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32243         for the declaration of strsep.
32244
32245 2004-10-05  Bruno Haible  <bruno@clisp.org>
32246
32247         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32248
32249 2004-10-04  Simon Josefsson  <jas@extundo.com>
32250
32251         * modules/memmem: New file.
32252         * tests/test-memmem.c: New file.
32253         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32254
32255 2004-10-04  Simon Josefsson  <jas@extundo.com>
32256
32257         * m4/memmem.m4: New file.
32258
32259 2004-10-04  Simon Josefsson  <jas@extundo.com>
32260
32261         * lib/memmem.h: New file.
32262         * lib/memmem.c: New file, taken from glibc.
32263
32264 2004-10-04  Simon Josefsson  <jas@extundo.com>
32265
32266         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32267         '#ifdef USE_UNLOCKED_IO'.
32268
32269 2004-10-04  Simon Josefsson  <jas@extundo.com>
32270
32271         * config/srclist.txt: Add memmem from glibc.
32272
32273 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32276
32277         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32278         modules/exclude, modules/getdate, modules/getline,
32279         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32280         modules/getusershell, modules/linebuffer, modules/md5,
32281         modules/mountlist, modules/posixtm, modules/readtokens,
32282         modules/readutmp, modules/regex, modules/sha1,
32283         modules/version-etc, modules/yesno:
32284         Remove dependency on unlocked-io.
32285
32286 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32287
32288         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32289
32290         * m4/unlocked-io.m4: Add copyright notice.
32291         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32292
32293 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32294
32295         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32296         * lib/xmalloc.c (xmemdup): Likewise.
32297         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32298         XFREE): Remove these long-obsolescent macros.
32299         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32300         * lib/xstrdup.c: Remove.
32301
32302         * lib/regex.c (re_comp): Cast gettext return value to char *,
32303         Problem reported by Martin Neitzel via Mark D. Baushke.
32304
32305 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32306
32307         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32308         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32309         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32310         regex.c, sha1.c, version-etc.c, yesno.c:
32311         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32312         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32313         the includer's responsibility.
32314
32315         Sync from coreutils.
32316
32317         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32318         points to the start of a string, as the C Standard says the
32319         resulting behavior is undefined.
32320
32321         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32322         simple -> simple_backups, numbered_existing ->
32323         numbered_existing_backups, numbered -> numbered_backups
32324         to avoid shadowing problems.  All uses changed.
32325         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32326         * lib/backupfile.c (check_extension, numbered_backup):
32327         Rename locals to avoid shadowing 'basename'.
32328         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32329         once.
32330
32331         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32332         * lib/.cvsignore: Add getopt.h.
32333
32334 2004-10-04  Bruno Haible  <bruno@clisp.org>
32335
32336         * modules/README: New file.
32337         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32338         not a module.
32339
32340 2004-10-02  Jim Meyering  <jim@meyering.net>
32341
32342         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32343
32344 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32345
32346         * modules/strsep: New file.
32347
32348 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32349
32350         * m4/strsep.m4: New file.
32351
32352 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32353
32354         * lib/strsep.h: New file.
32355         * lib/strsep.c: New file.
32356
32357 2004-10-01  Simon Josefsson  <jas@extundo.com>
32358
32359         * lib/snprintf.c (snprintf): Handle size==0.
32360
32361 2004-10-01  Simon Josefsson  <jas@extundo.com>
32362             Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32365         (snprintf): Declare 'args'.
32366
32367 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32368
32369         * lib/snprintf.c: Remove comments as to why each header is needed.
32370
32371 2004-10-01  Bruno Haible  <bruno@clisp.org>
32372
32373         * MODULES.html.sh: Add strsep.
32374
32375 2004-09-30  Simon Josefsson  <jas@extundo.com>
32376
32377         * modules/snprintf: New file.
32378
32379 2004-09-30  Simon Josefsson  <jas@extundo.com>
32380
32381         * m4/snprintf.m4: New file.
32382
32383 2004-09-30  Simon Josefsson  <jas@extundo.com>
32384
32385         * lib/snprintf.h, lib/snprintf.c: New files.
32386
32387 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32388
32389         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32390         (hol_entry_help): Never translate an empty string.
32391         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32392         * lib/argp.h (OPTION_NO_TRANS): New option.
32393
32394 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32395
32396         * modules/argp (Maintainer): Replace Simon Josefsson
32397         by Sergey Poznyakoff.
32398
32399 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32400
32401         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32402         changes merged back into glibc.
32403
32404 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32405
32406         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32407
32408 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32409
32410         * lib/xvasprintf.c: Include xalloc.h.
32411         (xvasprintf): Use xalloc_die, not xmalloc_die.
32412
32413 2004-09-29  Bruno Haible  <bruno@clisp.org>
32414
32415         * modules/alloca-opt: New file, derived from modules/alloca.
32416         * modules/allocsa: Depend on alloca-opt instead of alloca.
32417         * modules/setenv: Likewise.
32418         * modules/vasnprintf: Likewise.
32419         * MODULES.html.sh: Add alloca-opt.
32420
32421 2004-09-28  Simon Josefsson  <jas@extundo.com>
32422
32423         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32424         LGPL, and to replace license template from GPL to LGPL.
32425
32426 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32427
32428         * modules/dummy: Change license to LGPL.
32429
32430 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32431
32432         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32433
32434 2004-09-24  Simon Josefsson  <jas@extundo.com>
32435
32436         * modules/minmax (License): Change from GPL to LGPL.
32437
32438 2004-09-23  Simon Josefsson  <jas@extundo.com>
32439
32440         * gnulib-tool (--import): Typo.
32441
32442 2004-09-23  Simon Josefsson  <jas@extundo.com>
32443
32444         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32445
32446 2004-09-22  Bruno Haible  <bruno@clisp.org>
32447
32448         * modules/*: Add 'License' field.
32449         * gnulib-tool: Accept --extract-license option.
32450         (func_get_license): New function.
32451
32452 2004-09-21  Bruno Haible  <bruno@clisp.org>
32453
32454         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32455         Reported by Simon Josefsson.
32456
32457 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32458
32459         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32460         gl_AC_TYPE_LONG_LONG.
32461
32462 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32463
32464         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32465
32466 2004-09-18  Simon Josefsson  <jas@extundo.com>
32467         and  Paul Eggert  <eggert@cs.ucla.edu>
32468
32469         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32470         calls with autoreconf.  Define GL_LIB.
32471
32472 2004-09-14  Karl Berry  <karl@gnu.org>
32473
32474         * config/srclist.txt: unsync setenv.c, sigh.
32475
32476 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32479         Problem reported by Bruno Haible in:
32480         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32481
32482 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32483
32484         * config/srclist.txt: Comment out argp-pvh.c.
32485
32486 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32487
32488         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32489         in case some system header has #define'd it.  Problem reported by
32490         Soeren D. Schulze in
32491         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32492
32493 2004-09-09  Karl Berry  <karl@gnu.org>
32494
32495         * regex.[ch]: delete from the root.  These were supposed to be
32496                 synced with emacs cvs, but this has not happened for about
32497                 a year, and anyway nothing else uses emacs regex.[ch].
32498                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32499                 lib/regex[.ch] is untouched.
32500
32501 2004-09-09  Bruno Haible  <bruno@clisp.org>
32502
32503         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32504
32505 2004-09-09  Bruno Haible  <bruno@clisp.org>
32506
32507         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32508         modifications.
32509         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32510
32511 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32512
32513         * modules/xvasprintf: New file.
32514         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32515
32516 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32517
32518         * lib/xvasprintf.h: New file.
32519         * lib/xvasprintf.c: New file.
32520         * lib/xasprintf.c: New file.
32521
32522 2004-09-08  Bruno Haible  <bruno@clisp.org>
32523
32524         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32525
32526 2004-09-08  Bruno Haible  <bruno@clisp.org>
32527
32528         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32529         length is > INT_MAX.
32530         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32531         more.
32532
32533 2004-09-08  Bruno Haible  <bruno@clisp.org>
32534
32535         * lib/stdint_.h: New file, taken from GNU clisp.
32536
32537 2004-09-08  Bruno Haible  <bruno@clisp.org>
32538             Oskar Liljeblad  <oskar@osk.mine.nu>
32539
32540         * modules/stdint: New file.
32541         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32542
32543 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32544
32545         Import from coreutils.
32546         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32547         strings on unbounded length.  alloca's performance benefits aren't
32548         that important here.
32549         (V_STRDUP): Remove.
32550         (parse_with_separator): New function, with most of the internals
32551         of the old parse_user_spec.  Allow user to omit both user and group,
32552         for compatibility with FreeBSD.
32553         Clone only the user name, not the entire spec.
32554         Do not set *uid, *gid unless entirely successful.
32555         Avoid memory leak in some failing cases.
32556         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32557         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32558         (parse_user_spec): Rewrite to use parse_with_separator.
32559
32560 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32561
32562         * modules/userspec: Don't depend on alloca.
32563
32564 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32565
32566         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32567
32568 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32571         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32572         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32573
32574 2004-08-16  Simon Josefsson  <jas@extundo.com>
32575
32576         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32577         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32578         Add --dry-run for --import.
32579         Let user provided command line parameters override configure.ac
32580         settings.
32581
32582 2004-08-12  Simon Josefsson  <jas@extundo.com>
32583
32584         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32585         as discussed with Paul Eggert in threads rooted at
32586         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32587         and
32588         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32589         Before, the test was empty, and relied on ELIDE_CODE in source
32590         code.)
32591         (gl_PREREQ_GETOPT): New macro.
32592         (gl_GETOPT): Use them.
32593
32594 2004-08-12  Simon Josefsson  <jas@extundo.com>
32595
32596         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32597         * lib/getopt_.h: Renamed from getopt.h.
32598
32599 2004-08-12  Simon Josefsson  <jas@extundo.com>
32600
32601         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32602         Change default library name from libfoo to libgnu.
32603         Now, if you have a configure.ac that says:
32604                 gl_SOURCE_BASE(gl)
32605                 gl_M4_BASE(gl/m4)
32606                 gl_MODULES(error getopt etcetera)
32607                 gl_INIT
32608         you can import all you need by running:
32609                 ../gnulib/gnulib-tool --import
32610
32611         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32612         (Makefile.am): Rewrite, use logic from argz.
32613         (Include): Use <getopt.h> instead of "getopt.h".
32614
32615 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32616
32617         * modules/argp (Files): Add m4/unlocked-io.m4.
32618         (Depends-on): Add extensions.
32619
32620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32621
32622         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32623         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32624         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32625         Check for program_invocation_name, program_invocation_short_name,
32626         flockfile, funlockfile, features.h, _getopt_long_only_r.
32627
32628 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32629
32630         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32631         its complicated substitute.
32632         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32633         and program_invocation_name.
32634         (__argp_basename) [!_LIBC]: Remove; the only use was
32635         replaced by its body.
32636         (__argp_short_program_name): Change condition from
32637         !defined __argp_short_program_name to
32638         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32639         to match argp-namefrob.h.
32640         (__argp_failure): Don't assume strerror_r returns char *.
32641         * lib/argp-parse.c (N_): Define unconditionally.
32642         (argp_default_options): Fill out initializers with 0 to avoid
32643         gcc warnings.
32644
32645 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32646
32647         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32648         getopt1.c.
32649
32650 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32651
32652         Merge from coreutils.
32653
32654         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32655
32656         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32657         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32658
32659 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32660
32661         Merge from coreutils.
32662
32663         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32664         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32665         for Reliant Unix 5.43.
32666
32667         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32668         (union fooround): Use uintmax_t, not long int.
32669         The rest is a merge from libc:
32670         [defined _LIBC]: Include <shlib-compat.h>.
32671         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32672
32673         * lib/settime.c (settime): Recode to avoid warning with
32674         Sun Forte C 6U2.
32675
32676         * lib/strverscmp.c: Convert to UTF-8.
32677
32678 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32679
32680         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32681         m4/uintmax_t.m4.
32682
32683 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         * modules/xalloc-die: New file.
32686         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32687
32688         * modules/md5 (Files): Add m4/uint32_t.m4.
32689         * modules/sha1: Renamed from modules/sha.
32690         (Files):
32691         Rename lib/sha.h to lib/sha1.h.
32692         Rename lib/sha.c to lib/sha1.c.
32693         Rename m4/sha.m4 to m4/sha1.m4.
32694         (lib_SOURCES): Likewise.
32695         (configure.ac): Rename gl_SHA to gl_SHA1.
32696         (Include): sha.h -> sha1.h.
32697
32698 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32699
32700         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32701         * m4/sha1.m4: Renamed from sha.m4.
32702         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
32703
32704 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32705
32706         * lib/obstack.h (obstack_empty_p):
32707         Don't assume that chunk->contents is suitably aligned.
32708         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32709         Likewise. Problem reported by Benno in
32710         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32711
32712         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32713         readable.  This could be improved further but it'd take some work.
32714
32715 2004-08-08  Simon Josefsson  <jas@extundo.com>
32716
32717         * modules/xgethostname (Depends-on): Remove exit and error (not
32718         used).
32719
32720         * modules/getpass-gnu: Add getpass.h.
32721         (Depends-on): Add stdbool.
32722         * modules/getpass: Add getpass.h.
32723
32724 2004-08-08  Simon Josefsson  <jas@extundo.com>
32725
32726         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
32727         Check getpass declaration.
32728
32729 2004-08-08  Simon Josefsson  <jas@extundo.com>
32730
32731         * lib/xgethostname.c: Don't include error.h (not used).
32732
32733         * lib/getpass.h: Add.
32734         * lib/getpass.c: Include getpass.h first.
32735
32736 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32737
32738         * lib/xalloc-die.c: New file.
32739         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
32740         All uses removed.
32741         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
32742         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
32743         xalloc-die.c.
32744         (_, N_, xalloc_die): Move to xalloc-die.c.
32745         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
32746         so that we needn't mess with xalloc_msg_memory_exhausted.
32747
32748         * lib/sha1.h: Renamed from sha.h.
32749         (SHA1_H): Renamed from _SHA_H.
32750         (sha1_ctx): Renamed from sha_ctx.
32751         (sha1_init_ctx): Renamed from sha_init_ctx.
32752         (sha1_process_block): Renamed from sha_process_block.
32753         (sha1_process_bytes): Renamed from sha_process_bytes.
32754         (sha1_finish_ctx): Renamed from sha_finish_ctx.
32755         (sha1_read_ctx): Renamed from sha_read_ctx.
32756         (sha1_stream): Renamed from sha_stream.
32757         (sha1_buffer): Renamed from sha_buffer.
32758         * lib/sha1.c: Likewise; renamed from sha.c.
32759         Do not include <sys/types.h>.
32760         Include <stddef.h> rather than <stdlib.h>.
32761
32762 2004-08-08  Bruno Haible  <bruno@clisp.org>
32763
32764         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
32765         FILESYSTEM_PREFIX_LEN.
32766         * lib/progreloc.c: Likewise.
32767         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
32768
32769 2004-08-06  Simon Josefsson  <jas@extundo.com>
32770
32771         * modules/progname (Depends-on): Don't depend on stdbool.
32772
32773 2004-08-06  Simon Josefsson  <jas@extundo.com>
32774
32775         * modules/getsubopt: New file.
32776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32777         getsubopt.
32778
32779 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32780
32781         More merge from coreutils.
32782
32783         * m4/utimens.m4, m4/utimecmp.m4: New files.
32784         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
32785         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
32786         prereq.m4, sha.m4: Import changes from coreutils.
32787
32788 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32789
32790         More merge from coreutils.
32791         * modules/raise, modules/readtokens0, modules/utimens:
32792         * modules/utimecmp, module/xnanosleep: New files.
32793         * modules/strftime: Add lib/strftime.h.
32794         Change include from <time.h> to "strftime.h".
32795         * modules/yesno: Add lib/yesno.h.
32796         * modules/backupfile: Remove lib/addext.c.
32797         * modules/euidaccess: Add stat-macros.h.
32798         * modules/canonicalize, modules/euidaccess,
32799         modules/filemode, modules/lchown, modules/makepath,
32800         modules/rmdir, modules/stat: Likewise.
32801
32802 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32803
32804         Merge from tar.
32805         * lib/argp-help.c (make_hol, hol_append): Don't assume that
32806         SIZE_MAX is a valid preprocessor constant.
32807         (__argp_basename): Change from "#ifndef _LIBC"
32808         to "#ifndef __argp_short_program_name", so that
32809         we don't compile these functions for tar.
32810
32811         More merges from coreutils.
32812         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
32813         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
32814         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
32815         * lib/addext.c: Remove; no longer needed.
32816         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
32817         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
32818         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
32819         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
32820         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
32821         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
32822         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
32823         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
32824         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
32825         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32826         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
32827         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
32828         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
32829         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
32830         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
32831         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
32832         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
32833         Import changes from coreutils.
32834
32835 2004-08-05  Simon Josefsson  <jas@extundo.com>
32836
32837         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
32838
32839 2004-08-05  Simon Josefsson  <jas@extundo.com>
32840
32841         * m4/getsubopt.m4: New file.
32842
32843 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32844
32845         Merge from coreutils.
32846
32847         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
32848         * m4/getcwd-path-max.m4: New files.
32849
32850         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
32851         FILESYSTEM_PREFIX_LEN ->
32852         FILE_SYSTEM_PREFIX_LEN.
32853         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
32854         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
32855         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
32856         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
32857
32858         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
32859         prerequisite modules now handle the DOS stuff.
32860         Don't check for unistd.h.
32861
32862 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32863
32864         Merge from coreutils.
32865
32866         * lib/.gdb-history: Remove; this doesn't belong here.
32867
32868         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
32869         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
32870         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
32871         * lib/getcwd.c: New files.
32872
32873         * lib/dirname.h: Include <stdbool.h>.
32874         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
32875         for consistency with POSIX terminology.  All uses changed.
32876         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
32877         (strip_trailing_slashes): Use bool for booleans.
32878         * lib/stripslash.c (strip_trailing_slashes): Likewise.
32879
32880         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
32881         sometimes returns a positive errno value even when it succeeds.
32882         (print_errno_message) [!LIBC]: Fall back on strerror if
32883         __strerror_r fails.
32884
32885         * lib/path-concat.c (mempcpy): Don't define if a system header defines
32886         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
32887         (longest_relative_suffix): New function.
32888         (path_concat): Use it.  Assume first argument is not NULL.
32889         Port to DOS.  Omit redundant separators.
32890         Report an error instead of returning NULL.
32891         Use mempcpy instead of memcpy.
32892         (xpath_concat): Remove: not declared or used.
32893
32894         * lib/same.h: Include <stdbool.h>
32895         (same_name): Return bool, not int.
32896         * lib/same.c (same_name): Likewise.
32897         (errno): Don't declare; we assume C89 or better now.
32898
32899         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
32900         if not already defined.
32901
32902         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
32903         * lib/dup-safer.c (errno): Likewise.
32904
32905 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32906
32907         Merge from coreutils.
32908         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
32909         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
32910         * modules/path-concat: Don't depend on strdup.
32911
32912 2004-08-03  Simon Josefsson  <jas@extundo.com>
32913
32914         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
32915         * lib/progname.h: Don't include stdbool.h.
32916
32917 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32918
32919         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
32920         * MODULES.html.sh (func_all_modules): Remove fatal.
32921
32922 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32923
32924         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
32925
32926 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32927
32928         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
32929         working.
32930
32931 2004-08-02  Simon Josefsson  <jas@extundo.com>
32932
32933         * lib/getsubopt.h: New file, with comments from Bruno Haible.
32934         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
32935         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
32936
32937 2004-08-01  Simon Josefsson  <jas@extundo.com>
32938
32939         * lib/xgetdomainname.c: Include stdlib.h, for free().
32940
32941 2004-07-19  Bruno Haible  <bruno@clisp.org>
32942
32943         * MODULES.html.sh (func_all_modules): Add dummy.
32944
32945 2004-07-16  Simon Josefsson  <jas@extundo.com>
32946
32947         * modules/dummy: New file.
32948
32949 2004-07-16  Simon Josefsson  <jas@extundo.com>
32950
32951         * lib/dummy.c: New file.
32952
32953 2004-07-16  Bruno Haible  <bruno@clisp.org>
32954
32955         * lib/backupfile.h: Add extern "C" for C++.
32956         * lib/closeout.h: Likewise.
32957         * lib/copy-file.h: Likewise.
32958         * lib/findprog.h: Likewise.
32959         * lib/full-write.h: Likewise.
32960         * lib/pathname.h: Likewise.
32961         * lib/progname.h: Likewise.
32962         * lib/stpcpy.h: Likewise.
32963         * lib/stpncpy.h: Likewise.
32964         * lib/strcase.h: Likewise.
32965         * lib/strstr.h: Likewise.
32966         * lib/xalloc.h: Likewise.
32967
32968         * lib/mbswidth.h: Add extern "C" for C++.
32969         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
32970
32971 2004-07-13  Robert Millan  <robertmh@gnu.org>
32972
32973         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
32974
32975 2004-07-09  Simon Josefsson  <jas@extundo.com>
32976
32977         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
32978         failed without this.)
32979
32980 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * modules/chown (Files): Add lib/fchown-stub.c, since
32983         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
32984
32985 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32986
32987         * lib/fchown-stub.c: New file.
32988
32989 2004-06-24  Jim Meyering  <jim@meyering.net>
32990
32991         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
32992
32993 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32994
32995         * modules/argz: Omit "#include".
32996
32997         * MODULES.html.sh (func_all_modules): Add calloc, to match
32998         2004-06-01 addition of calloc module.
32999
33000 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33001
33002         * m4/argz.m4: New file, which is autoupdated from libtool.
33003
33004 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33005
33006         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
33007         libtool.
33008
33009 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
33010
33011         * config/srclist-update: Don't insist on "USA." before the
33012         close-comment, as libtool omits the period and puts the */ on a
33013         separate line.
33014         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
33015         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
33016
33017 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
33018
33019         * modules/argz: New file.
33020         * MODULES.html.sh (func_all_modules): Add argz.
33021
33022 2004-06-12  Jim Meyering  <jim@meyering.net>
33023         and  Paul Eggert  <eggert@cs.ucla.edu>
33024
33025         * modules/hash (Files): Add lib/xalloc.h.
33026         * modules/pipe (Depends-on): Add wait-process.
33027         * modules/stat (Depends-on): Add xalloc.
33028         * modules/userspec (Files): Add lib/userspec.h.
33029         * modules/xstrto
33030
33031         Upgrade from gettext-0.13.
33032         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
33033         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
33034         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
33035
33036 2004-06-10  Jim Meyering  <jim@meyering.net>
33037
33038         * lib/calloc.c: New file.
33039
33040 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33041
33042         * lib/getdate.y (yylex): Allow space between sign and number.
33043         Problem reported by Dan Jacobson.
33044
33045 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33046
33047         Merge from coreutils CVS.
33048
33049         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
33050         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
33051         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
33052         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
33053         xstrtol.m4: Fix copyright date and/or serial number.
33054
33055         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
33056         See if we need an fchown replacement.
33057         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
33058         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
33059         and use the replacement function if we detect either defect.
33060
33061         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
33062         gl_UTIMECMP.
33063
33064 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33065         and  Jim Meyering  <jim@meyering.net>
33066
33067         Merge from coreutils CVS.
33068
33069         * lib/stat-macros.h: New file, with contents from file-type.h
33070         and coreutils' system.h.
33071         * lib/file-type.c: Include "stat-macros.h".
33072         * lib/file-type.h (file_type): Move all macro definitions to new file,
33073         stat-macros.h.
33074
33075         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
33076         Wrap old code with this conditional.
33077         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
33078         function that does not dereference symlinks.
33079         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
33080
33081         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
33082         dependency problems.
33083         (xreadlink): Accept new arg SIZE, for efficiency.
33084         All decls and uses changed.
33085         * lib/xreadlink.h: Include <stddef.h>, for size_t.
33086
33087         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
33088         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
33089
33090         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
33091         sysexits.h.
33092
33093 2004-06-01  Jim Meyering  <jim@meyering.net>
33094
33095         * m4/calloc.m4: New file.
33096
33097 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33098
33099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
33100         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
33101         Also, fix a typo in a diagnostic.
33102
33103 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
33106         or AC_FUNC_REALLOC.
33107
33108 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33109
33110         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
33111         macros to be defined.
33112         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
33113         the allocator returns NULL because the requested size is zero.
33114
33115 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33116
33117         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
33118         var.  Add comment explaining why libc still defines it.  This
33119         merges the following patch from glibc:
33120         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33121
33122 2004-05-20  Andreas Schwab  <schwab@suse.de>
33123
33124         * m4/free.m4: Replace free if it not known to work, not the other
33125         way round.
33126
33127 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33128
33129         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33130         present in glibc since revision 1.1 of this file.
33131         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33132         obstack_alignment_mask, obstack_alloc, obstack_base,
33133         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33134         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33135         obstack_grow0, obstack_init, obstack_int_grow,
33136         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33137         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33138         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33139         nonexistent functions.
33140
33141 2004-05-18  Karl Berry  <karl@gnu.org>
33142
33143         * config/srclist.txt: break link for vasnprintf.c.
33144
33145 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33146
33147         Port obstack to the AS/400, where pointers are 16 bytes wide and
33148         you cannot cast an integer to a valid pointer.  This patch is
33149         currently waiting to be integrated into glibc; see
33150         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33151
33152         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33153         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33154         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33155         (struct obstack): temp member is now a union of a pointer and
33156         an integer, instead of an integer.  All integer uses changed.
33157         This does not affect the physical layout of struct obstack,
33158         except on hosts (like the AS/400) where the size or alignment of
33159         void * is greater than that of ptrdiff_t.
33160         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33161         __STDC__)]: Store temporary in pointer member of union, not
33162         integer member.
33163         * lib/obstack.c: Include <stddef.h>, for offsetof.
33164         (struct fooalign): Remove; it doesn't need a name.
33165         (union fooround): Change double to long double, and add void *.
33166         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33167         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33168         not a macro.  Hence the values are always int; so remove all
33169         casts-to-int in uses.
33170
33171 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33172
33173         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33174         we can get this patch merged into glibc.
33175
33176 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33177             Paul Eggert  <eggert@cs.ucla.edu>
33178
33179         * m4/argp: Depend on alloca.
33180
33181 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33182             Paul Eggert  <eggert@cs.ucla.edu>
33183
33184         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33185         freecoding.
33186
33187 2004-05-17  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33190         precision that consists of a '.' followed by an empty digit string.
33191         Patch by Tor Lillqvist <tml@iki.fi>.
33192
33193 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33194
33195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33196         for backward compatibility with older code.  We need our own
33197         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33198         it under some other name, and our alloca.h will define it.
33199
33200 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33201             Derek Price  <derek@ximbiot.com>
33202
33203         * lib/alloca.c: Include <alloca.h>, to get our interface.
33204         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33205         include <alloca.h> first.  Use C89 prototype for alloca; this
33206         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33207         Use #elif for simplicity, since we can assume C89 now.
33208         Don't try to source the system alloca.h since it will not be found
33209         and to prevent recursively including its replacement.
33210         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33211         * lib/regex.c: Likewise.
33212
33213 2004-05-16  Derek Price  <derek@ximbiot.com>
33214             Paul Eggert  <eggert@cs.ucla.edu>
33215
33216         getline cleanup.  This changes the getndelim2 API: both order of
33217         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33218         no delimiter).
33219
33220         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33221         interface does that.
33222         (getline): Always use getdelim, so that we don't have two
33223         copies of this code.
33224         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33225         if available.
33226         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33227         (GETNDELIM2_MAXIMUM): New macro.
33228         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33229         instead of the old practice of delim2==0.  All callers changed.
33230         Return -1 on overflow, instead of returning junk.
33231         Do not set *linesize unless allocation succeeds.
33232         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33233         that we include sys/types.h.
33234         * lib/getnline.h: Likewise.
33235         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33236         (getndelim2): Reorder arguments.
33237         * lib/getnline.c (getnline, getndelim):
33238         Don't discard the NMAX argument.
33239         (getnline): Invoke getndelim, to avoid code duplication.
33240         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33241         of (size_t) -1 by callers of the getnline family.
33242
33243 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33244
33245         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33246         Check for gettimeofday.
33247         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33248         Check for settimeofday, stime.
33249
33250 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33251
33252         * lib/nanosleep.c (suspended): Change its type from int to
33253         sig_atomic_t volatile.
33254         (first_call): Make it private to rpl_nanosleep, and have it
33255         be zero initially as that's a bit faster.
33256         (my_usleep): Round up fractional times instead of truncating them,
33257         as this is the usual meaning for 'sleep'.
33258
33259         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33260         doesn't work.
33261         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33262         (ENOSYS): Define if not defined.
33263         (settime): Fall back on stime if it exists and settimeofday fails.
33264         But don't bother with fallbacks if a method fails with errno == EPERM.
33265
33266 2004-05-11  Jim Meyering  <jim@meyering.net>
33267
33268         Prior to this change, the save_cwd caller required read access to the
33269         current directory on most systems (ones with the fchdir function).
33270
33271         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33272         fails, try write-only, and finally, resort to using xgetcwd.
33273
33274 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33275
33276         * lib/obstack.c, obstack.h: Import changes from libc.
33277
33278 2004-04-28  Bruno Haible  <bruno@clisp.org>
33279
33280         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33281         also implicitly appends .exe to executables.
33282         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33283         accepts Windows pathnames.
33284         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33285         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33286         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33287         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33288         Reported by Derek Robert Price <derek@ximbiot.com>.
33289
33290 2004-04-21  Karl Berry  <karl@gnu.org>
33291
33292         * config/srclist.txt (localcharset.c): break sync.
33293
33294 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33295
33296         * m4/host-os.m4: Add a copyright notice.
33297
33298 2004-04-20  Jim Meyering  <jim@meyering.net>
33299
33300         Change UTILS_ to gl_ in AC_DEFINE'd names.
33301         Change utils_- and jm_-prefixed variables, too.
33302         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33303         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33304         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33305
33306         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33307         Don't emit trailing blanks.
33308         Also rename jm_-prefixed variables to have gl_ prefix.
33309
33310         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33311         Also rename jm_-prefixed variables to have gl_ prefix.
33312
33313         * m4/jm-macros.m4: Reflect the renamings.
33314         * m4/prereq.m4: Likewise.
33315
33316 2004-04-20  Jim Meyering  <jim@meyering.net>
33317
33318         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33319         memory.
33320
33321 2004-04-20  Jim Meyering  <jim@meyering.net>
33322             Bruno Haible  <bruno@clisp.org>
33323
33324         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33325         memory when realloc fails.
33326
33327 2004-04-19  Jim Meyering  <jim@meyering.net>
33328
33329         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33330         now that readutmp.c may call `free (0)'.
33331
33332 2004-04-19  Bruno Haible  <bruno@clisp.org>
33333
33334         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33335         * m4/inttypes_h.m4: Likewise.
33336         * m4/stdint_h.m4: Likewise.
33337         * m4/intmax_t.m4: Likewise.
33338         * m4/uintmax_t.m4: Likewise.
33339
33340 2004-04-18  Jim Meyering  <jim@meyering.net>
33341
33342         * m4/prereq.m4: Don't forbid jm_ prefix.
33343
33344         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33345         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33346         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33347         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33348         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33349         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33350         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33351         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33352         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33353         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33354         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33355         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33356         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33357         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33358         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33359         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33360         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33361         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33362         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33363
33364 2004-04-18  Jim Meyering  <jim@meyering.net>
33365
33366         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33367         failure, don't leak memory and do call END_UTMP_ENT.
33368
33369 2004-04-16  Jim Meyering  <jim@meyering.net>
33370
33371         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33372         coreutils' stat program.
33373         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33374
33375 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33376
33377         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33378         C89.
33379         (CHAR_BIT): Remove, since we assume C89.
33380         Include <stdint.h> if available, as per current Autoconf CVS advice.
33381
33382 2004-03-31  Jim Meyering  <jim@meyering.net>
33383
33384         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33385         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33386         * m4/xalloc.m4: Likewise.
33387
33388 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33389
33390         Merge from coreutils.
33391
33392         * m4/inttostr.m4: New file.
33393         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33394         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33395         Require gl_CLOCK_TIME.
33396         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33397
33398 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33399
33400         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33401         not bool, to be more consistent with Unix conventions.
33402         Suggested by Bruno Haible.
33403
33404         Merge from coreutils.
33405
33406         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33407         * lib/umaxtostr.c: New files.
33408
33409         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33410         the usual <time.h> dance.
33411         (get_date): Change signature to support fractional time stamps.
33412         All callers changed.
33413         * lib/getdate.y: Include "getdate.h" first, as we can now
33414         assume C89 and don't need to worry about 'const'.
33415         Similarly, include "unlocked-io.h" near start, not in middle.
33416         Include <limits.h>.
33417         (textint.value): Use long int rather than int.
33418         (textint.digits): Use size_t rather than int.
33419         (BILLION, LOG10_BILLION): New constants.
33420         (parser_control): New member rel_ns.  Members day_ordinal,
33421         time_zone, month, day, hour, minutes, rel_year, rel_month,
33422         rel_day, rel_hour, rel_minutes, rel_seconds
33423         are now long int, not int.  Member seconds is now struct timespec,
33424         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33425         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33426         not int.
33427         (%union.intval): Now long int, not int.
33428         New member timespec.
33429         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33430         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33431         (spec): Now is a timespec or an item list.
33432         (timespec, items): New nonterminals.
33433         (time, rel, relunit, number, get_date):
33434         Add support for fractional seconds.
33435         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33436         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33437         (to_hour): First arg is now long int, not int.
33438         (to_year): Returns long int, not int.
33439         Don't treat year -70 like 70.
33440         (tm_diff): Returns long int, not int.
33441         (lookup_word): Use bool instead of int when appropriate.
33442         (yylex): Use size_t for count, not int.
33443         Detect overflow when parsing large integer constants.
33444         Add support for fractions.
33445         (get_date): Make pointers 'const' if possible.
33446         Use more-portable code to detect integer overflow.
33447         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33448         Don't use ctime; it's not reliable if the year has >4 digits.
33449
33450         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33451         This is for compatibility with BSD.
33452
33453         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33454         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33455         From coreutils' system.h.
33456
33457         * lib/userspec.c: Don't include "posixver.h".
33458         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33459         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33460         compatible extension.  Simplify code by removing a boolean int
33461         that was always nonzero if a string was nonnull.
33462
33463 2004-03-30  Jim Meyering  <jim@meyering.net>
33464
33465         Merge from coreutils.
33466
33467         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33468         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33469         on some systems one must include <grp.h> before it.
33470         Reported by Christian Krackowizer.
33471
33472 2004-03-30  Jim Meyering  <jim@meyering.net>
33473
33474         Merge from coreutils.
33475
33476         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33477
33478         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33479         an empty input stream.
33480
33481         * lib/readtokens.c: Include <stdbool.h>.
33482         (readtoken): Use `size_t' rather than int/long.
33483         All callers adjusted.
33484         Use `bool' rather than `int' where appropriate.
33485         Use memset rather than an explicit loop.
33486         Use x2nrealloc rather than xrealloc.
33487         Allow the use of `\0' as a delimiter.
33488         (readtokens): Likewise.
33489         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33490
33491 2004-03-30  Jim Meyering  <jim@meyering.net>
33492
33493         * m4/realloc.m4: Remove file, since now it does no more than
33494         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33495         the `configure.ac' section of module/realloc.
33496         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33497
33498 2004-03-30  Bruno Haible  <bruno@clisp.org>
33499
33500         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33501         nonnull.
33502
33503 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33504
33505         Merge changes to getloadavg.c from coreutils and Emacs.
33506
33507         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33508         Define to an expression, not to the empty string.
33509         Include cloexec.h and xalloc.h.
33510         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33511         Use set_cloexec_flag rather than rolling our own.
33512         * lib/cloexec.c, lib/cloexec.h: New files.
33513
33514 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33515
33516         * m4/cloexec.m4: New file.
33517
33518 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33519
33520         * lib/getopt.h: Sync with libc CVS.
33521
33522 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33523             Bruno Haible  <bruno@clisp.org>
33524
33525         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33526         mbswidth.
33527
33528 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33529             Bruno Haible  <bruno@clisp.org>
33530
33531         * lib/mbswidth.h: Include <wchar.h> only if
33532         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33533         <wchar.h>.
33534         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33535
33536 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33537
33538         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33539         Sync with libc CVS.
33540         * lib/getopt_int.h: New file, also synced from libc.
33541
33542 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33543
33544         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33545         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33546         Bring back getopt.c, getopt.h, getopt1.c.
33547
33548 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33549
33550         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33551         All uses changed.  Check for sa_sigaction member; this fixes
33552         a bug first reported by Jason Andrade in
33553         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33554
33555 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33556
33557         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33558         '#if' expressions.  Unlike the code it replaces, it does not
33559         depend on (defined _SC_PAGESIZE).  However, it does depend on
33560         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33561         first reported by Jason Andrade in
33562         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33563
33564 2004-02-25  Simon Josefsson  <jas@extundo.com>
33565
33566         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33567
33568 2004-02-25  Simon Josefsson  <jas@extundo.com>
33569
33570         * lib/strdup.h: New file.
33571         * lib/strdup.c: Include it.
33572         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33573         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33574
33575 2004-02-23  Karl Berry  <karl@gnu.org>
33576
33577         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33578         (from fencepost.gnu.org:/gd/gnuorg).
33579
33580 2004-02-23  Karl Berry  <karl@gnu.org>
33581
33582         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33583         * config/srclist.txt: add maintain/standards documents.
33584
33585 2004-02-18  Bruno Haible  <bruno@clisp.org>
33586
33587         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33588         Reported by Derek Robert Price <derek@ximbiot.com>.
33589
33590 2004-02-16  Karl Berry  <karl@gnu.org>
33591
33592         * config/mkinstalldirs, install-sh: update from automake.
33593
33594 2004-02-06  Karl Berry  <karl@gnu.org>
33595
33596         * m4/po.m4: update from gettext 0.14.1.
33597
33598 2004-02-06  Karl Berry  <karl@gnu.org>
33599
33600         * lib/config.charset: update from gettext 0.14.1.
33601
33602 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33603
33604         Add comments and code, prompted by suggestions from Bruno Haible
33605         for sh-quote.
33606         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33607         describing the enum quoting_style values.
33608         * lib/quotearg.c (quotearg_alloc): New function.
33609         (quotearg_buffer_restyled): Treat lone { and } as special.
33610         Treat = as special.  Work around bug with older shells
33611         that "see" a '\' that is really the 2nd byte of a multibyte char.
33612         Quote empty string with shell_quoting_style.
33613
33614 2004-02-03  Bruno Haible  <bruno@clisp.org>
33615
33616         * m4/pipe.m4: New file, from GNU gettext.
33617
33618 2004-02-03  Bruno Haible  <bruno@clisp.org>
33619
33620         * lib/pipe.h: New file, from GNU gettext.
33621         * lib/pipe.c: New file, from GNU gettext.
33622
33623 2004-01-27  Bruno Haible  <bruno@clisp.org>
33624
33625         * m4/execute.m4: New file, from GNU gettext.
33626
33627 2004-01-27  Bruno Haible  <bruno@clisp.org>
33628
33629         * lib/execute.h: New file, from GNU gettext.
33630         * lib/execute.c: New file, from GNU gettext.
33631         * lib/w32spawn.h: New file, from GNU gettext.
33632
33633 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33634
33635         Merge from diffutils.
33636
33637         * lib/file-type.c (file_type): Add typed memory objects.
33638         * lib/file-type.h (S_TYPEISTMO): New macro.
33639
33640         * lib/c-stack.h (c_stack_action): Remove argv argument.
33641         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33642         (die): Don't calculate message unless segv_action returns.
33643         (get_stack_location, min_address_from_argv, max_address_from_argv,
33644         volatile stack_base, volatile_stack_size): Remove.
33645         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33646         that every segmentation violation is a stack overflow.  (Ouch!)
33647         See Debian bug 136249 (still outstanding) for more info about why
33648         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33649
33650 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33651
33652         Exit-status fix from coreutils.
33653
33654         Use exit_failure consistently in place of EXIT_FAILURE,
33655         so that program exit statuses are consistent on failure.
33656
33657         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33658         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33659         * lib/argmatch.h: Comment fix to match the above.
33660         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33661         Now a macro referring to exit_failure, instead of a separate
33662         variable.  Include "exitfail.h" to get it.
33663         * lib/xstrtol.h: Include "exitfail.h".
33664         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33665
33666         * lib/long-options.c (parse_long_options): Use prototype
33667         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33668         for clarity.
33669
33670 2004-01-21  Jim Meyering  <jim@meyering.net>
33671
33672         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33673         so as not to conflict with a different-sized __mktime_internal
33674         function in GNU libc.
33675         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33676         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33677
33678 2004-01-20  Karl Berry  <karl@gnu.org>
33679
33680         * config/config.guess: update from config.
33681
33682         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33683
33684 2004-01-20  Bruno Haible  <bruno@clisp.org>
33685
33686         Safer stack allocation.
33687         * lib/setenv.c: Include allocsa.h.
33688         (alloca): Remove fallback definition.
33689         (freea): Remove macro.
33690         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33691         instead of freea.
33692
33693 2004-01-20  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/eealloc.m4: New file, from GNU gettext.
33696
33697 2004-01-20  Bruno Haible  <bruno@clisp.org>
33698
33699         * m4/allocsa.m4: New file, from GNU gettext.
33700
33701 2004-01-20  Bruno Haible  <bruno@clisp.org>
33702
33703         * lib/xallocsa.h: New file, from GNU gettext.
33704         * lib/xallocsa.c: New file, from GNU gettext.
33705
33706 2004-01-20  Bruno Haible  <bruno@clisp.org>
33707
33708         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33709
33710 2004-01-20  Bruno Haible  <bruno@clisp.org>
33711
33712         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33713         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33714         specially.
33715
33716 2004-01-20  Bruno Haible  <bruno@clisp.org>
33717
33718         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33719         patch.
33720
33721 2004-01-20  Bruno Haible  <bruno@clisp.org>
33722
33723         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
33724
33725 2004-01-20  Bruno Haible  <bruno@clisp.org>
33726
33727         * lib/eealloc.h: New file.
33728
33729 2004-01-20  Bruno Haible  <bruno@clisp.org>
33730
33731         * lib/binary-io.h: Avoid warnings on Cygwin.
33732
33733 2004-01-20  Bruno Haible  <bruno@clisp.org>
33734
33735         * lib/allocsa.h: New file, from GNU gettext.
33736         * lib/allocsa.c: New file, from GNU gettext.
33737
33738 2004-01-18  Karl Berry  <karl@gnu.org>
33739
33740         * doc/gpl.texi, doc/lgpl.texi: new files.
33741
33742 2004-01-18  Karl Berry  <karl@gnu.org>
33743
33744         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
33745         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
33746
33747 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33748
33749         Merge from coreutils.
33750
33751         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
33752         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
33753         (gl_DEFAULT_POSIX2_VERSION): Move
33754         the documentation from 'configure' into 'config.hin',
33755         so that 'configure --help' isn't burdened by it and
33756         we don't have to worry about its formatting there.
33757         Reword the documentation so that it's more succinct
33758         and can be run together into a single paragraph.
33759         * m4/same.m4 (gl_SAME): Check for pathconf.
33760
33761 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33762
33763         Merge from coreutils.
33764
33765         * lib/posixver.c: Include posixver.h.
33766
33767         * lib/same.c: Include <stdbool.h>, <limits.h>.
33768         (_POSIX_NAME_MAX): Define if not defined.
33769         (MIN): New macro.
33770         (same_name): If file names are silently truncated, report
33771         that the file names are the same if they are the same after
33772         the silent truncation.
33773
33774         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
33775         conversion function.
33776         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
33777         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
33778         longer needed.
33779
33780 2004-01-15  Jim Meyering  <jim@meyering.net>
33781
33782         Merge from coreutils.
33783
33784         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
33785         if no library is required.
33786         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
33787         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
33788         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
33789         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
33790         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
33791         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
33792         value, $ac_cv_search_crypt, if it's "none required".
33793         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
33794         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
33795         not gl_FUNC_GETLOADAVG.
33796         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
33797         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
33798
33799 2004-01-15  Jim Meyering  <jim@meyering.net>
33800
33801         Merge from coreutils.
33802
33803         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
33804         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
33805         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
33806
33807         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
33808         optional configure-time default.
33809
33810         * lib/version-etc.c (version_etc_copyright): Update copyright date.
33811
33812         * lib/xreadlink.c (xreadlink): Correct outdated comment.
33813
33814 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
33815
33816         Merge from coreutils.
33817
33818         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
33819         value, $ac_cv_search_nanosleep, if it's "none required".
33820
33821 2004-01-14  Paul Eggert  <eggert@twinsun.com>
33822
33823         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
33824         with like-named macro in fnmatch.c.
33825         (EXT): Use an internal constant instead.
33826
33827         Merge fnmatch patches from glibc.
33828         * lib/fnmatch.c (mbsinit): Remove define.
33829         Add libc_hidden_ver (__fnmatch, fnmatch).
33830         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
33831         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
33832
33833 2004-01-14  Karl Berry  <karl@gnu.org>
33834
33835         * config/install-sh: update from automake.
33836
33837 2004-01-13  Karl Berry  <karl@gnu.org>
33838
33839         * config/install-sh: update from automake.
33840
33841 2004-01-09  Karl Berry  <karl@gnu.org>
33842
33843         * config/install-sh: update from automake.
33844
33845 2004-01-05  Karl Berry  <karl@gnu.org>
33846
33847         * config/config.{sub,guess}: update from config.
33848
33849 2003-12-31  Karl Berry  <karl@gnu.org>
33850
33851         * config/depcomp: update from automake.
33852
33853 2003-12-14  Karl Berry  <karl@gnu.org>
33854
33855         * lib/config.charset: update from gettext-runtime.
33856
33857 2003-12-03  Paul Eggert  <eggert@twinsun.com>
33858
33859         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
33860         Bug reported by Alfred M. Szmidt.
33861
33862 2003-12-03  Bruno Haible  <bruno@clisp.org>
33863
33864         * m4/gettext.m4: Upgrade from gettext-0.13.
33865         * m4/po.m4: Upgrade from gettext-0.13.
33866         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
33867         * m4/intmax.m4: New file, from gettext-0.13.
33868         * m4/printf-posix.m4: New file, from gettext-0.13.
33869
33870 2003-11-29  Karl Berry  <karl@gnu.org>
33871
33872         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
33873
33874 2003-11-25  Paul Eggert  <eggert@twinsun.com>
33875             Bruno Haible  <bruno@clisp.org>
33876
33877         * lib/printf-parse.h: Don't include sys/types.h.
33878         (ARG_NONE): New macro.
33879         (char_directive): Change type of *arg_index fields to size_t.
33880         * lib/printf-parse.c: Don't include sys/types.h.
33881         (SSIZE_MAX): Remove macro.
33882         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
33883         Remove unnecessary overflow check.
33884         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
33885         fields.
33886
33887 2003-11-25  Bruno Haible  <bruno@clisp.org>
33888
33889         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
33890
33891 2003-11-25  Bruno Haible  <bruno@clisp.org>
33892
33893         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
33894         gt_TYPE_SSIZE_T.
33895
33896 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33897
33898         * modules/alloca: Remove dependency on xalloc.
33899
33900 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33901
33902         * lib/alloca.c: Remove dependency on xalloc module.
33903         (xalloc_die): Remove.
33904         (memory_full) [!defined emacs]: New macro.
33905         [!defined emacs]: Don't include xalloc.h.
33906         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
33907         address arithmetic overflows.  Change datatypes a bit to avoid
33908         unnecessary casts.
33909
33910 2003-11-22  Jim Meyering  <jim@meyering.net>
33911
33912         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
33913         s/size/size_t/.
33914
33915 2003-11-21  Karl Berry  <karl@gnu.org>
33916
33917         * config/config.{sub,guess}: update from config.
33918
33919 2003-11-18  Karl Berry  <karl@gnu.org>
33920
33921         * config/config.{sub,guess}: update from config.
33922
33923         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
33924
33925 2003-11-17  Paul Eggert  <eggert@twinsun.com>
33926
33927         * README: Mention that S+T cannot overflow if S is the size of
33928         an existing object and T is sufficiently small.
33929
33930 2003-11-17  Jim Meyering  <jim@meyering.net>
33931
33932         On systems without utime and without a utimes function capable of
33933         dealing with a NULL struct utimbuf* argument, this utime replacement
33934         could -- in unusual circumstances -- leak a file descriptor.
33935         * lib/utime.c: Include <unistd.h> and <errno.h>.
33936         (utime_null): Be sure to close `fd' and to preserve errno.
33937         Reported by Geoff Collyer via Arnold Robbins.
33938
33939 2003-11-17  Bruno Haible  <bruno@clisp.org>
33940
33941         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
33942         (Depends-on): Add xsize.
33943
33944 2003-11-17  Bruno Haible  <bruno@clisp.org>
33945
33946         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
33947
33948 2003-11-17  Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/vasnprintf.c (alloca): Remove fallback definition.
33951         (freea): Remove definition.
33952         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
33953         Reported by Paul Eggert.
33954
33955 2003-11-16  Paul Eggert  <eggert@twinsun.com>
33956             Bruno Haible  <bruno@clisp.org>
33957
33958         Protect against address arithmetic overflow.
33959         * lib/printf-args.h: Include stddef.h.
33960         (arguments): Change type of field 'count' to size_t.
33961         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
33962         'unsigned int' where appropriate.
33963         * lib/printf-parse.h: Include sys/types.h.
33964         (char_directive): Change type of *arg_index fields to ssize_t.
33965         (char_directives): Change type of fields 'count', max_*_length to
33966         size_t.
33967         * lib/printf-parse.c: Include sys/types.h and xsize.h.
33968         (SSIZE_MAX): Define fallback value.
33969         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
33970         instead of 'int' where appropriate. Check a_allocated, d_allocated
33971         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
33972         * lib/vasnprintf.c: Include xsize.h.
33973         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
33974         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
33975         overflow. Avoid wraparound when converting a width or precision from
33976         decimal to binary.
33977
33978 2003-11-16  Bruno Haible  <bruno@clisp.org>
33979
33980         Update from GNU gettext.
33981         * lib/printf-parse.c: Generalize to it can be compiled for wide
33982         strings.
33983         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
33984         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
33985         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
33986         SNPRINTF): New macros.
33987         Don't include <alloca.h> if the file is used inside libintl.
33988         (local_wcslen): New function, for Solaris 2.5.1.
33989         (VASNPRINTF): Use it instead of wcslen.
33990
33991 2003-11-16  Bruno Haible  <bruno@clisp.org>
33992
33993         * lib/xsize.h (xmax): New function.
33994         (xsum, xsum3, xsum4): Declare as "pure" functions.
33995
33996 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33997
33998         * modules/xalloc (Files): Undo latest change, since xalloc.h
33999         no longer needs SIZE_MAX or PTRDIFF_MAX.
34000
34001 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34002
34003         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
34004         gl_PTRDIFF_MAX.
34005
34006 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34007
34008         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
34009         "return", to pacify some unknown compiler.  Problem reported
34010         by Joerg Schilling.
34011
34012 2003-11-12  Paul Eggert  <eggert@twinsun.com>
34013
34014         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
34015         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
34016         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
34017         heuristic is just as accurate as far as we know, and it removes a
34018         dependency on size_max.m4 and ptrdiff_max.m4.
34019
34020 2003-11-11  Bruno Haible  <bruno@clisp.org>
34021
34022         * modules/xsize (Files): Add m4/size_max.m4.
34023         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
34024
34025 2003-11-11  Bruno Haible  <bruno@clisp.org>
34026
34027         * m4/size_max.m4: New file.
34028         * m4/ptrdiff_max.m4: New file.
34029         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
34030         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
34031         (gl_XALLOC): Invoke it.
34032
34033 2003-11-11  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
34036         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
34037         defined.
34038
34039 2003-11-10  Paul Eggert  <eggert@twinsun.com>
34040
34041         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
34042         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
34043         rejected some allocations of exactly SIZE_MAX - 2 bytes.
34044         From Bruno Haible.
34045         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
34046         not (size_t) -1, since it's defined here.
34047
34048 2003-11-09  Karl Berry  <karl@gnu.org>
34049
34050         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
34051
34052 2003-11-06  Paul Eggert  <eggert@twinsun.com>
34053
34054         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
34055         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
34056         Reject sizes of exactly SIZE_MAX bytes.
34057         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
34058         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
34059
34060 2003-11-05  Bruno Haible  <bruno@clisp.org>
34061
34062         * lib/xsize.h: Include limits.h, to avoid a possible collision with
34063         SIZE_MAX defined in <limits.h> on Solaris.
34064
34065 2003-11-04  Jim Meyering  <jim@meyering.net>
34066
34067         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
34068         variable names, rather than @VAR@.
34069         * modules/poll: Likewise.
34070
34071 2003-11-04  Bruno Haible  <bruno@clisp.org>
34072
34073         * modules/xsize: New file.
34074         * modules/linebreak: Depend on xsize.
34075         * MODULES.html.sh (func_all_modules): Add xsize.
34076
34077 2003-11-04  Bruno Haible  <bruno@clisp.org>
34078
34079         * m4/xsize.m4: New file.
34080
34081 2003-11-04  Bruno Haible  <bruno@clisp.org>
34082
34083         * lib/xsize.h: New file.
34084         * lib/linebreak.c: Include xsize.h.
34085         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
34086         argument for overflow.
34087         Suggested by Paul Eggert.
34088
34089 2003-11-03  Karl Berry  <karl@gnu.org>
34090
34091         * config/config.{guess,sub}: update from config.
34092
34093 2003-11-03  Jim Meyering  <jim@meyering.net>
34094
34095         * modules/userspec (lib_SOURCES): Add userspec.h.
34096         (Include): Add "userspec.h".
34097         Improve description.
34098
34099 2003-11-03  Jim Meyering  <jim@meyering.net>
34100
34101         * lib/userspec.c: Include "userspec.h".
34102         * lib/userspec.h: New file.
34103
34104 2003-11-03  Bruno Haible  <bruno@clisp.org>
34105
34106         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
34107
34108 2003-11-03  Bruno Haible  <bruno@clisp.org>
34109
34110         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
34111         available, to avoid (extremely rare) race condition.
34112         Suggested by Paul Eggert.
34113
34114 2003-11-02  Karl Berry  <karl@gnu.org>
34115
34116         * config/srclist.txt (vasprintf.c): sync broken, sigh.
34117
34118 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34119
34120         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34121         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34122         (read_filesystem_list): Set and use me_type_malloced.
34123         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34124         whatever the type happens to be), for brevity and consistency.
34125         Check for size calculation overflow on Alphas running OSF/1.
34126
34127 2003-10-31  Jim Meyering  <jim@meyering.net>
34128
34129         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34130
34131         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34132
34133 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34134             Bruno Haible  <bruno@clisp.org>
34135
34136         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34137         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34138
34139 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34140
34141         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34142         netbsd*-gnu*.  Suggested by Robert Millan.
34143
34144 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34145
34146         * modules/group-member: Depend on stdbool.
34147
34148 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34149
34150         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34151
34152 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34153
34154         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34155         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34156         after the 'gnu' in these cases.  This fixes some bugs in the
34157         previous change, and is based on suggestions by Robert Millan.
34158
34159 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34160
34161         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34162         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34163         no longer needed.
34164         * lib/quotearg.c (quotearg_n_options): Use it.
34165         * lib/group-member.c: Include <stdbool.h>.
34166         (free_group_info): Arg is now const *; don't free arg.
34167         (get_group_info): Now returns bool and accepts struct group_info *,
34168         rather than returning a malloc'ed struct group_info *.
34169         All uses changed.  Check for overflow in internal size calculation.
34170
34171         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34172         rather than xmalloc/xrealloc.
34173         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34174         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34175         conformance bug: the old code used a pointer after freeing the
34176         storage that it addressed.
34177         * lib/hash.c (hash_initialize): Simplify the code by using
34178         xalloc_oversized rather than doing it by hand.
34179         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34180         the buffer preserved.  Use free and xmalloc instead.
34181         * lib/quotearg.c (quotearg_n_options): Likewise.
34182         Use a simpler test for size overflow.  Don't use xalloc_oversized
34183         because unsigned int might be wider than size_t (!); this suggests
34184         that we should switch from unsigned int to size_t for slot numbers.
34185
34186 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34187
34188         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34189         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34190         NetBSD kernels.  Requested by Richard Stallman.
34191
34192 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34193
34194         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34195         to allocate the returned structure.  Do not allocate a subarray,
34196         as x2nrealloc will do that.
34197         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34198         instead of xnrealloc.
34199         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34200
34201 2003-10-27  Bruno Haible  <bruno@clisp.org>
34202
34203         * lib/stdbool_.h: Better support for BeOS.
34204
34205 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34206
34207         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34208         now uses inline.
34209
34210 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34211
34212         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34213         callers that want to do their own size-overflow checking.  Include
34214         <stdbool.h>, since xalloc_oversized returns bool.
34215         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34216         to use xalloc_oversized.
34217
34218         Add two functions x2realloc, x2nrealloc, for programs that grow
34219         arrays dynamically by doubling their sizes.
34220         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34221         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34222         New functions.
34223
34224         Port to C99 semantics for 'inline' of external functions.
34225         Bug reported by Bruno Haible.
34226         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34227         with the old contents of xnmalloc.
34228         (xnmalloc, xmalloc): Use it.
34229         (xnrealloc_inline): New static inline function,
34230         with the old contents of xnrealloc.
34231         (xnrealloc, xrealloc): Use it.
34232
34233         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34234         that.
34235
34236 2003-10-26  Karl Berry  <karl@gnu.org>
34237
34238         * config/srclist.txt (COPYING.DOC): no longer available from
34239         /gd/gnuorg; don't know where the ultimate source is.
34240
34241 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34242
34243         Fix several address-calculation bugs in the hash modules,
34244         plus some minor code cleanup.
34245
34246         * lib/hash.h: Include <stdbool.h>, for bool.
34247         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34248         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34249         hash_get_n_entries, hash_get_max_bucket_length,
34250         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34251         hash_rehash): Use size_t rather than unsigned.
34252         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34253         hash_get_n_buckets_used, hash_get_n_entries,
34254         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34255         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34256         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34257         Likewise.
34258         (SIZE_MAX): Define if not defined.
34259         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34260         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34261         hash_print):
34262         Use const * when possible.
34263         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34264         (check_tuning): Fix bug: if tuning parameters were very close to
34265         0 or 1, rounding errors could have caused subscript violations.
34266         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34267         (hash_initialize): Add 'fail:' label
34268         to free table and return NULL, and use it to simplify code.
34269         Use calloc rather than clearing the storage ourself.
34270         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34271         buffer size calculations.
34272         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34273         Include <stddef.h>, for size_t.
34274         * lib/hash-pjw.c (hash_pjw): Likewise.
34275         Switch to method described by Bruno Haible.
34276         Include <limits.h>, for CHAR_BIT.
34277         (SIZE_BITS): New macro.
34278
34279 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34280
34281         * m4/getline.m4 (AM_FUNC_GETLINE):
34282         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34283         hosts.  Problem reported by Derek Robert Price in
34284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34285         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34286         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34287
34288 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34289
34290         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34291         ceiling the allocation at NMAX bytes rather than silently
34292         discarding input bytes before NMAX is reached.  This makes
34293         a difference only if NMAX exceeds SIZE_MAX / 2.
34294
34295         * lib/obstack.c: Merge from glibc.
34296         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34297         Add libc_hidden_def (_obstack_newchunk).
34298         (_obstack_free) [! defined _LIBC]: Remove.
34299         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34300         a clone of the function body.
34301         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34302         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34303
34304         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34305         glibc.
34306         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34307         arg to memcpy.
34308
34309         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34310         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34311         Don't use lvalue casts, as GCC plans to remove support for them
34312         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34313         was also present in the non-GCC version, indicating that this
34314         code had always been buggy and had never been widely used.
34315         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34316         Use the fast variant of each macro, rather than copying the
34317         definiens of the fast variant; that way, we'll be more likely to
34318         catch future bugs in the fast variants.
34319
34320 2003-10-20  Bruno Haible  <bruno@clisp.org>
34321
34322         * modules/wait-process: New file.
34323         * MODULES.html.sh (func_all_modules): Add wait-process.
34324
34325 2003-10-20  Bruno Haible  <bruno@clisp.org>
34326
34327         * m4/wait-process.m4: New file.
34328
34329 2003-10-20  Bruno Haible  <bruno@clisp.org>
34330
34331         * lib/wait-process.h: New file, from GNU gettext.
34332         * lib/wait-process.c: New file, from GNU gettext.
34333
34334 2003-10-19  Jim Meyering  <jim@meyering.net>
34335
34336         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34337         HPUX 10.20.
34338
34339 2003-10-18  Karl Berry  <karl@gnu.org>
34340
34341         * config/config.guess: update from config.
34342
34343 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34344
34345         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34346         (getgroups): First arg is int, not size_t.
34347         Don't let 'free' mangle errno.
34348
34349 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34350
34351         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34352
34353 2003-10-16  Karl Berry  <karl@gnu.org>
34354
34355         * config/config.{guess,sub}: update from config.
34356
34357 2003-10-16  Jim Meyering  <jim@meyering.net>
34358
34359         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34360         memcpy.
34361
34362 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34363
34364         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34365         (SIZE_MAX): Remove.
34366         (new_exclude, add_exclude_file): Initial size no longer needs to
34367         be a power of 2.
34368         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34369         our own address arithmetic overflow checking.
34370
34371         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34372         (fnmatch): Do not alloca more than 2000 wide characters;
34373         instead, use malloc for large buffers.
34374         Check for address arithmetic overflow, and return -1
34375         with errno set to ENOMEM in that case.
34376         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34377         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34378         instead, return -1.  Check for address arithmetic overflow.
34379
34380 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34381
34382         Handle invalid suffixes and overflow independently, so that
34383         callers can treat them independently as needed.  Fix some bugs in
34384         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34385         suffix for a human-readable blocksize.  The major caller-visible
34386         change is the addition of a new
34387         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34388         that both overflow and suffix chars were found.
34389
34390         * lib/human.c (humblock): Don't check separately for invalid suffix
34391         char; that is xstrtoumax's job (now that its bug is fixed).
34392         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34393         INTMAX_MAX]: New macros.
34394         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34395         TYPE_MAXIMUM): New macros.
34396         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34397         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34398         if overflow occurs, as it's what __strtol does and it's more useful
34399         in practice.
34400         (__xstrtol): If __strtol reports some error other than ERANGE,
34401         reflect it to the caller as LONGINT_INVALID.  If it reports
34402         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34403         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34404         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34405         value.
34406         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34407         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34408         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34409         [defined UINTMAX_MAX]: New macros.
34410
34411 2003-10-14  Bruno Haible  <bruno@clisp.org>
34412
34413         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34414
34415 2003-10-14  Bruno Haible  <bruno@clisp.org>
34416
34417         * m4/sig_atomic_t: New file, from GNU gettext.
34418         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34419
34420 2003-10-14  Bruno Haible  <bruno@clisp.org>
34421
34422         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34423         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34424         Also use volatile where needed.
34425
34426 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34427
34428         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34429         Change maintainer from Bruno Haible to 'all'.
34430
34431 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34432
34433         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34434
34435 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34436
34437         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34438         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34439         and define in terms of the other primitives.
34440         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34441         (SIZE_MAX): Define if not already defined.
34442         (array_size_overflow): New function.
34443         (xalloc_die): Abort instead of exiting if 'error' returns.
34444         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34445         (xmalloc, xrealloc): Use them.
34446         (xcalloc): Check for address arithmetic overflow.
34447         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34448         a bit faster than strcpy.
34449
34450 2003-10-10  Simon Josefsson  <jas@extundo.com>
34451
34452         * modules/argp (Depends-on): Add restrict and strcase.
34453
34454 2003-10-10  Simon Josefsson  <jas@extundo.com>
34455
34456         * m4/argp.m4: Add AC_C_INLINE.
34457
34458 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34459
34460         Merge getpass from libc, plus a few fixes.
34461
34462         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34463         Include <stdbool.h>.
34464         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34465         __fsetlocking to empty.
34466         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34467         do include <bits/libc-lock.h>.
34468         Do not include <fcntl.h>; not needed.
34469         [_LIBC]: Include <wchar.h>.
34470         (NOTCANCEL_MODE): New macro.
34471         (flockfile, funlockfile) [_LIBC]: New macros.
34472         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34473         [!_LIBC]: New macros.
34474         (call_fclose): New function.
34475         (getpass): Use it.  Save tty stream separately; this simplifies the
34476         code and makes it more reliable if stdin happens to equal stdout.
34477         Invoke __fsetlocking on tty.
34478         Handle thread cancellation if needed.
34479         Namespace cleanup (use __tcgetattr, __getline).
34480         Use bool for Booleans.
34481         [USE_IN_LIBIO]: Handle wide streams.
34482         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34483         stream might go where.
34484
34485         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34486         doesn't have to include <stdio.h> before us.
34487         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34488         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34489         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34490         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34491         if not declared, so that we can use getpass.c code from libc without
34492         rewriting it.
34493         (flockfile, ftrylockfile, funlockfile): New macros.
34494
34495 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34496
34497         * modules/getpass: Depend on stdbool.
34498
34499 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34500
34501         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34502
34503 2003-10-07  Karl Berry  <karl@gnu.org>
34504
34505         * config/config.{guess,sub}: update from config.
34506
34507 2003-10-06  Jim Meyering  <jim@meyering.net>
34508             Bruno Haible  <bruno@clisp.org>
34509
34510         This lets translators provide better translations for the
34511         "Written by ..." part of --version output.
34512         * lib/version-etc.h: Include stdarg.h.
34513         (version_etc_copyright): Declare as readonly.
34514         (version_etc): Make this function variadic with a NULL-terminated list
34515         of author name strings.
34516         (version_etc_va): New declaration.
34517         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34518         (version_etc_copyright): Declare as readonly.
34519         (version_etc_va): New function. Provide a different translatable string
34520         for each possible number of authors < 10. Abbreviate when there are 10
34521         authors or more.
34522         (version_etc): Make this function variadic. Call version_etc_va.
34523         Suggestion from Gary V. Vaughan.
34524
34525         * lib/long-options.h (parse_long_options): Change prototype: the
34526         authors string is moved to the end and becomes variadic.
34527         * lib/long-options.c: Include stdarg.h.
34528         (parse_long_options): Make this function variadic, too.
34529         Call version_etc_va, not version_etc.
34530
34531 2003-10-06  Bruno Haible  <bruno@clisp.org>
34532
34533         * modules/version-etc-2: Remove file.
34534         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34535
34536 2003-10-06  Bruno Haible  <bruno@clisp.org>
34537
34538         * modules/fatal-signal: New file.
34539         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34540
34541 2003-10-06  Bruno Haible  <bruno@clisp.org>
34542
34543         * m4/fatal-signal.m4: New file.
34544         * m4/signalblocking.m4: New file, from GNU gettext.
34545
34546 2003-10-06  Bruno Haible  <bruno@clisp.org>
34547
34548         * lib/version-etc-2.h: Remove file.
34549         * lib/version-etc-2.c: Remove file.
34550
34551 2003-10-06  Bruno Haible  <bruno@clisp.org>
34552
34553         * lib/fatal-signal.h: New file, from GNU gettext.
34554         * lib/fatal-signal.c: New file, from GNU gettext.
34555
34556 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34557
34558         * README: Rework advice for preventing empty .o files.
34559         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34560         not <sys/types.h>.
34561
34562 2003-10-04  Karl Berry  <karl@gnu.org>
34563
34564         * lib/argp*: update from libc.
34565
34566 2003-10-04  Karl Berry  <karl@gnu.org>
34567
34568         * config/config.{guess,sub}: update from config.
34569
34570 2003-10-02  Bruno Haible  <bruno@clisp.org>
34571
34572         * modules/lchown (Include): Add lchown.h.
34573         * modules/time_r (Include): Use "..." syntax.
34574         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34575
34576 2003-10-01  Simon Josefsson  <jas@extundo.com>
34577
34578         * MODULES.html.sh (func_all_modules): Move gethostname from section
34579         'based on' to section 'lacking' POSIX:2001.
34580
34581 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34582
34583         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34584         to output mode on the same stream.
34585
34586 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34587
34588         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34589         Fix arg typo in previous patch.
34590
34591 2003-09-28  Jim Meyering  <jim@meyering.net>
34592
34593         * lib/error.c: Correct cpp indentation.
34594
34595 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34596
34597         * modules/free: New file.
34598
34599 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34600
34601         * m4/free.m4: New file.
34602
34603 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34604
34605         * lib/minmax.h (MIN, MAX)
34606         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34607         Omit the special code that used __typeof__, since we worry that
34608         it could be more trouble than it's worth.  See:
34609         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34610         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34611
34612         * lib/free.c: New file.
34613
34614 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34615
34616         Trivial fixes to Makefile.am parts of module listings.
34617         * modules/strstr: Append strstr.h to lib_SOURCES.
34618         * modules/strcase: Likewise, for strcase.h.
34619
34620 2003-09-27  Karl Berry  <karl@gnu.org>
34621
34622         * config/mkinstalldirs: update from automake.
34623
34624 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34625
34626         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34627         (error_tail): Do not loop, reallocating temporary buffer, since
34628         the output cannot contain more wide characters than the input
34629         contains bytes, the size must be big enough already.  This avoids
34630         one potential size overflow calculation.  Check for size overflow
34631         when calculating temporary buffer size.  Free temporary buffer
34632         when done, if it was allocated with malloc; this plugs a memory
34633         leak.  Remove casts from void * to pointers, that are no longer
34634         needed now that we're assuming C89 or better.
34635
34636         Merge error changes from glibc.
34637
34638         * lib/error.c, error.h: Update copyright notice header to match glibc.
34639         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34640         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34641         Disable cancellation while printing error.
34642         * lib/error.h: Prepend __ to parameter names.
34643
34644 2003-09-26  Jim Meyering  <jim@meyering.net>
34645
34646         * lib/error.c (error_tail): Move some declarations
34647         into inner scope where the local variables are used.
34648
34649 2003-09-26  Bruno Haible  <bruno@clisp.org>
34650
34651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34652         stpncpy().
34653         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34654
34655 2003-09-26  Bruno Haible  <bruno@clisp.org>
34656
34657         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34658         (stpncpy): Define as alias for gnu_stpncpy.
34659         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34660
34661 2003-09-25  Simon Josefsson  <jas@extundo.com>
34662
34663         * lib/xgetdomainname.h: New file.
34664         * lib/xgetdomainname.c: New file.
34665
34666 2003-09-25  Simon Josefsson  <jas@extundo.com>
34667             Bruno Haible  <bruno@clisp.org>
34668
34669         * modules/getdomainname: New file.
34670         * modules/xgetdomainname: New file.
34671         * MODULES.html.sh (func_all_modules): Add getdomainname,
34672         xgetdomainname.
34673
34674 2003-09-25  Simon Josefsson  <jas@extundo.com>
34675             Bruno Haible  <bruno@clisp.org>
34676
34677         * m4/getdomainname.m4: New file.
34678
34679 2003-09-25  Simon Josefsson  <jas@extundo.com>
34680             Bruno Haible  <bruno@clisp.org>
34681
34682         * lib/getdomainname.h: New file.
34683         * lib/getdomainname.c: New file.
34684
34685 2003-09-25  Karl Berry  <karl@gnu.org>
34686
34687         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34688
34689 2003-09-25  Karl Berry  <karl@gnu.org>
34690
34691         * config/install-sh: update from automake.
34692
34693 2003-09-25  Bruno Haible  <bruno@clisp.org>
34694
34695         * modules/version-etc-2: New file, from modules/version-etc with
34696         modifications.
34697         * MODULES.html.sh (func_all_modules): Add version-etc-2.
34698
34699 2003-09-25  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34702         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34703
34704 2003-09-24  Simon Josefsson  <jas@extundo.com>
34705
34706         * modules/xgethostname: Add xgethostname.h.
34707
34708 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34709
34710         * lib/linebuffer.c (freebuffer): Don't free the argument, just
34711         the buffer associated with the argument.  Bug reported by
34712         Simon Josefsson.
34713
34714 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34715
34716         * README: Document assumptions that 'int' is at least 32 bits
34717         wide, that integer arithmetic is 2's complement without overflow,
34718         that there are no holes in integer values, that adding sizes of
34719         two nonoverlapping objects can't overflow, and that all-bits-zero
34720         yields scalar zero.  Fix spelling and capitalization typos.
34721
34722 2003-09-19  Karl Berry  <karl@gnu.org>
34723
34724         * lib/argp.h: update from libc.
34725
34726 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34727
34728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
34729         to avoid spurious warnings like "AC_RUN_IFELSE was called before
34730         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
34731
34732 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34733
34734         * gnulib-tool: Use "test -h", not "test -L", for portability
34735         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
34736         (tags_regexp): Remove, since \| doesn't conform to POSIX.
34737         (sed_extract_prog): Issue s commands one-by-one, rather than
34738         using \| in one s command.
34739
34740 2003-09-16  Paul Eggert  <eggert@twinsun.com>
34741
34742         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
34743         input error, instead of returning NULL the next time we are called
34744         (and therefore losing track of errno).
34745
34746 2003-09-16  Bruno Haible  <bruno@clisp.org>
34747
34748         * gnulib-tool (func_create_testdir): Warn about duplicated
34749         dependencies.
34750
34751 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34752
34753         * modules/argmatch, modules/fatal, modules/obstack,
34754         modules/xalloc, modules/xgethostname: Sort dependencies by
34755         importance, not alphabetically.
34756
34757 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34758
34759         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
34760         fails, so that the caller gets the proper errno.
34761
34762         * lib/readutmp.c (read_utmp): Likewise.
34763         Check for fstat error.  Close stream and free storage
34764         when failing.
34765
34766 2003-09-14  Karl Berry  <karl@gnu.org>
34767
34768         * config/srclist.txt (strdup.c): disable for c89 changes.
34769
34770 2003-09-14  Jim Meyering  <jim@meyering.net>
34771
34772         * lib/getloadavg.c: Correct cpp indentation.
34773         * lib/strdup.c: Likewise.
34774         * lib/vasnprintf.c: Likewise.
34775
34776 2003-09-14  Bruno Haible  <bruno@clisp.org>
34777
34778         * modules/fwriteerror: New file.
34779         * MODULES.html.sh (func_all_modules): Add fwriteerror.
34780
34781 2003-09-14  Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/fwriteerror.h: New file.
34784         * lib/fwriteerror.c: New file.
34785
34786 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34787
34788         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
34789         modules/xgethostname, modules/xalloc: Depend on exit.
34790
34791 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34792
34793         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
34794
34795         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
34796         and AC_MINIX, too, so that their extensions are available.
34797
34798         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
34799         This macro has been superseded by gl_BACKUPFILE.
34800
34801         More patches to assume C89 or better.
34802
34803         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
34804
34805         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
34806         unconditionally.
34807         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
34808         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
34809         Include <string.h>, <stdlib.h> unconditionally.
34810         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
34811         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
34812         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
34813         headers or for string.h.
34814         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
34815         or strtoul.
34816
34817         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
34818         headers.
34819         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
34820         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34821         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
34822         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
34823         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
34825         memcpy, memset.
34826         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
34827         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
34828         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
34829         strtol.
34830         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
34831         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
34832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
34833         strtoul.
34834
34835 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34836
34837         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
34838         * lib/obstack.c [!defined _LIBC]: Likewise.
34839         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
34840         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
34841         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
34842
34843         More changes to assume C89 or better.
34844
34845         * lib/error.c (error_tail): Assume vprintf.
34846
34847         * lib/argmatch.c (getenv): Remove decl.
34848         * lib/progreloc.c (get_full_program_name): Define via prototype.
34849         * lib/setenv.c (clearenv): Likewise.
34850         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
34851         needed.
34852         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
34853         (malloc, memcpy): Remove decls.
34854         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
34855         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
34856         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34857         (memcpy): Remove macro.
34858         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
34859         (__P): Remove.  All uses removed.
34860         (PTR): Remove.  All uses changed to void *.
34861         (CHAR_BIT, NULL): Remove.
34862         (spaces, zeros, memset_space, memset_zero)
34863         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
34864         Remove.
34865         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
34866         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
34867         Define with prototype.
34868         Remove now-unnecessary prototype decl.
34869         (extra_args_spec): Assume ANSI C.  All uses changed.
34870         (extra_args_spec_iso): Remove.
34871         (my_strftime, emacs_strftimeu): Define via prototype.
34872         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
34873         unconditionally.
34874         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
34875         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
34876         (strtoul, strtol): Remove decls.
34877         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
34878         LONG_MAX): Remove.
34879         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34880         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
34881         (LOCALE_PARAM_PROTO): New macro.
34882         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
34883         (INTERNAL (strtol), strtol): Define with a prototype.
34884         (PARAMS): Remove.  All uses removed.
34885         * lib/tempname.c: Include <string.h> unconditionally.
34886         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
34887         * lib/xgethostname.c (main): Define with a prototype.
34888         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
34889         Include <stdlib.h> unconditionally.
34890         (calloc, malloc, realloc, free): Remove decls.
34891         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
34892         Include <stdlib.h> unconditionally.  Sort include file names.
34893         (strtod): Remove.
34894         (xstrtod): Define with a prototype.
34895         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
34896         (strtol, strtoul): Remove decls.
34897
34898 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34899
34900         More patches to assume C89 or better.
34901         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
34902         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
34903         string.h, memchr, STDC_HEADERS.
34904
34905 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34906
34907         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
34908         Include <stdlib.h>, <string.h> unconditionally.
34909         Remove now-unnecessary cast to char *.
34910         * lib/strnlen.c: Include <string.h> unconditionally.
34911         * lib/yesno.c (yesno): Define with a prototype.
34912
34913 2003-09-11  Bruno Haible  <bruno@clisp.org>
34914
34915         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
34916
34917 2003-09-10  Jim Meyering  <jim@meyering.net>
34918
34919         * lib/error.c: Correct indentation of cpp directives.
34920
34921 2003-09-10  Bruno Haible  <bruno@clisp.org>
34922
34923         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
34924         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
34925         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
34926         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
34927         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
34928         <stdlib.h> and <string.h> checks.
34929         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
34930         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
34931
34932 2003-09-10  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/strcspn.c: Include <string.h> unconditionally.
34935         * lib/strpbrk.c: Include <string.h> unconditionally.
34936         * lib/strstr.c: Include <string.h> unconditionally.
34937         * lib/unicodeio.c: Include <string.h> unconditionally.
34938         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
34939         * lib/unsetenv.c: Likewise.
34940         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
34941         * lib/yesno.c: Include <stdlib.h> unconditionally.
34942         (rpmatch): Add prototype.
34943
34944 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34945
34946         More patches to assume C89 or better.
34947         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
34948         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
34949         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
34950         or for string.h.
34951         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
34952         stdlib.h.
34953         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
34954         C headers.
34955         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
34956         string.h.
34957         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
34958         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
34959         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
34960         or for string.h.
34961         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
34962         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
34963         C headers.
34964         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
34965         memcpy.
34966         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
34967         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
34968         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
34969         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
34970         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
34971         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
34972         string.h, free.
34973         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
34974         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
34975         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
34976         C headers, or for string.h.
34977         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
34978         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
34979         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
34980         headers, memory.h, stdlib.h, string.h, strings.h.
34981         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
34982         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
34983         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
34984         strchr.
34985         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
34986         headers, memory.h, string.h.
34987         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
34988         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
34989         free.
34990         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
34991         headers.
34992         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
34993         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
34994         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
34995         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
34996         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
34997
34998 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34999
35000         More K&R removal.
35001
35002         * lib/acosl.c (main): Use a prototype.
35003         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
35004         tanl.c: Likewise.
35005
35006         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
35007
35008         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
35009         (getopt, etopt_long, getopt_long_only, _getopt_internal)
35010         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
35011         with a prototype.
35012         * lib/getopt.c (const): Remove macro.
35013         Include <string.h> unconditionally.
35014         (my_index): Remove; all uses changed to strchr.
35015         (strlen): Remove decl.
35016         (exchange): Remove forward decl; no longer needed.
35017         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
35018         Define with prototype.
35019         * lib/getopt1.c (const): Remove macro.
35020         (getopt_long, getopt_long_only, main): Define with prototype.
35021
35022         * lib/getugroups.c: Include <string.h> unconditionally.
35023
35024         * lib/getusershell.c: Include <stdlib.h> unconditionally.
35025         (getusershell, setusershell, endusershell, readname, main):
35026         Define with prototypes.
35027
35028         * lib/group-member.c: Include group-member.h first.
35029         Include <stdlib.h> unconditionally.
35030
35031         * lib/hard-locale.c: Include hard-locale.h first.
35032         Include <stdlib.h>, <string.h> unconditionally.
35033
35034         * lib/hash.c (free, malloc): Remove decls.
35035         Include <stdlib.h> unconditionally.
35036
35037         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
35038         (getenv): Do not declare.
35039
35040         * lib/idcache.c: Include <string.h> unconditionally.
35041
35042         * lib/long-options.c: Include long-options.h first, to test interface.
35043         Include <stdlib.h> unconditionally.
35044
35045         * lib/makepath.c: Include makepath.h first, to test interface.
35046         Include <stdlib.h> and <string.h> unconditionally.
35047
35048         * lib/linebuffer.c: Include <stdlib.h>.
35049         (free): Remove decl.
35050
35051         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
35052         stddef.h. rpl_malloc returns void *, not char *.
35053         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
35054         prototype.
35055
35056         * lib/md5.h: Include <limits.h> unconditionally.
35057         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
35058         (__P): Remove; all uses removed.
35059         * lib/md5.c: Include "md5.h" first.
35060         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
35061         md5_buffer, md5_process_bytes, md5_process_block):
35062         Define with prototypes.
35063         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
35064         * lib/sha.c: Include "sha.h" first.
35065         Include <stdlib.h>, <string.h> unconditionally.
35066
35067         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
35068         * lib/memcmp.c (__ptr_t): Likewise.
35069         * lib/memrchr.c (__ptr_t): Likewise.
35070         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
35071         Include <string.h> unconditionally.
35072         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
35073         * lib/memchr.c: Include <stdlib.h> unconditionally.
35074         * lib/memchr.c (LONG_MAX): Remove.
35075         * lib/memrchr.c (LONG_MAX): Likewise.
35076         * lib/memchr.c (__memchr): Define via a prototype.
35077         * lib/memrchr.c (__memrchr): Likewise.
35078         * lib/memcmp.c (__P): Remove, and remove all uses.
35079         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
35080         Remove forward decls; no longer needed.
35081         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
35082         Use types required by C89 in prototype.
35083
35084         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
35085         * lib/savedir.c: Likewise.
35086         * lib/mkdir.c (free): Remove decl.
35087         * lib/rmdir.c (rmdir): Define with a prototype.
35088         * lib/savedir.c: Include savedir.h first, to test interface.
35089
35090         * lib/mktime.c (STDC_HEADERS): Remove.
35091         Include <stdlib.h>, <string.h> unconditionally.
35092
35093         * lib/modechange.c: Include <stdlib.h> unconditionally.
35094         (malloc): Remove decl.
35095
35096         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
35097         (free): Remove decl.
35098
35099         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
35100         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
35101         (This type really should be intptr_t, but that's a C99ism.)
35102         (_obstack_memcpy): Remove: all uses changed to memcpy.
35103         Include <string.h> unconditionally.
35104         (struct obstack): Assume __STDC__ for types of members
35105         chunkfun, freefun, extra_arg.
35106         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
35107         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
35108         obstack_begin, obstack_specify_allocation,
35109         obstack_specify_allocation_with_arg, obstack_chunkfun,
35110         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
35111         Remove unprototyped decls and the macros that use them.
35112         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
35113         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
35114         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
35115         (defined __STDC__ && __STDC__)]:
35116         Remove nonprototyped code.
35117         Include <stdlib.h> unconditionally.
35118         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35119         _obstack_allocated_p, _obstack_free, obstack_free,
35120         _obstack_memory_used, print_and_abort):
35121         Define using prototypes.
35122         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35123         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35124         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35125         obstack_next_free, obstack_object_size, obstack_room) [0]:
35126         Remove unused, unprototyped code.
35127
35128         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35129
35130         * lib/physmem.c (physmem_total, physmem_available, main): Define
35131         with prototypes.
35132
35133         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35134         (main): Define with a prototype.
35135
35136         * lib/posixver.c (getenv): Remove decl.
35137
35138         * lib/putenv.c (malloc): Returns void *, not char *.
35139         Include <string.h> unconditionally.
35140         (strchr, memcpy, NULL): Do not define.
35141
35142         * lib/readtokens.c: Include readtokens.h first, to test interface.
35143         Include <stdlib.h>, <string.h> unconditionally.
35144         (init_tokenbuffer): Define with a prototype.
35145
35146         * lib/regex.c (PARAMS): Remove.  All uses removed.
35147         All uses of _RE_ARGS removed, too.
35148         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35149         unconditionally.
35150         (bzero): Assume memset exists.
35151         (memcmp, memcpy, NULL): Remove.
35152         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35153         char, or assignments to local vars of type signed char.
35154         (init_syntax_once, PREFIX(extract_number_and_incr),
35155         PREFIX(print_partial_compiled_pattern),
35156         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35157         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35158         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35159         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35160         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35161         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35162         wcs_compile_range, byte_compile_range, truncate_wchar,
35163         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35164         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35165         count_mbs_length, wcs_re_match_2_internal,
35166         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35167         PREFIX(alt_match_null_string_p),
35168         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35169         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35170         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35171         now-unnecessary declaration, if any.
35172         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35173         regcomp, regexec):
35174         Remove now-unnecessary casts among pointer types.
35175         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35176
35177         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35178         (free): Remove decl.
35179
35180         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35181
35182         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35183         (free): Remove decl.
35184
35185         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35186         * lib/xgetcwd.c: Likewise.
35187
35188         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35189         (free): Remove decl.
35190
35191         * lib/strchrnul.c (strchrnul): Define with a prototype.
35192         Fix bug: c_in was not converted to char before searching.
35193
35194         The following changes are not K&R related:
35195
35196         * lib/group-member.h: Include <sys/types.h>, so that this file is
35197         self-contained.
35198         * lib/makepath.h: Likewise.
35199
35200         * lib/getusershell.c (readname, default_index, line_size, readname):
35201         Use size_t, not int, for sizes.
35202         (readname): If the size overflows, report an error instead of
35203         looping forever.
35204
35205 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35206
35207         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35208         libc.
35209
35210 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35211
35212         * README: New section: portability guidelines.
35213
35214 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35215
35216         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35217         C89 spec.
35218
35219 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35220
35221         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35222
35223 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35224
35225         Assume C89 or better; remove K&R cruft.
35226         A few of these changes were first proposed by Derek Robert Price
35227         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35228
35229         * lib/addext.c: Include <string.h> unconditionally.
35230         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35231         Don't declare getenv or malloc.
35232
35233         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35234         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35235         (NULL): Remove.
35236         (find_stack_direction, alloca): Use prototypes.
35237
35238         * lib/atexit.c (atexit): Define using a prototype.
35239
35240         * lib/basename.c, dirname.c, stripslash.c:
35241         Include <string.h> unconditionally.
35242
35243         * lib/bcopy.c: Include <stddef.h>.
35244         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35245
35246         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35247
35248         * lib/error.h (error, error_at_line, error_print_progname)
35249         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35250         * lib/error.c: Include error.h first, to check interface.
35251         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35252         (VA_START): Remove; all uses changeed to va_start.
35253         (exit, strerror): Remove decls.
35254         (error_print_progname): Prototype uncondionally.
35255         Don't include <errno.h>; no longer needed.
35256         (private_strerror): Remove.
35257         (error_tail): Always define.
35258         (error, error_at_line): Assume C89 or better; always use prototypes.
35259         * lib/fatal.c: Include "fatal.h" first, to test interface.
35260         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35261         (VA_START): Remove; all uses changed to va_start.
35262         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35263         this case.
35264         (exit): Remove decl.
35265         (fatal): Prototype unconditionally.  Assume va_start works.
35266         Abort at end, to pacify gcc.
35267
35268         * lib/euidaccess.c (main): Define with a prototype.
35269
35270         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35271
35272         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35273
35274         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35275         prototypes.
35276         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35277         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35278         (getenv): Remove decl.
35279         (fnmatch): Define using a prototype.
35280         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35281         (FCT): Define using a prototype.
35282
35283         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35284
35285         * lib/gethostname.c: Include <stddef.h>.
35286         (gethostname): Define with prototype.  Length is size_t, not int.
35287
35288 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35289
35290         Assume C89 or better; remove K&R cruft.
35291         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35292         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35293         string.h, getenv, malloc.
35294         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35295         headers.
35296         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35297         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35298         do not check for strerror.
35299         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35300         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35301         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35302         do not check for doprnt or vprintf.
35303         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35304         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35305
35306 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35307
35308         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35309         getversion.c should have been removed then, but was accidentally
35310         preserved.
35311
35312         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35313         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35314
35315 2003-09-08  Karl Berry  <karl@gnu.org>
35316
35317         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35318                 config, forget about prep.
35319
35320         * config/depcomp, missing: update from automake.
35321
35322 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35323
35324         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35325         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35326
35327 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35328
35329         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35330         copy_tm_result.  Bug reported by Simon Josefsson in
35331         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35332
35333 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35334
35335         * m4/time_r.m4: New file.
35336         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35337         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35338         is. Check for timegm declaration.
35339         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35340         Do not check for gmtime_r.
35341         Replace mktime if __mktime_internal does not exist and if mktime
35342         hasn't been replaced already.
35343
35344 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35345
35346         * lib/time_r.c, lib/time_r.h: New files.
35347
35348         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35349         __localtime_r.
35350         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35351         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35352
35353         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35354         __gmtime_r.
35355         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35356         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35357         Include <time_r.h>.
35358
35359         * lib/timegm.c: Switch to glibc implementation, with the following
35360         changes:
35361         [defined HAVE_CONFIG_H]: Include <config.h>.
35362         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35363         (__mktime_internal) [!defined _LIBC]: New decl.
35364         (__gmtime_r) [!defined _LIBC]: New macro and function.
35365         (timegm): Use a prototype, since gnulib assumes C89.
35366         Do not bother declaring tmp to be const, as it's not really usefu.
35367         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35368         (timegm): Declare only if HAVE_DECL_TIMEGM.
35369
35370 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35371
35372         * MODULES.html.sh (func_all_modules): Add time_r.
35373         * modules/time_r: New file.
35374         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35375         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35376
35377 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35378
35379         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35380         Bug reported by Lute Kamstra in
35381         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35382
35383         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35384         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35385         course with correspondingly smaller numbers for tomorrow and
35386         yesterday.  From Tadayoshi Funaba.  Originally installed into
35387         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35388         coreutils merge?).
35389
35390 2003-08-31  Simon Josefsson  <jas@extundo.com>
35391
35392         * modules/timegm: New file.
35393         * MODULES.html.sh (func_all_modules): Add timegm.
35394
35395 2003-08-31  Simon Josefsson  <jas@extundo.com>
35396
35397         * m4/timegm.m4: New file.
35398
35399 2003-08-31  Simon Josefsson  <jas@extundo.com>
35400
35401         * lib/timegm.h: New file.
35402         * lib/timegm.c: New file.  Based on
35403         wget-1.8.2/src/http.c:mktime_from_utc.
35404
35405 2003-08-31  Karl Berry  <karl@gnu.org>
35406
35407         * lib/argp.h: update from libc.
35408
35409 2003-08-28  Bruno Haible  <bruno@clisp.org>
35410
35411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35412         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35413         followed by '#define fnmatch fnmatch_posix' gives an error.
35414
35415 2003-08-28  Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35418         warning on QNX, which defines O_BINARY to 000000.
35419
35420 2003-08-27  Jim Meyering  <jim@meyering.net>
35421
35422         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35423         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35424         would fail after 32.  Reported by Danny Levinson.  Details here:
35425         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35426
35427 2003-08-24  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35430         MSVC7 <stdio.h> is included later.
35431
35432 2003-08-22  Simon Josefsson  <jas@extundo.com>
35433
35434         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35435
35436 2003-08-20  Karl Berry  <karl@gnu.org>
35437
35438         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35439
35440 2003-08-20  Bruno Haible  <bruno@clisp.org>
35441
35442         * modules/progname: New file.
35443         * MODULES.html.sh (func_all_modules): Add progname.
35444
35445 2003-08-20  Bruno Haible  <bruno@clisp.org>
35446
35447         * lib/progname.h: New file, from GNU gettext.
35448         * lib/progname.c: New file, from GNU gettext.
35449         * lib/progreloc.c: New file, from GNU gettext.
35450
35451 2003-08-19  Jim Meyering  <jim@meyering.net>
35452
35453         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35454         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35455
35456 2003-08-19  Bruno Haible  <bruno@clisp.org>
35457
35458         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35459         more.
35460
35461 2003-08-19  Bruno Haible  <bruno@clisp.org>
35462
35463         * lib/xstrdup.c: Assume <string.h> exists.
35464
35465 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35466
35467         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35468         in makefile rules.
35469
35470 2003-08-18  Jim Meyering  <jim@meyering.net>
35471
35472         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35473         * m4/lib-ld.m4: Likewise.
35474
35475 2003-08-18  Jim Meyering  <jim@meyering.net>
35476
35477         * lib/setenv.h: Indent nested cpp directive.
35478         * lib/vasnprintf.c: Remove trailing blanks.
35479
35480 2003-08-17  Simon Josefsson  <jas@extundo.com>
35481
35482         * modules/xstrndup: New file.
35483         * MODULES.html.sh (func_all_modules): Add xstrndup.
35484
35485 2003-08-17  Simon Josefsson  <jas@extundo.com>
35486
35487         * modules/argp: Fix autoconf macro name. Add more dependencies.
35488
35489 2003-08-17  Simon Josefsson  <jas@extundo.com>
35490
35491         * m4/xstrndup.m4: New file.
35492
35493 2003-08-17  Simon Josefsson  <jas@extundo.com>
35494
35495         * m4/argp.m4: New file.
35496
35497 2003-08-17  Simon Josefsson  <jas@extundo.com>
35498             Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/xstrndup.h: New file.
35501         * lib/xstrndup.c: New file.
35502
35503 2003-08-17  Bruno Haible  <bruno@clisp.org>
35504
35505         * modules/strndup (Files, Include): Add lib/strndup.h.
35506
35507 2003-08-17  Bruno Haible  <bruno@clisp.org>
35508
35509         * modules/euidaccess (Files): Add lib/euidaccess.h.
35510
35511 2003-08-17  Bruno Haible  <bruno@clisp.org>
35512
35513         * lib/strndup.h: New file.
35514
35515 2003-08-17  Bruno Haible  <bruno@clisp.org>
35516
35517         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35518         like AC_GNU_SOURCE.
35519         * modules/extensions (configure.ac): Comment out the invocation of
35520         gl_USE_SYSTEM_EXTENSIONS.
35521
35522 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35523
35524         Merges from coreutils, etc.
35525         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35526         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35527         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35528         fixing a typo.
35529         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35530         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35531
35532 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35533
35534         Document merge from coreutils.
35535         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35536         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35537         * modules/utime: Add m4/utimes-null.m4.
35538
35539 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35540
35541         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35542         space, undoing this 2003-08-12 change:
35543         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35544
35545 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35546
35547         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35548         strtoul.c from libc, undoing this 2003-08-12 change:
35549         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35550
35551 2003-08-16  Jim Meyering  <jim@meyering.net>
35552
35553         Merges from coreutils.
35554         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35555         prefix.  Adjust cache variables similarly.  Create 500 rather than
35556         just 300 files, to exercise bug on Darwin6.5, too.
35557         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35558         $missing_dir.
35559         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35560         AM_SYS_POSIX_TERMIOS.
35561         Reported by mkc@mathdogs.com.
35562         Also change use of $am_cv_sys_posix_termios
35563         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35564         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35565         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35566         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35567         in /proc/mounts until it finds one with matching device number.  This
35568         is unnecessary when the FILE argument *is* a mount point.  No stat call
35569         is necessary in that case.  So, disable the statvfs-testing code on
35570         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35571         as RedHat bug# 84846.
35572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35573         to 1MB, so as not to render systems with no stack size limit (e.g.,
35574         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35575         Include <unistd.h>.  On some systems,
35576         it is required for the definition of _SC_PAGESIZE.
35577
35578 2003-08-16  Jim Meyering  <jim@meyering.net>
35579
35580         Merge from coreutils.
35581         * lib/xstrtoimax.c: #else #if -> #elif.
35582         * lib/xstrtoumax.c: Likewise.
35583
35584 2003-08-16  Jim Meyering  <jim@meyering.net>
35585
35586         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35587         * m4/utimes.m4: Removed.
35588         * m4/utimes-null.m4: Renamed from utimes.m4.
35589
35590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35591         to 1MB, so as not to render systems with no stack size limit (e.g.,
35592         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35593         Include <unistd.h>.  On some systems,
35594         it is required for the definition of _SC_PAGESIZE.
35595
35596 2003-08-16  Jim Meyering  <jim@meyering.net>
35597         and Paul Eggert  <eggert@cs.ucla.edu>
35598
35599         Merges from coreutils, etc.
35600
35601         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35602         using the latest version from cvs.  This avoids problems with #line
35603         directives using a vendor (Sun) compiler.
35604         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35605         Don't set GETGROUPS_LIB here; now it's
35606         done via getgroups.m4's wrapper function.
35607         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35608         rather than just in sh-util/configure.in, so that the
35609         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35610         same.
35611         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35612         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35613         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35614         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35615         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35616         Remove code that is now done by the newly-required macros.
35617         Append $(EXEEXT) to DF_PROG.
35618         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35619         Do not invoke or require the following here,
35620         since prereq.m4 or some gnulib .m4 now does this for us:
35621         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35622         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35623         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35624         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35625         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35626         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35627         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35628         AC_FUNC_OBSTACK.
35629         Do not replace the following functions, as this is now the job
35630         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35631         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35632         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35633         atexit getpass, strdup, getpagesize.
35634         Replace 'raise'.
35635         Do not check for the following functions, as this is now the job
35636         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35637         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35638         setregid.
35639         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35640         Check for sys/sysctl.h.
35641         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35642         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35643         of checking for ssize_t ourselves.
35644
35645         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35646         Require every macro that gnulib/modules/* suggests for us.
35647         (jm_PREREQ_ADDEXT): New macro.
35648         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35649         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35650
35651         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35652         (gl_PHYSMEM): Use it.
35653         Also check for `table' function.
35654         Check for new headers and functions.
35655         Add check for sys/sysmp.h.
35656         With suggestions from Kaveh Ghazi.
35657         Ignore headers that are present but cannot be compiled.  This
35658         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35659         C 5.4.
35660
35661 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35662
35663         Document merge from coreutils.
35664         * modules/userspec: Depend on posixver.
35665         * modules/strftime: Depend on tzset.
35666
35667 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35668
35669         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35670         rather than tab, after '#' in shell-script copyright notices.
35671         Suggested by Bruno Haible.
35672
35673 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35674
35675         * config/srclist-update: Use three spaces, rather than tab, after '#'
35676         in shell-script copyright notices.  Suggested by Bruno Haible.
35677         Remove unnecessary parenthesization in regular expression.
35678
35679 2003-08-15  Jim Meyering  <jim@meyering.net>
35680
35681         Merge from coreutils.
35682         * lib/xgethostname.c: Include <stdlib.h>.
35683         (xghostname): Don't exit for anything other than memory-related
35684         failure; just return NULL.
35685         * lib/userspec.c: Include "posixver.h".
35686         (parse_user_spec): Accept `.' as a separator only
35687         in pre-POSIX-200112 mode.
35688         * lib/strtoimax.c: Use #elif rather than #else #if.
35689         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35690         Remove function, now that we can rely on a working tzset function.
35691         [!_LIBC]: Ensure that the required autoconf test has been run.
35692         [!defined _NL_CURRENT && HAVE_STRFTIME]:
35693         Use underlying_strftime for %r.
35694         * lib/sha.c: Merge in some clean-up and optimization changes from
35695         glibc.
35696         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35697         Ensure that it is a multiple of 64.
35698         Rearrange loop exit tests so as to avoid performing an
35699         additional fread after encountering an error or EOF.
35700         * lib/realloc.c: Update copyright date.
35701
35702 2003-08-15  Jim Meyering  <jim@meyering.net>
35703         and Paul Eggert  <eggert@twinsun.com>
35704
35705         Merge from coreutils.
35706         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35707         member but strut utmpx does not.  Needed for AIX 4.3.3.
35708         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35709
35710 2003-08-15  Jim Meyering  <jim@meyering.net>
35711         and Paul Eggert  <eggert@cs.ucla.edu>
35712
35713         Merges from coreutils, etc.
35714         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35715         Require gl_FUNC_TZSET_CLOBBER.
35716         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35717         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35718         members.
35719
35720 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35721
35722         Help the merge from coreutils.
35723         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
35724         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
35725         * m4/tzset.m4: Use it too.
35726
35727 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35728
35729         * modules/tzset: New file.
35730
35731 2003-08-14  Jim Meyering  <jim@meyering.net>
35732
35733         Merges from coreutils.
35734         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
35735         variable names, rather than @FNMATCH_H@.
35736         * modules/alloca: Likewise for $(ALLOCA_H).
35737
35738         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
35739         the three copies of the literal target, `fnmatch.h'.
35740         * modules/alloca (alloca.h): Likewise.
35741
35742 2003-08-14  Jim Meyering  <jim@meyering.net>
35743
35744         Merge from coreutils.
35745         * m4/tzset.m4: New file.
35746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
35747         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
35748         otherwise, AIX 5.1 systems would end up using the latter.
35749         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
35750         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
35751         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
35752         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
35753
35754 2003-08-14  Jim Meyering  <jim@meyering.net>
35755
35756         Merge from coreutils.
35757         * lib/obstack.h: Whitespace changes.
35758         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
35759         and xcalloc return values.
35760         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
35761         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
35762         hang on OSF/1 5.1 for DIR on both local and remote file systems.
35763         Reported by (and fix confirmed by) Nelson H. F. Beebe.
35764         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35765         error from mntctl.
35766         Use mntctl's return value to drive the entry-processing loop, since
35767         we can't rely on the value of the vmt_length member in the last
35768         entry.  On some systems doing so could result in exhausting
35769         virtual memory.  Based in part on a patch from Mike Jetzer.
35770
35771 2003-08-14  Jim Meyering  <jim@meyering.net>
35772         and Paul Eggert  <eggert@twinsun.com>
35773
35774         Merges from coreutils, plus other fixes.
35775         * lib/physmem.c: Merge in portability changes from gcc/libiberty
35776         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
35777         for credits and details.  Thanks to Kaveh Ghazi for helping
35778         to keep these files in sync.
35779         (ARRAY_SIZE): Define it.
35780         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
35781         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
35782         (memcasecmp): Don't assume size_t fits in unsigned int.
35783         Remove casts and duplicate code.
35784         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
35785         (memcpy): Remove definition.
35786         Merge in some clean-up and optimization changes from glibc.
35787         [BLOCKSIZE]: Move definition to top of file.
35788         Ensure that it is a multiple of 64.
35789         Rearrange loop exit tests so as to avoid performing an
35790         additional fread after encountering an error or EOF.
35791         * lib/md5.h (md5_uintptr): Define.
35792         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
35793         return to the initial working directory.  Preserve errno
35794         for caller.
35795         * lib/idcache.c: Include "xalloc.h".
35796         (xmalloc, xrealloc): Remove decls.
35797         (getuser): Remove casts no longer required in C89.
35798         * lib/human.c: Include stdio.h, for sprintf.
35799         * lib/group-member.c: Include "xalloc.h".
35800         (xmalloc, xrealloc): Remove decls.
35801         (get_group_info): Remove casts no longer required in C89.
35802         * lib/getusershell.c (readname): Remove casts no longer required in
35803         C89.
35804         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
35805         * lib/getline.c: Whitespace fix, from coreutils.
35806
35807 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35808
35809         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
35810         Check for isascii.
35811
35812         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35813         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35814         Undo previous (whitespace-only) change.
35815
35816 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35817
35818         * lib/exclude.c: Include <ctype.h>
35819         (IN_CTYPE_DOMAIN): New macro.
35820         (is_space): New fn.
35821         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
35822         and empty lines.
35823
35824         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35825         Undo previous (whitespace-only) change.
35826
35827 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35828
35829         * config/srclist-update: Change update back to the old behavior,
35830         leaving whitespace alone.  Use one 'sed' command rather than a
35831         pipeline.
35832         (fixlicense): Now a variable, not a function.
35833         (remove_trailing_blanks): Remove.
35834         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
35835         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35836         Undo previous (whitespace-only) change.
35837
35838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35839
35840         Merge from coreutils.
35841         * modules/euidaccess: Add lib_SOURCES, include for new
35842         file euidaccess.h
35843
35844 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35845
35846         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35847         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35848         Normalize leading white space and remove trailing white space.
35849
35850         Merge from coreutils
35851         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
35852
35853         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
35854         0.12.1.  These files are now being upgraded automatically by
35855         ../config/srclist-update.
35856
35857 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35858
35859         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35860         Normalize leading white space and remove trailing white space.
35861         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
35862         notice, as per ../config/srclist-update.
35863
35864         Merge from coreutils.
35865         * lib/euidaccess.h: New file.
35866         * lib/euidaccess.c: Include it.
35867         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
35868         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
35869         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
35870
35871 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35872
35873         * config/srclist-update: Add copyright notice.
35874         (remove_id_lines, remove_trailing_blanks): New constants.
35875         (fixfile): Use them to normalize spacing a bit in copied files.
35876         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35877         Normalize leading white space and remove trailing white space.
35878
35879         * config/texinfo.tex: Sync with texinfo.
35880
35881         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
35882         strtoul.c from libc, to merge coreutils whitespace changes.
35883
35884         * config/srclist.txt: Get the following m4 files from gettext:
35885         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
35886         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
35887         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
35888         wint_t.m4.
35889
35890 2003-08-12  Karl Berry  <karl@gnu.org>
35891
35892         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
35893         been made.
35894
35895 2003-08-11  Paul Eggert  <eggert@twinsun.com>
35896
35897         * modules/gnu-source, m4/gnu-source.m4:
35898         Remove; we're assuming Autoconf 2.54 or later now.
35899         Suggested by Bruno Haible.
35900         * MODULES.html.sh (func_all_modules): Remove gnu-source.
35901
35902 2003-08-11  Bruno Haible  <bruno@clisp.org>
35903
35904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
35905
35906 2003-08-11  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
35909         (vasnprintf): Use it instead of wcslen.
35910
35911 2003-08-11  Bruno Haible  <bruno@clisp.org>
35912
35913         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
35914         value to ensure that _Bool promotes to int. Use #define for _Bool when
35915         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
35916
35917 2003-08-10  Karl Berry  <karl@gnu.org>
35918
35919         * lib/regex.h: update from libc (whitespace fix).
35920
35921 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35922
35923         Merge some files from coreutils.  These changes were
35924         originally made by Jim Meyering.
35925         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
35926         many older Unixes require this.
35927         * lib/alloca.c (alloca): Remove cast to argument of free;
35928         no longer needed in C89.
35929         * lib/alloca_.h, regex.h: Fix white space to match
35930         what GNU indent does.
35931
35932 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35933
35934         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
35935         apparently Emacs's Unicode mode got confused before my 2003-08-05
35936         checkin.
35937
35938 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35939
35940         * m4/extensions.m4: New file.
35941         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
35942         Require gl_USE_SYSTEM_EXTENSIONS.
35943         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
35944         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
35945
35946 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35947
35948         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
35949         * modules/extensions, modules/gnu-source: New files.
35950         * modules/timespec, modules/unlocked-io: Depend on extensions.
35951
35952 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35953
35954         * modules/restrict: New file.
35955         * MODULES.html.sh (func_all_modules): Add restrict.
35956         * modules/regex: Depend on restrict.
35957
35958 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35959
35960         * m4/restrict.m4: New file.
35961         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
35962
35963 2003-08-07  Bruno Haible  <bruno@clisp.org>
35964
35965         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
35966         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
35967
35968 2003-08-07  Bruno Haible  <bruno@clisp.org>
35969
35970         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
35971         makes the module 'getndelim2' compatible with the module 'getline'.
35972
35973 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35974
35975         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
35976         byte with "\201" to avoid glitches when editing that source file
35977         with multi-gnome-terminal.
35978
35979 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35980
35981         * lib/bumpalloc.h: Remove.
35982
35983 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35984
35985         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
35986         * modules/bumpalloc: Remove.
35987
35988 2003-08-04  Paul Eggert  <eggert@twinsun.com>
35989
35990         * lib/getloadavg.c: Change copyright notice and spacing to conform to
35991         GNU coding style.
35992
35993         Merge from coreutils.
35994         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
35995         1. From glibc.
35996         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
35997         from Karl Berry, implemented by Jim Meyering.
35998         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
35999         from Dmitry V. Levin.
36000         Remove anachronistic cast of xrealloc.
36001         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
36002         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
36003         type. Otherwise, it wouldn't compile with at least /bin/cc on
36004         ymp-cray-unicos9.0.2.X.
36005         Combine two mostly-identical uses of alloca into one.
36006         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
36007
36008 2003-08-04  Dave Love  <d.love@dl.ac.uk>
36009
36010         [From Emacs.]
36011
36012         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
36013         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
36014         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
36015         obsolete NLIST_NAME_UNION.
36016         [__GNU__]: Undef BSD and FSCALE.
36017         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
36018
36019 2003-08-03  Paul Eggert  <eggert@twinsun.com>
36020
36021         * lib/stdbool_.h (_Bool): Make it signed char, instead of
36022         an enum type, so that it's guaranteed to promote to int.  See:
36023         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
36024
36025 2003-08-03  Karl Berry  <karl@gnu.org>
36026
36027         * config/depcomp: update from automake.
36028
36029 2003-07-31  Paul Eggert  <eggert@twinsun.com>
36030
36031         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
36032         (strerror): Don't assume that a printable int fits in 14 bytes.
36033
36034 2003-07-31  Bruno Haible  <bruno@clisp.org>
36035
36036         * modules/getpass-gnu: New file.
36037         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
36038
36039 2003-07-31  Bruno Haible  <bruno@clisp.org>
36040
36041         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
36042
36043 2003-07-24  Karl Berry  <karl@gnu.org>
36044
36045         * config/missing: update from automake.
36046
36047 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
36048             Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
36051         * lib/getline.c (getline, getdelim): Likewise.
36052         Remove _GNU_SOURCE define; now it's defined in config.h through
36053         m4/getline.m4.
36054
36055 2003-07-23  Karl Berry  <karl@gnu.org>
36056
36057         * config/config.sub: update from prep.
36058
36059 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36060
36061         * modules/xalloc (Depends-on): Add exitfail.
36062         * modules/xmemcoll: Likewise.
36063
36064 2003-07-22  Paul Eggert  <eggert@twinsun.com>
36065
36066         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
36067         over-parenthesization in macros.
36068
36069         Sync with coreutils.
36070
36071         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
36072         required by C99.
36073
36074         Use `exit_failure' for xalloc and xmemcoll instead of their own
36075         private exit-failure variables.
36076         * lib/xalloc.h (xalloc_exit_failure): Remove.
36077         * lib/xmalloc.c: Likewise.  Include exitfail.h.
36078         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
36079         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
36080         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
36081         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
36082
36083 2003-07-20  Jim Meyering  <jim@meyering.net>
36084
36085         * modules/closeout (Depends-on): Add exitfail.
36086         Suggestion from Bruno Haible.
36087
36088 2003-07-19  Karl Berry  <karl@gnu.org>
36089
36090         * config/config.sub: update from prep.
36091
36092 2003-07-18  Paul Eggert  <eggert@twinsun.com>
36093
36094         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
36095         Remove.
36096         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
36097         to test that it can stand by itself.  Include "exitfail.h".
36098         Clients should set exit_failure instead.
36099         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
36100
36101 2003-07-18  Bruno Haible  <bruno@clisp.org>
36102
36103         * modules/getndelim2: New file.
36104         * modules/getline: Share files with module getndelim2.
36105         * modules/getnline: Depend on getndelim2 instead of sharing files with
36106         it. Add getnline.c to lib_SOURCES.
36107         * MODULES.html.sh (func_all_modules): Add getndelim2.
36108
36109 2003-07-18  Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/getndelim2.m4: New file.
36112         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
36113         invoke gl_PREREQ_GETNDELIM2.
36114         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
36115         gl_PREREQ_GETNDELIM2.
36116         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
36117         gl_GETNDELIM2.
36118
36119 2003-07-18  Bruno Haible  <bruno@clisp.org>
36120
36121         * lib/getndelim2.h: New file.
36122         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36123         getndelim2.h.
36124         (getndelim2): Make non-static. Change return type to ssize_t.
36125         * lib/getline.h: Change argument names.
36126         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36127         * lib/getnline.c: Include getndelim2.h.
36128
36129 2003-07-18  Andreas Schwab  <schwab@suse.de>
36130
36131         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36132
36133 2003-07-17  Karl Berry  <karl@gnu.org>
36134
36135         * config/config.sub: update from prep.
36136
36137 2003-07-17  Bruno Haible  <bruno@clisp.org>
36138
36139         * modules/getnline: New file.
36140         * modules/getline: Add lib/getndelim2.c to source file list.
36141         * MODULES.html.sh (func_all_modules): Add getnline.
36142
36143 2003-07-17  Bruno Haible  <bruno@clisp.org>
36144
36145         * m4/getnline.m4: New file.
36146
36147 2003-07-17  Bruno Haible  <bruno@clisp.org>
36148
36149         * m4/Makefile.am.in: Remove file.
36150         * m4/Makefile.am: Remove file.
36151         * m4/Makefile.in: Remove file.
36152
36153 2003-07-17  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/getnline.h: New file.
36156         * lib/getnline.c: New file.
36157         * lib/getndelim2.c: New file, extracted from getline.c.
36158         (getndelim2): Renamed from getdelim2, with added nmax argument.
36159         * lib/getline.c: Include getndelim2.c.
36160         (getdelim2): Moved out to getndelim2.c.
36161         (getline, getdelim): Update.
36162
36163 2003-07-17  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/Makefile.am: Remove file.
36166         * lib/Makefile.in: Remove file.
36167
36168 2003-07-17  Bruno Haible  <bruno@clisp.org>
36169
36170         * configure.in: Remove file.
36171         * Makefile.in: Remove file.
36172
36173 2003-07-17  Bruno Haible  <bruno@clisp.org>
36174
36175         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36176
36177 2003-07-16  Karl Berry  <karl@gnu.org>
36178
36179         * config/srclist-update: was running fixlicense twice, which caused
36180                 texinfo.tex to be nullified for some reason.  Simplify,
36181                 $gplsrc is no longer needed as far as I can see?
36182
36183 2003-07-16  Jim Meyering  <jim@meyering.net>
36184
36185         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36186
36187 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36188
36189         * config/srclist.txt: Get the following files from gettext-runtime/intl
36190         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36191         ref-del.sin.  From Bruno Haible.
36192         * config/srclist-update (fixfile): Change grep pattern again, since the
36193         previous fix didn't work (there was another trailing $).  Use
36194         '[$]' to escape the $s.
36195
36196 2003-07-15  Karl Berry  <karl@gnu.org>
36197
36198         * lib/vasnprintf.c: update from gettext.
36199
36200 2003-07-15  Karl Berry  <karl@gnu.org>
36201
36202         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36203         gets expanded when surrounded by '$'.
36204
36205 2003-07-15  Jim Meyering  <jim@meyering.net>
36206
36207         * modules/save-cwd: Don't depend on error.  From Derek Price.
36208
36209 2003-07-15  Jim Meyering  <jim@meyering.net>
36210
36211         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36212
36213 2003-07-14  Simon Josefsson  <jas@extundo.com>
36214
36215         * modules/mempcpy: New file.
36216         * MODULES.html.sh (func_all_modules): Add mempcpy.
36217
36218 2003-07-14  Simon Josefsson  <jas@extundo.com>
36219
36220         * m4/mempcpy.m4: New file.
36221
36222 2003-07-14  Simon Josefsson  <jas@extundo.com>
36223
36224         * lib/mempcpy.h: New file.
36225         * lib/mempcpy.c: New file.
36226
36227 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36228
36229         * modules/getdate, modules/posixtm: Depend on mktime.
36230
36231 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36232
36233         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36234         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36235         unicodeio.c, unicodeio.h, unlocked-io.h:
36236         Switch from LGPL to GPL.
36237
36238 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36239
36240         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36241         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36242         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36243         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36244         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36245         updated automatically by ../config/srclist-update.  This changes
36246         their license from LPGL to GPL.
36247
36248 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36249
36250         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36251         assumed to refer to the root of the most recent stable gettext version.
36252         * config/srclistvars.sh: Add defaults for eggert.
36253         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36254         Match "This program" as well as "The program".  This is needed
36255         for gettext.
36256
36257 2003-07-14  Jim Meyering  <jim@meyering.net>
36258
36259         Don't emit diagnostics.  Let callers do that.
36260         * lib/save-cwd.c: Don't include "error.h".
36261         (save_cwd): Don't call error.  Ensure that errno is valid
36262         when returning nonzero.
36263
36264         * lib/save-cwd.h (restore_cwd): Update prototype.
36265         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36266         Simplify.  Don't call error upon failure.  Let callers do that.
36267         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36268         when auditing is enabled.  But don't bother updating the #if.
36269
36270 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36271
36272         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36273         it breaks C++ compilation.
36274         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36275
36276 2003-07-10  Simon Josefsson  <jas@extundo.com>
36277
36278         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36279
36280 2003-07-10  Jim Meyering  <jim@meyering.net>
36281
36282         * m4/clock_time.m4: Remove trailing blank.
36283         * m4/intmax_t.m4: Likewise.
36284
36285 2003-07-10  Jim Meyering  <jim@meyering.net>
36286
36287         * lib/vasnprintf.c: Remove trailing blanks.
36288         Make cpp indentation consistent.
36289
36290 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36291
36292         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36293         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36294         Switch from LGPL to GPL.
36295
36296 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36297
36298         * config/srclist.txt: Sort sublists.  Add
36299         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36300         that differ from gnulib for one reason or another; we'd like this list
36301         to be smaller but for now let's document what we have.
36302
36303 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36304
36305         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36306         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36307         and sweeter "eval x=$x".
36308         * config/srclist.txt: Get lib/argp* from glibc.
36309
36310 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36311
36312         * lib/mktime.c: Fix some boundary cases and remove need for floating
36313         point.
36314
36315         Issue a compile-time diagnostic if time_t is floating point, or if
36316         two's complement arithmetic is not in effect, or if arithmetic
36317         right shift does not propagate the sign.  These assumptions were
36318         all in the original code but they weren't checked.
36319
36320         (TIME_T_MIDPOINT, verify): New macros.
36321         (__isleap): Remove; it has integer overflow problems.
36322         (leapyear): New function, without those problems.
36323         (ydhms_tm_diff): Remove; splitting into two parts.
36324         (ydhms_diff): New function, containing the arithmetic part of
36325         the old ydhms_tm_diff function.  Issue a compile-time
36326         diagnostic if we are not using C99 integer division.
36327         Avoid casts when possible.
36328         (guess_time_tm): New function, containing the checking part of
36329         the old ydhms_tm_diff function.  Return the new value, rather than
36330         the difference between it and the old.  Accept a new argument T
36331         so that *T specifies the old value.  Check for overflow in the result.
36332
36333         (__mktime_internal): Use a time_t offset, not a long int offset.
36334         This undoes the 2003-06-04 change, which is no longer needed now
36335         that we have better overflow checking.
36336         (localtime_offset): Likewise.
36337
36338         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36339         and long are 64-bit but int is only 32-bit.
36340         (ydhms_diff): Use long int to store year1 and yday1.
36341         Issue a compile-time diagnostic if long int is not wide enough.
36342
36343         (__mktime_internal): Use long int to store adjusted year and yday.
36344         Use plain C rather than preprocessor commands, if that doesn't
36345         affect efficiency.
36346         Check for overflow (and try to repair) after each probe
36347         rather than checking only at the very end.  This avoids some bugs
36348         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36349         does not equal GMT offset at maximum time).
36350         Use integer to check for overflow rather than floating point; this
36351         is more portable to non-IEEE hosts, and is a tad faster.
36352         When we detect that we are oscillating between two values,
36353         don't check whether tm_isdst has the requested value, since
36354         we already know the answer.  When tm_isdst has the wrong value,
36355         use a different heuristic to find the right one, based on the
36356         extreme values actually observed in practice in tz2003a,
36357         rather than the (overly optimistic) "previous 3 calendar quarters".
36358
36359         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36360         "T const" to accommodate glibc style.
36361         (check_result): Use less-confusing report format.  "long" -> "long int.
36362         (main): Likewise.
36363         Don't loop if the iteration overflows time_t.
36364         Allow a negative step in the iteration.
36365
36366 2003-07-06  Karl Berry  <karl@gnu.org>
36367
36368         * config/depcomp: update from automake.
36369         * config/config.sub: update from prep.
36370
36371 2003-07-03  Karl Berry  <karl@gnu.org>
36372
36373         * config/config.guess: update from prep.
36374
36375 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36376
36377         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36378         xreadlink.c now includes it unconditionally.
36379
36380 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36381
36382         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36383         having it depend on HAVE_SYS_TYPES_H.
36384
36385 2003-07-01  Bruno Haible  <bruno@clisp.org>
36386
36387         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36388         <sys/types.h> should be sufficient.
36389         Reported by Paul Eggert.
36390
36391 2003-06-26  Karl Berry  <karl@gnu.org>
36392
36393         * config/depcomp: update from automake.
36394
36395 2003-06-26  Bruno Haible  <bruno@clisp.org>
36396
36397         * modules/human: Depend on module stdbool.
36398
36399 2003-06-25  Bruno Haible  <bruno@clisp.org>
36400
36401         * modules/readlink: New file.
36402         * modules/xreadlink: Depend on it.
36403         * MODULES.html.sh (func_all_modules): Add readlink.
36404
36405 2003-06-25  Bruno Haible  <bruno@clisp.org>
36406
36407         * m4/readlink.m4: New file.
36408
36409 2003-06-25  Bruno Haible  <bruno@clisp.org>
36410
36411         * lib/readlink.c: New file.
36412
36413 2003-06-22  Karl Berry  <karl@gnu.org>
36414
36415         * config/srclist.txt: update mkinstalldirs from automake.
36416         * config/mkinstalldirs: update.
36417
36418 2003-06-22  Bruno Haible  <bruno@clisp.org>
36419
36420         Portability to mingw32.
36421         * m4/ssize_t.m4: New file, from GNU gettext.
36422         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36423         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36424
36425 2003-06-22  Bruno Haible  <bruno@clisp.org>
36426
36427         * modules/safe-read: Add m4/ssize_t.m4.
36428         * modules/xreadlink: Add m4/ssize_t.m4.
36429
36430 2003-06-20  Bruno Haible  <bruno@clisp.org>
36431
36432         Assume C89, so PARAMS isn't needed.
36433         * lib/unicodeio.h (PARAMS): Remove.
36434         * lib/unicodeio.c: Don't use PARAMS.
36435
36436 2003-06-18  Karl Berry  <karl@gnu.org>
36437
36438         * config/config.{guess,sub}: update from prep.
36439
36440 2003-06-18  Jim Meyering  <jim@meyering.net>
36441
36442         Merge changes from coreutils.
36443         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36444         Remove explicit declarations of xmalloc and realloc.
36445         Include xalloc.h.
36446         (read_utmp): Remove anachronistic cast of xmalloc.
36447
36448 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36449
36450         Assume C89, so PARAMS isn't needed.
36451         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36452         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36453         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36454         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36455         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36456         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36457         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36458         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36459         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36460         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36461         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36462         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36463         no longer needed. Anyway, config.h should always be included before any
36464         other file.
36465
36466 2003-06-11  Simon Josefsson  <jas@extundo.com>
36467
36468         * modules/sysexits: New file.
36469         * MODULES.html.sh (func_all_modules): Add sysexits.
36470
36471 2003-06-11  Simon Josefsson  <jas@extundo.com>
36472
36473         * lib/sysexit_.h: New file.
36474
36475 2003-06-11  Derek Price  <derek@ximbiot.com>
36476
36477         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36478         necessary.
36479
36480 2003-06-11  Bruno Haible  <bruno@clisp.org>
36481
36482         * m4/sysexits.m4: New file.
36483
36484 2003-06-10  Simon Josefsson  <jas@extundo.com>
36485
36486         * lib/argp.h: New file, from glibc.
36487         * lib/argp-ba.c: New file, from glibc.
36488         * lib/argp-eexst.c: New file, from glibc.
36489         * lib/argp-fmtstream.c: New file, from glibc.
36490         * lib/argp-fmtstream.h: New file, from glibc.
36491         * lib/argp-fs-xinl.c: New file, from glibc.
36492         * lib/argp-help.c: New file, from glibc.
36493         * lib/argp-namefrob.h: New file, from glibc.
36494         * lib/argp-parse.c: New file, from glibc.
36495         * lib/argp-pv.c: New file, from glibc.
36496         * lib/argp-pvh.c: New file, from glibc.
36497         * lib/argp-xinl.c: New file, from glibc.
36498
36499 2003-06-10  Simon Josefsson  <jas@extundo.com>
36500
36501         * modules/strchrnul: New file.
36502
36503 2003-06-10  Simon Josefsson  <jas@extundo.com>
36504
36505         * modules/argp: New file.
36506
36507 2003-06-10  Simon Josefsson  <jas@extundo.com>
36508
36509         * m4/strchrnul.m4: New file.
36510
36511 2003-06-10  Simon Josefsson  <jas@extundo.com>
36512
36513         * lib/strchrnul.h: New file.
36514         * lib/strchrnul.c: New file.
36515
36516 2003-06-10  Bruno Haible  <bruno@clisp.org>
36517
36518         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36519
36520 2003-06-07  Karl Berry  <karl@gnu.org>
36521
36522         * config/config.{guess,sub}: update from prep.
36523
36524 2003-06-07  Jim Meyering  <jim@meyering.net>
36525
36526         * modules/strtod: Use $(...) notation, not @...@ for
36527         AC_REPLACE'd variables.
36528         * modules/localcharset: Likewise.
36529
36530 2003-06-07  Jim Meyering  <jim@meyering.net>
36531
36532         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36533         in place of my name in the copyright comment.
36534         Remove definition and uses of __P.
36535
36536         From coreutils.
36537         * lib/stat.c: Don't declare xmalloc explicitly.
36538         Instead, include "xalloc.h".
36539         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36540         xrealloc, and xcalloc return values.
36541         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36542         Improve comment.
36543         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36544
36545 2003-06-07  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36548         avoid AC_CONFIG_LINKS.
36549         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36550         fnmatch.h, to avoid AC_CONFIG_LINKS.
36551         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36552
36553 2003-06-07  Bruno Haible  <bruno@clisp.org>
36554
36555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36556         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36557         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36558         directory.
36559         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36560         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36561         directory.
36562
36563 2003-06-06  Jim Meyering  <jim@meyering.net>
36564
36565         Merge from coreutils.
36566         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36567         Consolidate declarations and initializations of *_base* locals.
36568
36569         Merge from coreutils.
36570         This avoids a core dump on systems without GNU putenv,
36571         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36572         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36573         (unsetenv): New static function, from GNU libc.
36574         (rpl_putenv): Use it.
36575
36576         * lib/modechange.c: Remove trailing blanks.
36577
36578         Merge from coreutils.
36579         * lib/fsusage.c: Remove declaration of statfs.
36580         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36581
36582         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36583
36584 2003-06-06  Jim Meyering  <jim@meyering.net>
36585
36586         * lib/stdbool_.h: Renamed from stdbool.h.in.
36587
36588 2003-06-06  Jim Meyering  <jim@meyering.net>
36589             Bruno Haible  <bruno@clisp.org>
36590
36591         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36592         Adjust Makefile.am snippet not to redirect directly to target.
36593         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36594
36595 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36596
36597         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36598         mismatch, look in future quarters as well as past.  This fixes a
36599         bug when processing fall-backwards gaps immediately after a long
36600         period of daylight-saving time.
36601
36602         * lib/mktime.c: Assume freestanding C89 or better.
36603         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36604         (__P): Remove; not used.
36605         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36606         (mktime, not_equal_tm, print_tm, check_result,
36607         main): Use prototypes.  Use const * where appropriate.
36608         (main): Fix typo in testing code that uncovered by above changes.
36609         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36610
36611 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36612
36613         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36614         locale.h, localeconv.  This merges changes from coreutils.
36615
36616         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36617         It can be removed after the next Autoconf is released.
36618         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36619         needed.
36620
36621 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36622
36623         * lib/mktime.c: Fix Debian bug 177940
36624         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36625         (localtime_offset): Now long int, not time_t, because we want it
36626         to be guaranteed to be signed.  All uses changed.
36627         (__mktime_internal): If overflow would occur when adding offset,
36628         don't add it.
36629
36630         Merge 'human' changes from coreutils.  Rewrite to support
36631         locale-specific notations like thousands separators.
36632         * lib/human.c: Simplify authorship notice.
36633         Include human.h immediately after config.h.
36634         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36635         <limits.h>: Do not include, since human.h does.
36636         (SIZE_MAX, UINTMAX_MAX): New macros.
36637         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36638         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36639         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36640         (power_letter): Renamed from suffixes.
36641         (generate_suffix_backwards): Remove.
36642         (adjust_value): Now takes int style (because of human.h changes)
36643         and long double value (for greater precision on some platforms).
36644         (group_number): New function.
36645         (human_readable): Use it.  Use integer options, not enum.
36646         Put the options before the sizes in the arg list.
36647         Support all the new options.
36648         The old human_readable function has been removed;
36649         use inttostr.h instead.
36650         (human_readable, default_block_size, humblock):
36651         Use uintmax_t, not int, for block sizes.
36652         (human_readable_inexact, block_size_types): Remove.
36653         (block_size_opts): New constant.
36654         (human_options): Renamed from human_block_size, with new signature
36655         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36656         * lib/human.h: Add copyright and authorship notice.
36657         Include <limits.h> and <stdbool.h> unconditionally.
36658         (PARAMS): Remove.  All uses removed.
36659         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36660         (enum human_inexact_style): Remove tag; now a nameless enum.
36661         (human_floor, human_ceiling, human_round_to_even): Now have
36662         values 2, 0, 1 rather than -1, 1, 0.
36663         (human_group_digits, human_suppress_point_zero, human_autoscale,
36664         human_base_1024, human_SI, human_B): New constants.
36665         (human_readable_inexact, human_block_size): Remove.
36666         (human_readable): Size args are now uintmax_t, not int.
36667         (human_options): New decl.
36668
36669         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36670         unnecessary now that we assume C89 or better.  This change
36671         imported from coreutils.
36672
36673         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36674         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36675         in the 2003-05-30 sync from glibc.
36676
36677         .h files should stand alone, but we shouldn't include <sys/types.h>
36678         if we can get away with just <stddef.h>.
36679
36680         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36681         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36682         rather than <sys/types.h>, as we merely need size_t.
36683         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36684         to get size_t.
36685         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36686         Include <stdio.h>, to get FILE.
36687         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36688         memcasecmp.h has included <stddef.h> and all we need is size_t.
36689         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36690         our interface, instead of including <sys/types.h>
36691
36692 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36693
36694         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36695         now, as glibc mktime is buggy on non-glibc systems.
36696
36697 2003-06-03  Karl Berry  <karl@gnu.org>
36698
36699         * config/config.sub: update from prep.
36700
36701 2003-06-02  Paul Eggert  <eggert@twinsun.com>
36702
36703         [from coreutils]
36704         Fix some minor time-related bugs with POSIX time arguments.
36705         Some valid time stamps were being rejected (notably -1, and
36706         time stamps before 1900 on 64-bit hosts).  And some invalid
36707         time stamps were being accepted, e.g. September 31.
36708
36709         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36710         that we can return (time_t) -1 successfully.
36711         * lib/posixtm.c: Likewise.
36712         [HAVE_STDBOOL_H]: Include <stdbool.h>.
36713         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36714         (t): Remove static var.
36715         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36716         of static var.  All uses changed.
36717         (year): Do not reject years before 1900; they can occur with
36718         64-bit time_t.
36719         (posix_time_parse): Do not check for out-of-range components;
36720         that is now the caller's responsibility, since our checks were
36721         only approximations.
36722         (posixtime): Use mktime to check for out-of-range components,
36723         since it knows them exactly.
36724         If mktime returns (time_t) -1, check whether an error actually occurred
36725         by invoking localtime on -1.
36726         (main) [TEST_POSIXTIME]: Check for input data errors, and report
36727         posixtime failures better.
36728         Improve the test data (in comments only).
36729
36730 2003-06-02  Karl Berry  <karl@gnu.org>
36731
36732         * config/mkinstalldirs (version): new variable.
36733         (--version): new option.
36734         (usage): improve message.
36735
36736 2003-05-30  Karl Berry  <karl@gnu.org>
36737
36738         * lib/mktime.c: update from libc.
36739
36740 2003-05-30  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
36743         * config/config.rpath: Upgrade to gettext-0.12.1.
36744
36745 2003-05-30  Bruno Haible  <bruno@clisp.org>
36746
36747         * m4/gettext.m4: Upgrade to gettext-0.12.1.
36748         * m4/nls.m4: New file, from gettext-0.12.1.
36749         * m4/po.m4: New file, from gettext-0.12.1.
36750         * m4/progtest.m4: Upgrade to gettext-0.12.1.
36751
36752 2003-05-30  Bruno Haible  <bruno@clisp.org>
36753
36754         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
36755         * lib/localcharset.h: Likewise.
36756         * lib/localcharset.c: Likewise.
36757
36758 2003-05-29  Karl Berry  <karl@gnu.org>
36759
36760         * config/config.rpath: update from gettext.
36761
36762 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36763
36764         Assume the headers required for C89 freestanding compilers.
36765         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
36766         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
36767         * m4/human.m4 (gl_HUMAN): Likewise.
36768         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
36769         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
36770         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36771         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
36772         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36773         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
36774
36775 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36776
36777         Assume the headers required for C89 freestanding compilers.
36778         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
36779         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
36780         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
36781         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
36782         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
36783         define, since <limits.h> is guaranteed to do that.
36784         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
36785         * lib/exclude.c: Include <stdbool.h> unconditionally.
36786         * lib/tempname.c: Include <stddef.h> unconditionally.
36787         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
36788         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
36789         <stddef.h> does that.
36790         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
36791         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
36792         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
36793         needed.
36794         * lib/xstrtol.c: Likewise.
36795         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
36796         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
36797
36798         * lib/addext.c (addext): Use assignment rather than cast, to avoid
36799         warnings on some platforms.
36800
36801         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36802         arbitrarily.
36803
36804 2003-05-26  Jim Meyering  <jim@meyering.net>
36805
36806         Merge in a change from coreutils:
36807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
36808         that is guaranteed to be `no'.  Use `no_such_member' to indicate
36809         that condition, rather than `-1' which is slightly misleading.
36810         Change the name of the cache variable to have the gl_ prefix.
36811         Prompted by a patch from Richard Dawe for DJGPP.
36812
36813 2003-05-24  Karl Berry  <karl@gnu.org>
36814
36815         * config/config.guess: update from prep.
36816
36817 2003-05-22  Karl Berry  <karl@gnu.org>
36818
36819         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
36820
36821 2003-05-20  Karl Berry  <karl@gnu.org>
36822
36823         * config/config.guess: update from prep.
36824
36825 2003-05-18  Karl Berry  <karl@gnu.org>
36826
36827         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
36828         might actually be set by the user.
36829
36830         * config/depcomp, install-sh, mdate-sh: update from automake.
36831
36832 2003-05-17  Bruno Haible  <bruno@clisp.org>
36833
36834         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
36835         invalid expansion for AC_EGREP_CPP.
36836         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
36837         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36838         Suggested by Akim Demaille <akim@epita.fr> in
36839         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
36840
36841 2003-05-12  Jim Meyering  <jim@meyering.net>
36842
36843         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
36844         the space-padded-by-default conversion specifiers, %e, %k, %l.
36845
36846 2003-05-12  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
36849         the string is longer than 4 KB.
36850
36851 2003-05-11  Karl Berry  <karl@gnu.org>
36852
36853         * config/config.{guess,sub}: update from prep.
36854
36855 2003-05-09  Bruno Haible  <bruno@clisp.org>
36856
36857         * modules/error: Add m4/strerror_r.m4 to file list.
36858
36859 2003-05-03  Bruno Haible  <bruno@clisp.org>
36860
36861         Upgrade to Unicode-4.0.
36862         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
36863         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
36864         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
36865         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
36866         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
36867         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
36868         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
36869         Change width of U+E0100..U+E01EF from 1 to 0.
36870
36871 2003-04-25  Jim Meyering  <jim@meyering.net>
36872
36873         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
36874         of type size_t, not int.
36875
36876 2003-04-25  Bruno Haible  <bruno@clisp.org>
36877
36878         * lib/copy-file.c: Include <stddef.h>, for size_t.
36879
36880 2003-04-21  Paul Eggert  <eggert@twinsun.com>
36881
36882         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
36883         code which expansion is under static control.  Patch imported from
36884         Akim Demaille's patch to Bison; see
36885         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
36886
36887 2003-04-14  Bruno Haible  <bruno@clisp.org>
36888
36889         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
36890
36891 2003-04-11  Jim Meyering  <jim@meyering.net>
36892
36893         Merge changes from Coreutils.
36894
36895         2003-03-22  Jim Meyering  <jim@meyering.net>
36896
36897         * lib/strftime.c (widen): Cast alloca return value to proper type.
36898
36899         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
36900
36901         From GNU libc.
36902         * lib/strftime.c (my_strftime): Handle very large width
36903         specifications for numeric values correctly.  Improve checks for
36904         overflow.
36905
36906         2003-01-19  Jim Meyering  <jim@meyering.net>
36907
36908         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
36909         definitions.
36910         (nl_get_alt_digit) [! defined my_strftime]: Define.
36911         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
36912         _nl_get_alt_digit and _nl_get_walt_digit.
36913
36914         * lib/strftime.c (my_strftime): Merge in locale-related changes from
36915         libc. These changes have no effect outside of _LIBC.
36916
36917 2003-04-10  Bruno Haible  <bruno@clisp.org>
36918
36919         * modules/findprog: New file.
36920         * MODULES.html.sh (func_all_modules): Add it.
36921
36922 2003-04-10  Bruno Haible  <bruno@clisp.org>
36923
36924         * m4/findprog.m4: New file.
36925         * m4/eaccess.m4: New file.
36926
36927 2003-04-10  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/findprog.h: New file, from GNU gettext.
36930         * lib/findprog.c: New file, from GNU gettext.
36931
36932 2003-04-05  Jim Meyering  <jim@meyering.net>
36933
36934         Merge changes from Coreutils.
36935
36936         * lib/exclude.h (PARAMS): Remove definition and uses.
36937         * lib/exclude.c: Remove uses of `PARAMS'.
36938
36939         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
36940         Add test-cases for DOS filenames. Declare program_name.
36941         (main): Set up program_name.  Patch by Rich Dawe.
36942
36943         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36944         error from mntctl.
36945         Use mntctl's return value to drive the entry-processing loop, since
36946         we can't rely on the value of the vmt_length member in the last
36947         entry.  On some systems doing so could result in exhausting
36948         virtual memory.  Based in part on a patch from Mike Jetzer.
36949
36950 2003-04-04  Bruno Haible  <bruno@clisp.org>
36951
36952         * modules/linebreak: New file.
36953         * MODULES.html.sh (func_all_modules): Add it.
36954
36955 2003-04-04  Bruno Haible  <bruno@clisp.org>
36956
36957         * m4/linebreak.m4: New file.
36958
36959 2003-04-04  Bruno Haible  <bruno@clisp.org>
36960
36961         * lib/linebreak.h: New file, from GNU gettext.
36962         * lib/linebreak.c: New file, from GNU gettext with slight
36963         modifications.
36964         * lib/lbrkprop.h: New file, from GNU gettext.
36965
36966 2003-04-03  Bruno Haible  <bruno@clisp.org>
36967
36968         * modules/utf8-ucs4: New file.
36969         * modules/utf16-ucs4: New file.
36970         * modules/ucs4-utf8: New file.
36971         * modules/ucs4-utf16: New file.
36972         * MODULES.html.sh (func_all_modules): Add them.
36973
36974 2003-04-03  Bruno Haible  <bruno@clisp.org>
36975
36976         * m4/utf-ucs4.m4: New file.
36977         * m4/ucs4-utf.m4: New file.
36978
36979 2003-04-03  Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/utf8-ucs4.h: New file, from GNU gettext.
36982         * lib/utf16-ucs4.h: New file, from GNU gettext.
36983         * lib/ucs4-utf8.h: New file, from GNU gettext.
36984         * lib/ucs4-utf16.h: New file, from GNU gettext.
36985
36986 2003-04-02  Bruno Haible  <bruno@clisp.org>
36987
36988         * modules/binary-io: New file.
36989         * MODULES.html.sh (func_all_modules): Add it.
36990
36991 2003-04-02  Bruno Haible  <bruno@clisp.org>
36992
36993         * lib/binary-io.h: New file, from GNU gettext.
36994
36995 2003-04-01  Bruno Haible  <bruno@clisp.org>
36996
36997         * modules/pathname: New file.
36998         * MODULES.html.sh (func_all_modules): Add it.
36999
37000 2003-04-01  Bruno Haible  <bruno@clisp.org>
37001
37002         * lib/pathname.h: New file, from GNU gettext.
37003         * lib/concatpath.c: New file, from GNU gettext.
37004
37005 2003-03-30  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
37008
37009 2003-03-30  Bruno Haible  <bruno@clisp.org>
37010
37011         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
37012         function chown() doesn't exist.
37013
37014 2003-03-28  Bruno Haible  <bruno@clisp.org>
37015
37016         * modules/copy-file: New file.
37017         * MODULES.html.sh (func_all_modules): Add it.
37018
37019 2003-03-28  Bruno Haible  <bruno@clisp.org>
37020
37021         * m4/copy-file.m4: New file.
37022
37023 2003-03-28  Bruno Haible  <bruno@clisp.org>
37024
37025         * lib/copy-file.h: New file, from GNU gettext.
37026         * lib/copy-file.c: New file, from GNU gettext.
37027
37028 2003-03-18  Jim Meyering  <jim@meyering.net>
37029
37030         * lib/quote.c (quote_n): Fix typo in comment.
37031
37032 2003-03-18  Bruno Haible  <bruno@clisp.org>
37033
37034         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
37035         checking.
37036         * m4/onceonly_2_57.m4: Likewise.
37037
37038 2003-03-17  Bruno Haible  <bruno@clisp.org>
37039
37040         * m4/onceonly.m4: Require autoconf 2.54 or newer.
37041         (m4_quote): Remove macro.
37042         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
37043
37044 2003-03-14  Jim Meyering  <jim@meyering.net>
37045
37046         Merge changes from Coreutils.
37047         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
37048         to be const, in order to avoid warnings.
37049         (obstack_room): Likewise.
37050         (obstack_empty_p): Likewise.
37051
37052 2003-03-14  Bruno Haible  <bruno@clisp.org>
37053
37054         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
37055         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
37056
37057 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37058
37059         Merge changes from Bison.
37060         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
37061         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
37062         when compiling Bison 1.875's `bitset bset = obstack_alloc
37063         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
37064         * lib/hash.c: Include <stdbool.h> unconditionally.
37065
37066 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37067
37068         * m4/onceonly.m4 (m4_quote): New macro.
37069         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
37070         Quote AC_FOREACH variable-expansions properly.
37071
37072 2003-03-13  Paul Eggert  <eggert@twinsun.com>
37073
37074         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
37075
37076 2003-03-09  Paul Eggert  <eggert@twinsun.com>
37077
37078         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
37079         Reported by Bruce Becker; see:
37080         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
37081
37082 2003-03-03  Paul Eggert  <eggert@twinsun.com>
37083             Bruno Haible  <bruno@clisp.org>
37084
37085         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
37086         Reported by John Hughes, see
37087         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
37088
37089 2003-02-20  Bruno Haible  <bruno@clisp.org>
37090
37091         * MODULES.html.sh (func_all_modules): Add poll.
37092
37093 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37094
37095         * modules/poll: New file.
37096
37097 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37098
37099         * lib/poll_.h: New file.
37100         * lib/poll.c: New file.
37101
37102 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
37103
37104         * m4/poll.m4: New file.
37105
37106 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37107
37108         * modules/mathl: New file.
37109
37110 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37111
37112         * lib/mathl.h: New file.
37113         * lib/acosl.c: New file.
37114         * lib/asinl.c: New file.
37115         * lib/atanl.c: New file.
37116         * lib/ceill.c: New file.
37117         * lib/cosl.c: New file.
37118         * lib/expl.c: New file.
37119         * lib/floorl.c: New file.
37120         * lib/frexpl.c: New file.
37121         * lib/ldexpl.c: New file.
37122         * lib/logl.c: New file.
37123         * lib/sincosl.c: New file.
37124         * lib/sinl.c: New file.
37125         * lib/sqrtl.c: New file.
37126         * lib/tanl.c: New file.
37127         * lib/trigl.c: New file.
37128         * lib/trigl.h: New file.
37129
37130 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37131
37132         * m4/mathl.m4: New file.
37133
37134 2003-02-18  Bruno Haible  <bruno@clisp.org>
37135
37136         * MODULES.html.sh (func_all_modules): Add mathl.
37137
37138 2003-02-17  Bruno Haible  <bruno@clisp.org>
37139
37140         * modules/mkdtemp: New module.
37141         * MODULES.html.sh (func_all_modules): Add it.
37142
37143 2003-02-17  Bruno Haible  <bruno@clisp.org>
37144
37145         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37146
37147 2003-02-17  Bruno Haible  <bruno@clisp.org>
37148
37149         * lib/mkdtemp.h: New file, from GNU gettext.
37150         * lib/mkdtemp.c: New file, from GNU gettext.
37151
37152 2003-02-02  Jim Meyering  <jim@meyering.net>
37153
37154         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37155         e.g. glibc-2.2.93.
37156
37157 2003-01-31  Bruno Haible  <bruno@clisp.org>
37158
37159         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37160         'rpl_rename'.
37161         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37162         'rpl_strnlen'.
37163         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37164         'rpl_strtod'.
37165         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37166         'rpl_utime'.
37167
37168 2003-01-31  Bruno Haible  <bruno@clisp.org>
37169
37170         * lib/rename.c: #undef rename before defining rpl_rename.
37171         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37172
37173 2003-01-30  Bruno Haible  <bruno@clisp.org>
37174
37175         * modules/vasnprintf, modules/vasprintf: New modules.
37176         * MODULES.html.sh (func_all_modules): Add them.
37177
37178 2003-01-30  Bruno Haible  <bruno@clisp.org>
37179
37180         * m4/signed.m4: New file, from GNU gettext.
37181         * m4/longdouble.m4: New file, from GNU gettext.
37182         * m4/wchar_t.m4: New file, from GNU gettext.
37183         * m4/wint_t.m4: New file, from GNU gettext.
37184         * m4/vasnprintf.m4: New file.
37185         * m4/vasprintf.m4: New file.
37186
37187 2003-01-30  Bruno Haible  <bruno@clisp.org>
37188
37189         * lib/printf-args.h: New file, from GNU gettext.
37190         * lib/printf-args.c: New file, from GNU gettext.
37191         * lib/printf-parse.h: New file, from GNU gettext.
37192         * lib/printf-parse.c: New file, from GNU gettext.
37193         * lib/vasnprintf.h: New file, from GNU gettext.
37194         * lib/vasnprintf.c: New file, from GNU gettext.
37195         * lib/asnprintf.c: New file, from GNU gettext.
37196         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37197         * lib/vasprintf.c: New file, from GNU gettext.
37198         * lib/asprintf.c: New file, from GNU gettext.
37199
37200 2003-01-29  Bruno Haible  <bruno@clisp.org>
37201
37202         * modules/stpncpy: New module.
37203         * MODULES.html.sh (func_all_modules): Add it.
37204
37205 2003-01-29  Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/stpncpy.m4: New file.
37208
37209 2003-01-29  Bruno Haible  <bruno@clisp.org>
37210
37211         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37212         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37213
37214 2003-01-28  Bruno Haible  <bruno@clisp.org>
37215
37216         * modules/c-ctype: New module.
37217         * MODULES.html.sh (func_all_modules): Add it.
37218
37219 2003-01-28  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37222         Paul Eggert.
37223         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37224         Paul Eggert.
37225
37226 2003-01-27  Bruno Haible  <bruno@clisp.org>
37227
37228         * modules/xsetenv: New module.
37229         * MODULES.html.sh (func_all_modules): Add it.
37230
37231 2003-01-27  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/xsetenv.h: New file, from GNU gettext.
37234         * lib/xsetenv.c: New file, from GNU gettext.
37235
37236 2003-01-23  Jim Meyering  <jim@meyering.net>
37237
37238         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37239         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37240
37241 2003-01-23  Bruno Haible  <bruno@clisp.org>
37242
37243         * modules/minmax: New module.
37244         * MODULES.html.sh (func_all_modules): Add it.
37245
37246 2003-01-23  Bruno Haible  <bruno@clisp.org>
37247
37248         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37249         Eggert.
37250
37251 2003-01-22  Bruno Haible  <bruno@clisp.org>
37252
37253         * modules/exit: New module.
37254         * MODULES.html.sh (func_all_modules): Add it.
37255
37256 2003-01-22  Bruno Haible  <bruno@clisp.org>
37257
37258         * lib/exit.h: New file, from GNU gettext.
37259
37260 2003-01-19  Bruno Haible  <bruno@clisp.org>
37261
37262         * gnulib-tool: Recognize option --extract-maintainer.
37263         (func_get_maintainer): New function.
37264         * modules/*: Add Maintainer entry.
37265
37266 2003-01-16  Jim Meyering  <jim@meyering.net>
37267
37268         * m4/regex.m4: The `regex' struct is both input and output.
37269         Initialize it before each use.  Patch by Tim Waugh.
37270
37271 2003-01-16  Bruno Haible  <bruno@clisp.org>
37272
37273         * MODULES.html.sh: Add a table of contents. Add the module name as
37274         leftmost column. Add hyperlinks.
37275
37276 2003-01-15  Bruno Haible  <bruno@clisp.org>
37277
37278         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37279
37280 2003-01-15  Bruno Haible  <bruno@clisp.org>
37281
37282         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37283         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37284         suffix.
37285
37286 2003-01-15  Bruno Haible  <bruno@clisp.org>
37287
37288         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37289
37290 2003-01-15  Bruno Haible  <bruno@clisp.org>
37291
37292         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37293         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37294
37295 2003-01-14  Jim Meyering  <jim@meyering.net>
37296
37297         * lib/same.c (same_name): Tweak a comment.
37298
37299 2003-01-14  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37302         when a string comparison is sufficient.
37303
37304 2003-01-14  Bruno Haible  <bruno@clisp.org>
37305
37306         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37307         'unsigned int'.
37308
37309 2003-01-14  Bruno Haible  <bruno@clisp.org>
37310
37311         * lib/hash-pjw.c: Add comment about low quality of this function.
37312
37313 2003-01-13  Bruno Haible  <bruno@clisp.org>
37314
37315         * modules/stpcpy: Distribute lib/stpcpy.h.
37316         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37317
37318 2003-01-13  Bruno Haible  <bruno@clisp.org>
37319
37320         * modules/*: Add a description.
37321         * modules/strpbrk: Fix Makefile.am snippet.
37322         * modules/strtoimax: Fix dependencies.
37323         * modules/strtoumax: Likewise.
37324
37325 2003-01-13  Bruno Haible  <bruno@clisp.org>
37326
37327         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37328         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37329         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37330
37331 2003-01-13  Bruno Haible  <bruno@clisp.org>
37332
37333         * gnulib-tool (func_create_testdir): Store config/* files in the main
37334         directory.
37335         * config.rpath: Move to ...
37336         * config/config.rpath: ... here.
37337         * modules/gettext: Contains config/config.rpath, not config.rpath.
37338         * modules/iconv: Likewise.
37339
37340 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37341
37342         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37343         to avoid collisions with libcurses and libreadline.
37344
37345         * m4/getstr.m4: Remove.
37346         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37347
37348 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37349
37350         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37351         to avoid collisions with libcurses and libreadline.
37352
37353         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37354         * lib/getstr.h, getstr.c: Remove.
37355         * lib/getline.c: Include "getline.h", to check interface.
37356         Move body of old getstr.c here: this defines MIN_CHUNK and
37357         declares getdelim2, which is renamed from getstr.
37358         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37359
37360         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37361         All uses changed.
37362         * lib/linebuffer.h: Likewise.
37363         (readline): Remove backward-compatibility macro.
37364
37365 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37366
37367         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37368         to avoid collisions with libcurses and libreadline.
37369         * getstr: Remove.
37370         * MODULES.html.sh: Remove getstr.
37371         * modules/getline: Depend on unlocked-io, not getstr.
37372
37373 2003-01-12  Jim Meyering  <jim@meyering.net>
37374
37375         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37376
37377 2003-01-10  Bruno Haible  <bruno@clisp.org>
37378
37379         * modules/alloca: Change Makefile.am requirements. Simplify Include
37380         requirements. Add lib/alloca_.h to file list.
37381
37382 2003-01-10  Bruno Haible  <bruno@clisp.org>
37383
37384         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37385
37386 2003-01-10  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/alloca_.h: New file.
37389         * lib/getdate.y: Unconditionally include alloca.h.
37390         * lib/makepath.c: Likewise.
37391         * lib/setenv.c: Likewise.
37392         * lib/userspec.c: Likewise.
37393
37394 2003-01-09  Karl Berry  <karl@gnu.org>
37395
37396         * MODULES.html.sh: include `dirname $0` in PATH, to find
37397         gnulib-tool.
37398
37399 2003-01-09  Bruno Haible  <bruno@clisp.org>
37400
37401         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37402         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37403
37404 2003-01-09  Bruno Haible  <bruno@clisp.org>
37405
37406         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37407
37408 2003-01-09  Bruno Haible  <bruno@clisp.org>
37409
37410         * lib/stdbool.h.in: New file.
37411
37412 2003-01-09  Bruno Haible  <bruno@clisp.org>
37413
37414         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37415         * MODULES.html.sh: Likewise.
37416
37417 2003-01-08  Jim Meyering  <jim@meyering.net>
37418
37419         * lib/full-write.c: Undefine and define-away `const' after inclusion
37420         of errno.h, not before.  Suggestion from Bruno Haible.
37421
37422 2003-01-08  Bruno Haible  <bruno@clisp.org>
37423
37424         * modules/full-read: Depend on full-write.
37425
37426 2003-01-08  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/safe-read.c: Include specification header first, to ensure its
37429         selfcontainedness.
37430         * lib/full-write.c: Likewise.
37431
37432 2003-01-07  Jim Meyering  <jim@meyering.net>
37433
37434         * lib/full-write.c: Rework so that it may serve to define full_read,
37435         too.
37436         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37437
37438 2003-01-07  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37441         <inttypes.h>.
37442         * lib/xstrtol.h: Likewise.
37443         * lib/xstrtoimax.c: Likewise.
37444         * lib/xstrtoumax.c: Likewise.
37445         * lib/human.h: Likewise.
37446
37447         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37448         on systems that have <inttypes.h> but not <stdint.h>.
37449
37450 2003-01-07  Bruno Haible  <bruno@clisp.org>
37451
37452         * MODULES.html.sh: Add copyright notice.
37453         (missed_files): Omit CVS directory entries.
37454         (func_module): Make it work with sed-3.02.
37455         * MODULES.txt: Remove file.
37456
37457 2003-01-06  Jim Meyering  <jim@meyering.net>
37458
37459         * lib/version-etc.c: Update year in translatable copyright string.
37460
37461 2003-01-03  Karl Berry  <karl@gnu.org>
37462
37463         * config/config.{guess,sub}: update from prep.
37464
37465 2003-01-02  Karl Berry  <karl@gnu.org>
37466
37467         * doc/COPYING.DOC: belatedly updated to 1.2.
37468
37469 2003-01-01  Karl Berry  <karl@gnu.org>
37470
37471         * gnulib-tool (func_verify_module): report module name $module in
37472         error message, not $1.
37473         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37474         be created, only if it doesn't exist.
37475         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37476
37477 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37478
37479         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37480
37481 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37482
37483         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37484         memcmp if strcoll doesn't work.
37485
37486 2002-12-31  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37489         nonempty.
37490
37491 2002-12-31  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/memcoll.c (STRCOLL): New macro.
37494         (memcoll): Use it.
37495
37496 2002-12-31  Bruno Haible  <bruno@clisp.org>
37497
37498         * lib/localcharset.h: New file.
37499         * lib/localcharset.c: Include it.
37500         * lib/unicodeio.c: Likewise.
37501
37502 2002-12-31  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37505         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37506
37507 2002-12-31  Bruno Haible  <bruno@clisp.org>
37508
37509         * lib/getline.h: Include <stddef.h>, for size_t.
37510
37511         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37512         * lib/unicodeio.c: Don't include <stddef.h>.
37513
37514 2002-12-31  Bruno Haible  <bruno@clisp.org>
37515
37516         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37517         HAVE_TM_ZONE.
37518
37519 2002-12-24  Karl Berry  <karl@gnu.org>
37520
37521         * config/config.guess: update from prep.
37522
37523 2002-12-24  Bruno Haible  <bruno@clisp.org>
37524
37525         General infrasructure.
37526         * m4/README: Rewritten.
37527         * m4/onceonly.m4: New file.
37528         * m4/onceonly_2_57.m4: New file.
37529
37530         Module atexit.
37531         * m4/atexit.m4: New file.
37532
37533         Module strtod.
37534         * m4/strtod.m4: New file.
37535
37536         Module strtol.
37537         * m4/strtol.m4: New file.
37538
37539         Module strtoul.
37540         * m4/strtoul.m4: New file.
37541
37542         Module memchr.
37543         * m4/memchr.m4: New file.
37544
37545         Module memcmp.
37546         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37547         (jm_FUNC_MEMCMP): Invoke it.
37548
37549         Module memcpy.
37550         * m4/memcpy.m4: New file.
37551
37552         Module memmove.
37553         * m4/memmove.m4: New file.
37554
37555         Module memset.
37556         * m4/memset.m4: New file.
37557
37558         Module strcspn.
37559         * m4/strcspn.m4: New file.
37560
37561         Module strpbrk.
37562         * m4/strpbrk.m4: New file.
37563
37564         Module strstr.
37565         * m4/strstr.m4: New file.
37566
37567         Module strerror.
37568         * m4/strerror.m4: New file.
37569
37570         Module mktime.
37571         * m4/mktime.m4: Renamed from jm-mktime.m4.
37572         (gl_PREREQ_MKTIME): New macro.
37573         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37574
37575         Module malloc.
37576         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37577         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37578         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37579
37580         Module realloc.
37581         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37582         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37583         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37584
37585         Module strftime.
37586         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37587         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37588         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37589         gl_TM_GMTOFF.
37590         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37591
37592         Module xalloc.
37593         * m4/xalloc.m4: New file.
37594
37595         Module alloca.
37596         * m4/alloca.m4: New file.
37597
37598         Module putenv.
37599         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37600         (jm_FUNC_PUTENV): Invoke it.
37601
37602         Module setenv.
37603         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37604         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37605         when invoked twice.
37606         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37607         gt_FUNC_SETENV.
37608
37609         Module memrchr.
37610         * m4/memrchr.m4: New file.
37611
37612         Module stpcpy.
37613         * m4/stpcpy.m4: New file.
37614
37615         Module strcase.
37616         * m4/strcase.m4: New file.
37617
37618         Module strdup.
37619         * m4/strdup.m4: New file.
37620
37621         Module strnlen.
37622         * m4/strnlen.m4: New file.
37623
37624         Module strndup.
37625         * m4/strndup.m4: New file.
37626
37627         Module xstrtod.
37628         * m4/xstrtod.m4: New file.
37629
37630         Module xstrtol.
37631         * m4/xstrtol.m4: New file.
37632
37633         Module getdate.
37634         * m4/getdate.m4: New file.
37635
37636         Module unlocked-io.
37637         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37638         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37639         * m4/jm-glibc-io.m4n: Remove file.
37640
37641         Module long-options.
37642         * m4/long-options.m4: New file.
37643
37644         Module md5.
37645         * m4/md5.m4: New file.
37646
37647         Module sha.
37648         * m4/sha.m4: New file.
37649
37650         Module getstr.
37651         * m4/getstr.m4: New file.
37652
37653         Module getline.
37654         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37655         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37656         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37657         simply getline. Infoke gl_PREREQ_GETLINE.
37658
37659         Module obstack.
37660         * m4/obstack.m4: New file.
37661
37662         Module hash.
37663         * m4/hash.m4: New file.
37664
37665         Module readtokens.
37666         * m4/readtokens.m4: New file.
37667
37668         Module strverscmp.
37669         * m4/strverscmp.m4: New file.
37670
37671         Module stdbool.
37672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37673         OSF/1.
37674
37675         Module strtoll.
37676         * m4/strtoll.m4: New file.
37677
37678         Module strtoull.
37679         * m4/strtoull.m4: New file.
37680
37681         Module strtoimax.
37682         * m4/strtoimax.m4: New file.
37683
37684         Module strtoumax.
37685         * m4/strtoumax.m4: New file.
37686
37687         Module xstrtoimax.
37688         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37689         jm_AC_PREREQ_XSTRTOIMAX.
37690         Moved the strtol prerequisites to strtol.m4.
37691         Moved the strtoll prerequisites to strtoll.m4.
37692         Moved the strtoimax prerequisites to strtoimax.m4.
37693
37694         Module xstrtoumax.
37695         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37696         jm_AC_PREREQ_XSTRTOUMAX.
37697         Moved the strtoul prerequisites to strtoul.m4.
37698         Moved the strtoull prerequisites to strtoull.m4.
37699         Moved the strtoumax prerequisites to strtoumax.m4.
37700
37701         Module chown.
37702         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37703         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37704
37705         Module dup2.
37706         * m4/dup2.m4: New file.
37707
37708         Module ftruncate.
37709         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37710         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37711
37712         Module getgroups.
37713         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37714         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37715
37716         Module gettimeofday.
37717         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37718         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37719         gl_PREREQ_GETTIMEOFDAY.
37720
37721         Module mkdir.
37722         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
37723         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
37724
37725         Module mkstemp.
37726         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
37727         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
37728         jm_AC_TYPE_UINTMAX_T.
37729         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
37730
37731         Module stat.
37732         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
37733         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
37734
37735         Module lstat.
37736         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
37737         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
37738
37739         Module timespec.
37740         * m4/timespec.m4 (gl_TIMESPEC): New macro.
37741         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
37742         * m4/st_mtim.m4: Indentation.
37743
37744         Module nanosleep.
37745         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
37746         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
37747         gl_PREREQ_NANOSLEEP.
37748
37749         Module regex.
37750         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
37751         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
37752         (gl_REGEX): New macro.
37753
37754         Module rename.
37755         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
37756         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
37757
37758         Module rmdir.
37759         * m4/rmdir.m4: New file.
37760
37761         Module utime.
37762         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
37763         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
37764         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
37765
37766         Module dirname.
37767         * m4/dirname.m4: New file.
37768
37769         Module getopt.
37770         * m4/getopt.m4: New file.
37771
37772         Module unistd-safer.
37773         * m4/unistd-safer.m4: New file.
37774
37775         Module fnmatch.
37776         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
37777         declaration.
37778         (gl_PREREQ_FNMATCH_EXTRA): New macro.
37779         (gl_FUNC_FNMATCH_POSIX): New macro.
37780         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
37781         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
37782         simply fnmatch.
37783
37784         Module exclude.
37785         * m4/exclude.m4: New file.
37786
37787         Module human.
37788         * m4/human.m4: New file.
37789
37790         Module acl.
37791         * m4/acl.m4: Nop.
37792
37793         Module backupfile.
37794         * m4/backupfile.m4: New file.
37795         * m4/d-ino.m4: Indentation.
37796
37797         Module fsusage.
37798         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
37799         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
37800         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
37801
37802         Module dirfd.
37803         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
37804         requirements.
37805
37806         Module euidaccess.
37807         * m4/euidaccess.m4: New file.
37808
37809         Module file-type.
37810         * m4/file-type.m4: New file.
37811
37812         Module fileblocks.
37813         * m4/fileblocks.m4: New file.
37814
37815         Module filemode.
37816         * m4/filemode.m4: New file.
37817
37818         Module isdir.
37819         * m4/isdir.m4: New file.
37820
37821         Module lchown.
37822         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
37823         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
37824
37825         Module makepath.
37826         * m4/makepath.m4: New file.
37827
37828         Module modechange.
37829         * m4/modechange.m4: New file.
37830
37831         Module mountlist.
37832         * m4/mountlist.m4: New file.
37833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
37834         Indentation.
37835
37836         Module path-concat.
37837         * m4/path-concat.m4: New file.
37838
37839         Module pathmax.
37840         * m4/pathmax.m4: New file.
37841
37842         Module same.
37843         * m4/same.m4: New file.
37844
37845         Module save-cwd.
37846         * m4/save-cwd.m4: New file.
37847
37848         Module savedir.
37849         * m4/savedir.m4: New file.
37850
37851         Module xgetcwd.
37852         * m4/xgetcwd.m4: New file.
37853         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
37854
37855         Module xreadlink.
37856         * m4/xreadlink.m4: New file.
37857
37858         Module safe-read.
37859         * m4/safe-read.m4: New file.
37860
37861         Module safe-write.
37862         * m4/safe-write.m4: New file.
37863
37864         Module closeout.
37865         * m4/closeout.m4: New file.
37866
37867         Module stdio-safer.
37868         * m4/stdio-safer.m4: New file.
37869
37870         Module getpass.
37871         * m4/getpass.m4: New file.
37872
37873         Module getugroups.
37874         * m4/getugroups.m4: New file.
37875
37876         Module group-member.
37877         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
37878         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
37879
37880         Module idcache.
37881         * m4/idcache.m4: New file.
37882
37883         Module userspec.
37884         * m4/userspec.m4: New file.
37885
37886         Module gettime.
37887         * m4/clock_time.m4: New file.
37888         * m4/gettime.m4: New file.
37889
37890         Module settime.
37891         * m4/settime.m4: New file.
37892
37893         Module posixtm.
37894         * m4/posixtm.m4: New file.
37895
37896         Module gethostname.
37897         * m4/gethostname.m4: New file.
37898
37899         Module canon-host.
37900         * m4/canon-host.m4: New file.
37901
37902         Module gettext.
37903         * m4/codeset.m4: New file, from gettext-0.11.5.
37904         * m4/gettext.m4: New file, from gettext-0.11.5.
37905         * m4/glibc21.m4: New file, from gettext-0.11.5.
37906         * m4/iconv.m4: New file, from gettext-0.11.5.
37907         * m4/intdiv0.m4: New file, from gettext-0.11.5.
37908         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
37909         * m4/inttypes.m4: New file, from gettext-0.11.5.
37910         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
37911         * m4/isc-posix.m4: New file, from gettext-0.11.5.
37912         * m4/lcmessage.m4: New file, from gettext-0.11.5.
37913         * m4/lib-ld.m4: New file, from gettext-0.11.5.
37914         * m4/lib-link.m4: New file, from gettext-0.11.5.
37915         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
37916         * m4/progtest.m4: New file, from gettext-0.11.5.
37917         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
37918         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
37919         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
37920
37921         Module localcharset.
37922         * m4/localcharset.m4: New file.
37923
37924         Module hard-locale.
37925         * m4/hard-locale.m4: New file.
37926
37927         Module mbswidth.
37928         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
37929         onceonly macros.
37930         * m4/mbrtowc.m4: Add comment.
37931
37932         Module memcasecmp.
37933         * m4/memcasecmp.m4: New file.
37934
37935         Module memcoll.
37936         * m4/memcoll.m4: New file.
37937
37938         Module unicodeio.
37939         * m4/unicodeio.m4: New file.
37940
37941         Module rpmatch.
37942         * m4/rpmatch.m4: New file.
37943
37944         Module yesno.
37945         * m4/yesno.m4: New file.
37946
37947         Module exitfail.
37948         * m4/exitfail.m4: New file.
37949
37950         Module c-stack.
37951         * m4/c-stack.m4 (gl_C_STACK): New macro.
37952         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
37953
37954         Module error.
37955         * m4/error.m4 (gl_ERROR): New macro.
37956         (jm_PREREQ_ERROR): Use onceonly macros.
37957
37958         Module fatal.
37959         * m4/fatal.m4: New file.
37960
37961         Module getloadavg.
37962         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
37963         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
37964
37965         Module getpagesize.
37966         * m4/getpagesize.m4: New file.
37967
37968         Module getusershell.
37969         * m4/getusershell.m4: New file.
37970
37971         Module physmem.
37972         * m4/physmem.m4: New file.
37973
37974         Module posixver.
37975         * m4/posixver.m4: New file.
37976
37977         Module quotearg.
37978         * m4/quotearg.m4: New file.
37979
37980         Module quote.
37981         * m4/quote.m4: New file.
37982
37983         Module readutmp.
37984         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
37985
37986         Module sig2str.
37987         * m4/sig2str.m4: New file.
37988
37989         Other.
37990         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
37991         ulonglong.m4.
37992         * m4/intmax_t.m4: New file.
37993         * m4/d-type.m4: Indentation.
37994         * m4/jm-macros.m4: Update.
37995         * m4/prereq.m4 (jm_PREREQ): Update.
37996         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
37997         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
37998         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
37999         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
38000         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
38001         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
38002         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
38003         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
38004         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
38005         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
38006         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
38007         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
38008         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
38009         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
38010         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
38011         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
38012         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
38013         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
38014         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
38015
38016 2002-12-24  Bruno Haible  <bruno@clisp.org>
38017
38018         * MODULES.txt: Update according to m4/ changes.
38019
38020         Module gettext.
38021         * config.rpath: New file, from gettext-0.11.5.
38022
38023         * modules/*: New module descriptions.
38024         * gnulib-tool: New file.
38025         * MODULES.html.sh: New file.
38026
38027 2002-12-21  Karl Berry  <karl@gnu.org>
38028
38029         * doc/fdl.texi: update to version 1.2.
38030
38031 2002-12-19  Karl Berry  <karl@gnu.org>
38032
38033         * config/config.guess: update from prep.
38034
38035 2002-12-18  Bruno Haible  <bruno@clisp.org>
38036
38037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
38038         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
38039
38040 2002-12-17  Bruno Haible  <bruno@clisp.org>
38041
38042         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
38043         stdlib.h, string.h.
38044
38045 2002-12-17  Bruno Haible  <bruno@clisp.org>
38046
38047         * lib/canon-host.c (strdup): Remove unused declaration.
38048
38049         * lib/fsusage.c: Include full_read.h.
38050         (get_fs_usage): Use full_read instead of safe_read.
38051
38052         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
38053
38054 2002-12-12  Karl Berry  <karl@gnu.org>
38055
38056         * config/config.guess: update from prep.
38057
38058 2002-12-11  Bruno Haible  <bruno@clisp.org>
38059
38060         * m4/setenv.m4: New file, from gettext-0.11.5.
38061
38062 2002-12-11  Bruno Haible  <bruno@clisp.org>
38063
38064         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
38065         not unsetenv().
38066         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
38067         modifications:
38068
38069         2002-12-11  Bruno Haible  <bruno@clisp.org>
38070
38071                 * setenv.c (alloca): Fall back to malloc.
38072                 (freea): New macro.
38073                 (setenv): Use freea() to free memory allocated with alloca().
38074
38075         2002-11-13  Bruno Haible  <bruno@clisp.org>
38076
38077                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
38078                 function declarations.
38079                 * unsetenv.c (unsetenv): Likewise.
38080
38081         2002-03-04  Bruno Haible  <bruno@clisp.org>
38082
38083                 Portability to AIX 4.3.3.
38084                 * unsetenv.c: New file, extracted from setenv.c.
38085                 * setenv.c: Move the unsetenv() function to unsetenv.c.
38086
38087         2001-12-20  Bruno Haible  <bruno@clisp.org>
38088
38089                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
38090                 use malloc instead. For SunOS 4.
38091
38092         2001-12-11  Bruno Haible  <bruno@clisp.org>
38093
38094                 * setenv.c: Declare alloca.
38095                 (compar_fn_t): New typedef.
38096                 (KNOWN_VALUE, STORE_VALUE): Use it.
38097
38098         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
38099         setenv.h.
38100
38101 2002-12-10  Paul Eggert  <eggert@twinsun.com>
38102
38103         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
38104         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
38105         Choose values that are less likely to collide with system fnmatch
38106         options.
38107         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
38108         defined (e.g., a pure POSIX system).
38109         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
38110         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
38111
38112 2002-12-06  Paul Eggert  <eggert@twinsun.com>
38113
38114         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
38115         a pain in practice to deal with generated m4 files.  This change
38116         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
38117
38118         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38119         and jm-glibc-io.m4, as they are no longer a special case.
38120         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38121         kludge and the auto-generation stuff.  Check only whether the
38122         functions are declared, not whether they exist, since older hosts
38123         that don't declare the functions can't use the optimization anyway.
38124
38125 2002-12-06  Jim Meyering  <jim@meyering.net>
38126
38127         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38128
38129         Merge in changes from libc's misc/error.c, in preparation
38130         for the merge of gnulib's changes back into libc.
38131
38132         * lib/error.c (_): Define only if not already defined.
38133         Move definition to follow all #include directives.
38134         Include unlocked-io.h only if !_LIBC.
38135         [_LIBC]: Include <libio/libioP.h>.
38136         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38137         (fflush): Tweak definition to use INTUSE.
38138         (putc): Define.
38139
38140 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38141
38142         * lib/alloca.c [defined emacs]: Include "lisp.h".
38143         (xalloc_die) [defined emacs]: New macro.
38144         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38145         [! defined emacs]: Include <xalloc.h>.
38146         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38147         (pointer): Typedef to POINTER_TYPE *.
38148         (malloc): Remove decl; we now always use xmalloc.
38149         (alloca): Use old-style definition, since Emacs needs this.
38150         Check for arithmetic overflow when computing combined size.
38151
38152 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38153
38154         Do not generate unlocked-io.h automatically, since it's easier to
38155         maintain it by hand.
38156
38157         * lib/unlocked-io.h: New file, from GNU diffutils,
38158         but with proper copyright notice and attribution.
38159         * lib/gen-uio: Remove.
38160         * lib/Makefile.am: Add copyright notice.
38161         (libfetish_a_SOURCES): Add unlocked-io.h.
38162         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38163         (DISTCLEANFILES, io_functions): Remove macros.
38164         (EXTRA_DIST): Remove gen_uio.
38165         (unlocked-io.h): Remove rule.
38166
38167 2002-12-04  Jim Meyering  <jim@meyering.net>
38168
38169         Reflect the fact that stat.c and lstat.c are no longer generated.
38170         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38171         (DISTCLEANFILES): Likewise.
38172         (EXTRA_DIST): Likewise.
38173         (all_local): Don't depend on stat.c or lstat.c.
38174         (stat.c, lstat.c): Remove rules.
38175         (EXTRA_DIST): Remove xstat.in.
38176
38177         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38178         * lib/stat.c: New file.  Contents mostly from xstat.in.
38179         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38180         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38181
38182         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38183         too.
38184         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38185
38186 2002-12-03  Jim Meyering  <jim@meyering.net>
38187
38188         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38189         but not semantics, to minimize the differences between these two files.
38190         (safe_read): Change comment to mention SAFE_READ_ERROR.
38191
38192         * lib/safe-read.c (IS_EINTR): Define.
38193         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38194
38195 2002-12-02  Jim Meyering  <jim@meyering.net>
38196
38197         * lib/safe-read.c (EINTR): Define.
38198         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38199         (INT_MAX): Provide fallback.
38200         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38201
38202         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38203
38204 2002-12-02  Bruno Haible  <bruno@clisp.org>
38205
38206         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38207         Define, taken from safe-read.c.
38208         (INT_MAX): Provide fallback.
38209         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38210         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38211
38212         * lib/safe-read.c (EINTR): Remove definition.
38213         (safe_read): Don't use EINTR if it is absent.
38214
38215 2002-12-01  Jim Meyering  <jim@meyering.net>
38216
38217         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38218         zero.
38219         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38220
38221 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38222
38223         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38224         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38225         with `if (! (value < limit)) abort ();', for readability.
38226
38227 2002-11-26  Karl Berry  <karl@gnu.org>
38228
38229         * lib/strdup.c: copy from libc again, with jim's ok.
38230         * lib/.cppi-disable: re-add strdup.c
38231
38232 2002-11-25  Karl Berry  <karl@gnu.org>
38233
38234         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38235         instead of "strtol.c".
38236
38237 2002-11-25  Karl Berry  <karl@gnu.org>
38238
38239         * config/install-sh: update from automake for variable quoting, $0 in
38240         error msgs, etc.
38241
38242         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38243         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38244         entry.
38245
38246 2002-11-25  Jim Meyering  <jim@meyering.net>
38247
38248         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38249
38250 2002-11-24  Karl Berry  <karl@gnu.org>
38251
38252         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38253         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38254
38255 2002-11-24  Jim Meyering  <jim@meyering.net>
38256
38257         Update from coreutils:
38258
38259         * lib/mktime.c: Merge in changes from libc.
38260
38261         Avoid a link-time failure on some Linux systems.
38262         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38263         (otherwise).
38264         (__mon_yday): Declare with the STATIC attribute.
38265         (__mktime_internal): Likewise.
38266         Based on a report from Greg Schafer.
38267
38268 2002-11-23  Jim Meyering  <jim@meyering.net>
38269
38270         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38271         Use `unsigned', not `int', as type of index.
38272
38273         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38274
38275         * lib/fsusage.c: Remove unneeded parentheses around operands of
38276         `defined'.
38277
38278 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38279
38280         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38281         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38282         so that we can be included first.
38283         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38284         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38285         No need to include stddef.h or sys/types.h any more.
38286         Surround local include files with "", not "<>".
38287         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38288         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38289         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38290         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38291         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38292         (ISPRINT): Remove; no longer needed now that we assume C89.
38293
38294         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38295         Preserve errno.
38296
38297         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38298         quotearg_char): Use SIZE_MAX rather than
38299         (size_t) -1 when we are talking about "infinity".
38300
38301         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38302
38303 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38304
38305         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38306         hint that one should use `if (! x) abort ();' rather than `assert
38307         (x);', and anyway it's one less thing to worry about configuring.
38308         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38309         hash_rehash, hash_insert): Use abort rather than assert.
38310
38311 2002-11-22  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/safe-read.h: Assume C89. Add comments.
38314         (safe_read): Change return type to size_t.
38315         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38316         byte counts > SSIZE_MAX correctly.
38317         * lib/safe-write.h: New file.
38318         * lib/safe-write.c: New file.
38319         * lib/full-read.h: New file.
38320         * lib/full-read.c: New file.
38321         * lib/full-write.h: Assume C89. Add comments.
38322         * lib/full-write.c: Include safe-write.h.
38323         (full_write): Rewritten to use safe_write.
38324         Suggested by Jim Meyering and Paul Eggert.
38325
38326 2002-11-21  Jim Meyering  <jim@meyering.net>
38327
38328         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38329
38330         Merge in changes from the coreutils.
38331
38332         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38333         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38334         <stdint.h>.
38335         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38336         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38337         int.  Work more efficiently if X is the same width as uintmax_t.
38338         Do not compare X to -1, to avoid bogus compiler warning.
38339         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38340         Don't assume that f_frsize and f_bsize are the same type.
38341
38342         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38343         warning on FreeBSD.
38344
38345         * lib/makepath.c (make_path): Restore umask *before* creating the final
38346         component.
38347         (make_path): Minor reformatting.
38348
38349         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38350         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38351         HAVE_MALLOC/HAVE_REALLOC.
38352
38353         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38354         dummy ones.  At least on GNU/Linux systems, `auto' means something
38355         else.
38356         From Michael Stone.
38357
38358 2002-11-21  Bruno Haible  <bruno@clisp.org>
38359
38360         Remove case insensitive option matching.
38361         * lib/argmatch.h (argcasematch): Remove declaration.
38362         (ARGCASEMATCH): Remove macro.
38363         (__xargmatch_internal): Remove case_sensitive argument.
38364         (XARGMATCH): Update.
38365         (XARGCASEMATCH): Remove macro.
38366         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38367         case_sensitive argument.
38368         (argcasematch): Remove function.
38369         (__xargmatch_internal): Remove case_sensitive argument.
38370         (main): Use XARGMATCH instead of XARGCASEMATCH.
38371
38372         * lib/xmalloc.c: Change compile-time error message. Add comment about
38373         required autoconf version.
38374
38375 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38376
38377         Merge argmatch cleanups from Bison.  Assume C89.
38378
38379         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38380         Include stdlib.h, for EXIT_FAILURE.
38381         Always include <string.h>, since we assume C89.
38382         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38383         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38384         Include <stddef.h> instead, since it's all we need for size_t.
38385         (PARAMS): Remove.  All uses removed.
38386         (ARRAY_CARDINALITY): Do not bother to #undef.
38387         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38388         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38389         Remove unnecessary parentheses.
38390         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38391         Insert necessary parentheses.
38392         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38393         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38394
38395 2002-11-19  Bruno Haible  <bruno@clisp.org>
38396
38397         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38398         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38399
38400         * lib/mbswidth.h (PARAMS): Remove macro.
38401         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38402         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38403
38404         * lib/gcd.h (PARAMS): Remove macro.
38405         (gcd): Use ANSI C function declarations.
38406         * lib/gcd.c (gcd): Likewise.
38407
38408 2002-11-15  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/strcspn.c: Include <stddef.h>.
38411         (strcspn): Use ANSI C function declaration. Change return type to
38412         size_t. Use NULL.
38413         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38414         (strpbrk): Use NULL.
38415         * lib/strpbrk.h (PARAMS): Remove macro.
38416         (strpbrk): Use ANSI C function declaration.
38417         * lib/strstr.c: Don't include <sys/types.h>.
38418         * lib/strstr.h (PARAMS): Remove macro.
38419         (strstr): Use ANSI C function declarations.
38420
38421 2002-11-14  Karl Berry  <karl@gnu.org>
38422
38423         * config/mkinstalldirs: `do' on separate line, instead of
38424         `for var; do'.
38425
38426 2002-11-06  Bruno Haible  <bruno@clisp.org>
38427
38428         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38429         * lib/gcd.c (gcd): Likewise.
38430
38431 2002-11-05  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/gcd.h: New file, from gettext-0.11.5.
38434         * lib/gcd.c: New file, from gettext-0.11.5.
38435
38436 2002-11-05  Bruno Haible  <bruno@clisp.org>
38437
38438         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38439         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38440         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38441         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38442
38443         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38444         <libintl.h>.
38445         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38446         <libintl.h>.
38447
38448         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38449         * lib/human.c: Include gettext.h instead of <libintl.h>.
38450         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38451         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38452         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38453         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38454         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38455         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38456         (textdomain): Remove definition.
38457         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38458
38459         * lib/long-options.c: Remove include of <libintl.h> and definition of
38460         _.
38461         * lib/same.c: Remove include of <libintl.h> and definition of _.
38462
38463 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38464
38465         * lib/config.charset: A few additions for Solaris.
38466
38467 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38468
38469         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38470         * lib/localcharset.c (locale_charset): Declare as extern "C".
38471
38472 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38473
38474         * lib/config.charset: msdos in uk_UA uses CP1125.
38475
38476 2002-11-04  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38479         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38480         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38481         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38482         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38483
38484 2002-11-04  Bruno Haible  <bruno@clisp.org>
38485
38486         * lib/localcharset.c (locale_charset): Don't return an empty string.
38487
38488 2002-11-04  Bruno Haible  <bruno@clisp.org>
38489
38490         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38491         aliases.
38492
38493 2002-11-04  Bruno Haible  <bruno@clisp.org>
38494
38495         * lib/config.charset: Update for newest glibc. Add canonical names
38496         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38497
38498 2002-11-04  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/config.charset: Add support for NetBSD.
38501
38502 2002-11-04  Bruno Haible  <bruno@clisp.org>
38503
38504         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38505
38506 2002-11-01  Bruno Haible  <bruno@clisp.org>
38507
38508         * configure.in: Add AC_CONFIG_AUX_DIR call.
38509         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38510         test/Makefile.
38511         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38512
38513 2002-09-28  Karl Berry  <karl@gnu.org>
38514
38515         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38516         installed automake until the next release, since changes have been
38517         made.
38518
38519 2002-09-25  Karl Berry  <karl@gnu.org>
38520
38521         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38522         * lib/getopt*: copy from libc/posix.
38523         * lib/gettext.h: copy from gettext.
38524         * lib/.cppi-disable: add strdup.c, gettext.h.
38525
38526 2002-09-25  Karl Berry  <karl@gnu.org>
38527
38528         * config/srclist.txt: enable gettext.h check.
38529         * config/config.{guess,sub}: update from prep.
38530         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38531                 from automake 1.6.3.
38532         See srclist*.
38533
38534 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38535
38536         * regex.c (PATFETCH): Remove the translating fetch.
38537         (PATFETCH_RAW): Rename to PATFETCH.
38538         (set_image_of_range): New fun.
38539         (SET_RANGE_TABLE_WORK_AREA): Use it.
38540         (regex_compile): Don't translate the pattern chars so eagerly.
38541         Only do it when inserting an `exactn' bytecode or when handling
38542         a char-range.
38543         (mutually_exclusive_p): Avoid empty statement.
38544
38545 2002-07-06  Jim Meyering  <meyering@lucent.com>
38546
38547         * m4/README: Don't mention Makefile.am.in.
38548         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38549
38550 2002-07-01  Jim Meyering  <meyering@lucent.com>
38551
38552         * lib/c-stack.c: Include sys/time.h.
38553         From Volker Borchert.
38554
38555 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38556
38557         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38558
38559 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38560
38561         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38562         New macro.  Use it uniformly instead of
38563         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38564         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38565         reported by Vin Shelton.
38566
38567 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38568
38569         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38570         Do not assume SA_SIGINFO behavior.
38571         Bug reported by Jim Meyering on NetBSD 1.5.2.
38572
38573 2002-06-22  Jim Meyering  <meyering@lucent.com>
38574
38575         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38576         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38577
38578         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38579         now that configure.ac uses AC_GNU_SOURCE.
38580         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38581         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38582
38583         Update to latest tools.  Suggestions from Paul Eggert.
38584         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38585         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38586         * m4/fnmatch.m4: Likewise.
38587         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38588         to AC_HEADER_STDBOOL
38589
38590 2002-06-22  Jim Meyering  <meyering@lucent.com>
38591
38592         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38593         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38594
38595 2002-06-22  Jim Meyering  <meyering@lucent.com>
38596
38597         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38598
38599         * lib/exitfail.c, exitfail.h: Likewise.
38600         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38601
38602         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38603         of fnmatch.h.
38604         (EXTRA_DIST): Add fnmatch_loop.c.
38605         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38606
38607         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38608         * lib/fnmatch.c: Update from diffutils-2.8.2.
38609         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38610         * lib/fnmatch.h: Remove file.
38611
38612 2002-06-21  Jim Meyering  <meyering@lucent.com>
38613
38614         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38615         * m4/mbrtowc.m4: Likewise.
38616
38617         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38618         * m4/mbswidth.m4: Reflect name change:
38619         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38620         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38621
38622         * m4/lib-link.m4: Update from gettext-0.11.2.
38623         * m4/gettext.m4: Likewise.
38624
38625         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38626         From Alfred M. Szmidt.
38627
38628 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38629
38630         * lib/file-type.h: Report an error if neither S_ISREG nor
38631         S_IFREG is defined, instead of using a test specific to glibc
38632         2.2.  This should be safe, since POSIX requires S_ISREG and
38633         Unix Version 7 had S_IFREG.  We don't need to check for
38634         <sys/types.h> since we don't use any symbols that it defines.
38635
38636 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38637
38638         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38639         $@-t, so that each temporary file name is unique and valid in the first
38640         8 characters, for operation under DOS.
38641
38642 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38643
38644         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38645
38646 2002-06-15  Jim Meyering  <meyering@lucent.com>
38647
38648         Work even with DJGPP 2.03, which lacks support for symlinks.
38649         From Richard Dawe.
38650         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38651         is defined.
38652         * lib/lchown.c (S_ISLNK): Likewise.
38653
38654 2002-06-15  Jim Meyering  <meyering@lucent.com>
38655
38656         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38657         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38658         have been included before this file.
38659
38660 2002-06-14  Jim Meyering  <meyering@lucent.com>
38661
38662         * lib/file-type.h: Use the version from diffutils-2.8.2.
38663         * lib/file-type.c: Likewise.
38664
38665 2002-06-07  Jim Meyering  <meyering@lucent.com>
38666
38667         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38668         They're needed at least for NetBSD 1.5.2.
38669         ($statxfs_includes): Include those same headers.
38670         ($statxfs_includes): Include sys/vfs.h if available.
38671         ($statxfs_includes): Likewise for sys/statvfs.h.
38672         Check for the following members in both structs statfs and statvfs:
38673         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38674
38675 2002-06-01  Jim Meyering  <meyering@lucent.com>
38676
38677         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38678         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38679
38680 2002-05-28  Jim Meyering  <meyering@lucent.com>
38681
38682         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38683         Reported by Volker Borchert.
38684
38685 2002-05-27  Jim Meyering  <meyering@lucent.com>
38686
38687         Fix a problem seen only on nonconforming systems whereby ls.c's
38688         use of localtime, and then of gettimeofday would cause trouble:
38689         the localtime call used to initialize rpl_gettimeofday's save
38690         mechanism would clobber ls's current local time information so
38691         that in any long listing the first file would always be listed
38692         with date 1970-01-01.  Analysis by Volker Borchert.
38693
38694         * lib/gettimeofday.c (localtime): Undefine.
38695         (rpl_localtime): New function.
38696
38697 2002-05-27  Jim Meyering  <meyering@lucent.com>
38698
38699         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38700         localtime.
38701
38702         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38703         use the replacement function; it wouldn't resolve at link time.
38704         Reported by Volker Borchert.
38705
38706 2002-05-22  Jim Meyering  <meyering@lucent.com>
38707
38708         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38709         file-type.h.
38710         * lib/file-type.h: New file.
38711         * lib/file-type.c (file_type): New file/function.  Extracted from
38712         diffutils.
38713
38714 2002-04-30  Jim Meyering  <meyering@lucent.com>
38715
38716         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38717
38718 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38719
38720         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
38721
38722 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38723
38724         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
38725         Do not check for alloca.h (no longer used) or stdbool.h (was never
38726         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
38727
38728 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38729
38730         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
38731
38732 2002-04-29  Jim Meyering  <meyering@lucent.com>
38733
38734         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
38735         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
38736         Use AC_FUNC_STRNLEN here instead.
38737
38738         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
38739         With autoconf-2.53a, it's part of AC_PROG_CC.
38740
38741 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38742
38743         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
38744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
38745
38746 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38747
38748         * lib/sig2str.h, lib/sig2str.c: New files.
38749         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
38750
38751 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38752
38753         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
38754         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
38755         of 127, since 64 is the largest conceivable number for ancient
38756         nonstandard hosts.
38757         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
38758
38759 2002-04-28  Jim Meyering  <meyering@lucent.com>
38760
38761         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
38762
38763 2002-04-24  Jim Meyering  <meyering@lucent.com>
38764
38765         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
38766         (jm_PREREQ): Use it.
38767
38768         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
38769         mach/mach.h fcntl.h.
38770         Check for this function: setlocale.
38771
38772 2002-04-24  Jim Meyering  <meyering@lucent.com>
38773
38774         * lib/gettext.h: New file, from Gettext.
38775         * lib/Makefile.am (INCLUDES): Remove -I../intl.
38776         (libfetish_a_SOURCES): Add gettext.h.
38777
38778 2002-04-16  Jim Meyering  <meyering@lucent.com>
38779
38780         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
38781         ut_pid, ut_id, ut_exit.
38782
38783 2002-04-16  Jim Meyering  <meyering@lucent.com>
38784
38785         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
38786         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
38787         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
38788
38789 2002-04-12  Jim Meyering  <meyering@lucent.com>
38790
38791         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
38792         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
38793         existence of the getmntinfo function.  Needed for Darwin 5.3.
38794
38795         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
38796         This is necessary at least on Darwin 5.3.
38797
38798         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
38799         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
38800         strnlen.o in the library, and that makes some versions of ranlib
38801         object.
38802
38803 2002-04-12  Jim Meyering  <meyering@lucent.com>
38804
38805         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
38806
38807 2002-04-09  Jim Meyering  <meyering@lucent.com>
38808
38809         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
38810         to be more precise.  Rather than saying we're checking whether the
38811         function `works', say what we're testing.
38812         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
38813         Reported by Bruno Haible.
38814
38815 2002-03-10  Jim Meyering  <meyering@lucent.com>
38816
38817         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
38818         Suggestion from Santiago Vila.
38819
38820 2002-03-08  Jim Meyering  <meyering@lucent.com>
38821
38822         * lib/rename.c: Mention that this wrapper is needed also on
38823         mips-dec-ultrix4.4 systems.
38824
38825 2002-03-02  Jim Meyering  <meyering@lucent.com>
38826
38827         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
38828         not HAVE_CLOCK_SETTIME.
38829
38830 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38831
38832         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
38833         Check for clock_settime.
38834
38835 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38836
38837         * lib/nanosleep.h: Rename to....
38838         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
38839
38840         * lib/gettime.c: New file.
38841         * lib/settime.c: New file.
38842         * lib/stime.c: Remove.
38843
38844         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
38845         timespec.h.  Remove nanosleep.h.
38846
38847 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38848
38849         * m4/acl.m4: New file.
38850         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
38851         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
38852
38853 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38854
38855         * lib/acl.c, lib/acl.h: New files.
38856         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
38857
38858 2002-02-24  Jim Meyering  <meyering@lucent.com>
38859
38860         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
38861         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
38862         cause trouble.  Reported by Nelson Beebe.
38863
38864 2002-02-23  Paul Eggert  <eggert@twinsun.com>
38865
38866         * lib/path-concat.c (xpath_concat): Reorder code to pacify
38867         compilers that don't know that xalloc_die never returns.
38868
38869 2002-02-20  Jim Meyering  <meyering@lucent.com>
38870
38871         * lib/getdate.c: Regenerate using bison-1.33.
38872
38873 2002-02-17  Jim Meyering  <meyering@lucent.com>
38874
38875         * config/config.guess (main): Don't use `head -1'; it's no longer
38876         portable. Use `sed 1q' instead.
38877
38878 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
38879
38880         * m4/codeset.m4: Upgrade to gettext-0.11.
38881         * m4/gettext.m4: Upgrade to gettext-0.11.
38882         * m4/glibc21.m4: Upgrade to gettext-0.11.
38883         * m4/iconv.m4: Upgrade to gettext-0.11.
38884         * m4/isc-posix.m4: Upgrade to gettext-0.11.
38885         * m4/lcmessage.m4: Upgrade to gettext-0.11.
38886         * m4/lib-ld.m4: New file, from gettext-0.11.
38887         * m4/lib-link.m4: New file, from gettext-0.11.
38888         * m4/lib-prefix.m4: New file, from gettext-0.11.
38889         * m4/progtest.m4: Upgrade to gettext-0.11.
38890
38891 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38892
38893         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
38894         (jm_PREREQ): Use it.
38895
38896 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38897
38898         * lib/posixver.c, lib/posixver.h: New files.
38899         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38900
38901 2002-02-02  Paul Eggert  <eggert@twinsun.com>
38902             Bruno Haible  <bruno@clisp.org>
38903
38904         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
38905         (fwrite_success_callback): New declaration.
38906         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
38907         print_unicode_char. Call failure callback instead of error.
38908         (fwrite_success_callback): New function.
38909         (exit_failure_callback): New function.
38910         (fallback_failure_callback): New function.
38911         (print_unicode_char): Call unicode_to_mb.
38912
38913 2002-01-26  Jim Meyering  <meyering@lucent.com>
38914
38915         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
38916         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
38917
38918 2002-01-26  Jim Meyering  <meyering@lucent.com>
38919
38920         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
38921
38922 2002-01-22  Paul Eggert  <eggert@twinsun.com>
38923
38924         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
38925
38926 2002-01-22  Jim Meyering  <meyering@lucent.com>
38927
38928         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
38929         Otherwise, some versions of automake would omit the rule that makes
38930         Makefile from Makefile.in.
38931
38932 2002-01-21  Paul Eggert  <eggert@twinsun.com>
38933
38934         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
38935         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38936         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
38937         (memcoll): Set errno to zero if there is no error.
38938
38939         * lib/quotearg.c (quotearg_buffer_restyled):
38940         Fix bug with quoting buffers containing NUL when backslashing escapes.
38941         This bug was exposed by the other changes in this patch.
38942         (quotearg_n_options): New arg ARGSIZE.
38943         All callers changed.
38944         (quoting_options_from_style): New function.
38945         (quotearg_n_style): Use it.
38946         (quotearg_n_style_mem): New function.
38947
38948         * lib/quotearg.h (quotearg_n_style_mem): New function.
38949
38950 2002-01-19  Jim Meyering  <meyering@lucent.com>
38951
38952         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
38953         Remove useless quotes: DF_PROG="df".
38954         * m4/strnlen.m4: New file.
38955
38956 2002-01-16  Paul Eggert  <eggert@twinsun.com>
38957
38958         * lib/backupfile.c (ISDIGIT): Comment fix.
38959         * lib/getdate.y (ISDIGIT): Likewise.
38960         * lib/posixtm.c (ISDIGIT, year): Likewise.
38961         * lib/strverscmp.c (ISDIGIT): Likewise.
38962         * lib/userspec.c (ISDIGIT): Likewise.
38963
38964 2002-01-16  Jim Meyering  <meyering@lucent.com>
38965
38966         * lib/getdate.y: Add three semicolons, each just before a closing
38967         brace. Bison (as of version 1.31) no longer papers over that mistake.
38968
38969 2002-01-05  Jim Meyering  <meyering@lucent.com>
38970
38971         * lib/version-etc.c (version_etc_copyright): Update copyright year.
38972
38973 2001-12-19  Paul Eggert  <eggert@twinsun.com>
38974
38975         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
38976         not silently exit merely because the output buffer happens to
38977         have nothing pending.
38978
38979 2001-12-18  Paul Eggert  <eggert@twinsun.com>
38980
38981         See the big note in ../ChangeLog.
38982         * lib/human.c (suffixes): Prefer K to k for 1024.
38983         (generate_suffix_backwards): New function.
38984         (human_readable_inexact): Use it.
38985         * lib/xstrtol.c (__xstrtol): If there is no number but there
38986         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
38987         Accept 'K' as well as 'k'.
38988
38989 2001-12-15  Jim Meyering  <meyering@lucent.com>
38990
38991         * lib/regex.h (__restrict_arr): Update from libc.
38992
38993         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
38994         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
38995         (STREQ): Define.
38996
38997 2001-12-14  Jim Meyering  <meyering@lucent.com>
38998
38999         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
39000         Suggestion from Bruno Haible.
39001
39002 2001-12-10  Jim Meyering  <meyering@lucent.com>
39003
39004         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
39005         xrealloc, Instead, include "xalloc.h".
39006         (initbuffer): Don't cast xmalloc return value to char*.
39007         (readline): Reword comment.
39008         Don't cast xrealloc return value to char*
39009         Return NULL, not 0.
39010
39011 2001-12-09  Jim Meyering  <meyering@lucent.com>
39012
39013         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
39014         about `signed and unsigned type in conditional expression'.
39015         * lib/posixtm.c (posix_time_parse): Likewise.
39016
39017         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
39018
39019         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
39020         to avoid a pedantic warning.
39021
39022         * lib/getstr.c: Don't include assert.h.
39023         (getstr): Remove warning-evoking assertions.
39024         Return -1 if offset parameter is out of bounds.
39025         Change the type of a local from int to size_t.
39026
39027         * lib/strftime.c (my_strftime_localtime_r): Include this function
39028         definition in the `#if ! HAVE_TM_GMTOFF' block.
39029
39030         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
39031         Include xalloc.h instead.
39032
39033 2001-12-02  Jim Meyering  <meyering@lucent.com>
39034
39035         * lib/tempname.c: Don't declare getenv, thus reverting the change of
39036         2001-11-18.  It's no longer necessary, now that stdlib.h is always
39037         included.
39038
39039         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
39040         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
39041
39042 2001-11-30  Akim Demaille  <akim@epita.fr>
39043
39044         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
39045         before being defined.
39046
39047 2001-11-27  Paul Eggert  <eggert@twinsun.com>
39048
39049         * lib/quotearg.h (quotearg_n, quotearg_n_style):
39050         First arg is int, not unsigned.
39051         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
39052         (SIZE_MAX, UINT_MAX): New macros.
39053         (quotearg_n_options): Abort if N is negative.
39054         Avoid overflow check on hosts where size_t is 64 bits and int
39055         is 32 bits, as overflow is impossible there.
39056         Fix off-by-one typo that caused unnecessary reallocation.
39057
39058 2001-11-27  Jim Meyering  <meyering@lucent.com>
39059
39060         * lib/tempname.c: Merge with version from libc.
39061         * lib/regex.c: Likewise.
39062
39063         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
39064         systems for which STDC_HEADERS is 0, it was not included, resulting in
39065         a warning about an integer-to-pointer conversion problem with getenv.
39066         Reported by Volker Borchert.
39067
39068 2001-11-26  Jim Meyering  <meyering@lucent.com>
39069
39070         * lib/gtod.h: Remove file.
39071         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
39072         * lib/gettimeofday.c: Don't include gtod.h.
39073         (GTOD_init): Remove function.
39074         (rpl_gettimeofday): Do its job here instead, rather than aborting.
39075         Suggestion from Volker Borchert.
39076
39077 2001-11-23  Jim Meyering  <meyering@lucent.com>
39078
39079         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
39080         it.
39081         * lib/hash.c (struct hash_table): Define it here instead.
39082
39083 2001-11-22  Jim Meyering  <meyering@lucent.com>
39084
39085         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
39086
39087 2001-11-20  Jim Meyering  <meyering@lucent.com>
39088
39089         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
39090         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
39091
39092 2001-11-19  Jim Meyering  <meyering@lucent.com>
39093
39094         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
39095         directory.  Use "conftestXXXXXX" as the template.
39096         Suggestion from Paul Eggert.
39097
39098         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
39099         immediately, so the test doesn't mistakenly hit the max-open-files
39100         limit.
39101
39102 2001-11-18  Paul Eggert  <eggert@twinsun.com>
39103
39104         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
39105         (TEMPORARIES): New macro.
39106         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
39107         removes an artificial limitation (e.g. HP-UX 10.20, where
39108         TMP_MAX is 17576).
39109
39110 2001-11-18  Jim Meyering  <meyering@lucent.com>
39111
39112         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
39113
39114 2001-11-18  Jim Meyering  <meyering@lucent.com>
39115
39116         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
39117         on SunOS 4.
39118
39119         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39120         files will be created before anything else.
39121
39122 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39123
39124         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39125         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39126
39127 2001-11-17  Jim Meyering  <meyering@lucent.com>
39128
39129         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39130         Prompted by a report from Bob Proulx.
39131
39132         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39133         Instead, require UTILS_FUNC_MKSTEMP.
39134
39135 2001-11-17  Jim Meyering  <meyering@lucent.com>
39136
39137         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39138         Now, that's done as part of AC_FUNC_STRTOD.
39139
39140 2001-11-17  Jim Meyering  <meyering@lucent.com>
39141
39142         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39143         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39144         rather than group writable.  Patch by Juan F. Codagnone.
39145
39146         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39147         xrealloc, Instead, include "xalloc.h".
39148
39149         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39150         Remove explicit declarations of xmalloc, xrealloc,
39151         and xstrdup.  Instead, include "xalloc.h".
39152
39153         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39154         unlocked-io.h.
39155         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39156         Likewise.
39157         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39158
39159         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39160         Reported by Padraig Brady.
39161
39162         * lib/mkstemp.c: #undef mkstemp.
39163         Include config.h.
39164         (rpl_mkstemp): Rename from mkstemp.
39165         Protoize.
39166
39167 2001-11-16  Jim Meyering  <meyering@lucent.com>
39168
39169         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39170         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39171         determine the amount of total physical memory, use pstat_getstatic.
39172         HPUX-11 doesn't define _SC_PHYS_PAGES.
39173         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39174         If sysconf couldn't be used to determine the amount of available
39175         physical memory, use both pstat_getstatic and pstat_getdynamic.
39176         Based on a patch from Bob Proulx.
39177
39178 2001-11-10  Jim Meyering  <meyering@lucent.com>
39179
39180         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39181         (jm_PREREQ): Use it.
39182
39183 2001-11-09  Jim Meyering  <meyering@lucent.com>
39184
39185         * m4/jm-macros.m4: Require autoconf-2.52f.
39186         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39187         Use these AC_-prefixed names, not the AM_-prefixed ones.
39188
39189         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39190
39191 2001-11-05  Jim Meyering  <meyering@lucent.com>
39192
39193         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39194
39195 2001-11-04  Jim Meyering  <meyering@lucent.com>
39196
39197         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39198         $DEFS.
39199
39200 2001-11-03  Jim Meyering  <meyering@lucent.com>
39201
39202         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39203         of AC_DEFUN.
39204
39205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39206         know the name of the variable in the macro definition.
39207
39208 2001-11-03  Jim Meyering  <meyering@lucent.com>
39209
39210         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39211         in argmatch_to_argument call.
39212
39213         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39214         argument.
39215
39216         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39217         e.g., a fault due to an attempt to free a NULL pointer.
39218
39219 2001-11-01  Jim Meyering  <meyering@lucent.com>
39220
39221         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39222         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39223
39224 2001-11-01  Jim Meyering  <meyering@lucent.com>
39225
39226         * lib/dirfd.c, lib/dirfd.h: New files.
39227         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39228
39229         * lib/hash.c (hash_print) [TESTING]: Clean up.
39230
39231 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39232
39233         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39234         to avoid a warning if -Wall.
39235
39236 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39237
39238         * README: New file
39239         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39240         (per RMS's instructions, this is now the canonical source)
39241         * lgpl/, gpl/: New directories.
39242
39243 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39244
39245         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39246
39247 2001-10-21  Jim Meyering  <meyering@lucent.com>
39248
39249         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39250         this code would end up calling gettext even in packages built
39251         with --disable-nls.
39252         * lib/getopt.c (_): Likewise.
39253         * lib/regex.c (_): Likewise.
39254
39255 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39256
39257         * m4/error.m4 (jm_PREREQ_ERROR):
39258         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39259         AC_FUNC_STRERROR_R does that.
39260         Check for strerror declaration.
39261
39262         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39263         are supposed to have them these days.
39264         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39265         Merge changes from latest Autoconf CVS.
39266         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39267         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39268         POSIX decided to standardize on the int flavor of strerror_r.
39269
39270 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39271
39272         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39273         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39274         Use strerror_r that is only a macro, even if it is not a function.
39275         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39276         (private_strerror): Use prototypes, not old-style function definition.
39277         (print_errno_message): New function.
39278         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39279         char*-flavored one.
39280         (error_tail, error, error_at_line): Use it.
39281
39282 2001-10-11  Jim Meyering  <meyering@lucent.com>
39283
39284         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39285         and quote_n (1, ... to avoid clobbering a buffer.
39286
39287 2001-10-05  Jim Meyering  <meyering@lucent.com>
39288
39289         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39290         hash-pjw.h.
39291         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39292         * lib/hash-pjw.h: New file.
39293
39294 2001-09-30  Jim Meyering  <meyering@lucent.com>
39295
39296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39297         `struct fsstat' has the `f_fstypename' member.
39298         Use that to define FS_TYPE, which is now used to make
39299         the getfsstat link test tighter.
39300
39301 2001-09-30  Jim Meyering  <meyering@lucent.com>
39302
39303         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39304         Include <sys/ucred.h>, for Apple Darwin.
39305         Include sys/mount.h and sys/fs_types.h only if available.
39306         (FS_TYPE): Define.
39307         (read_filesystem_list): Use FS_TYPE.
39308
39309 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39310
39311         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39312         a boolean context.
39313
39314 2001-09-29  Jim Meyering  <meyering@lucent.com>
39315
39316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39317         [one-argument getmntent function]): Include stdio.h before mntent.h.
39318         SunOS 4.1.x needs it for the declaration of `FILE'.
39319         Patch by Volker Borchert.
39320
39321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39322         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39323         sys/fs_types.h, and make the link-test for getfsstat guard #include
39324         directives with appropriate #if HAVE_*_H tests so that we can
39325         detect getfsstat on Apple Darwin1.3.7 systems.
39326         Reported by Nelson Beebe.
39327         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39328
39329 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39330
39331         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39332         #defines strtoimax.  Also treat the other strto* functions
39333         like strtoimax.
39334
39335         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39336         Check for strtoul and strtoumax,
39337         as those declarations are made even in the signed case.
39338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39339         Likewise, for strtol and strtoimax.
39340
39341 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39342
39343         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39344         #defines strtoimax.  Also treat the other strto* functions
39345         like strtoimax.
39346
39347         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39348         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39349         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39350
39351 2001-09-26  Jim Meyering  <meyering@lucent.com>
39352
39353         Most macros in unlocked-io.h had the wrong number of arguments.
39354         * lib/gen-uio: New script.
39355         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39356         * lib/unlocked-io.hin: Remove file.
39357         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39358         rather than trying to embed it here.
39359         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39360         Reported by Padraig Brady.
39361
39362 2001-09-25  Volker Borchert  <bt@teknon.de>
39363
39364         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39365         `result'.
39366
39367 2001-09-24  Jim Meyering  <meyering@lucent.com>
39368
39369         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39370
39371 2001-09-23  Jim Meyering  <meyering@lucent.com>
39372
39373         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39374         instead of the mere test for existence of mntent.h.  The latter
39375         would get a false-positive on AIX 3.4 systems.
39376         In the outer getmntent if-block, don't die if neither of the getmntent
39377         tests succeeds.  Instead, just fall through and continue with the
39378         remaining tests.
39379
39380 2001-09-23  Jim Meyering  <meyering@lucent.com>
39381
39382         * lib/mountlist.c: Remove useless parentheses in #if directives.
39383         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39384         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39385
39386 2001-09-22  Jim Meyering  <meyering@lucent.com>
39387
39388         * m4/gettext.m4: New file.  From gettext.
39389         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39390         * m4/progtest.m4: Likewise
39391         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39392         * m4/glibc21.m4: Likewise.
39393
39394         * m4/libintl.m4: Remove.  No longer used.
39395
39396 2001-09-22  Jim Meyering  <meyering@lucent.com>
39397
39398         * lib/localcharset.c: Update from latest gettext.
39399         * lib/config.charset: Likewise.
39400
39401 2001-09-20  Jim Meyering  <meyering@lucent.com>
39402
39403         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39404         strtoimax.
39405         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39406         strtoumax.
39407
39408 2001-09-20  Jim Meyering  <meyering@lucent.com>
39409
39410         * lib/xstrtol.c (strtoimax): Guard declaration with
39411         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39412         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39413         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39414         (strtoumax): Likewise, for completeness (it wasn't necessary).
39415
39416 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39417
39418         * lib/strtoimax.c (HAVE_LONG_LONG):
39419         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39420         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39421         to work around bug in IBM C compiler.
39422
39423 2001-09-17  Jim Meyering  <meyering@lucent.com>
39424
39425         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39426         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39427         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39428         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39429         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39430         whenever the right hand side need not be expanded by the shell.
39431
39432 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39433
39434         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39435         library.  It's not correct, as some older glibcs are buggy.
39436         fnmatch wasn't fixed until glibc 2.2.
39437
39438         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39439         special shell magic here.
39440
39441 2001-09-16  Jim Meyering  <meyering@lucent.com>
39442
39443         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39444         * m4/jm-macros.m4: Require it.
39445
39446 2001-09-16  Jim Meyering  <meyering@lucent.com>
39447
39448         * lib/mkdir.c: New file.
39449
39450 2001-09-15  Jim Meyering  <meyering@lucent.com>
39451
39452         * m4/jm-macros.m4: Check for help2man.
39453
39454 2001-09-11  Jim Meyering  <meyering@lucent.com>
39455
39456         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39457         The body, by Paul Eggert, was moved here from configure.in.
39458         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39459
39460 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39461
39462         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39463         (jm_PREREQ): Use it.
39464
39465 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39466
39467         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39468         Use ssize_t, not int, to store result of readlink.
39469         Check for ssize_t overflow as well as size_t overflow,
39470         as POSIX says the result of readlink is implementation-defined
39471         when ssize_t overflows.
39472         Remove unnecessary cast to char*.
39473         Use free+malloc instead of realloc, as the storage doesn't need
39474         to be preserved and it's clearer and can be more efficient that way.
39475         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39476         * lib/xreadlink.h (xreadlink): Update prototype.
39477
39478 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39479
39480         * lib/xgetcwd.c: Revert some of the previous change; intead,
39481         fix the HAVE_GETCWD_NULL code to behave more like the
39482         !HAVE_GETCWD_NULL code used to.
39483
39484         Include "xalloc.h".
39485         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39486         invoke xalloc_die.
39487
39488 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39489
39490         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39491         sys/param.h, as pathmax.h includes them.
39492
39493 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39494
39495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39496         (jm_PREREQ_XGETCWD): New macro.
39497
39498         * m4/getcwd.m4: New file.
39499
39500 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39501
39502         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39503         like the HAVE_GETCWD_NULL code.
39504         Include pathmax.h if not HAVE_GETCWD.
39505         Do not include xalloc.h.
39506         (INITIAL_BUFFER_SIZE): New symbol.
39507         Do not use xmalloc / xrealloc, since the caller is responsible for
39508         handling errors.  Preserve errno around `free' during failure.
39509         Do not overrun buffer when using getwd.
39510
39511 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39512
39513         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39514         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39515         getcwd (NULL, 0).
39516
39517 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39518
39519         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39520         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39521         spotted by Jim Meyering.
39522
39523 2001-09-03  Jim Meyering  <meyering@lucent.com>
39524
39525         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39526         failure.
39527
39528 2001-09-02  Jim Meyering  <meyering@lucent.com>
39529
39530         * lib/error.c: Update from GNU libc.
39531
39532 2001-09-01  Jim Meyering  <meyering@lucent.com>
39533
39534         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39535         Used by df.
39536
39537 2001-09-01  Jim Meyering  <meyering@lucent.com>
39538
39539         * lib/xreadlink.c: New file.
39540         * lib/xreadlink.h: New file.
39541         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39542         xreadlink.h.
39543
39544         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39545         doesn't conflict with sparc Solaris 7's definition in
39546         /usr/include/sys/int_types.h.
39547
39548         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39549         files.
39550         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39551         and strncasecmp as r-values.  Unixware didn't have declarations.
39552
39553 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39554
39555         * lib/xstrtol.h: Add copyright notice.
39556         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39557         LONGINT_INVALID_SUFFIX_CHAR.
39558
39559 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39560
39561         * lib/xstrtol.c (strtoimax): New decl.
39562
39563 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39564
39565         * lib/xgetcwd.c: Don't include pathmax.h.
39566         Include stdlib.h and unistd.h if available.
39567         Include xalloc.h.
39568         (xmalloc, xstrdup, free): Remove decls.
39569         (xgetcwd): Don't assume sizes fit in unsigned.
39570         Check for overflow when computing sizes.
39571         Simplify reallocation code.
39572
39573 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39574
39575         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39576         a directory's st_size can have an arbitrary value, so the old
39577         usage could waste an arbitrary amount of memory.  All uses
39578         changed.
39579         * lib/savedir.h: Update prototype.
39580
39581 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39582
39583         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39584
39585         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39586         old strtoimax.c.
39587
39588         Also, make the following further changes to make this file's
39589         configuration more similar to that of strtol.c:
39590         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39591         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39592         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39593         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39594         changed to signed values.
39595
39596         And make the following changes as well:
39597         Fix copyright notice, as 1999 was missing.
39598         (verify): New macro.
39599         (strtoimax): Check sizes at compile-time, not run-time.
39600         Prefer strtol to strtoll if both work.
39601         (main): Remove; it was not that useful and was a pain to maintain.
39602
39603         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39604
39605 2001-08-31  Jim Meyering  <meyering@lucent.com>
39606
39607         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39608         Use an initial, malloc'd, buffer of length 128 rather than
39609         a statically allocated one of length 1024.
39610
39611 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39612
39613         Simplify code, partly by assuming autoconf 2.52 semantics.
39614
39615         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39616
39617         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39618         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39619         All uses removed.
39620         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39621         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39622         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39623         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39624         jm_AC_HEADER_INTTYPES_H.
39625         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39626
39627         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39628
39629         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39630         Quote first arg of AC_DEFUN.
39631         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39632         since they are needed to parse the include file even if we need
39633         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39634         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39635         but with opposite signedness.
39636
39637 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39638
39639         Merge 'exclude' changes from tar 1.13.22.
39640         This fixes one or two unlikely storage allocation overflow bugs,
39641         but doesn't change user-visible behavior otherwise.
39642
39643 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39644
39645         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39646         (jm_PREREQ_EXCLUDE): New macro.
39647
39648 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39649
39650         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39651         tm to be declared.
39652
39653 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39654
39655         * lib/hash.c: Remove '2001' from copyright notice.
39656
39657 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39658
39659         * lib/full-write.h: New file.
39660         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39661         * lib/full-write.c: Correct credits, as cccp.c no longer
39662         exists and anyway it was so heavily changed from the old cccp
39663         code as to be unrecognizable.  Include full-write.h.
39664         (full_write) Return size_t, with short writes meaning failure.
39665         All callers changed.  This fixes a bug with large buffers
39666         on 64-bit hosts.
39667         * lib/utime.c: Include full-write.h.
39668
39669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39670
39671         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39672         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39673         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39674         Include if available.
39675         (<xalloc.h>): Include
39676         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39677         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39678         collide with FNM macros.
39679         (struct patopts): New struct.
39680         (struct exclude): Use it, as exclude patterns now come with options.
39681         (new_exclude): Support above changes.
39682         (new_exclude, add_exclude_file):
39683         Initial size must now be a power of two to simplify overflow checking.
39684         (free_exclude, fnmatch_no_wildcards): New function.
39685         (excluded_filename): No longer requires options arg, as the options
39686         are determined by add_exclude.  Now returns bool, not int.
39687         (excluded_filename, add_exclude):
39688         Add support for the fancy new exclusion options.
39689         (add_exclude, add_exclude_file): Now takes int options arg.
39690         Check for arithmetic overflow when computing sizes.
39691         (add_exclude_file): xrealloc might modify errno, so don't
39692         realloc until after errno might be used.
39693
39694         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39695         New macros.
39696         (free_exclude): New decl.
39697         (add_exclude, add_exclude_file): Now takes int options arg.
39698         (excluded_filename): No longer requires options arg, as the options
39699         are determined by add_exclude.  Now returns bool, not int.
39700
39701 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39702
39703         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39704
39705 2001-08-27  Jim Meyering  <meyering@lucent.com>
39706
39707         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39708
39709         * lib/version-etc.c (N_): Remove definition.
39710         Revert most of last change.
39711         Instead, simply don't mark the `Copyright...' string for translation.
39712         Based on advice from Paul Eggert.
39713
39714         * lib/strtoxmax.c: Tweak comment.
39715
39716 2001-08-26  Jim Meyering  <meyering@lucent.com>
39717
39718         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39719
39720         * m4/xstrtoimax.m4: New file.
39721         * m4/xstrtoumax.m4: Add comments explaining why we
39722         AC_REPLACE_FUNCS(strtol).
39723
39724 2001-08-26  Jim Meyering  <meyering@lucent.com>
39725
39726         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
39727         of copyright with `%s' so translators don't get an untranslated
39728         message in 2002.
39729         (COPYRIGHT_YEAR): Define.
39730         (version_etc): Use fprintf rather than fputs.
39731         Suggestion from Ulrich Drepper.
39732
39733         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
39734
39735         * lib/strtoll.c: New file, from GNU libc.
39736         * lib/xstrtoimax.c: New file.
39737
39738         * lib/xstrtol.h: Add xstrtoimax.
39739         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
39740         * lib/strtoimax.c: New file.  Likewise, but first define
39741         STRTOUXMAX_SIGNED.
39742
39743         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
39744         ...
39745         * lib/strtoxmax.c: ... then renamed to this.
39746
39747 2001-08-18  Paul Eggert  <eggert@twinsun.com>
39748
39749         * m4/inttypes.m4: Add AC_PREREQ(2.13).
39750         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
39751         (jm_AC_TYPE_INTMAX_T): New macro.
39752         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
39753
39754         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
39755
39756         * m4/longlong.m4: Renamed from ulonglong.m4.
39757         * m4/inttypes.m4: Renamed from inttypes_h.m4.
39758         * m4/uintmax_t.m4: Removed.
39759
39760 2001-08-13  Paul Eggert  <eggert@twinsun.com>
39761
39762         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
39763         Port to Solaris 8, where 'sed' requires a space after the 'r'
39764         command, and where sh dislikes "$/".  Clean up the spacing a bit.
39765         Redirect output to $tmp just once.
39766
39767 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
39768
39769         * lib/addext.c (<errno.h>): Include.
39770         (errno): Declare if not defined.
39771         (addext): Work correctly when pathconf returns -1 and leaves
39772         errno alone because there is no limit.  Also, work even if
39773         pathconf returns a value greater than SIZE_MAX.
39774
39775 2001-08-12  Jim Meyering  <meyering@lucent.com>
39776
39777         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
39778         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
39779         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
39780         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
39781         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
39782         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
39783         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
39784         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
39785         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
39786         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
39787         utime.m4, utimes.m4, xstrtoumax.m4:
39788         Quote the first argument in each use of AC_DEFUN.
39789
39790 2001-08-12  Jim Meyering  <meyering@lucent.com>
39791
39792         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
39793         Simply `return getcwd (NULL, 0);'.
39794         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
39795         Use 1300 as initial value for length, not PATH_MAX.
39796
39797         * lib/pathmax.h: Clean up cpp syntax.
39798
39799 2001-08-12  Jim Meyering  <meyering@lucent.com>
39800
39801         * lib/gettimeofday.c: New file.
39802         * lib/gtod.h: New file.
39803         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
39804
39805 2001-08-05  Jim Meyering  <meyering@lucent.com>
39806
39807         * m4/jm-macros.m4: Require autoconf-2.52.
39808
39809 2001-08-04  Jim Meyering  <meyering@lucent.com>
39810
39811         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
39812         stmt, to get in sync with glibc.
39813
39814 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39815
39816         The following changes are from gettext 0.10.39 as maintained by
39817         Bruno Haible.
39818
39819         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
39820         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
39821         with inverted sense.  All uses changed.
39822
39823         * lib/mbswidth.c: Don't include <limits.h>.
39824         Include <stdlib.h> and <string.h> unconditionally.
39825         (iswcntrl, mbsinit, ISCNTRL): New macros.
39826         (mbsnwidth): Use K&R style function declarations.
39827         Don't bother checking for MB_LEN_MAX == 1, since the compiler
39828         can optimize it when MB_CUR_MAX == 1.
39829         The width of control characters is zero, not 1.
39830
39831 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39832
39833         The following changes are from gettext 0.10.39 as maintained by
39834         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
39835
39836         * m4/codeset.m4: Upgrade to serial AM1.
39837         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
39838         all uses changed.  Quote first arg of AC_DEFUN.
39839         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
39840
39841         * m4/iconv.m4: Upgrade to serial AM2.
39842         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
39843         Add --with-libconv-prefix.
39844         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
39845         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
39846         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
39847         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
39848         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
39849
39850         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
39851         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
39852         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
39853         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
39854         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
39855         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
39856         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39857         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
39858         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
39859
39860         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
39861         string.h any more.
39862
39863         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
39864         not the default value.
39865
39866         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
39867         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
39868         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
39869         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
39870         Also check for iswcntrl, used for wcwidth fallback.
39871         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
39872         to Autoconf 2.13.
39873
39874 2001-08-03  Jim Meyering  <meyering@lucent.com>
39875
39876         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
39877         as it was in the original.  Reported by Paul Eggert.
39878
39879 2001-07-16  Jim Meyering  <meyering@lucent.com>
39880
39881         * m4/gettimeofday.m4: New file.
39882         Prompted by a report from Bernhard Baehr.
39883
39884 2001-07-15  Jim Meyering  <meyering@lucent.com>
39885
39886         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
39887         stuff. Now it's in ../Makefile.cfg.
39888
39889 2001-07-15  Jim Meyering  <meyering@lucent.com>
39890
39891         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
39892         (BUILT_SOURCES): Add unlocked-io.h.
39893         (io_functions): Define.
39894         (unlocked-io.h): New rule.
39895         (DISTCLEANFILES): Add unlocked-io.h.
39896         (all-local): Depend on unlocked-io.h, to ensure it is created.
39897
39898         * lib/unlocked-io.hin: New file
39899
39900         * lib/regex.c: Update from glibc.
39901
39902 2001-07-05  Jim Meyering  <meyering@lucent.com>
39903
39904         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
39905         recommendation.
39906         (libfetish_a_SOURCES): Put all .h files here instead.
39907         Remove a thus-exposed (better checks in automake) duplicate and
39908         two unnecessary .h files.
39909
39910 2001-07-04  Jim Meyering  <meyering@lucent.com>
39911
39912         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
39913         that generates jm-glibc-io.m4 so that it doesn't trigger any make
39914         distcheck failure.
39915
39916 2001-07-02  Jim Meyering  <meyering@lucent.com>
39917
39918         The following changes were prompted by suggestions from Bruno Haible.
39919
39920         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
39921         is now generated.
39922         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
39923         definition of EXTRA_DIST.
39924         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
39925         ensure that the generated file is created/updated whenever the list
39926         of $(unlocked_functions) is changed.
39927         (jm-glibc-io.m4): New rule.
39928         (unlocked-io.h): New rule -- currently unused.
39929
39930 2001-06-24  Jim Meyering  <meyering@lucent.com>
39931
39932         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
39933         unmatched right bracket, rather than kludging it with an extra,
39934         falsely-matching quote in a comment.  Patch by Akim Demaille.
39935
39936 2001-06-11  Jim Meyering  <meyering@lucent.com>
39937
39938         * lib/regex.c: Update from GNU libc.
39939
39940 2001-05-27  Jim Meyering  <meyering@lucent.com>
39941
39942         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
39943         Check for ut_type in struct utmp.
39944
39945 2001-05-27  Jim Meyering  <meyering@lucent.com>
39946
39947         * lib/readutmp.h (UT_TYPE): Define.
39948
39949 2001-05-24  Jim Meyering  <meyering@lucent.com>
39950
39951         * lib/argmatch.c: Include "quote.h".
39952         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
39953         quote function.  Reported by Göran Uddeborg.
39954
39955 2001-05-22  Jim Meyering  <meyering@lucent.com>
39956
39957         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
39958         now that we use the package-supplied version unconditionally.
39959         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
39960
39961 2001-05-21  Jim Meyering  <meyering@lucent.com>
39962
39963         * m4/regex.m4: Change a couple backticks to single quotes to avoid
39964         shell syntax errors.
39965
39966 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39967
39968         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
39969
39970 2001-05-20  Paul Eggert  <eggert@twinsun.com>
39971
39972         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
39973         Don't bother to check library strftime, since
39974         we'll be using our own my_strftime function anyway.
39975         Define my_strftime instead of strftime.
39976
39977 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
39978
39979         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
39980         which is not yet declared.
39981
39982 2001-05-15  Jim Meyering  <meyering@lucent.com>
39983
39984         * m4/regex.m4: Use proper quoting so brackets appear in the test
39985         program.
39986         Reported by, and with help from, Bruno Haible.
39987
39988 2001-05-13  Jim Meyering  <meyering@lucent.com>
39989
39990         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
39991         undefined.
39992
39993 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39994
39995         dirname code cleanup.  base_name now behaves more compatibly
39996         with POSIX basename when given file names that have trailing
39997         slashes, and similarly for dir_name.  Add new primitives
39998         base_len and dir_len.  Put the directory-name-related decls
39999         into dirname.h.
40000
40001         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
40002         * lib/backupfile.c (base_name): Likewise.
40003         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
40004         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
40005         * lib/makepath.c (strip_trailing_slashes): Likewise.
40006         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
40007         ISSLASH): Likewise.
40008         * lib/rename.c (strip_trailing_slashes): Likewise.
40009         * lib/same.c (base_name): Likewise.
40010         * lib/stripslash.c (ISSLASH): Likewise.
40011
40012         * lib/addext.c: Include <dirname.h> after size_t is defined.
40013         * lib/backupfile.c: Likewise.
40014
40015         * lib/addext.c (addext): Use base_len to trim redundant
40016         trailing slashes instead of doing it ourselves.
40017         But do not trim the last slash if it is not redundant.
40018
40019         * lib/backupfile.c (find_backup_file_name,
40020         max_backup_version): Use base_len instead of rolling it ourselves.
40021         Handle the case of "" and (on DOS) "C:" correctly.
40022
40023         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
40024         needed. Include <string.h>, <dirname.h>.
40025         (base_name): Allow file names ending in slashes, other than names
40026         that are all slashes.  In this case, return the basename followed
40027         by the slashes.  This is more general, and can be used in places
40028         where the original base_name purposely had an assertion failure.
40029         (base_len): New function.
40030
40031         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
40032         Do not include <assert.h>; no longer needed.
40033         Include xalloc.h.
40034         (memrchr): Remove decl.
40035         (dir_name_r): Remove.
40036         (dir_len): Renamed from dirlen.  All callers changed.
40037         Rewrite in terms of base_name, for simplicity and consistency.
40038         (dir_name): Never return NULL.  All callers changed.
40039         Do not include <stdlib.h> in test program; no longer needed.
40040         return 0; is fine for test program.
40041
40042         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
40043         New macros.
40044         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
40045
40046         * lib/path-concat.c (path_concat): Use base_len to compute
40047         base length, not strlen; this means we cannot rely on memcpy
40048         to null-terminate.
40049
40050         * lib/same.c (STREQ): Remove.
40051         (same_name): Handle the case where the basename ends in trailing '/'.
40052
40053         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
40054         a slash was stripped.  Do not strip the last slash after a
40055         file system prefix.
40056
40057 2001-05-11  Paul Eggert  <eggert@twinsun.com>
40058
40059         * lib/Makefile.am (libfetish_a_SOURCES):
40060         Add strftime.c, since we now compile it on all hosts.
40061
40062         * lib/strftime.c (my_strftime):
40063         Define to nstrftime if emacs, but only if my_strftime is not defined.
40064         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
40065         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
40066         Add one more extra argument: a nanoseconds value.
40067         All uses changed.
40068         (ns): New macro.
40069         (my_strftime function): Add %N format.
40070         (emacs_strftimeu): Renamed from emacs_strftime,
40071         with extra ut argument.
40072
40073 2001-05-09  Paul Eggert  <eggert@twinsun.com>
40074
40075         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
40076
40077 2001-04-21  Jim Meyering  <meyering@lucent.com>
40078
40079         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
40080         doesn't interfere.
40081
40082 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
40083
40084         * m4/ftruncate.m4: Check for chsize.
40085         Link with ftruncate.o unconditionally if ftruncate is missing.
40086         This was required when cross-compiling to i586-mingw32msvc.
40087
40088 2001-04-08  Jim Meyering  <meyering@lucent.com>
40089
40090         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
40091         recomputed; that's necessary when the offset spans a DST transition.
40092         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
40093
40094 2001-04-02  Jim Meyering  <meyering@lucent.com>
40095
40096         * lib/regex.h, regex.c: Update from GNU libc.
40097
40098 2001-03-24  Jim Meyering  <meyering@lucent.com>
40099
40100         * m4/jm-macros.m4: Require autoconf-2.49d.
40101
40102 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
40103
40104         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
40105
40106 2001-03-19  Paul Eggert  <eggert@twinsun.com>
40107
40108         * lib/version-etc.c (version_etc_copyright): Update to 2001.
40109
40110 2001-03-17  Jim Meyering  <meyering@lucent.com>
40111
40112         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
40113         now that the version in autoconf is equivalent.
40114         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
40115
40116         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
40117         Suggestion from Akim Demaille.
40118
40119         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40120         (jm_PREREQ_TEMPNAME): New function.
40121
40122 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40123
40124         * lib/tempname.c (uint64_t): Define to uintmax_t if
40125         not defined, and if UINT64_MAX is not defined.
40126         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40127         Reported by John David Anglin.
40128
40129 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40130
40131         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40132         resolve alias if codeset is empty.
40133         * lib/config.charset (BeOS): Use wildcard syntax.
40134
40135 2001-03-13  Jim Meyering  <meyering@lucent.com>
40136
40137         * lib/path-concat.c (path_concat)
40138         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40139         concatenating e.g., `C:' and `foo'.
40140         From Bruno Haible.
40141
40142 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40143
40144         * lib/localcharset.c (locale_charset): Don't use
40145         setlocale(LC_CTYPE,NULL). Don't return NULL.
40146         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40147
40148 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40149
40150         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40151         support for DOS/DJGPP.
40152
40153 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40154
40155         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40156         lacks mkstemp.  Compile our own tempname.c if we compile our own
40157         mkstemp.c, as mkstemp relies on tempname.
40158
40159 2001-03-01  Jim Meyering  <meyering@lucent.com>
40160
40161         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40162         AH_VERBATIM really does output its argument verbatim.
40163
40164 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40165
40166         * lib/Makefile.am (libfetish_a_SOURCES):
40167         Add dup-safer.c, fopen-safer.c.
40168         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40169
40170         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40171         * lib/unistd-safer.h: New files.
40172
40173 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40174
40175         The mkstemp replacement is taken from glibc 2.2.2, with some
40176         portability fixes for use outside glibc, as follows:
40177
40178         * lib/tempname.c (struct_stat64): New macro.
40179         (direxists, __gen_tempname): Use it.
40180         This avoids a portability problem with Solaris 8.
40181
40182         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40183         (<stddef.h>, <stdint.h>, <string.h>):
40184         Include only if STDC_HEADERS || _LIBC.
40185         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40186         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40187         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40188         (__set_errno): Define this macro if <errno.h> doesn't.
40189         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40190         Define these macros if <stdio.h> doesn't.
40191         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40192         Define these macros if <sys/stat.h>
40193         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40194         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40195         __xstat64): Define if not _LIBC.
40196         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40197         (__gen_tempname): Invoke gettimeofday only if
40198         HAVE_GETTIMEOFDAY || _LIBC;
40199         otherwise, fall back on plain "time".
40200         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40201
40202         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40203
40204         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40205
40206 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40207
40208         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40209
40210 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40211
40212         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40213         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40214         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40215         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40216
40217 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40218
40219         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40220         Remove workaround macros for hosts that have mbrtowc but not
40221         mbstate_t, as we now insist on proper declarations for both
40222         before using mbrtowc.
40223
40224 2001-02-17  Jim Meyering  <meyering@lucent.com>
40225
40226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40227         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40228         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40229         UnixWare 7.1.1.
40230
40231         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40232         rather than AC_CACHE_VAL.
40233
40234 2001-02-17  Jim Meyering  <meyering@lucent.com>
40235
40236         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40237         around included file name.
40238
40239         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40240
40241         * lib/strftime.c: Update from GNU libc (the only changes were to
40242         comments).
40243
40244 2001-02-17  Jim Meyering  <meyering@lucent.com>
40245
40246         * lib/regex.c: Update from libc.
40247
40248 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40249
40250         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40251         clash.
40252
40253 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40254
40255         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40256         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40257         Reported by Mark Hounschell via Paul Eggert.
40258
40259 2001-02-07  Jim Meyering  <meyering@lucent.com>
40260
40261         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40262
40263 2001-02-05  Jim Meyering  <meyering@lucent.com>
40264
40265         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40266         it includes the patch required for `large file' support with at least
40267         HP-UX's 10.20 /bin/cc.
40268
40269 2001-02-03  Jim Meyering  <meyering@lucent.com>
40270
40271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40272         AS_IF, now that it works once again (mysteriously).
40273         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40274
40275 2001-01-30  Jim Meyering  <meyering@lucent.com>
40276
40277         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40278         * m4/chown.m4: Rename conftestchown to conftest.chown.
40279         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40280         s/conftestdir2/conftest.d2/.
40281         * m4/utimes.m4: s/conftestdata/conftest.data/
40282         Inspired by Pavel Roskin's change in autoconf.
40283
40284 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40285
40286         * lib/config.charset: Update for FreeBSD 4.2.
40287
40288 2001-01-27  Jim Meyering  <meyering@lucent.com>
40289
40290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40291         a use of AS_IF.
40292         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40293
40294 2001-01-26  Jim Meyering  <meyering@lucent.com>
40295
40296         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40297         quotearg.c includes it.
40298
40299 2001-01-26  Jim Meyering  <meyering@lucent.com>
40300
40301         * lib/quotearg.c: Include stddef.h.
40302         * lib/quote.c: Include stddef.h.
40303         Reported by Axel Kittenberger.
40304
40305         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40306         line in double quotes so that it evokes a better diagnostic.
40307         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40308         Reported by Axel Kittenberger.
40309
40310 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40311
40312         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40313         as if it was a `charset'.
40314
40315 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40316
40317         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40318         has const.
40319
40320 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40321
40322         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40323         to avoid a warning.  Add back 'const' to inptr.
40324
40325 2001-01-20  Jim Meyering  <meyering@lucent.com>
40326
40327         Be sure that headers are checked before used in code compiled
40328         for the type checks.
40329         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40330         In place of that, invoke jm_CHECK_ALL_TYPES.
40331         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40332         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40333         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40334         The check for ssize_t was mistakenly run before the test for unistd.h.
40335
40336         The configure-time check for stdbool.h was missing.
40337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40338         (jm_PREREQ_HASH): New function.
40339
40340 2001-01-17  Jim Meyering  <meyering@lucent.com>
40341
40342         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40343         for autoconf-2.49c.
40344         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40345
40346 2001-01-16  Jim Meyering  <meyering@lucent.com>
40347
40348         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40349         From Bruno Haible.
40350
40351 2001-01-14  Jim Meyering  <meyering@lucent.com>
40352
40353         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40354         foo and bar.  Create conftestdir/ in the script, not in the C code.
40355         Remove directories in the script, not in the C code.
40356         Remove conftestdir{,2} before trying to create the directory.
40357         Make the entire configure script fail if the mkdir fails.
40358
40359 2001-01-14  Jim Meyering  <meyering@lucent.com>
40360
40361         * lib/rename.c: New file.  From Volker Borchert.
40362         Include stdlib.h, string.h or strings.h, and xalloc.h.
40363         Use strip_trailing_slashes rather than open-coding it.
40364
40365 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40366
40367         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40368
40369 2001-01-03  Jim Meyering  <meyering@lucent.com>
40370
40371         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40372         of local `inptr' to avoid warning with some system declarations of
40373         iconv.
40374
40375 2001-01-02  Volker Borchert  <bt@teknon.de>
40376
40377         * m4/rename.m4: New file.
40378         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40379
40380 2001-01-01  Jim Meyering  <meyering@lucent.com>
40381
40382         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40383         even on systems with utmpx.h.  It's necessary for the declaration of
40384         utmp's ut_user member.  Reported by Andreas Jaeger.
40385
40386         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40387         available. They are required for the declarations of getgrgid and
40388         getpwuid resp.
40389         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40390         Reported by Andreas Jaeger.
40391
40392 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40393
40394         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40395         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40396         so `make install' also works in VPATH builds.
40397
40398 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40399
40400         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40401         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40402         can be used in subdirectories.
40403
40404 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40405
40406         * lib/modechange.c: Do not assume that mode_t uses the
40407         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40408         the other-execute bit of FOO even if S_IXOTH != 1.
40409
40410         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40411         WOTH, XOTH, ALLM): New macros.
40412         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40413          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40414         Use them.
40415         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40416         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40417         (mode_compile):
40418         No need to use uintmax_t; unsigned long is long enough.
40419         Don't bother to get suffix since we don't use it.
40420
40421 2000-12-26  Jim Meyering  <meyering@lucent.com>
40422
40423         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40424         better with autoheader.
40425
40426 2000-12-24  Jim Meyering  <meyering@lucent.com>
40427
40428         * lib/hash.c (is_prime): Return explicit boolean values.
40429         (hash_get_first): Return NULL to appease Irix5.6's 89.
40430         Reported by Nelson Beebe.
40431
40432 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40433
40434         * lib/localcharset.c (locale_charset): Add support for Win32.
40435
40436 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40437
40438         * lib/physmem.h, lib/physmem.c: New files.
40439
40440         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40441         (noinst_HEADERS): Add physmem.h.
40442
40443         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40444         't' for compatibility with Solaris 8 sort.
40445
40446 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40447
40448         * lib/config.charset: Add support for BeOS.
40449
40450 2000-12-17  Jim Meyering  <meyering@lucent.com>
40451
40452         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40453         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40454
40455 2000-12-16  Jim Meyering  <meyering@lucent.com>
40456
40457         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40458         N and M) would have treated it like `chown N:N FILE'.
40459
40460         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40461
40462 2000-12-16  Jim Meyering  <meyering@lucent.com>
40463
40464         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40465         SHELLS_FILE to a file name that's useful on djgpp systems.
40466         Include stdlib.h.
40467         (ADDITIONAL_DEFAULT_SHELLS): Define.
40468         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40469         Based mostly on a patch from Prashant TR.
40470
40471 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40472
40473         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40474         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40475         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40476
40477 2000-12-08  Andreas Schwab  <schwab@suse.de>
40478
40479         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40480         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40481
40482 2000-12-07  Jim Meyering  <meyering@lucent.com>
40483
40484         * lib/stripslash.c (ISSLASH): Define.
40485         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40486         `/'.
40487         From Prashant TR.
40488
40489         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40490         (dir_name_r): Declare this function as static.
40491         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40492         manifest itself on a name containing a mix of slashes and
40493         backslashes.
40494         Make this function work with names starting with a DOS-style
40495         drive letter and colon prefix.
40496         (dir_name): Append `.' if necessary.
40497         Based mostly on patches from Prashant TR and Eli Zaretskii.
40498
40499         * lib/dirname.h (dir_name_r): Remove prototype.
40500
40501 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40502
40503         * m4/off_t-format.m4: Remove this file.
40504         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40505
40506 2000-12-06  Jim Meyering  <meyering@lucent.com>
40507
40508         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40509         replacement strtoull, we may well need the replacement strtoul, too.
40510         Check for declarations of strtoul and strtoull.
40511         Check for strtol.  Mainly as a cue to cause automake to include
40512         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40513         Check for limits.h -- strtol.c needs it.
40514
40515 2000-12-05  Jim Meyering  <meyering@lucent.com>
40516
40517         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40518
40519 2000-12-04  Jim Meyering  <meyering@lucent.com>
40520
40521         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40522         Also include memory.h, stdlib.h, unistd.h if appropriate.
40523         Reported by Andreas Jaeger (conflicting declaration of malloc).
40524
40525 2000-12-02  Jim Meyering  <meyering@lucent.com>
40526
40527         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40528         * m4/jm-macros.m4 (jm_MACROS): require it.
40529
40530 2000-12-02  Jim Meyering  <meyering@lucent.com>
40531
40532         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40533
40534 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40535
40536         * lib/memrchr.c: Include <config.h> before any system include file.
40537
40538 2000-11-30  Jim Meyering  <meyering@lucent.com>
40539
40540         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40541
40542 2000-11-30  Jim Meyering  <meyering@lucent.com>
40543
40544         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40545
40546 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40547
40548         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40549
40550 2000-11-26  Jim Meyering  <meyering@lucent.com>
40551
40552         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40553
40554 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40555
40556         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40557         size of (size_t) -1; it's not portable.
40558
40559 2000-11-17  Jim Meyering  <meyering@lucent.com>
40560
40561         * lib/strstr.c: Update from GNU libc.
40562
40563 2000-11-17  Akim Demaille  <akim@epita.fr>
40564
40565         * lib/obstack.h: Formatting changes.
40566         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40567         prevent type checking.
40568         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40569         cast the value to (void *): assigning a `foo *' to a `void *'
40570         variable is valid.
40571         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40572
40573 2000-11-16  Jim Meyering  <meyering@lucent.com>
40574
40575         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40576
40577 2000-11-11  Jim Meyering  <meyering@lucent.com>
40578
40579         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40580
40581 2000-11-10  Jim Meyering  <meyering@lucent.com>
40582
40583         * lib/obstack.h: Update from GNU libc.
40584         * lib/obstack.c: Likewise.
40585
40586 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40587
40588         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40589
40590 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40591
40592         * lib/getusershell.c (setusershell): Use rewind rather than
40593         fseek/fseeko, to avoid configuration hassles with fseeko.
40594         Don't bother opening SHELLS_FILE if shellstream is NULL;
40595         it's not necessary.
40596
40597 2000-11-05  Jim Meyering  <meyering@lucent.com>
40598
40599         * lib/makepath.h (make_dir): Declare.
40600         * lib/makepath.c (make_dir): Remove `static' attribute.
40601         Tweak a comment.
40602
40603 2000-11-04  Jim Meyering  <meyering@lucent.com>
40604
40605         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40606
40607 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40608
40609         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40610         last one in a bucket, advance to the next bucket.
40611
40612 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40613
40614         * lib/fnmatch.c: Do not comment out all the code if we are using
40615         the GNU C library, because in some cases we are replacing buggy
40616         code in the GNU C library itself.
40617
40618 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40619
40620         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40621         (regex_compile): Catch bogus \(\1\).
40622
40623 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40624
40625         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40626         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40627         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40628
40629 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40630
40631         * lib/error.h, getline.h, modechange.h:
40632         Remove "2000" from Copyright line, as the file hasn't been
40633         changed this year other than in the copyright notice.
40634
40635         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40636         was changed this year.
40637
40638 2000-10-29  Jim Meyering  <meyering@lucent.com>
40639
40640         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40641         renaming.
40642         * m4/ls-mntd-fs.m4: Likewise
40643
40644 2000-10-29  Jim Meyering  <meyering@lucent.com>
40645
40646         * lib/xstat.in: Fix grammar in comment.
40647
40648 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40649
40650         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40651         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40652         doesn't define __restrict_arr.
40653
40654 2000-10-28  Jim Meyering  <meyering@lucent.com>
40655
40656         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40657         (jm_PREREQ_MEMCHR): New function.
40658
40659 2000-10-28  Jim Meyering  <meyering@lucent.com>
40660
40661         * lib/memchr.c: Update from libc.
40662         Adjust for portability:
40663         [HAVE_STDLIB_H]: Include stdlib.h.
40664         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40665         Undef __memchr, too.
40666         [!weak_alias]: Define __memchr to memchr.
40667
40668         * lib/regex.c: Update from libc.
40669         * lib/regex.h: Likewise.
40670         * lib/getopt1.c: Likewise.
40671         * lib/memcmp.c: Likewise.
40672
40673         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40674         Avoid using fseek, when possible -- it's broken by design.
40675         Patch by Ulrich Drepper.
40676
40677 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40678
40679         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40680         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40681         Giving in to popular pressure to shut up the compiler with casts.
40682
40683 2000-10-26  Jim Meyering  <meyering@lucent.com>
40684
40685         * lib/strftime.c: Update from libc.
40686
40687 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40688
40689         * regex.c: More `unsigned char' -> `re_char' changes.
40690         Also change several `int' into `re_wchar_t'.
40691         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40692         (PUSH_FAILURE_POINTER): Don't cast any more.
40693         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40694         We want GCC to complain, since this piece of code makes
40695         re_match non-reentrant, which *should* be fixed.
40696         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40697         (EXTEND_BUFFER): Use RETALLOC.
40698         (SET_LIST_BIT): Don't cast.
40699         (re_wchar_t): New type.
40700         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40701         that those two functions will always properly return.
40702         (IMMEDIATE_QUIT_CHECK): Cast to void.
40703         (analyse_first): Use recursion rather than an explicit stack.
40704         (re_compile_fastmap): Can't fail anymore.
40705         (re_search_2): Don't check re_compile_fastmap for failure.
40706         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40707         Now also sets the new value (passed in a new argument).
40708         (re_match_2_internal): Use it.
40709         Also, use a new var `reg' of type size_t when looping through regs
40710         rather than reuse the inappropriate `mcnt'.
40711
40712 2000-10-25  Jim Meyering  <meyering@lucent.com>
40713
40714         * lib/obstack.c: Update from libc.
40715
40716 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
40717
40718         * regex.c (regex_compile): Change the way of handling a range from
40719         a char less than 256 to a char not less than 256.
40720
40721 2000-10-24  Andrew Innes  <andrewi@gnu.org>
40722
40723         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
40724         NT-Emacs only.
40725         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
40726         so that re_search functions only quit when callers expect them to.
40727
40728 2000-10-23  Jim Meyering  <meyering@lucent.com>
40729
40730         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
40731         wrong.  That set_locale call must not have any side effects.
40732         From Paul Eggert.
40733
40734 2000-10-22  Jim Meyering  <meyering@lucent.com>
40735
40736         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
40737         [CYCLIC]: Remove now-unused definition.
40738
40739         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
40740         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
40741         Suggestion from Ulrich Drepper.
40742
40743 2000-10-21  Jim Meyering  <meyering@lucent.com>
40744
40745         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
40746         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
40747         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
40748
40749 2000-10-21  Jim Meyering  <meyering@lucent.com>
40750
40751         * lib/dirname.c (memrchr): Declare if necessary.
40752         (dir_name): Remove the restriction that there be no
40753         trailing slashes.  Now, this code skips past them, effectively
40754         ignoring them.
40755         [TEST_DIRNAME] (main): New unit tests.
40756
40757         * lib/memrchr.c: New file from GNU libc.
40758         Undef __memrchr, too.
40759         [!weak_alias]: Define __memrchr to memrchr.
40760         Guard weak_alias use with `#ifdef weak_alias'.
40761
40762 2000-10-21  Jim Meyering  <meyering@lucent.com>
40763
40764         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
40765         (dir_name): Use dir_name_r.
40766         * lib/dirname.h (dir_name_r): Declare it.
40767
40768 2000-10-17  Jim Meyering  <meyering@lucent.com>
40769
40770         * lib/quote.h (PARAMS): Define and use.
40771         Reported by Akim Demaille.
40772
40773         * lib/getopt.c: Update from libc.
40774
40775 2000-10-16  Jim Meyering  <meyering@lucent.com>
40776
40777         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
40778         setlocale.
40779         From Jan Fedak.
40780
40781 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
40782
40783         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
40784
40785 2000-09-25  Jim Meyering  <meyering@lucent.com>
40786
40787         * lib/md5.h (rol): Define (from GnuPG).
40788
40789         * lib/sha.c: Give credit (GnuPG) where due.
40790         (M): Use rol rather than open-coding it.
40791         Add a FIXME comment.
40792
40793 2000-09-21  Jim Meyering  <meyering@lucent.com>
40794
40795         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
40796         Reported by Michael Stone.
40797
40798 2000-09-20  Jim Meyering  <meyering@lucent.com>
40799
40800         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
40801         (noinst_HEADERS): Add sha.h.
40802         Based on code from Scott G. Miller and from GnuPG.
40803
40804 2000-09-18  Jim Meyering  <meyering@lucent.com>
40805
40806         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
40807         LIBS. Otherwise, everyone ends up linking with -lelf for some
40808         configurations.
40809         Reported by Mike Stone.
40810
40811 2000-09-15  Jim Meyering  <meyering@lucent.com>
40812
40813         * lib/regex.c: Update from libc.
40814
40815 2000-09-10  Jim Meyering  <meyering@lucent.com>
40816
40817         * lib/getopt.c (_getopt_internal): Update from glibc.
40818
40819 2000-09-09  Jim Meyering  <meyering@lucent.com>
40820
40821         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
40822         think it should be used as a general replacement for isascii.
40823         * lib/fnmatch.c: Likewise.
40824         * lib/mbswidth.c: Likewise
40825         * lib/regex.c: Likewise.
40826
40827         Don't use atoi.
40828         * lib/userspec.c: Include sys/param.h and limits.h.
40829         Include xstrtol.h.
40830         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40831         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
40832         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
40833         UID, GID.  Check range.
40834
40835 2000-09-06  Jim Meyering  <meyering@lucent.com>
40836
40837         * lib/getopt.c (_getopt_internal): Update from glibc.
40838
40839 2000-08-30  Jim Meyering  <meyering@lucent.com>
40840
40841         * lib/strftime.c: Merge in changes from GNU libc.
40842
40843 2000-08-26  Jim Meyering  <meyering@lucent.com>
40844
40845         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
40846         * m4/fpending.m4: New file.
40847
40848 2000-08-26  Jim Meyering  <meyering@lucent.com>
40849
40850         * lib/closeout.c: Include "__fpending.h".
40851         (close_stdout_status): Return right away if there's nothing to flush.
40852
40853         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
40854         * lib/__fpending.c: New file.
40855         * lib/__fpending.h: New file.
40856
40857 2000-08-20  Jim Meyering  <meyering@lucent.com>
40858
40859         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
40860         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
40861         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
40862
40863 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
40864
40865         Improve fileutils installation on systems where running
40866         programs (like install) can't be unlinked.
40867         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
40868         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
40869
40870 2000-08-07  Paul Eggert  <eggert@twinsun.com>
40871
40872         Standardize on "memory exhausted" instead of "Memory exhausted"
40873         or "virtual memory exhausted".
40874         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
40875         "virtual memory exhausted".
40876         * lib/same.c (same_name): Invoke xalloc_die instead of printing
40877         our own message.
40878         * lib/userspec.c (parse_user_spec): Likewise.
40879         * lib/bumpalloc.h: comment fix
40880         * lib/same.c, userspec.c: Include xalloc.h.
40881
40882         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
40883         not char *const and pointing to a constant array.
40884         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
40885         (xrealloc): Comment fix.
40886
40887         * lib/userspec.c (parse_user_spec):
40888         Don't translate a message until just before returning,
40889         to avoid unnecessary translation.
40890
40891 2000-08-07  Jim Meyering  <meyering@lucent.com>
40892
40893         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
40894         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
40895         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
40896         getgroups.c, gethostname.c, getopt.h, group-member.c,
40897         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
40898         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
40899         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
40900         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
40901         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
40902         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
40903         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
40904         yesno.c: Back out Copyright date changes for each file with no change
40905         this year.  This eases coordination with other programs using the same
40906         source code modules.  From Paul Eggert.
40907
40908 2000-08-06  Paul Eggert  <eggert@twinsun.com>
40909
40910         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
40911         not char, for compatibility with glibc 2.1.3 strftime.c.
40912
40913 2000-08-03  Greg McGary  <greg@mcgary.org>
40914
40915         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
40916         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
40917         (EXTEND_BUFFER): Use them.
40918
40919 2000-08-01  Jim Meyering  <meyering@lucent.com>
40920
40921         * lib/dirname.c (ISSLASH): Define.
40922         (BACKSLASH_IS_PATH_SEPARATOR): Define.
40923         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
40924         both `\' and `/' may be use as path separators.
40925         Based on a patch from Prashant TR.
40926
40927 2000-07-31  Paul Eggert  <eggert@twinsun.com>
40928
40929         * lib/quotearg.c (quotearg_n_options): Don't make the initial
40930         slot vector a constant, since it might get modified.
40931
40932 2000-07-31  Jim Meyering  <meyering@lucent.com>
40933
40934         * lib/xmalloc.c: Use `virtual memory exhausted', not
40935         `Memory exhausted'.
40936         * lib/obstack.c (print_and_abort): Likewise.
40937
40938 2000-07-30  Paul Eggert  <eggert@twinsun.com>
40939
40940         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
40941         buffer, so that the caller can always quote one small
40942         component of a "memory exhausted" message in slot 0.
40943         From a suggestion by Jim Meyering.
40944
40945 2000-07-30  Jim Meyering  <meyering@lucent.com>
40946
40947         * lib/makepath.c (make_path): Quote the other instance, too.
40948
40949         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
40950         (STATIC_BUF_SIZE): Define.
40951         (quotearg_n_options): Use only statically allocated storage when
40952         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
40953         than STATIC_BUF_SIZE.
40954
40955 2000-07-29  Jim Meyering  <meyering@lucent.com>
40956
40957         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
40958         * lib/dirname.c (dir_name): Likewise.
40959
40960         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
40961         `/'.
40962
40963         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
40964         (dir_name): Assert that there are no trailing slashes.
40965
40966 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
40967
40968         * lib/mbswidth.h (mbswidth): Add a flags argument.
40969         (mbswidth): New declaration.
40970         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
40971         * lib/mbswidth.c (mbswidth): Add a flags argument.
40972         (mbsnwidth): New function.
40973
40974 2000-07-24  Jim Meyering  <meyering@lucent.com>
40975
40976         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
40977
40978 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40979
40980         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
40981
40982 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40983
40984         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
40985         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
40986         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
40987         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
40988         invoke multibyte primitives.
40989
40990 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40991
40992         * lib/quotearg.c:
40993         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
40994         so that mbstate_t is always defined.
40995
40996         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
40997         be 1 in at least one GCC installation, and this configuration
40998         error is likely to be common.  Ignoring MB_LEN_MAX hurts
40999         performance on hosts that have mbrtowc but have only unibyte
41000         locales, but I assume these hosts are rare.
41001
41002 2000-07-23  Paul Eggert  <eggert@twinsun.com>
41003
41004         * lib/mbswidth.c (_XOPEN_SOURCE):
41005         Don't define; this causes problems on Solaris 7.
41006         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
41007
41008 2000-07-23  Jim Meyering  <meyering@lucent.com>
41009
41010         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
41011         too: getgrgid, getpwuid, getuid.
41012
41013 2000-07-23  Jim Meyering  <meyering@lucent.com>
41014
41015         * lib/basename.c (base_name): Add an assertion.
41016
41017 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
41018
41019         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
41020         shadow its mbsinit function.
41021
41022 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41023
41024         * lib/mbswidth.h: New file.
41025         * lib/mbswidth.c: New file.
41026         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
41027         (noinst_HEADERS): Add mbswidth.h.
41028
41029 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
41030
41031         * lib/config.charset: Add support for FreeBSD. Improve support for
41032         HP-UX and IRIX 6.
41033
41034 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
41035
41036         * m4/mbswidth.m4: New file.
41037         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
41038
41039 2000-07-15  Jim Meyering  <meyering@lucent.com>
41040
41041         * lib/makepath.c: Include quote.h.
41042         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
41043         corresponding argument in a `quote (...)' call.
41044         Give better diagnostics.
41045
41046         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
41047         (noinst_HEADERS): Add quote.h.
41048
41049         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
41050         from tar's src/misc.c.
41051         * lib/quote.h: New file.  Prototypes for same.
41052
41053 2000-07-14  Paul Eggert  <eggert@twinsun.com>
41054
41055         From a suggestion by Bruno Haible.
41056         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
41057         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
41058         to decide whether to define the BeOS workaround macro;
41059         this adjusts to the change to AC_MBSTATE_T.
41060
41061 2000-07-14  Jim Meyering  <meyering@lucent.com>
41062
41063         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
41064         jm_AC_TYPE_UINTMAX_T.
41065
41066 2000-07-13  Paul Eggert  <eggert@twinsun.com>
41067
41068         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
41069
41070         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
41071         quotearg_buffer_restyled): Add support for
41072         clocale_quoting_style.  Undo previous change to
41073         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
41074         and "{RIGHT QUOTATION MARK}" msgids.
41075
41076 2000-07-10  Paul Eggert  <eggert@twinsun.com>
41077
41078         From a suggestion by Bruno Haible.
41079         * m4/mbstate_t.m4 (AC_MBSTATE_T):
41080         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
41081         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
41082         and mbstate_t, to a single-part test that simply defines mbstate_t.
41083         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
41084         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
41085
41086 2000-07-10  Jim Meyering  <meyering@lucent.com>
41087
41088         * m4/strerror_r.m4: Mirror the correction made in autoconf.
41089
41090         * m4/gnu-source.m4: Output to confdefs.h directly.
41091         Suggestion from Akim Demaille.
41092
41093 2000-07-09  Paul Eggert  <eggert@twinsun.com>
41094
41095         The old behavior of quoting `like this' doesn't look good with
41096         newer, ISO-style fonts.  See:
41097         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
41098
41099         Instead, quote "like this" by default.  Let the translator
41100         tailor the locale-specific quoting behavior by providing
41101         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
41102
41103         * lib/quotearg.c (N_): New macro.
41104         (gettext_default): New function.
41105         (quotearg_buffer_restyled): Use
41106         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
41107         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
41108
41109 2000-07-09  Jim Meyering  <meyering@lucent.com>
41110
41111         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
41112         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
41113
41114         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
41115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
41116
41117 2000-07-09  Jim Meyering  <meyering@lucent.com>
41118
41119         * lib/Most files: Update copyright dates to include 2000.
41120
41121 2000-07-08  Jim Meyering  <meyering@lucent.com>
41122
41123         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41124         if not defined.
41125         (xgethostname): Remove now-unnecessary #ifdef.
41126         Move declaration of `err' into loop where it's used.
41127
41128 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41129         and Bruno Haible  <haible@clisp.cons.org>
41130
41131         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41132         only if the test for an object-type mbstate_t fails.  This
41133         prevents us from mistakenly reporting that mbstate_t is a
41134         system object type after we "#define mbstate_t int" to work
41135         around its lack.
41136
41137 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41138         and Bruno Haible  <haible@clisp.cons.org>
41139
41140         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41141
41142 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41143
41144         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41145         to strerror_r.
41146         Include <ctype.h> for use of isalpha.
41147
41148 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41149
41150         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41151         by allocating a larger buffer. Test the gethostname return value for
41152         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41153         returns an error and ENAMETOOLONG isn't defined.
41154
41155 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41156
41157         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41158         dimension.
41159
41160 2000-07-04  Jim Meyering  <meyering@lucent.com>
41161
41162         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41163         of the deprecated AC_CHECKING.
41164
41165 2000-07-04  Jim Meyering  <meyering@lucent.com>
41166
41167         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41168         Reported by Bruno Haible.
41169
41170 2000-07-04  Jim Meyering  <meyering@lucent.com>
41171
41172         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41173         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41174         lacks mbrtowc.
41175
41176 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41177
41178         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41179         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41180
41181 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41182         and Bruno Haible  <haible@clisp.cons.org>
41183
41184         * lib/quotearg.c (mbrtowc):
41185         Assign to *pwc, and return 1 only if result is nonzero.
41186         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41187
41188 2000-07-03  Jim Meyering  <meyering@lucent.com>
41189
41190         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41191
41192 2000-07-03  Jim Meyering  <meyering@lucent.com>
41193
41194         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41195         This is necessary to get a definition of e.g., UTMP_FILE on
41196         HP-UX 10.20.
41197         From Bob Proulx.
41198
41199 2000-07-02  Jim Meyering  <meyering@lucent.com>
41200
41201         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41202
41203         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41204         AC_LIBOBJ(function_name).
41205         * m4/chown.m4: Likewise.
41206         * m4/fnmatch.m4: Likewise.
41207         * m4/ftruncate.m4: Likewise.
41208         * m4/getgroups.m4: Likewise.
41209         * m4/getline.m4: Likewise.
41210         * m4/group-member.m4: Likewise.
41211         * m4/jm-macros.m4: Likewise.
41212         * m4/lstat.m4: Likewise.
41213         * m4/malloc.m4: Likewise.
41214         * m4/memcmp.m4: Likewise.
41215         * m4/nanosleep.m4: Likewise.
41216         * m4/putenv.m4: Likewise.
41217         * m4/realloc.m4: Likewise.
41218         * m4/regex.m4: Likewise.
41219         * m4/stat.m4: Likewise.
41220         * m4/strftime.m4: Likewise.
41221
41222 2000-07-02  Jim Meyering  <meyering@lucent.com>
41223
41224         * lib/quotearg.c (mbstate_t): Don't define here.
41225
41226 2000-07-02  Jim Meyering  <meyering@lucent.com>
41227
41228         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41229
41230 2000-07-01  Jim Meyering  <meyering@lucent.com>
41231
41232         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41233
41234 2000-07-01  Jim Meyering  <meyering@lucent.com>
41235
41236         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41237         problem.
41238
41239 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41240
41241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41242         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41243
41244 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41245
41246         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41247         per change in ../m4/ls-mntd-fs.m4.
41248         (read_filesystem_list): Ignore symbolic links.
41249
41250 2000-06-29  Jim Meyering  <meyering@lucent.com>
41251
41252         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41253         for declaration of strcmp.
41254
41255         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41256
41257         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41258         Avoid warning by casting result to `char *' to remove `const'.
41259
41260 2000-06-28  Jim Meyering  <meyering@lucent.com>
41261
41262         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41263         included by quotearg.c, for which we perform this test.  From
41264         Bruno Haible.
41265
41266 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41267
41268         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41269         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41270         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41271
41272 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41273
41274         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41275
41276 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41277
41278         savedir now sets errno on failure and invokes xmalloc to get memory.
41279         Fix a couple of other minor bugs while we're at it.
41280
41281         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41282         (NAMLEN): Remove macro.
41283         (malloc, realloc): Remove decls.
41284         (stpcpy): Likewise.
41285         ("xalloc.h"): Include.
41286         (NAME_SIZE_DEFAULT): New macro.
41287         (savedir): Use xmalloc / xrealloc to allocate memory.
41288         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41289         Skip "" directory entries.
41290         Use strlen to calculate directory entry length, since the old method
41291         is rarely used these days and isn't worth supporting.
41292         Don't use a pointer after freeing it.
41293         Check for integer overflow when calculating allocation size.
41294         Use memcpy to copy entries, instead of stpcpy.
41295         Set errno properly when returning NULL.
41296         Check for readdir error.
41297
41298 2000-06-26  Jim Meyering  <meyering@lucent.com>
41299
41300         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41301
41302 2000-06-25  Jim Meyering  <meyering@lucent.com>
41303
41304         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41305         Linux header bug when _XOPEN_SOURCE is defined to 500.
41306
41307 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41308
41309         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41310         deficiency.
41311
41312 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41313
41314         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41315         Include xalloc.h.
41316         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41317
41318 2000-06-24  Jim Meyering  <meyering@lucent.com>
41319
41320         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41321         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41322         for which strerror does return char*, but which lacks a conveniently
41323         accessible declaration of the function.  If the compile-test says
41324         strerror_r doesn't work, then resort to a `run'-test that works on
41325         BeOS and segfaults on DEC Unix.
41326
41327 2000-06-24  Jim Meyering  <meyering@lucent.com>
41328
41329         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41330
41331 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41332
41333         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41334         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41335
41336 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41337
41338         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41339         (mbrtowc, mbstate_t): Define substitutes if
41340         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41341         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41342         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41343
41344 2000-06-23  Jim Meyering  <meyering@lucent.com>
41345
41346         * m4/afs.m4: Add missing AC_MSG_RESULT.
41347         Reported by Bruno Haible.
41348
41349         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41350         Suggestion from Bruno Haible.
41351
41352 2000-06-23  Jim Meyering  <meyering@lucent.com>
41353
41354         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41355
41356 2000-06-21  Jim Meyering  <meyering@lucent.com>
41357
41358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41359
41360 2000-06-21  Jim Meyering  <meyering@lucent.com>
41361
41362         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41363         (noinst_HEADERS): Add getstr.h.
41364
41365         * lib/getline.c (getstr): Move into a separate file.
41366         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41367         the following changes: new parameter, delim2; both delim[12]
41368         parameters have type `int', not `char'.  The latter would lose
41369         with 8-bit delimiters.
41370         * lib/getstr.h: New file.
41371
41372 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41373
41374         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41375         than 1024, return a memory chunk of least possible size, instead
41376         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41377         Use free/xmalloc instead of xrealloc to avoid copying for very long
41378         paths.
41379
41380 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41381
41382         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41383         the empty string.
41384
41385 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41386
41387         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41388         address, not strdup.  Include <stdlib.h> and don't declare free().
41389
41390 2000-06-19  Jim Meyering  <meyering@lucent.com>
41391
41392         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41393
41394 2000-06-18  Jim Meyering  <meyering@lucent.com>
41395
41396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41397
41398         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41399         `checking whether...' message to be consistent with that of the
41400         lstat test.
41401
41402 2000-06-18  Jim Meyering  <meyering@lucent.com>
41403
41404         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41405         Besides, these days every porting target provides a mkdir function.
41406
41407         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41408         needed. (this snippet comes from src/system.h).
41409
41410 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41411
41412         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41413
41414 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41415
41416         * lib/human.c (adjust_value): New function.
41417         (human_readable_inexact): Apply rounding style even when
41418         printing approximate values.
41419
41420 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41421
41422         * lib/human.c (human_readable_inexact): Allow an input block
41423         size that is not a multiple of the output block size, and vice versa.
41424         Reported by Piergiorgio Sartor.
41425
41426 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41427
41428         * lib/getdate.y (get_date): Apply relative times after time
41429         zone indicator, not before.  Reported by Todd A. Jacobs.
41430
41431 2000-06-13  Jim Meyering  <meyering@lucent.com>
41432
41433         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41434
41435         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41436
41437 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41438
41439         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41440
41441 2000-06-12  Jim Meyering  <meyering@lucent.com>
41442
41443         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41444         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41445         optional argument.
41446         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41447         the optional argument, `lib'.
41448
41449 2000-06-08  Jim Meyering  <meyering@lucent.com>
41450
41451         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41452
41453 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41454
41455         Rewrite largefile configuration so that we don't need to run
41456         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41457         AC_CANONICAL_HOST in configure.in -- jmm]
41458
41459         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41460         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41461         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41462         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41463         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41464         All uses changed.
41465         Instead of inspecting the output of getconf, try to compile the
41466         test program without and with the macro definition.
41467         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41468         for getconf.  Instead, check for the needed flags by compiling
41469         test programs.
41470
41471 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41472
41473         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41474
41475 2000-06-04  Jim Meyering  <meyering@lucent.com>
41476
41477         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41478         SunOS 4.1.4 for which gid_t is an unsigned type.
41479
41480 2000-06-03  Jim Meyering  <meyering@lucent.com>
41481
41482         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41483         now that autoconf requires that.
41484
41485         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41486         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41487         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41488
41489 2000-06-03  Jim Meyering  <meyering@lucent.com>
41490
41491         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41492
41493 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41494
41495         * m4/glibc21.m4: New file.
41496         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41497
41498 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41499
41500         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41501         newer, don't install charset.alias.
41502         * lib/config.charset: Change the Linux/glibc rules so they become empty
41503         on glibc-2.1 or newer.
41504
41505 2000-06-02  Jim Meyering  <meyering@lucent.com>
41506
41507         * lib/mountlist.c: Back out last change.  Instead, do this...
41508         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41509         me_dummy member using the same `ignore'-testing code.
41510         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41511         fs_type strings.
41512         From Mark D. Roth.
41513
41514 2000-05-29  Jim Meyering  <meyering@lucent.com>
41515
41516         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41517         mounts with the `ignore' attribute.  Based on a patch from
41518         Mark D. Roth.
41519
41520 2000-05-28  Jim Meyering  <meyering@lucent.com>
41521
41522         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41523         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41524         * m4/stat.m4: Likewise.
41525         * m4/lstat.m4: Likewise.
41526         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41527
41528         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41529         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41530
41531 2000-05-26  Jim Meyering  <meyering@lucent.com>
41532
41533         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41534
41535 2000-05-24  Jim Meyering  <meyering@lucent.com>
41536
41537         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41538         autoconf requires that.
41539         * m4/lib-check.m4: Likewise.
41540         * m4/jm-macros.m4: Likewise.
41541         * m4/strftime.m4: Likewise.
41542
41543         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41544         AC_CHECK_DECLS, now that autoconf requires that.
41545
41546 2000-05-22  Jim Meyering  <meyering@lucent.com>
41547
41548         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41549         * m4/lstat.m4: Likewise.
41550
41551 2000-05-22  Jim Meyering  <meyering@lucent.com>
41552
41553         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41554
41555 2000-05-20  Jim Meyering  <meyering@lucent.com>
41556
41557         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41558         (jm_PREREQ): Use it.
41559
41560 2000-05-18  Jim Meyering  <meyering@lucent.com>
41561
41562         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41563         back, too, since it may have been modified by allocate_entry.
41564         (hash_delete): Rewrite to use neither the assignment operator
41565         nor the comma operator in an if-expression.
41566
41567 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41568
41569         * lib/closeout.c:
41570         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41571         Remove; no longer needed.
41572         "quotearg.h": Add include.
41573         (file_name): Do not bother to explicitly initialize to NULL; it's less
41574         efficient on some hosts.
41575         (close_stdout_status): Remove test as to whether stdout was already
41576         closed; it breaks for the case "echo x | sort >&-".
41577         Quote file name colons.
41578         Do not assume that _("write error") lacks format strings.
41579
41580 2000-05-15  Jim Meyering  <meyering@lucent.com>
41581
41582         * lib/version-etc.c (version_etc_copyright): Update the copyright
41583         string used in all --version output.
41584
41585 2000-05-14  Jim Meyering  <meyering@lucent.com>
41586
41587         * lib/closeout.c (close_stdout_set_file_name): New function.
41588         (close_stdout_status): Use new file-scoped global.
41589         Return right away if fstat says the stdout file descriptor is invalid.
41590         * lib/closeout.h (close_stdout_set_file_name): Declare.
41591
41592 2000-05-10  Jim Meyering  <meyering@lucent.com>
41593
41594         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41595         (close_stdout_set_status): New function.
41596         * lib/closeout.h (close_stdout_set_status): Declare.
41597
41598 2000-05-09  Jim Meyering  <meyering@lucent.com>
41599
41600         * m4/gettext.m4: Rename this...
41601         * m4/libintl.m4: ...to this.
41602
41603 2000-05-08  Jim Meyering  <meyering@lucent.com>
41604
41605         * lib/long-options.c: Don't include closeout.h.
41606         (parse_long_options): Don't call close_stdout for --version.
41607
41608 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41609
41610         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41611         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41612         2.1.3 bug.  This avoids a clash when files like regex.c define
41613         _GNU_SOURCE.
41614
41615 2000-05-06  Jim Meyering  <meyering@lucent.com>
41616
41617         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41618         (AC_REPLACE_FUNCS): Add strnlen.
41619
41620         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41621         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41622
41623         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41624         AC_SEARCH_LIBS call for nanosleep.
41625         (LIB_NANOSLEEP): Set and AC_SUBST.
41626
41627 2000-05-06  Jim Meyering  <meyering@lucent.com>
41628
41629         * lib/strnlen.c: Undefine __strnlen and strnlen.
41630         [!weak_alias]: Define __strnlen to strnlen.
41631
41632         * lib/atexit.c: New file, from libiberty.
41633
41634 2000-05-06  Jim Meyering  <meyering@lucent.com>
41635
41636         * lib/closeout.c (close_stdout_status): Also check for errors on the
41637         stderr stream.
41638
41639 2000-05-05  Jim Meyering  <meyering@lucent.com>
41640
41641         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41642         AC_SEARCH_LIBS call for clock_gettime.
41643         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41644
41645         * m4/search-libs.m4: Update from autoconf.
41646
41647         su doesn't work on Solaris 2.6.
41648         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41649         <shadow.h>.  Reported by Dragos Harabor.
41650
41651 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41652
41653         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41654         memcpy instead of xmalloc, xrealloc, path_concat.
41655         (locale_charset): Treat empty environment variables as absent.
41656         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41657
41658 2000-05-04  Jim Meyering  <meyering@lucent.com>
41659
41660         * lib/getopt.c: Update from glibc.
41661         * lib/obstack.c: Likewise.
41662         * lib/obstack.h: Likewise.
41663         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41664         file
41665
41666         * lib/regex.h: Likewise.
41667         * lib/strndup.c: Likewise.
41668         * lib/strnlen.c: New file, from glibc.
41669
41670 2000-05-03  Jim Meyering  <meyering@lucent.com>
41671
41672         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41673
41674 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41675
41676         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41677         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41678         compile-time test, rather than inspecting host and OS, to
41679         decide whether to define _LARGEFILE_SOURCE.
41680
41681 2000-05-01  Jim Meyering  <meyering@lucent.com>
41682
41683         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41684
41685         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41686         Based on a patch from Bruno Haible.
41687
41688 2000-05-01  Jim Meyering  <meyering@lucent.com>
41689
41690         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41691
41692 2000-04-29  Jim Meyering  <meyering@lucent.com>
41693
41694         * lib/path-concat.c: Declare strdup only if it's not defined.
41695         * lib/canon-host.c: Likewise.
41696
41697 2000-04-28  Jim Meyering  <meyering@lucent.com>
41698
41699         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41700         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
41701         is included first, then limits.h is included by locale.h by libintl.h.
41702         From John David Anglin.
41703
41704 2000-04-25  Jim Meyering  <meyering@lucent.com>
41705
41706         * lib/makepath.c (S_IRWXUGO): Define.
41707         (make_path): Always perform explicit chmod if MODE specifies any
41708         of the `special' permission bits.  Prompted by a bug report against
41709         install from Mate Wierdl and Joost van Baal.
41710
41711 2000-04-18  Jim Meyering  <meyering@lucent.com>
41712
41713         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41714         (jm_PREREQ): Use it.
41715
41716 2000-04-18  Jim Meyering  <meyering@lucent.com>
41717
41718         * lib/README: New file.
41719
41720         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
41721         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
41722
41723 2000-04-17  Jim Meyering  <meyering@lucent.com>
41724
41725         Get it right :-)
41726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
41727         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
41728         Suggestion from Akim Demaille.
41729
41730 2000-04-17  Jim Meyering  <meyering@lucent.com>
41731
41732         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
41733         the definition of it to rpl_strftime also defined-away the system's
41734         declaration.
41735
41736 2000-04-15  Jim Meyering  <meyering@lucent.com>
41737
41738         Use `C' to denote so-called `contiguous' files, the same way
41739         that tar does.
41740         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
41741         (ftypelet): Use S_ISCTG.
41742         From Michael Deutschmann.
41743
41744 2000-04-14  Jim Meyering  <meyering@lucent.com>
41745
41746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
41747         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
41748         clobbered.
41749
41750 2000-04-14  Jim Meyering  <meyering@lucent.com>
41751
41752         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
41753
41754 2000-04-13  Jim Meyering  <meyering@lucent.com>
41755
41756         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
41757         AH_VERBATIM to insert required #ifndef into config.h.in.
41758         Suggestion from Akim Demaille.
41759
41760 2000-04-12  Jim Meyering  <meyering@lucent.com>
41761
41762         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
41763         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
41764         Christian Krackowizer.
41765
41766         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
41767         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
41768         (AC_SYS_LARGEFILE): Require.
41769         (AM_C_PROTOTYPES): Require.
41770
41771 2000-04-08  Jim Meyering  <meyering@lucent.com>
41772
41773         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
41774         names don't conflict.  Reported by Eli Zaretskii.
41775
41776 2000-04-07  Jim Meyering  <meyering@lucent.com>
41777
41778         * lib/putenv.c: Move inclusion of errno.h so it follows that of
41779         sys/types.h, to work around system header problems on AIX 3.2.5.
41780         From Bruno Haible.
41781
41782 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
41783
41784         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
41785         bug.  Deal with the different error behavior of Irix iconv.
41786
41787 2000-04-05  Paul Eggert  <eggert@twinsun.com>
41788
41789         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
41790         IRIX if the installer said otherwise.
41791
41792 2000-04-05  Jim Meyering  <meyering@lucent.com>
41793
41794         Portability tweaks required for ultrix4.3.
41795         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
41796         (jm_CHECK_DECLS): Add getutent to the list of functions.
41797         (_jm_DECL_HEADERS): Add utmpx.h.
41798         From John David Anglin.
41799
41800         * m4/strftime.m4: Back out the 2000-04-02 change.
41801         Instead of that change, simply undefine putenv in the test program.
41802
41803 2000-04-05  Jim Meyering  <meyering@lucent.com>
41804
41805         Portability tweaks required for ultrix4.3.
41806         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
41807         getutent.
41808         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
41809         * lib/canon-host.c: Declare strdup.
41810         * lib/path-concat.c: Likewise.
41811         From John David Anglin.
41812
41813 2000-04-04  Jim Meyering  <meyering@lucent.com>
41814
41815         Be more DOS 8.3-friendly.
41816         * lib/ref-add.sin: Renamed from ref-add.sed.in.
41817         * lib/ref-del.sin: Renamed from ref-del.sed.in.
41818         * lib/Makefile.am: Reflect renaming.
41819         Reported by Eli Zaretskii.
41820
41821         Use a temporary file name that won't clash with `charset.alias'
41822         in the DOS 8.3 name space.
41823         * lib/Makefile.am (charset_tmp): Define.
41824         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
41825         (uninstall-local): Likewise.
41826         Reported by Eli Zaretskii.
41827
41828 2000-04-03  Jim Meyering  <meyering@lucent.com>
41829
41830         * m4/gettext.m4: Fix typo in comment.
41831
41832         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
41833         textutils/configure.in).  Suggestion from Paul Eggert.
41834         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
41835
41836 2000-04-02  Paul Eggert  <eggert@twinsun.com>
41837
41838         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
41839         variable in the shell rather than using putenv, which isn't
41840         portable.  This avoids the configure-time inter-test dependency
41841         on the potentially-renamed putenv function.
41842
41843 2000-03-30  Paul Eggert  <eggert@twinsun.com>
41844
41845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
41846         before checking struct stat.st_blksize, so that
41847         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
41848
41849 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41850
41851         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
41852         since strftime.c uses HAVE_STRFTIME to decide whether to use
41853         the underlying strftime.
41854
41855 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41856
41857         * lib/time/strftime.c (my_strftime): Make sure we call the system
41858         strftime, not ourselves, when invoking the underlying strftime.
41859
41860 2000-03-24  Jim Meyering  <meyering@lucent.com>
41861
41862         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
41863         (charset_alias): Define.
41864         (install-exec-local): Factor out common code.
41865         (uninstall-local): Split lines longer than 80.
41866         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
41867         (SUFFIXES): Define.
41868         (.sed.in.sed): New rule.  Don't redirect directly to $@.
41869         (CLEANFILES): Add ref-add.sed and ref-del.sed.
41870
41871 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
41872
41873         * lib/config.charset: Output a line containing "Packages using this
41874         file".
41875         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
41876         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
41877         ref-del.sed): New rules.
41878
41879 2000-03-17  Jim Meyering  <meyering@lucent.com>
41880
41881         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
41882         Otherwise, include <strings.h>
41883
41884 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
41885
41886         * lib/unicodeio.c (utf8_wctomb): New function.
41887         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
41888         format instead of in UCS-4 with platform dependent endianness.
41889
41890 2000-03-10  Jim Meyering  <meyering@lucent.com>
41891
41892         * m4/lib-check.m4: Look for getspnam in -lgen, too.
41893         From Marco Franzen.
41894
41895 2000-03-07  Paul Eggert  <eggert@twinsun.com>
41896
41897         * lib/savedir.c (savedir): Work even if directory size is
41898         negative; this can happen with some screwy NFS configurations.
41899
41900 2000-03-06  Jim Meyering  <meyering@lucent.com>
41901
41902         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
41903         if it's NULL (because we ran out of memory).  From Bruno Haible.
41904
41905 2000-03-05  Jim Meyering  <meyering@lucent.com>
41906
41907         * lib/localcharset.c ("path-concat.h"): Include.
41908         (get_charset_aliases): Use path_concat instead of ANSI string
41909         concatenation.
41910
41911         * lib/unicodeio.h (PARAMS): Define.
41912         Use it to guard prototype.
41913
41914 2000-03-04  Jim Meyering  <meyering@lucent.com>
41915
41916         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
41917         for lib/localcharset.c.
41918
41919 2000-03-04  Jim Meyering  <meyering@lucent.com>
41920
41921         * lib/Makefile.am (install-exec-local): Create $(libdir) before
41922         installing into it.
41923         (uninstall-local): Uncomment this rule so `make distcheck' works
41924         once again.
41925
41926         * lib/unicodeio.c (<errno.h>): Include it.
41927         (errno): Declare if not defined.
41928
41929         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
41930
41931         * lib/config.charset: New version, incorporating remarks from a linux
41932         i18n mailing list.  From Bruno Haible.
41933
41934 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
41935
41936         * m4/codeset.m4: New file.
41937         * m4/iconv.m4: New file.
41938         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
41939
41940 2000-03-03  Jim Meyering  <meyering@lucent.com>
41941
41942         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
41943
41944 2000-03-02  Jim Meyering  <meyering@lucent.com>
41945
41946         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
41947         the messages come out on separate lines.
41948
41949         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
41950         rather than jm_CHECK_DECLARATIONS.
41951         * m4/decl.m4: Remove now-unused file.
41952
41953         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
41954         geteuid.
41955
41956 2000-03-02  Jim Meyering  <meyering@lucent.com>
41957
41958         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
41959
41960 2000-03-01  Jim Meyering  <meyering@lucent.com>
41961
41962         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
41963         * lib/unicodeio.c: Likewise.
41964
41965 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
41966
41967         * lib/config.charset: New file.
41968         * lib/localcharset.c: New file.
41969         * lib/unicodeio.h, lib/unicodeio.c: New files.
41970         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
41971         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
41972         (noinst_HEADERS): Add unicodeio.h.
41973         (all-local, install-exec-local, charset.alias): New targets.
41974
41975 2000-02-28  Paul Eggert  <eggert@twinsun.com>
41976
41977         * lib/quotearg.c (ALERT_CHAR): New macro.
41978         (quotearg_buffer_restyled): Use it.
41979
41980 2000-02-27  Jim Meyering  <meyering@lucent.com>
41981
41982         * m4/check-decl.m4: Add getenv to the list.
41983
41984 2000-02-27  Jim Meyering  <meyering@lucent.com>
41985
41986         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
41987         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
41988
41989         * lib/backupfile.c: Guard inclusion of stdlib.h with
41990         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
41991         Declare malloc if needed.
41992
41993         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
41994         `#ifndef HAVE_DECL..'
41995         now that autoconf always defines the HAVE_DECL_ symbols.
41996         * lib/human.c: Likewise.
41997         * lib/same.c: Likewise.
41998         * lib/strtoumax.c: Likewise.
41999
42000         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
42001         declaration check was not run.
42002         * lib/hash.c: Likewise.
42003         * lib/human.c: Likewise.
42004         * lib/same.c: Likewise.
42005         * lib/strtoumax.c: Likewise.
42006
42007         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
42008         `.', then first look up the entire `.'-containing string as a login
42009         name.
42010
42011 2000-02-23  Jim Meyering  <meyering@lucent.com>
42012
42013         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
42014         in place of my hack.
42015
42016 2000-02-18  Paul Eggert  <eggert@twinsun.com>
42017
42018         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
42019         (textint): New typedef.
42020         (parser_control): Member year changed from int to textint.
42021         All uses changed.
42022         (YYSTYPE): Removed; replaced by %union with int and textint members.
42023         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
42024         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
42025         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
42026         (tSNUMBER, tUNUMBER): Now of type <textintval>.
42027         (date, number, to_year): Use width of number in digits, not its value,
42028         to determine whether it's a 2-digit year, or a 2-digit time.
42029         (yylex): Store number of digits of numeric tokens.
42030         Reported by John Kendall.
42031
42032         (parser_control): Changed from struct parser_control to typedef (for
42033         consistency).  All uses changed.
42034
42035         (tID): Removed; not used.
42036         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
42037
42038 2000-02-14  Paul Eggert  <eggert@twinsun.com>
42039
42040         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
42041         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
42042
42043 2000-02-12  Jim Meyering  <meyering@lucent.com>
42044
42045         * lib/userspec.c (ISDIGIT): Define it.
42046         (isdigit): Remove definition.
42047         (is_number): Use ISDIGIT, not isdigit.
42048         <libintl.h>: Include.
42049         (_ and N_): Define.
42050         (parse_user_spec): Mark translatable strings.
42051
42052 2000-02-10  Jim Meyering  <meyering@lucent.com>
42053
42054         With these changes, nanosleep.[ch] are finally enough like the other
42055         lib/* replacement files to compile on a few more losing systems.
42056
42057         * lib/nanosleep.h: Don't include config.h.
42058         Remove prototype from declaration of nanosleep.
42059         (PARAMS): Remove now-unneeded definition.
42060         * lib/nanosleep.c: #undef nanosleep.
42061         (rpl_nanosleep): Rename from nanosleep.
42062
42063 2000-02-10  Jim Meyering  <meyering@lucent.com>
42064
42065         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
42066         gnu_nanosleep to rpl_nanosleep.
42067
42068 2000-02-09  Jim Meyering  <meyering@lucent.com>
42069
42070         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
42071         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
42072
42073 2000-02-08  Akim Demaille  <akim@epita.fr>
42074
42075         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
42076         `[' and `]' and remove uses of `changequote'.
42077         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
42078         (AC_SYS_LARGEFILE): Likewise.
42079         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42080         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
42081         of changequote.
42082         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
42083         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
42084         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
42085         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
42086
42087 2000-02-05  Jim Meyering  <meyering@lucent.com>
42088
42089         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
42090         Remove explicit use of AC_HEADER_TIME.  It is required by
42091         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
42092         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
42093         in autoconf whereby the expansion of the latter ended up preceding
42094         the expansion of its prerequisite, AC_HEADER_TIME.
42095         Reported by Volker Borchert.
42096
42097 2000-02-03  Jim Meyering  <meyering@lucent.com>
42098
42099         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
42100
42101 2000-02-03  Jim Meyering  <meyering@lucent.com>
42102
42103         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
42104         rather than with `#if HAVE_UTMPNAME'.
42105
42106 2000-02-02  Jim Meyering  <meyering@lucent.com>
42107
42108         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
42109         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
42110         Reported by Eli Zaretskii.
42111
42112 2000-02-01  Jim Meyering  <meyering@lucent.com>
42113
42114         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
42115
42116 2000-01-31  Jim Meyering  <meyering@lucent.com>
42117
42118         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42119         functions.  Add the time.h and sys/time.h headers along with the
42120         AC_REQUIRE'ment of AC_HEADER_TIME.
42121
42122 2000-01-31  Jim Meyering  <meyering@lucent.com>
42123
42124         * lib/nanosleep.h (nanosleep): Guard declaration with
42125         `#if ! HAVE_DECL_NANOSLEEP'.
42126         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42127         the declaration in that vendor's sys/timers.h.
42128         Reported by Christian Krackowizer.
42129
42130         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42131         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42132         (ISPRINT): Likewise.
42133         Reported by Tom Tromey.
42134
42135 2000-01-30  Jim Meyering  <meyering@lucent.com>
42136
42137         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42138
42139         * m4/prereq.m4 (utmp_includes): Define.
42140         Check for ut_user and ut_name members in both struct utmpx
42141         and struct utmp.
42142
42143 2000-01-30  Jim Meyering  <meyering@lucent.com>
42144
42145         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42146         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42147         header files where only utmpx.ut_user is declared.
42148
42149         * lib/readutmp.h (UT_USER): Define.
42150
42151 2000-01-29  Jim Meyering  <meyering@lucent.com>
42152
42153         * m4/lib-check.m4: New file containing library-related checks from
42154         fileutils and sh-utils (textutils had none).
42155
42156 2000-01-28  Jim Meyering  <meyering@lucent.com>
42157
42158         * m4/perl.m4: Change format of warning message to look more like that
42159         from the missing script.  Suggestion from François Pinard.
42160
42161 2000-01-25  Jim Meyering  <meyering@lucent.com>
42162
42163         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42164         well as time.h in the compile check.
42165         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42166         Fix typo in cross-compiling case: s/yes/no/.
42167
42168 2000-01-23  Jim Meyering  <meyering@lucent.com>
42169
42170         * m4/jm-macros.m4: Move df-related tests here from
42171         fileutils/configure.in
42172
42173         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42174         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42175
42176         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42177         s/space/ac_fsusage_space/.
42178         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42179
42180         * m4/ftruncate.m4: New file (derived from part of
42181         fileutils/configure.in).
42182         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42183         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42184
42185         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42186         AC_SUBST these here, rather than just in sh-util/configure.in, so
42187         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42188         all the same.
42189         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42190         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42191         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42192         (AC_SUBST(POW_LIBM)): Likewise.
42193         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42194
42195 2000-01-23  Jim Meyering  <meyering@lucent.com>
42196
42197         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42198         obstack.c.
42199
42200 2000-01-22  Jim Meyering  <meyering@lucent.com>
42201
42202         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42203
42204         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42205
42206         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42207         configure.in
42208         (AC_CHECK_HEADERS): Likewise for sh-utils.
42209         (AC_CHECK_HEADERS): Likewise for textutils.
42210         Merge the three lists of headers.
42211
42212         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42213         from fileutils' configure.in.
42214
42215         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42216         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42217         check-decl.m4.
42218
42219         * m4/check-decl.m4: Use #if rather than #ifdef.
42220         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42221         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42222         (_jm_DECL_HEADERS): Define new function.
42223         (jm_CHECK_DECLARATIONS): Require it.
42224
42225 2000-01-22  Jim Meyering  <meyering@lucent.com>
42226
42227         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42228         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42229         Required for some AIX systems.  Reported by Christian Krackowizer.
42230         [TESTING] (main): New function.
42231
42232         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42233         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42234         letters.
42235
42236         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42237         iswprint.
42238
42239         * lib/strverscmp.c (ISDIGIT): Define.
42240         (strverscmp): Use ISDIGIT, not isdigit.
42241
42242 2000-01-19  Jim Meyering  <meyering@lucent.com>
42243
42244         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42245         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42246         defines `struct timespec' in <sys/time.h>
42247
42248         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42249         Thanks to Akim for explaining.
42250
42251 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42252
42253         * lib/nanosleep.c (nanosleep):
42254         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42255         POSIX.1 doesn't require SA_INTERRUPT and some systems
42256         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42257         it's been part of POSIX.1 since day 1 (in 1988).
42258
42259 2000-01-17  Jim Meyering  <meyering@lucent.com>
42260
42261         * lib/interlock: Remove unused file.  Reported by François Pinard.
42262
42263 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42264
42265         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42266         alert, backslash, formfeed, and vertical tab unnecessarily in
42267         shell quoting style.
42268
42269 2000-01-16  Jim Meyering  <meyering@lucent.com>
42270
42271         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42272         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42273         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42274         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42275
42276 2000-01-16  Jim Meyering  <meyering@lucent.com>
42277
42278         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42279         because the latter didn't work.
42280
42281 2000-01-15  Jim Meyering  <meyering@lucent.com>
42282
42283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42284         (AC_REPLACE_FUNCS): Add memcpy and memset.
42285         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42286         Add strpbrk.
42287         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42288
42289 2000-01-12  Jim Meyering  <meyering@lucent.com>
42290
42291         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42292         (jm_PREREQ): Use it.
42293         (jm_PREREQ_READUTMP): New macro.
42294         (jm_PREREQ): Use it.
42295
42296 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42297
42298         Quote multibyte characters correctly.
42299         * m4/c-bs-a.m4: New file.
42300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42301         (jm_PREREQ): Use it.
42302
42303 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42304
42305         * m4/uintmax_t.m4: Port to autoconf 2.13.
42306
42307 2000-01-08  Jim Meyering  <meyering@ascend.com>
42308
42309         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42310         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42311
42312 2000-01-04  Jim Meyering  <meyering@ascend.com>
42313
42314         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42315         jm_STRUCT_DIRENT_D_TYPE.
42316         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42317         jm_STRUCT_DIRENT_D_INO.
42318         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42319         jm_STRUCT_UTIMBUF.
42320         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42321         renamings.
42322         * m4/utime.m4: Likewise.
42323
42324         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42325         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42326
42327 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42328
42329         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42330         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42331
42332 2000-01-02  Jim Meyering  <meyering@ascend.com>
42333
42334         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42335         remember if this is necessary.
42336
42337 1999-12-26  Jim Meyering  <meyering@ascend.com>
42338
42339         * m4/jm-macros.m4: Use it here.
42340         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42341
42342 1999-12-23  Jim Meyering  <meyering@ascend.com>
42343
42344         * m4/jm-macros.m4: Check for clock_gettime (moved from
42345         fileutils/configure.in)
42346         Check for gettimeofday.
42347
42348 1999-12-20  Jim Meyering  <meyering@ascend.com>
42349
42350         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42351         autoconf-2.14a-1999-12-20.
42352
42353 1999-12-19  Jim Meyering  <meyering@ascend.com>
42354
42355         * m4/lstat-slash.m4: New file.
42356         * m4/jm-macros.m4: Use the new macro:
42357         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42358
42359 1999-12-07  Jim Meyering  <meyering@ascend.com>
42360
42361         * m4/perl.m4: Require that File::Compare be available, too.
42362         Too many systems seem to lack it.
42363
42364         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42365         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42366
42367 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42368
42369         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42370         problem with the QNX 4.25 shell, which doesn't propagate exit
42371         status of failed commands inside shell assignments.
42372
42373 1999-11-17  Jim Meyering  <meyering@ascend.com>
42374
42375         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42376
42377 1999-11-07  Jim Meyering  <meyering@ascend.com>
42378
42379         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42380
42381 1999-11-06  Jim Meyering  <meyering@ascend.com>
42382
42383         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42384         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42385
42386 1999-11-05  Jim Meyering  <meyering@ascend.com>
42387
42388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42389         configure.in of textutils, fileutils, and sh-utils into this one
42390         (shared between those packages) file.
42391         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42392         AC_STRUCT_ST_BLKSIZE.
42393
42394 1999-11-03  Jim Meyering  <meyering@ascend.com>
42395
42396         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42397         of AC_CHECK_TYPE checks includes unistd.h.
42398         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42399         Suggestion from Akim Demaille.
42400
42401 1999-10-30  Jim Meyering  <meyering@ascend.com>
42402
42403         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42404         m4-quoted string.
42405         * m4/ls-mntd-fs.m4: Likewise.
42406         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42407         * m4/jm-winsz1.m4: Likewise.
42408
42409         * m4/const.m4: Remove file, since the fix made it into the experimental
42410         version of autoconf.
42411         * m4/mktime.m4: Likewise.
42412
42413         * m4/check-type.m4: Remove file, now that the latest version of
42414         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42415
42416         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42417         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42418         AC_CHECK_TYPE.
42419
42420 1999-10-04  Jim Meyering  <meyering@ascend.com>
42421
42422         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42423
42424 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42425
42426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42427         2.95.1 bug with HP-UX 10.20.
42428
42429 1999-09-17  Jim Meyering  <meyering@ascend.com>
42430
42431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42432         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42433         due to missing strdup (against sh-utils-2.0).
42434
42435 1999-08-29  Jim Meyering  <meyering@ascend.com>
42436
42437         * m4/jm-macros.m4: Require jm_BISON.
42438         * m4/bison.m4: New file.
42439
42440 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42441
42442         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42443         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42444
42445 1999-08-05  Jim Meyering  <meyering@ascend.com>
42446
42447         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42448         to avoid conflicts with `conftest' on 8+3 filesystems.
42449         Suggestion from Eli Zaretskii.
42450
42451 1999-08-04  Jim Meyering  <meyering@ascend.com>
42452
42453         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42454         fileutils and sh-utils (textutils's getline test was inadequate).
42455         (AM_FUNC_GETLINE): Run this test.
42456         (AC_CHECK_FUNCS): Check for getdelim.
42457         Reported by Bob Proulx.
42458
42459 1999-08-02  Jim Meyering  <meyering@ascend.com>
42460
42461         * m4/jm-macros.m4: Add a comment.
42462
42463 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42464
42465         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42466         <inttypes.h> defines strtoumax as a macro (and not as a
42467         function).
42468
42469 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42470
42471         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42472         that we can shift, multiply and divide unsigned long long
42473         values; Ultrix cc can't do it.
42474
42475 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42476
42477         * m4/mktime.m4: New file, which is a preview of what should appear
42478         in the next public autoconf release.
42479
42480 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42481
42482         * m4/lfs.m4: Remove this file.
42483         * m4/largefile.m4: New file.  It contains the old contents of
42484         lfs.m4, except that all names with prefix AC_LFS have been
42485         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42486         compatible with future autoconf versions.  Also, some minor m4
42487         quoting problems have been fixed.
42488
42489 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42490
42491         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42492         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42493         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42494         and simplify the shell code.
42495
42496 1999-08-01  Jim Meyering  <meyering@ascend.com>
42497
42498         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42499         m4.
42500
42501 1999-07-20  Jim Meyering  <meyering@ascend.com>
42502
42503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42504
42505 1999-07-15  Jim Meyering  <meyering@ascend.com>
42506
42507         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42508
42509 1999-05-22  Jim Meyering  <meyering@ascend.com>
42510
42511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42512
42513 1999-05-20  Jim Meyering  <meyering@ascend.com>
42514
42515         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42516         Add a colon after each `then' in case $4 is empty.
42517
42518 1999-05-16  Jim Meyering  <meyering@ascend.com>
42519
42520         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42521
42522 1999-05-10  Jim Meyering  <meyering@ascend.com>
42523
42524         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42525
42526         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42527         AC_FUNC_MKTIME.
42528
42529 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42530
42531         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42532
42533 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42534
42535         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42536         not CPPFLAGS, so that linking works correctly in IRIX.
42537
42538 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42539
42540         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42541
42542 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42543
42544         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42545         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42546         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42547         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42548         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42549
42550         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42551
42552 1999-04-20  Jim Meyering  <meyering@ascend.com>
42553
42554         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42555         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42556         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42557
42558 1999-04-18  Jim Meyering  <meyering@ascend.com>
42559
42560         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42561         * m4/jm-macros.m4: Use it.
42562
42563 1999-04-06  Jim Meyering  <meyering@ascend.com>
42564
42565         * m4/strftime.m4: Remove test for %f.
42566
42567 1999-03-29  Jim Meyering  <meyering@ascend.com>
42568
42569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42570         superset of the AC_TYPE_* checks in the textutils, fileutils,
42571         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42572         AC_TYPE_PID_T.
42573
42574 1999-03-28  Jim Meyering  <meyering@ascend.com>
42575
42576         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42577         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42578         replaced e.g., in the *.sh files of the sh-utils.
42579
42580 1999-03-20  Jim Meyering  <meyering@ascend.com>
42581
42582         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42583         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42584         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42585
42586 1999-03-19  Jim Meyering  <meyering@ascend.com>
42587
42588         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42589
42590 1999-03-12  Jim Meyering  <meyering@ascend.com>
42591
42592         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42593
42594 1999-03-07  Jim Meyering  <meyering@ascend.com>
42595
42596         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42597         declared.
42598
42599 1999-02-17  Jim Meyering  <meyering@ascend.com>
42600
42601         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42602         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42603
42604 1999-02-07  Jim Meyering  <meyering@ascend.com>
42605
42606         * m4/group-member.m4: New file -- extracted from sh-utils'
42607         configure.in.
42608
42609         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42610         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42611
42612 1999-02-06  Jim Meyering  <meyering@ascend.com>
42613
42614         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42615         * m4/fnmatch.m4: Likewise.
42616         * m4/getgroups.m4: Likewise.
42617         * m4/lstat.m4: Likewise.
42618         * m4/malloc.m4: Likewise.
42619         * m4/putenv.m4: Likewise.
42620         * m4/realloc.m4: Likewise.
42621         * m4/regex.m4: Likewise.
42622         * m4/stat.m4: Likewise.
42623         * m4/strftime.m4: Likewise.
42624         Suggestion from Alain Magloire.
42625
42626         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42627         * m4/fnmatch.m4: Likewise.
42628         * m4/getgroups.m4: Likewise.
42629         * m4/getline.m4: Likewise.
42630         * m4/lstat.m4: Likewise.
42631         * m4/malloc.m4: Likewise.
42632         * m4/memcmp.m4: Likewise.
42633         * m4/putenv.m4: Likewise.
42634         * m4/realloc.m4: Likewise.
42635         * m4/regex.m4: Likewise.
42636         * m4/stat.m4: Likewise.
42637         * m4/strftime.m4: Likewise.
42638         Suggestion from Alain Magloire.
42639
42640         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42641         an argument.
42642
42643         * m4/regex.m4: Add a run-time Test for proper operation of
42644         re_compile_pattern.
42645
42646 1999-01-31  Jim Meyering  <meyering@ascend.com>
42647
42648         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42649
42650 1999-01-30  Jim Meyering  <meyering@ascend.com>
42651
42652         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42653
42654         * m4/jm-mktime.m4: Make this a wrapper around the official
42655         AM_FUNC_MKTIME rather than my private copy, now that the official one
42656         is up to date.
42657         * m4/mktime.m4: Remove file.
42658
42659         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42660         * m4/uptime.m4: Likewise.
42661         * m4/uintmax_t.m4: Likewise.
42662
42663 1999-01-28  Jim Meyering  <meyering@ascend.com>
42664
42665         * m4/jm-macros.m4: Use jm_AFS.
42666         * m4/afs.m4: New file (from fileutils' configure.in).
42667
42668         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42669         * m4/chown.m4: Likewise.
42670         * m4/d-ino.m4: Likewise.
42671         * m4/d-type.m4: Likewise.
42672         * m4/fnmatch.m4: Likewise.
42673         * m4/getgroups.m4: Likewise.
42674         * m4/gettext.m4: Likewise.
42675         * m4/jm-mktime.m4: Likewise.
42676         * m4/jm-winsz2.m4: Likewise.
42677         * m4/lcmessage.m4: Likewise.
42678         * m4/ls-mntd-fs.m4: Likewise.
42679         * m4/malloc.m4: Likewise.
42680         * m4/memcmp.m4: Likewise.
42681         * m4/putenv.m4: Likewise.
42682         * m4/realloc.m4: Likewise.
42683         * m4/st_mtim.m4: Likewise.
42684         * m4/strftime.m4: Likewise.
42685
42686 1999-01-16  Jim Meyering  <meyering@ascend.com>
42687
42688         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42689         (ARGMATCH_DIE_DECL): Define.
42690
42691 1999-01-12  Jim Meyering  <meyering@ascend.com>
42692
42693         * m4/Makefile.am.in: Rewrite to avoid using fmt.
42694         Reported by Lars Hecking.
42695
42696 1999-01-10  Jim Meyering  <meyering@ascend.com>
42697
42698         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42699         gross kludge.
42700         * m4/inttypes_h.m4: Likewise.
42701         * m4/lstat.m4: Likewise.
42702         * m4/malloc.m4: Likewise.
42703         * m4/readdir.m4: Likewise.
42704         * m4/realloc.m4: Likewise.
42705         * m4/st_dm_mode.m4: Likewise.
42706         * m4/stat.m4: Likewise.
42707         * m4/utimbuf.m4: Likewise.
42708         * m4/utimes.m4: Likewise.
42709
42710         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42711         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
42712         comments in config.h.in are meaningful.
42713
42714         * m4/jm-macros.m4: Require autoconf-2.13 here.
42715
42716         * m4/regex.m4: By default, don't use the included regex.c on systems
42717         with glibc 2.  Suggestion from Uli Drepper.
42718
42719 1999-01-02  Jim Meyering  <meyering@ascend.com>
42720
42721         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
42722
42723 1998-12-18  Jim Meyering  <meyering@ascend.com>
42724
42725         * m4/Makefile.am.in (Makefile.am): Simplify rule.
42726         Based on a suggestion from Lars Hecking.
42727
42728 1998-11-16  Paul Eggert  <eggert@twinsun.com>
42729
42730         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
42731
42732 1998-11-16  Jim Meyering  <meyering@ascend.com>
42733
42734         * m4/lfs.m4: Double-quote the `uname...` expression.
42735
42736 1998-11-14  Jim Meyering  <meyering@ascend.com>
42737
42738         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
42739         * m4/stat.m4: Likewise.
42740
42741 1998-11-03  Jim Meyering  <meyering@ascend.com>
42742
42743         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
42744         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
42745
42746 1998-10-18  Jim Meyering  <meyering@ascend.com>
42747
42748         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
42749
42750 1998-10-17  Jim Meyering  <meyering@ascend.com>
42751
42752         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
42753         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
42754         calls for those previously hard-coded headers.  Instead, take a new
42755         parameter.
42756         (jm_CHECK_DECLARATIONS): Reflect interface change.
42757         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
42758         (jm_CHECK_DECL_LOCALTIME_R): New macro.
42759
42760         * m4/mktime.m4: Test for spring-forward gap before long-running test.
42761
42762 1998-10-14  Jim Meyering  <meyering@ascend.com>
42763
42764         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
42765         instead of "TZ=America/Vancouver".  From Paul Eggert.
42766
42767 1998-10-11  Jim Meyering  <meyering@ascend.com>
42768
42769         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
42770         This adds a test for a recently added compatibility fix for mktime.c.
42771         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
42772
42773 1998-09-27  Jim Meyering  <meyering@ascend.com>
42774
42775         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
42776
42777         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
42778         ../configure.in, including a change from Gordon Matzigkeit to allow
42779         cross-compiling for the Hurd.
42780
42781         * m4/glibc.m4: New file/macro to test for the GNU C Library
42782         versions 1 and 2.  From Gordon Matzigkeit.
42783         Indent.
42784
42785 1998-09-21  Jim Meyering  <meyering@ascend.com>
42786
42787         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
42788
42789 1998-08-18  Paul Eggert  <eggert@twinsun.com>
42790
42791         Port nanosecond-resolution times to UnixWare 2.1.2 and
42792         pedantic Solaris 2.6.
42793
42794         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
42795         AC_STRUCT_ST_MTIM.
42796         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
42797         Generate name of ns member, instead of just 1 or undef.
42798         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
42799
42800 1998-08-15  Jim Meyering  <meyering@ascend.com>
42801
42802         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
42803         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
42804         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
42805         instead of jm_TYPE_SSIZE_T.
42806
42807 1998-08-12  Jim Meyering  <meyering@ascend.com>
42808
42809         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
42810
42811 1998-08-02  Jim Meyering  <meyering@ascend.com>
42812
42813         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
42814         in acconfig.h manually.
42815
42816 1998-07-31  Paul Eggert  <eggert@twinsun.com>
42817
42818         * m4/st_mtim.m4: New file.
42819
42820 1998-07-28  Jim Meyering  <meyering@ascend.com>
42821
42822         * m4/utimes.m4: Undef stat.
42823
42824 1998-07-25  Jim Meyering  <meyering@ascend.com>
42825
42826         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
42827         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
42828
42829 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
42830
42831         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
42832         uid and gid actually remain unchanged.
42833
42834 1998-07-07  Jim Meyering  <meyering@ascend.com>
42835
42836         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
42837
42838 1998-07-04  Jim Meyering  <meyering@ascend.com>
42839
42840         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
42841         to prove that this macro can be used in packages without regex.c.
42842
42843 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
42844
42845         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
42846         is to be used.
42847
42848 1998-07-03  Jim Meyering  <meyering@ascend.com>
42849
42850         * m4/gettext.m4: Add -lintl if it's found to be necessary.
42851
42852         * m4/gettext.m4: New file -- from gettext-0.10.35.
42853         * m4/lcmessage.m4: Likewise.
42854         * m4/progtest.m4: Likewise.
42855
42856         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
42857         * m4/jm-macros.m4: Require the new macro.
42858
42859 1998-06-29  Jim Meyering  <meyering@ascend.com>
42860
42861         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
42862         for the definition of NGROUPS (used in a system header included
42863         by sys/mount.h).
42864
42865 1998-06-28  Jim Meyering  <meyering@ascend.com>
42866
42867         * m4/ls-mntd-fs.m4: New file.
42868         * m4/fstypename.m4: New file.
42869
42870         * m4/jm-macros.m4: Require the new macro.
42871         * m4/jm-glibc-io.m4: New file.
42872
42873 1998-05-19  Jim Meyering  <meyering@ascend.com>
42874
42875         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
42876         * m4/lchown.m4: New file.
42877
42878         * m4/Makefile.am.in: New file.
42879         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
42880
42881 1998-05-14  Jim Meyering  <meyering@ascend.com>
42882
42883         * m4/Makefile.am (EXTRA_DIST): Add them.
42884         * m4/jm-macros.m4: New file.
42885         * m4/utimbuf.m4: New file.
42886
42887 1998-05-12  Jim Meyering  <meyering@ascend.com>
42888
42889         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
42890
42891 1998-05-11  Jim Meyering  <meyering@ascend.com>
42892
42893         * m4/isc-posix.m4: New file.
42894
42895 1998-05-10  Jim Meyering  <meyering@ascend.com>
42896
42897         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
42898
42899 1998-05-09  Jim Meyering  <meyering@ascend.com>
42900
42901         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
42902         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
42903         with automake.
42904
42905         * m4/ssize_t.m4: New file.
42906         * m4/mktime.m4: Remove file -- the new automake has this now.
42907
42908 1998-04-26  Jim Meyering  <meyering@ascend.com>
42909
42910         * m4/assert.m4: New file.
42911         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
42912
42913 1998-04-05  Jim Meyering  <meyering@ascend.com>
42914
42915         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
42916         (jm_PREREQ): Use it here.
42917
42918 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
42919
42920         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
42921         in acconfig.h.
42922
42923 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
42924
42925         * m4/prereq.m4: New file.
42926         * m4/error.m4: New file.
42927         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
42928
42929 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
42930
42931         * m4/getline.m4: Don't set am_cv_func_working_getline before the
42932         cache-check for the same variable -- that defeated the purpose of
42933         the test; the test program was never run.  This was a problem only
42934         on systems with losing getline functions -- HP-UX 10.20 is one.
42935         Reported by Bjorn Helgaas.
42936
42937 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
42938
42939         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
42940
42941 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
42942
42943         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
42944
42945         * m4/const.m4: New file.  Use an initializer in this declaration
42946         typedef int charset[2]; const charset x;
42947         Reported by Bob Glickstein.
42948
42949 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
42950
42951         * m4/chown.m4: Fix reversed types on -1 args to chown.
42952         From Kaveh Ghazi.
42953
42954 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
42955
42956         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
42957         Add lseek and memchr.
42958
42959         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
42960         T.E.Dickey <dickey@clark.net> said that some older preprocessors
42961         have a 20-character limit on names.
42962
42963 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
42964
42965         * m4/inttypes_h.m4: New file.
42966         * m4/uintmax_t.m4: New file.
42967         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
42968
42969
42970         -----
42971
42972         Local Variables:
42973         coding: utf-8
42974         End:
42975
42976         Copyright (C) 1997-2008 Free Software Foundation, Inc.
42977
42978         Copying and distribution of this file, with or without
42979         modification, are permitted provided the copyright notice
42980         and this notice are preserved.