3424b43d5c489ea61f7c43654c3ceb726726e3b5
[gnulib.git] / ChangeLog
1 2008-09-13  Bruno Haible  <bruno@clisp.org>
2
3         * lib/errno.in.h: New file.
4         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
5         * modules/errno: New file.
6         * doc/posix-headers/errno.texi: Update documentation.
7         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
8
9 2008-09-13  Bruno Haible  <bruno@clisp.org>
10
11         * tests/test-poll.c: Use #if for native Windows, rather than testing
12         __MSVCRT__.
13
14 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15             Bruno Haible  <bruno@clisp.org>
16
17         * lib/glob.c: Don't include <pwd.h> on native Windows.
18         (WINDOWS32): New macro.
19         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20
21 2008-09-13  Bruno Haible  <bruno@clisp.org>
22
23         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
24         (ETIMEDOUT): Remove macro.
25         (glthread_cond_timedwait_multithreaded): New declaration.
26         (glthread_cond_timedwait): Use it.
27         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28         (glthread_cond_timedwait_multithreaded): New function.
29
30 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
31
32         * modules/poll-tests: Do not check for io.h.
33         * tests/test-poll.c: Check for __MSVCRT__ instead.
34
35 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36
37         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40
41 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
42
43         * modules/poll-tests: New.
44         * tests/test-poll.c: New.
45
46 2008-09-12  Eric Blake  <ebb9@byu.net>
47
48         frexp: test for NetBSD failure on -0.0
49         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
50         not all, bugs from NetBSD 3.0 have been fixed.
51         * doc/posix-functions/frexp.texi (frexp): Document bug.
52         Reported by Thomas Klausner.
53
54         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56         literal -0.0.
57         Reported by Jonathan C. Patschke <jp@centtech.com>.
58
59 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60
61         * lib/glthread/cond.h: Use dummy implementation also if
62         USE_WIN32_THREADS.
63
64 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65
66         * modules/fnmatch-posix (License): Change to LGPLv2+.
67         * modules/fnmatch-gnu (License): Likewise.
68
69 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70
71         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
72
73 2008-09-11  Jim Meyering  <meyering@redhat.com>
74
75         * users.txt: Add gtk-vnc.
76
77 2008-09-08  Simon Josefsson  <simon@josefsson.org>
78
79         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
80         rotate amounts.
81
82         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
83         required for 16-bit and 8-bit rotates.
84         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
85         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
86         UINT8_MAX instead of hard-coded constants.
87         Suggested by Paul Eggert.
88
89 2008-09-07  Bruno Haible  <bruno@clisp.org>
90
91         * tests/test-striconveh.c (main): Check behaviour when converting from
92         UTF-7.
93
94         Make striconveh work better with stateful encodings.
95         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
96         that iconv does not increment the inptr when returning -1/EINVAL.
97
98 2008-09-07  Bruno Haible  <bruno@clisp.org>
99
100         * build-aux/config.rpath: Update according to libtool-2.2.6.
101         * build-aux/config.libpath: Likewise.
102
103 2008-09-06  Bruno Haible  <bruno@clisp.org>
104
105         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
106         * lib/freadptr.c (freadptr): Likewise.
107         * lib/freadseek.c (freadptrinc): Likewise.
108         Reported by Simon Josefsson.
109
110 2008-09-06  Bruno Haible  <bruno@clisp.org>
111
112         * modules/freadptr (License): Change to LGPLv2+.
113         * modules/freadseek (License): Likewise.
114         Suggested by Eric Blake.
115
116         * modules/memchr2 (License): Change to LGPLv2+.
117         Approved by Eric Blake.
118
119 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120             Bruno Haible  <bruno@clisp.org>
121
122         Make gnulib-tool work with native 'sed' on AIX.
123         * gnulib-tool (sed_noop): New variable.
124         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
125         func_add_or_update, func_create_testdir): Use it to initialize sed
126         script variables.
127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
128
129 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
130             Bruno Haible  <bruno@clisp.org>
131
132         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
133         also works after #include directives.
134
135 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
136
137         getdate.y: reject an out-of-range timezone value
138         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
139         the range [-24...+24].  When specified with only one or two digits,
140         * tests/test-getdate.c: Tests for the fix.
141         * doc/getdate.texi: Document this change.
142
143 2008-09-03  Bruno Haible  <bruno@clisp.org>
144
145         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
146
147 2008-09-02  Simon Josefsson  <simon@josefsson.org>
148
149         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
150         <bruce.korb@gmail.com> with ideas from Ben Pfaff
151         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
152         Blake <ebb9@byu.net>.
153
154         * tests/test-bitrotate.c: Add more test vectors.
155
156 2008-09-02  Eric Blake  <ebb9@byu.net>
157
158         vasnprintf-posix: handle large precision via %.*d
159         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
160         when handling it ourselves.
161         * tests/test-vasnprintf-posix.c (test_function): Add test.
162         * tests/test-snprintf-posix.h (test_function): Likewise.
163         * tests/test-sprintf-posix.h (test_function): Likewise.
164         * tests/test-vasprintf-posix.c (test_function): Likewise.
165         Reported by Alain Guibert.
166
167 2008-09-01  Eric Blake  <ebb9@byu.net>
168
169         c-stack: make configure-time check more robust
170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
171         successful sigaction call.
172         Reported by Tom G. Christensen.
173
174 2008-09-01  Bruno Haible  <bruno@clisp.org>
175
176         New module 'findprog-lgpl'.
177         * modules/findprog-lgpl: New file.
178         * lib/findprog-lgpl.c: New file.
179         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
180         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
181         to decide whether to use strdup or xstrdup, concatenated_filename or
182         xconcatenated_filename.
183
184 2008-09-01  Bruno Haible  <bruno@clisp.org>
185
186         Split module 'concat-filename' into 'concat-filename' (LGPL) and
187         'xconcat-filename' (GPL).
188         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
189         (License): Change to LGPLv2+.
190         * modules/xconcat-filename: New file.
191         * lib/concat-filename.h (concatenated_filename): Change specification.
192         (xconcatenated_filename): New declaration.
193         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
194         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
195         memory situations.
196         * lib/xconcat-filename.c: New file.
197         * NEWS: Mention the change.
198         * lib/findprog.c: Include concat-filename.h, not filename.h.
199         (find_in_path): Use xconcatenated_filename instead of
200         concatenated_filename.
201         * lib/javacomp.c: Include concat-filename.h, not filename.h.
202         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
203         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
204         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
205         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
206         instead of concatenated_filename.
207         * lib/javaexec.c: Include concat-filename.h, not filename.h.
208         (execute_java_class): Use xconcatenated_filename instead of
209         concatenated_filename.
210         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
211         * modules/javacomp (Depends-on): Likewise.
212         * modules/javaexec (Depends-on): Likewise.
213
214 2008-09-01  Bruno Haible  <bruno@clisp.org>
215
216         Split module 'filename' into 'filename' and 'concat-filename'.
217         * modules/filename: Keep only lib/filename.h.
218         (License): Change to LGPLv2+.
219         * modules/concat-filename: New file, extracted from modules/filename.
220         * lib/filename.h (concatenated_filename): Remove declaration.
221         * lib/concat-filename.h: New file, extracted from lib/filename.h.
222         * lib/concat-filename.c: Include concat-filename.h.
223         * NEWS: Mention the change.
224
225 2008-09-01  Simon Josefsson  <simon@josefsson.org>
226
227         * lib/bitrotate.h (rotl8, rotr8): Add.
228
229         * modules/bitrotate (configure.ac): Need
230         AC_REQUIRE([AC_C_INLINE]).
231         (Description): Mention stdint.h.  Reported by Bruno Haible
232         <bruno@clisp.org>.
233
234         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
235         Paolo Bonzini <bonzini@gnu.org>.
236
237 2008-08-31  Bruno Haible  <bruno@clisp.org>
238
239         Assume Solaris specific bi-arch conventions on Solaris systems.
240         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
241         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
243         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
244         like acl_libdirstem.
245         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
246         acl_libdirstem.
247         * NEWS: Mention the change.
248         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
249
250 2008-08-31  Jim Meyering  <meyering@redhat.com>
251
252         * lib/strftime.h: Add comments describing the two added arguments.
253
254         remove duplicate #include directives
255         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
256         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
257
258 2008-08-31  Bruno Haible  <bruno@clisp.org>
259
260         New module 'sigpipe-die'.
261         * modules/sigpipe-die: New file.
262         * lib/sigpipe-die.h: New file.
263         * lib/sigpipe-die.c: New file.
264         * MODULES.html.sh (Signal handling): Add sigpipe-die.
265
266 2008-08-31  Bruno Haible  <bruno@clisp.org>
267
268         Don't override previously installed signal handlers.
269         * lib/fatal-signal.c (saved_sigactions): New variable.
270         (uninstall_handlers): Reset the signal to the saved handler, not
271         to SIG_DFL (except when ignored).
272         (install_handlers): Save the previous handlers.
273
274 2008-08-30  Bruno Haible  <bruno@clisp.org>
275
276         * gnulib-tool (func_reset_sigpipe): New function.
277         (func_get_automake_snippet, func_modules_transitive_closure,
278         func_import): Invoke it before a join command that reads from stdin,
279         to avoid "echo: write error: Broken pipe" error messages on stderr.
280         Reported by Sam Steingold <sds@gnu.org>.
281
282 2008-08-30  Bruno Haible  <bruno@clisp.org>
283
284         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
285         Code copied from m4/open.m4.
286         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
287         access and the filename ends in a slash. Code copied from lib/open.c.
288         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
289         * tests/test-fopen.c (main): Check against bug with trailing slash.
290
291 2008-08-29  Bruno Haible  <bruno@clisp.org>
292
293         Avoid some "gcc -pedantic" warnings.
294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
295         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
296         * lib/dirent.in.h: Likewise.
297         * lib/fcntl.in.h: Likewise.
298         * lib/float.in.h: Likewise.
299         * lib/iconv.in.h: Likewise.
300         * lib/inttypes.in.h: Likewise.
301         * lib/locale.in.h: Likewise.
302         * lib/math.in.h: Likewise.
303         * lib/netinet_in.in.h: Likewise.
304         * lib/search.in.h: Likewise.
305         * lib/signal.in.h: Likewise.
306         * lib/stdarg.in.h: Likewise.
307         * lib/stdint.in.h: Likewise.
308         * lib/stdio.in.h: Likewise.
309         * lib/stdlib.in.h: Likewise.
310         * lib/string.in.h: Likewise.
311         * lib/strings.in.h: Likewise.
312         * lib/sys_select.in.h: Likewise.
313         * lib/sys_socket.in.h: Likewise.
314         * lib/sys_stat.in.h: Likewise.
315         * lib/sys_time.in.h: Likewise.
316         * lib/sysexits.in.h: Likewise.
317         * lib/time.in.h: Likewise.
318         * lib/unistd.in.h: Likewise.
319         * lib/wchar.in.h: Likewise.
320         * lib/wctype.in.h: Likewise.
321         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
322         * modules/fchdir (Makefile.am): Likewise.
323         * modules/fcntl (Makefile.am): Likewise.
324         * modules/float (Makefile.am): Likewise.
325         * modules/iconv_open (Makefile.am): Likewise.
326         * modules/inttypes (Makefile.am): Likewise.
327         * modules/locale (Makefile.am): Likewise.
328         * modules/math (Makefile.am): Likewise.
329         * modules/netinet_in (Makefile.am): Likewise.
330         * modules/search (Makefile.am): Likewise.
331         * modules/signal (Makefile.am): Likewise.
332         * modules/stdarg (Makefile.am): Likewise.
333         * modules/stdint (Makefile.am): Likewise.
334         * modules/stdio (Makefile.am): Likewise.
335         * modules/stdlib (Makefile.am): Likewise.
336         * modules/string (Makefile.am): Likewise.
337         * modules/strings (Makefile.am): Likewise.
338         * modules/sys_select (Makefile.am): Likewise.
339         * modules/sys_socket (Makefile.am): Likewise.
340         * modules/sys_stat (Makefile.am): Likewise.
341         * modules/sys_time (Makefile.am): Likewise.
342         * modules/sysexits (Makefile.am): Likewise.
343         * modules/time (Makefile.am): Likewise.
344         * modules/unistd (Makefile.am): Likewise.
345         * modules/wchar (Makefile.am): Likewise.
346         * modules/wctype (Makefile.am): Likewise.
347         Reported by Reuben Thomas <rrt@sc3d.org>.
348
349 2008-08-29  Bruno Haible  <bruno@clisp.org>
350
351         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
352         any more.
353
354 2008-08-29  Simon Josefsson  <simon@josefsson.org>
355
356         * MODULES.html.sh (Misc): Add bitrotate.
357
358         * modules/bitrotate: New file.
359
360         * lib/bitrotate.h: New file.
361
362         * modules/bitrotate-tests: New file.
363
364         * tests/test-bitrotate.c: New file.
365
366         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
367         on the bitrotate module.
368
369         * lib/arctwo.c: Use new bitrotate module.
370
371 2008-08-29  Jim Meyering  <meyering@redhat.com>
372
373         bootstrap: merge changes from coreutils
374         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
375         of copied files.  Remove a kludge, now that this is fixed.
376         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
377         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
378         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
379
380 2008-08-29  Bruno Haible  <bruno@clisp.org>
381
382         * MODULES.html.sh: Remove --cvs-urls option.
383
384 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
385
386         maint.mk: adjust to file name change
387         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
388
389 2008-08-28  Jim Meyering  <meyering@redhat.com>
390
391         * modules/getndelim2 (License): Relicense to LGPLv2+.
392         Approved by Richard Stallman for the version of 1995, and by
393         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
394
395 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
396
397         * lib/getdelim.c (flockfile, funlockfile): Make all of them
398         dummy if one is not available.  Do not touch them if
399         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
400         (getc_maybe_unlocked): New.
401         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
402
403 2008-08-26  Eric Blake  <ebb9@byu.net>
404
405         doc/INSTALL: resync from autoconf
406         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
407         (INSTALL_PRELUDE): Delete; this is done more efficiently by
408         moving...
409         * install.texi [!autoconf]: ...here.  Resync from autoconf.
410         * INSTALL: Regenerate.
411         * INSTALL.ISO: New file.
412         * INSTALL.UTF-8: Likewise.
413
414 2008-08-26  Jim Meyering  <meyering@redhat.com>
415
416         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
417         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
418         these definitions conditional, so that they may be overridden, too.
419
420 2008-08-26  Bruno Haible  <bruno@clisp.org>
421
422         Generate INSTALL file variants with prettier quotes.
423         * doc/Makefile (INSTALL_PRELUDE): New macro.
424         (INSTALL): Use it.
425         (INSTALL.ISO, INSTALL.UTF-8): New rules.
426
427 2008-08-26  Bruno Haible  <bruno@clisp.org>
428
429         Run makeinfo in an English locale.
430         * doc/Makefile (MAKEINFO): New variable.
431
432 2008-08-26  Bruno Haible  <bruno@clisp.org>
433
434         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
435         Suggested by Eric Blake.
436
437 2008-08-25  Bruno Haible  <bruno@clisp.org>
438
439         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
440
441 2008-08-25  Eric Blake  <ebb9@byu.net>
442
443         c-stack: test that stack overflow can be caught
444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
445         that platform allows handling stack overflow; at least OS/2 EMX
446         has sigaltstack, but crashes before transferring control to
447         handler on stack overflow.
448         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
449         check for HAVE_STACK_OVERFLOW_HANDLING.
450         Reported by Elbert Pol.
451
452 2008-08-25  Bruno Haible  <bruno@clisp.org>
453
454         * doc/posix-functions/strftime.texi: Fix description of strftime
455         module.
456
457 2008-08-24  Bruno Haible  <bruno@clisp.org>
458
459         * tests/uniwidth/test-uc_width2.c: New file.
460         * tests/uniwidth/test-uc_width2.sh: New file.
461         * modules/uniwidth/width-tests (Files): Add the new files.
462         (TESTS): Add uniwidth/test-uc_width2.sh.
463         (TESTS_ENVIRONMENT): New variable.
464         (check_PROGRAMS): Add test-uc_width2.
465         (test_uc_width2_SOURCES): New variable.
466
467         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
468         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
469         not 0x00AB.
470         Reported by Alexander V. Lukyanov <lav@netis.ru>.
471
472 2008-08-22  Eric Blake  <ebb9@byu.net>
473
474         test-lock, test-tls: mention why a test is skipped
475         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
476         skipped.
477         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
478
479         count-one-bits: relax license
480         * modules/count-one-bits (License): Relicense to LGPLv2+.
481         Suggested by Ludovic Courtès, approved by Ben Pfaff.
482
483 2008-08-22  Andreas Schwab  <schwab@suse.de>
484
485         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
486         Remove spurious space in assignment.
487
488 2008-08-21  Simon Josefsson  <simon@josefsson.org>
489
490         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
491         Paul Eggert <eggert@CS.UCLA.EDU>.
492
493 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
494
495         * modules/gettext: Add m4/threadlib.m4.
496
497 2008-08-19  Eric Blake  <ebb9@byu.net>
498
499         test-c-stack: fix compilation failure on FreeBSD 5.0
500         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
501         headers before <sys/resource.h>.
502         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
503         the bug.
504         Reported by Nelson H. F. Beebe.
505
506         strverscmp: migrate from "strverscmp.h" to <string.h>
507         * modules/string (Makefile.am): Add new hooks.
508         * modules/strverscmp (Files): Remove strverscmp.h.
509         (Depends-on): Add string.
510         (configure.ac): Add indicator.
511         (Include): Mention new header.
512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
513         defaults.
514         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
515         results.
516         * lib/strverscmp.h: Delete.
517         * lib/string.in.h (strverscmp): Provide declaration, when needed.
518         * tests/test-strverscmp.c (includes): Adjust client.
519         * lib/check-version.c (includes): Likewise.
520         * NEWS: Document the change.
521
522         strverscmp: add unit test
523         * modules/strverscmp-tests: New file.
524         * tests/test-strverscmp.c: Likewise.
525
526 2008-08-19  Simon Josefsson  <simon@josefsson.org>
527
528         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
529         regarding Windows crypto stuff, from Mono.
530
531 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
532
533         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
534         if present, for intel RND.  Return error on failures.
535
536 2008-08-18  Ben Pfaff  <blp@gnu.org>
537
538         gitlog-to-changelog: give better diagnostic for failed pipe-open
539         * build-aux/gitlog-to-changelog: Improve error message: suggest
540         that the version of Git may be too old.
541
542 2008-08-18  Simon Josefsson  <simon@josefsson.org>
543
544         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
545         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
546
547 2008-08-18  Bruno Haible  <bruno@clisp.org>
548
549         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
550         pthread_in_use().
551
552 2008-08-18  Bruno Haible  <bruno@clisp.org>
553
554         * lib/glthread/threadlib.c: Include <pthread.h>.
555
556 2008-08-18  Bruno Haible  <bruno@clisp.org>
557
558         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
559         glthread_recursive_lock_* macros.
560         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
561         Fix syntax error.
562
563 2008-08-18  Bruno Haible  <bruno@clisp.org>
564
565         * lib/glthread/thread.c: Avoid forcing a context switch right after
566         thread creation.
567
568 2008-08-17  Bruno Haible  <bruno@clisp.org>
569
570         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
571         * lib/glthread/thread.h: Provide Win32 specific implementation.
572         * modules/thread (Files): Add lib/glthread/thread.c.
573         (Depends-on): Add lock.
574         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
575
576 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
577
578         New module 'yield'.
579         * modules/yield: New file.
580         * lib/glthread/yield.h: New file.
581         * m4/yield.m4: New file.
582         * MODULES.html.sh (Multithreading): Add yield.
583
584 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
585
586         New module 'thread'.
587         * modules/thread: New file.
588         * lib/glthread/thread.h: New file.
589         * m4/thread.m4: New file.
590         * MODULES.html.sh (Multithreading): Add thread.
591
592 2008-08-17  Bruno Haible  <bruno@clisp.org>
593
594         * lib/glthread/lock.h: Include <stdlib.h> always.
595         * lib/glthread/tls.h: Likewise.
596         * lib/glthread/cond.h: Likewise.
597
598 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
599
600         New module 'cond'.
601         * modules/cond: New file.
602         * lib/glthread/cond.h: New file.
603         * lib/glthread/cond.c: New file.
604         * m4/cond.m4: New file.
605         * MODULES.html.sh (Multithreading): Add cond.
606
607 2008-08-16  Eric Blake  <ebb9@byu.net>
608
609         c-stack: fix regression on Irix 5.3 from 2008-06-21
610         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
611         sa_sigaction...
612         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
613         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
614         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
615         * modules/signal (Makefile.am): Use the value.
616         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
617         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
618         * doc/posix-headers/signal.texi (signal.h): Document this
619         portability issue.
620         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
621         Reported by Tom G. Christensen.
622
623 2008-08-17  Bruno Haible  <bruno@clisp.org>
624
625         New module 'threadlib'.
626         * modules/threadlib: New file.
627         * lib/glthread/threadlib.c: New file, extracted from
628         lib/glthread/lock.c.
629         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
630         functions.
631         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
632         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
633         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
634         macros.
635         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
636         (gl_DISABLE_THREADS): Remove macro.
637         * modules/lock (Files): Remove build-aux/config.rpath.
638         (Depends-on): Remove havelib. Add threadlib.
639         (configure.ac-early): Remove section.
640         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
641         * modules/tls (Depends-on): Remove lock. Add threadlib.
642         (Link): New section, copied from threadlib.
643         * MODULES.html.sh (Multithreading): Add threadlib.
644
645 2008-08-14  Bruno Haible  <bruno@clisp.org>
646
647         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
648         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
649         glthread_rwlock_unlock, glthread_rwlock_destroy,
650         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
651         glthread_recursive_lock_destroy): Define as macros always.
652         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
653         glthread_lock_lock.
654         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
655         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
656         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
657         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
658         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
659         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
660         (glthread_recursive_lock_lock_func): Renamed from
661         glthread_recursive_lock_lock.
662         (glthread_recursive_lock_unlock_func): Renamed from
663         glthread_recursive_lock_unlock.
664         (glthread_recursive_lock_destroy_func): Renamed from
665         glthread_recursive_lock_destroy.
666
667 2008-08-14  Bruno Haible  <bruno@clisp.org>
668
669         * lib/glthread/lock.h: Renamed from lib/lock.h.
670         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
671         * lib/glthread/tls.h: Renamed from lib/tls.h.
672         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
673         * lib/fstrcmp.c: Update includes.
674         * lib/strsignal.c: Update includes.
675         * modules/lock (Files, Makefile.am): Update.
676         (Include): Change to "glthread/lock.h".
677         * modules/tls (Files, Makefile.am): Update.
678         (Include): Change to "glthread/tls.h".
679         * tests/test-lock.c: Update includes.
680         * tests/test-tls.c: Update includes.
681         * NEWS: Mention the renamed header files.
682
683 2008-08-11  Jim Meyering  <meyering@redhat.com>
684
685         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
686
687 2008-08-11  Eric Blake  <ebb9@byu.net>
688
689         test-c-stack: avoid C99-ism
690         * tests/test-c-stack.c (main): Fix whitespace, move declaration
691         before statement.
692         Reported by Alain Guibert.
693
694 2008-08-10  Jim Meyering  <meyering@redhat.com>
695
696         ensure that return value of uinttostr et al are not ignored
697         * lib/inttostr.h (__GNUC_PREREQ): Define.
698         (__attribute_warn_unused_result__): Define.
699         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
700
701 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
702
703         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
704         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
705
706 2008-08-07  Jim Meyering  <meyering@redhat.com>
707
708         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
709
710         * modules/mkstemp (License): Relicense under LGPLv2+.
711         * modules/tempname (License): Likewise.
712
713 2008-08-06  Bruno Haible  <bruno@clisp.org>
714
715         * lib/poll.c (poll): Further micro-optimization.
716
717 2008-08-06  Jim Meyering  <meyering@redhat.com>
718
719         inet_pton.c: use locale-independent tolower
720         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
721         (inet_pton6): Use c_tolower rather than tolower.
722         * modules/inet_pton (Depends-on): Add c-ctype.
723
724 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
725
726         * lib/poll.c (poll): Avoid division when timeout is 0, cache
727         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
728
729 2008-08-06  Jim Meyering  <meyering@redhat.com>
730
731         * modules/inet_pton (License): Relicense under LGPLv2+.
732
733 2008-08-03  Bruno Haible  <bruno@clisp.org>
734
735         Additional non-aborting API for lock and tls.
736         * lib/lock.h: Include <errno.h>.
737         (glthread_lock_init): New macro/function.
738         (gl_lock_init): Define as wrapper around glthread_lock_init.
739         (glthread_lock_lock): New macro/function.
740         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
741         (glthread_lock_unlock): New macro/function.
742         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
743         (glthread_lock_destroy): New macro/function.
744         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
745         (glthread_rwlock_init): New macro/function.
746         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
747         (glthread_rwlock_rdlock): New macro/function.
748         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
749         (glthread_rwlock_wrlock): New macro/function.
750         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
751         (glthread_rwlock_unlock): New macro/function.
752         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
753         (glthread_rwlock_destroy): New macro/function.
754         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
755         (glthread_recursive_lock_init): New macro/function.
756         (gl_recursive_lock_init): Define as wrapper around
757         glthread_recursive_lock_init.
758         (glthread_recursive_lock_lock): New macro/function.
759         (gl_recursive_lock_lock): Define as wrapper around
760         glthread_recursive_lock_lock.
761         (glthread_recursive_lock_unlock): New macro/function.
762         (gl_recursive_lock_unlock): Define as wrapper around
763         glthread_recursive_lock_unlock.
764         (glthread_recursive_lock_destroy): New macro/function.
765         (gl_recursive_lock_destroy): Define as wrapper around
766         glthread_recursive_lock_destroy.
767         (glthread_once): New macro/function.
768         (gl_once): Define as wrapper around glthread_once.
769         Update function declarations.
770         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
771         glthread_rwlock_init. Return error code.
772         (glthread_rwlock_rdlock_multithreaded): Renamed from
773         glthread_rwlock_rdlock. Return error code.
774         (glthread_rwlock_wrlock_multithreaded): Renamed from
775         glthread_rwlock_wrlock. Return error code.
776         (glthread_rwlock_unlock_multithreaded): Renamed from
777         glthread_rwlock_unlock. Return error code.
778         (glthread_rwlock_destroy_multithreaded): Renamed from
779         glthread_rwlock_destroy. Return error code.
780         (glthread_recursive_lock_init_multithreaded): Renamed from
781         glthread_recursive_lock_init. Return error code.
782         (glthread_recursive_lock_lock_multithreaded): Renamed from
783         glthread_recursive_lock_lock. Return error code.
784         (glthread_recursive_lock_unlock_multithreaded): Renamed from
785         glthread_recursive_lock_unlock. Return error code.
786         (glthread_recursive_lock_destroy_multithreaded): Renamed from
787         glthread_recursive_lock_destroy. Return error code.
788         (glthread_once_call): Make static.
789         (glthread_once_multithreaded): Renamed from glthread_once.
790         * lib/tls.h: Include <errno.h>.
791         (glthread_tls_key_init): New macro/function.
792         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
793         (glthread_tls_set): New macro/function.
794         (gl_tls_set): Define as wrapper around glthread_tls_set.
795         (glthread_tls_key_destroy): New macro/function.
796         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
797         Update function declarations.
798         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
799         glthread_tls_get.
800         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
801
802 2008-08-04  Eric Blake  <ebb9@byu.net>
803
804         gnumakefile: use space, not TAB, outside of targets
805         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
806
807 2008-08-02  Jim Meyering  <meyering@redhat.com>
808
809         getdate.y: avoid locale-dependent date parsing failure
810         In Turkish locales, getdate would fail to recognize keywords
811         containing a lowercase "i".  The solution is not to rely on
812         locale-sensitive case-conversion.
813         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
814         (lookup_word): Use c_toupper in place of toupper.
815         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
816         Reported by Vefa Bicakci <bicave@superonline.com> in
817         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
818         * modules/getdate (Depends-on): Add c-ctype.
819
820 2008-08-02  Bruno Haible  <bruno@clisp.org>
821
822         * gnulib-tool (func_import): When updating or creating a .gitignore
823         file, prepend each added line with a slash, and ignore leading slashes
824         from the existing lines.
825         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
826
827 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
828
829         Portability fix for GNU make 3.79.1.
830         * top/GNUmakefile: Avoid 'else COND', which older GNU make
831         versions do not understand.
832
833 2008-08-01  Bruno Haible  <bruno@clisp.org>
834
835         Work around bug of HP-UX 10.20 cc with -0.0 literal.
836         * tests/test-isnanf.h (zero): New variable.
837         (main): Avoid literal -0.0f.
838         * tests/test-isnand.h (zero): New variable.
839         (main): Avoid literal -0.0.
840         * tests/test-isnanl.h (zero): New variable.
841         (main): Avoid literal -0.0L.
842         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
843         (test_float, test_double, test_long_double): Avoid literals -0.0f,
844         -0.0, -0.0L.
845         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
846         (test_signbitd): Avoid literal -0.0.
847         (test_signbitl): Avoid literal -0.0L.
848         * tests/test-ceilf1.c (zero): New variable.
849         (main): Avoid literal -0.0f.
850         * tests/test-ceill.c (zero): New variable.
851         (main): Avoid literal -0.0L.
852         * tests/test-floorf1.c (zero): New variable.
853         (main): Avoid literal -0.0f.
854         * tests/test-floorl.c (zero): New variable.
855         (main): Avoid literal -0.0L.
856         * tests/test-roundf1.c (zero): New variable.
857         (main): Avoid literal -0.0f.
858         * tests/test-round1.c (zero): New variable.
859         (main): Avoid literal -0.0.
860         * tests/test-roundl.c (zero): New variable.
861         (main): Avoid literal -0.0L.
862         * tests/test-truncf1.c (zero): New variable.
863         (main): Avoid literal -0.0f.
864         * tests/test-trunc1.c (zero): New variable.
865         (main): Avoid literal -0.0.
866         * tests/test-truncl.c (zero): New variable.
867         (main): Avoid literal -0.0L.
868         * tests/test-frexp.c (zero): New variable.
869         (main): Avoid literal -0.0.
870         * tests/test-frexpl.c (zero): New variable.
871         (main): Avoid literal -0.0L.
872         * tests/test-ldexpl.c (zero): New variable.
873         (main): Avoid literal -0.0L.
874         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
875         (zerod, zerol): New variables.
876         (test_function): Avoid literals -0.0, -0.0L.
877         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
878         (zerod, zerol): New variables.
879         (test_function): Avoid literals -0.0, -0.0L.
880         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
881         (zerod, zerol): New variables.
882         (test_function): Avoid literals -0.0, -0.0L.
883         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
884         (zerod, zerol): New variables.
885         (test_function): Avoid literals -0.0, -0.0L.
886         * tests/test-strtod.c (zero): New variable.
887         (main): Avoid literal -0.0.
888         Reported by Jonathan C. Patschke <jp@centtech.com>.
889
890 2008-07-31  Jim Meyering  <meyering@redhat.com>
891
892         sha256.h: correct definition of SHA224_DIGEST_SIZE
893         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
894         Reported by Paulie Pena IV <paulie4@gmail.com>.
895         Define as 224 / 8, rather than as a literal.
896         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
897         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
898         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
899
900 2008-07-31  Bruno Haible  <bruno@clisp.org>
901
902         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
903         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
904         Reported by Jonathan Patschke <jp@centtech.com>.
905
906 2008-07-31  Bruno Haible  <bruno@clisp.org>
907
908         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
909         Reported by Paolo Bonzini <bonzini@gnu.org>.
910
911 2008-07-30  Eric Blake  <ebb9@byu.net>
912
913         test-strtod: allow compilation without -lm
914         * tests/test-strtod.c (main): Avoid link dependence on fabs.
915         Reported by Dennis Clarke <blastwave@gmail.com>.
916
917 2008-07-28  Jim Meyering  <meyering@redhat.com>
918
919         bootstrap: work also when there are no .po files in po/
920         * build-aux/bootstrap (update_po_files): Complete the change
921         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
922
923 2008-07-27  Jim Meyering  <meyering@redhat.com>
924
925         * users.txt: Add zile.
926
927 2008-07-26  Ben Pfaff  <blp@gnu.org>
928
929         Add missing dependencies on new m4/exponent[fdl].m4 files.
930         * modules/isnanf-nolibm: Add m4/exponentf.m4.
931         * modules/isnand-nolibm: Add m4/exponentd.m4.
932         * modules/isnanl-nolibm: Add m4/exponentl.m4.
933         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
934         m4/isnan[fdl].m4, because the macros actually used moved.
935         Reported by Jim Meyering.
936
937 2008-07-14  Ben Pfaff  <blp@gnu.org>
938
939         Add isinf module.
940         * lib/isinf.c: New file.
941         * lib/math.in.h: Define isinf macro if we have decided to replace
942         it.
943         * m4/isinf.m4: New file.
944         * m4/math_h.m4: Initialize and substitute variables for isinf
945         module.
946         * modules/isinf: New file.
947         * modules/isinf-tests: New file.
948         * modules/math: Add substitutions for new module.
949         * tests/test-isinf.c: New file.
950         * doc/posix-functions/isinf.texi: Mention new module.
951         * MODULES.html.sh: Mention new module.
952
953 2008-07-14  Ben Pfaff  <blp@gnu.org>
954
955         Factor out some macros for use by additional modules.
956         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
957         exponentf.m4.
958         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
959         exponentd.m4.
960         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
961         file exponentl.m4.
962         * m4/exponentf.m4: New file.
963         * m4/exponentd.m4: New file.
964         * m4/exponentl.m4: New file.
965         * modules/isnanf: Use new file m4/exponentf.m4.
966         * modules/isnand: Use new file m4/exponentd.m4.
967         * modules/isnanl: Use new file m4/exponentl.m4.
968
969 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
970
971         mktime.c: normalize tp->tm_isdst value to -1/0/1.
972         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
973         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
974         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
975
976         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
977         readlink on platforms without PATH_MAX.
978
979 2008-07-21  Eric Blake  <ebb9@byu.net>
980
981         Warn, not fail, on stale version.
982         * top/GNUmakefile (_curr-ver): Tone down previous patch.
983
984         Don't allow installation with stale devel version number.
985         * top/GNUmakefile (_is-install-target): New macro.
986         (_curr-ver): Forbid installation with stale version number.
987
988 2008-07-20  Bruno Haible  <bruno@clisp.org>
989
990         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
991         TESTS_ENVIRONMENT.
992         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
993
994 2008-07-20  Bruno Haible  <bruno@clisp.org>
995
996         * lib/c-stack.h (c_stack_action): Add documentation.
997         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
998
999 2008-07-20  Bruno Haible  <bruno@clisp.org>
1000
1001         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
1002         * modules/readlink (License): Likewise.
1003
1004 2008-07-17  Eric Blake  <ebb9@byu.net>
1005
1006         * modules/c-stack (Link): Fix typo.
1007
1008         Make c-stack use libsigsegv, when available.
1009         * modules/c-stack (Depends-on): Add libsigsegv.
1010         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
1011         needed.
1012         * lib/c-stack.c (SIGSTKSZ): Define fallback.
1013         (segv_handler, overflow_handler, c_stack_action)
1014         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
1015         implementation when libsigsegv is available, but only when using
1016         the library is necessary.
1017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
1018         comment, explaining why XSI check fails on Linux.
1019         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
1020         * tests/test-c-stack2.sh: Tweak skip message.
1021         * NEWS: Document new link-time requirements.
1022
1023 2008-07-16  Eric Blake  <ebb9@byu.net>
1024
1025         c-stack: Expose false positives when not using libsigsegv.
1026         * modules/c-stack-tests (Files): Expand test.
1027         * tests/test-c-stack.c (main): Add means to conditionally trigger
1028         non-overflow SIGSEGV.
1029         * tests/test-c-stack2.sh: New file.
1030
1031 2008-07-14  Bruno Haible  <bruno@clisp.org>
1032
1033         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
1034         Reported by Eric Blake.
1035
1036 2008-07-14  Sam Steingold  <sds@gnu.org>
1037             Bruno Haible  <bruno@clisp.org>
1038
1039         New module libsigsegv.
1040         * modules/libsigsegv: New file.
1041         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
1042         modifications.
1043         * MODULES.html.sh (Signal handling): New section.
1044
1045 2008-07-14  Bruno Haible  <bruno@clisp.org>
1046
1047         * modules/unictype/ctype-* (Description): Add the word "function".
1048         Improves the resulting doc in MODULES.html.
1049
1050 2008-07-12  Ben Pfaff  <blp@gnu.org>
1051
1052         Add longlong module.
1053         * modules/longlong: New file.
1054
1055 2008-07-12  Bruno Haible  <bruno@clisp.org>
1056
1057         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
1058         to empty.
1059
1060 2008-07-10  Ben Pfaff  <blp@gnu.org>
1061
1062         Add isnan module.
1063         * doc/posix-functions/isnan.texi: Mention new module.
1064         * lib/math.in.h: Define isnan macro if we have decided to replace
1065         it.
1066         * m4/isnan.m4: New file.
1067         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
1068         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
1069         also.
1070         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
1071         redundancy.
1072         * m4/math_h.m4: Initialize and substitute variables for isnan
1073         module.
1074         * modules/isnan: New file.
1075         * modules/isnan-tests: New file.
1076         * modules/math: Add substitutions for new module.
1077         * tests/test-isnan.c: New file.
1078         * MODULES.html.sh: Mention new module.
1079
1080 2008-07-10  Ben Pfaff  <blp@gnu.org>
1081
1082         Add isnanf module.
1083         * lib/isnanf.m4: New file.
1084         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
1085         (gl_HAVE_ISNANF_IN_LIBM): New macro.
1086         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
1087         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
1088         * modules/isnanf: New file.
1089         * modules/isnanf-tests: New file.
1090         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
1091         files.
1092         * tests/test-isnanf-nolibm.c: factored most of its contents into
1093         new file tests/test-isnanf.h.
1094         * tests/test-isnanf.h: New file.
1095         * tests/test-isnanf.c: New file.
1096         * MODULES.html.sh: Mention new module.
1097         * doc/glibc-functions/isnanf.texi: Mention new module.
1098
1099 2008-07-10  Ben Pfaff  <blp@gnu.org>
1100
1101         Add isnand module.
1102         * lib/isnand.h: New file.
1103         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
1104         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
1105         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
1106         functionality also.
1107         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
1108         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
1109         (gl_HAVE_ISNAND_IN_LIBM): New macro.
1110         * modules/isnand: New file.
1111         * modules/isnand-tests: New file.
1112         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
1113         files.
1114         * tests/test-isnand-nolibm.c: factored most of its contents into
1115         new file tests/test-isnand.h.
1116         * tests/test-isnand.h: New file.
1117         * tests/test-isnand.c: New file.
1118         * MODULES.html.sh: Mention new module.
1119
1120 2008-07-10  Ben Pfaff  <blp@gnu.org>
1121
1122         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
1123         * lib/isnand.h: Rename lib/isnand-nolibm.h.
1124         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
1125         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
1126         * modules/isnanf-nolibm: Update references to renamed files.
1127         * modules/isnand-nolibm: Likewise.
1128         * modules/isnanf-nolibm-tests: Likewise.
1129         * modules/isnand-nolibm-tests: Likewise.
1130         * lib/frexp.c: Likewise.
1131         * lib/isfinite.c: Likewise.
1132         * lib/signbitd.c: Likewise.
1133         * lib/signbitf.c: Likewise.
1134         * lib/vasnprintf.c: Likewise.
1135         * tests/test-ceilf1.c: Likewise.
1136         * tests/test-ceilf2.c: Likewise.
1137         * tests/test-floorf1.c: Likewise.
1138         * tests/test-floorf2.c: Likewise.
1139         * tests/test-frexp.c: Likewise.
1140         * tests/test-round1.c: Likewise.
1141         * tests/test-round2.c: Likewise.
1142         * tests/test-roundf1.c: Likewise.
1143         * tests/test-strtod.c: Likewise.
1144         * tests/test-trunc1.c: Likewise.
1145         * tests/test-trunc2.c: Likewise.
1146         * tests/test-truncf1.c: Likewise.
1147         * tests/test-truncf2.c: Likewise.
1148         * NEWS: Mention the renamed header files.
1149
1150 2008-07-11  Jim Meyering  <meyering@redhat.com>
1151
1152         vc-list-files: make the last-resort awk code more portable
1153         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
1154         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
1155         does not support it.
1156
1157 2008-07-10  Eric Blake  <ebb9@byu.net>
1158
1159         Work with tar's bootstrap.
1160         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
1161         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
1162         an m4 comment.
1163
1164 2008-07-09  Jim Meyering  <meyering@redhat.com>
1165
1166         posix-shell.m4: fix typo that made this test malfunction
1167         * m4/posix-shell.m4: Remove capitalization in variable name.
1168
1169 2008-07-08  Bruno Haible  <bruno@clisp.org>
1170
1171         * m4/onceonly.m4: Update comments.
1172         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1173
1174 2008-07-04  Jim Meyering  <meyering@redhat.com>
1175
1176         * users.txt: Add vc-dwim.
1177         (bison, coreutils): Use the gitweb URL.
1178
1179 2008-07-03  Jim Meyering  <meyering@redhat.com>
1180
1181         * users.txt: Add libffcall.  From Sam Steingold.
1182
1183 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
1184
1185         getdate.y: do not ignore TZ with relative day, month or year offset
1186         * lib/getdate.y (get_date): Move the tz-handling block to follow the
1187         relative-date-handling, since otherwise, the latter would clobber the
1188         sole output (an updated Start value) of the tz-handling block.
1189         * tests/test-getdate.c: Tests for the fix
1190
1191 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1192
1193         Recognize 'foo_LIBRARIES += libgnu.a'.
1194         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
1195         makefile snippet has already specified an installation location,
1196         also using '+='.
1197
1198 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
1199
1200         getdate.y: factor out common actions
1201         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
1202         Use them in place of open-coded actions.
1203
1204 2008-07-01  Simon Josefsson  <simon@josefsson.org>
1205
1206         Add self-test for getdate module.
1207         * modules/getdate-tests: New file.
1208         * tests/test-getdate.c: New file.
1209
1210 2008-06-29  Bruno Haible  <bruno@clisp.org>
1211
1212         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
1213         .gitignore.
1214         Reported by Sylvain Beucler <beuc@beuc.net>.
1215
1216 2008-06-29  Bruno Haible  <bruno@clisp.org>
1217
1218         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
1219         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
1220
1221 2008-06-29  Bruno Haible  <bruno@clisp.org>
1222
1223         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
1224         EXTRA_DIST.
1225         Reported by Sylvain Beucler <beuc@beuc.net>.
1226
1227 2008-06-26  Jim Meyering  <meyering@redhat.com>
1228
1229         make several modules depend on the "open" module
1230         This provides slightly increased consistency when opening-for-write
1231         the name of a non-directory spelled with a trailing slash.
1232         * modules/chdir-safer: Likewise.
1233         * modules/chown: Likewise.
1234         * modules/clean-temp: Likewise.
1235         * modules/copy-file: Likewise.
1236         * modules/fchdir: Likewise.
1237         * modules/fcntl-safer: Likewise.
1238         * modules/pipe: Likewise.
1239         * modules/utime: Likewise.
1240         Prompted by Eric Blake and Bruno Haible.
1241
1242 2008-06-24  Andreas Schwab  <schwab@suse.de>
1243
1244         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
1245         literals can be used as initializers for global variables.
1246
1247 2008-06-23  Eric Blake  <ebb9@byu.net>
1248
1249         Make gnulib-cache.m4 easier to diff.
1250         * gnulib-tool (func_import): Allow newlines when reading cached
1251         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
1252
1253 2008-06-23  Bruno Haible  <bruno@clisp.org>
1254
1255         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
1256         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
1257         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
1258         m4/signalblocking.m4.
1259         (gl_PREREQ_SIGACTION): Don't invoke it.
1260         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
1261         gl_PREREQ_SIG_HANDLER_H.
1262         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1263         Don't check for sigaction here.
1264
1265 2008-06-23  Bruno Haible  <bruno@clisp.org>
1266
1267         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
1268         (install_handlers): Don't set the SA_RESETHAND flag.
1269
1270 2008-06-23  Bruno Haible  <bruno@clisp.org>
1271
1272         * m4/sigaction.m4: Comment fixes.
1273         * lib/signal.in.h: Likewise.
1274
1275 2008-06-23  Eric Blake  <ebb9@byu.net>
1276
1277         Fix typo.
1278         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
1279
1280         Avoid SA_ namespace.
1281         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
1282         Reported by Ralf Wildenhues.
1283
1284         Avoid test failure due to SA_RESTORER.
1285         * tests/test-sigaction.c (SA_MASK): New macro.
1286         (main): Avoid failing due to extension flags being set.
1287         Reported by Jim Meyering.
1288
1289         Revert use of sig-handler.h in sigprocmask.c.
1290         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
1291         it requires the existence of struct sigaction.
1292         * lib/sigprocmask.c (handler_t): Restore typedef.
1293         (rpl_signal, old_handlers): Use local type.
1294
1295 2008-06-22  Bruno Haible  <bruno@clisp.org>
1296
1297         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
1298         conditionally.
1299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1300
1301 2008-06-22  Bruno Haible  <bruno@clisp.org>
1302
1303         * doc/posix-functions/siginterrupt.texi: Move note.
1304
1305         * lib/signal.in.h (SA_RESTART): New macro.
1306         * lib/sigaction.c: Update comment.
1307
1308         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
1309
1310         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
1311         (gl_PREREQ_SIGPROCMASK): Invoke it.
1312         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
1313
1314         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
1315
1316         * lib/sigprocmask.c: Update a comment.
1317
1318 2008-06-21  Eric Blake  <ebb9@byu.net>
1319
1320         Use sigaction module rather than signal().
1321         * modules/c-stack (Depends-on): Add sigaction.
1322         * modules/fatal-signal (Depends-on): Likewise.
1323         * modules/nanosleep (Depends-on): Likewise.
1324         * modules/sigprocmask (Files): Add sig-handler.h.
1325         * modules/sigaction (Files): Likewise.
1326         * lib/sig-handler.h (get_handler): New file, suggested by Paul
1327         Eggert.
1328         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
1329         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
1330         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
1331         (init_fatal_signals): Likewise.
1332         * lib/nanosleep.c (rpl_nanosleep): Likewise.
1333         (siginterrupt): Delete fallback.
1334         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
1335         instead.
1336         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
1337         siginterrupt.
1338
1339         New module sigaction, for mingw.
1340         * modules/sigaction: New module...
1341         * modules/sigaction-tests: ...and its test.
1342         * m4/sigaction.m4: New file.
1343         * lib/sigaction.c: Likewise.
1344         * tests/test-sigaction.c: Likewise.
1345         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
1346         * modules/signal (Makefile.am): Likewise.
1347         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
1348         needed.
1349         * doc/posix-headers/signal.texi (signal.h): Mention provided
1350         types.
1351         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
1352         that sigaction is preferable.
1353         * doc/posix-functions/sigaction.texi (sigaction): Mention new
1354         module.
1355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1356         sigaction.
1357
1358         Improve robustness of sigprocmask by overriding signal.
1359         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
1360         is in use.
1361         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
1362         (SIGKILL, SIGSTOP): Provide fallbacks.
1363         (rpl_signal): Implement.
1364         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
1365         signal can be called inside handlers.
1366
1367         Fix nanosleep module on mingw.
1368         * modules/nanosleep (Depends-on): Add sys_select.
1369         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
1370
1371         Fix licensing of sigprocmask.
1372         * modules/raise (License): Relicense as LGPL.
1373
1374 2008-06-21  Bruno Haible  <bruno@clisp.org>
1375
1376         * lib/propername.c (proper_name_utf8): Don't use the transliterated
1377         result if it contains question marks.
1378         Reported by Michael Geng <linux@michaelgeng.de>.
1379
1380 2008-06-19  Bruno Haible  <bruno@clisp.org>
1381
1382         Fix CVS-ism.
1383         * doc/gnulib.texi: Include updated-stamp.texi.
1384         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
1385         (updated-stamp.texi): New rule.
1386         (gnulib.info): Depend on it.
1387         * doc/.gitignore: Add updated-stamp.texi.
1388         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
1389
1390 2008-06-19  Bruno Haible  <bruno@clisp.org>
1391
1392         * doc/Makefile (gnulib.info): Update and simplify dependencies.
1393         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1394
1395 2008-06-19  Eric Blake  <ebb9@byu.net>
1396
1397         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
1398         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
1399         Reported by Stepan Kasal.
1400
1401 2008-06-18  Bruno Haible  <bruno@clisp.org>
1402
1403         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1404         Reported by Eric Blake.
1405
1406 2008-06-18  Eric Blake  <ebb9@byu.net>
1407
1408         Work around cygwin 1.5.25 strsignal bug.
1409         * tests/test-strsignal.c: Allow for const char *.
1410         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
1411
1412 2008-06-18  Simon Josefsson  <simon@josefsson.org>
1413
1414         * users.txt: Update URL to article and add author/date
1415         information.
1416
1417 2008-06-17  Bruno Haible  <bruno@clisp.org>
1418
1419         New macro gl_DISABLE_THREADS.
1420         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
1421         if the user did not pass --enable-threads or --disable-threads option.
1422         (gl_DISABLE_THREADS): New macro.
1423         Reported by Eric Blake <ebb9@byu.net>.
1424
1425 2008-06-17  Bruno Haible  <bruno@clisp.org>
1426
1427         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
1428         when the macro ignores it.
1429         Based on a patch by Eric Blake <ebb9@byu.net>.
1430
1431 2008-06-17  Bruno Haible  <bruno@clisp.org>
1432
1433         * modules/tls (License): Change to LGPLv2+.
1434         Reported by Eric Blake.
1435
1436 2008-06-17  Eric Blake  <ebb9@byu.net>
1437
1438         Simplify c-stack prerequisites.
1439         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
1440         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
1441         no longer requires <ucontext.h> to exist.  Optimize setrlimit
1442         check.
1443         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
1444         <sys/resource.h>.
1445
1446         Move c-stack test into testsuite.
1447         * modules/c-stack-tests: New file.
1448         * lib/c-stack.c [DEBUG]: Move test program...
1449         * tests/test-c-stack.c: ...into this new file.  Skip rather than
1450         fail test if sigaltstack is lacking.
1451         * tests/test-c-stack.sh: New driver file.
1452
1453 2008-06-16  Eric Blake  <ebb9@byu.net>
1454
1455         Use raise module consistently.
1456         * modules/fatal-signal (Depends-on): Add raise.
1457         * modules/sigprocmask (Depends-on): Likewise.
1458         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
1459         * lib/sigprocmask.c (sigprocmask): Likewise.
1460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
1461         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
1462
1463         Fix compliance bug in sigpending.
1464         * lib/sigprocmask.c (sigpending): Return pending array via
1465         parameter, not return value.
1466
1467 2008-06-14  Eric Blake  <ebb9@byu.net>
1468
1469         Improve obstack-printf test code.
1470         * tests/test-obstack-printf.c (test_function): Fix comment, and
1471         simplify usage of obstack_* in macros.  Add a test for coverage.
1472         Reported by Bruno Haible.
1473
1474 2008-06-14  Bruno Haible  <bruno@clisp.org>
1475
1476         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
1477         array size as a constant, not as a const variable.
1478         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
1479         AC_USE_SYSTEM_EXTENSIONS.
1480         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1481         Test whether the obstack_printf function actually exists.
1482         * modules/obstack-printf (Depends-on): Add extensions.
1483         (Include): Remove obstack.h.
1484         * modules/obstack-printf-posix (Depends-on): Add extensions.
1485         (Include): Remove obstack.h.
1486
1487 2008-06-13  Eric Blake  <ebb9@byu.net>
1488
1489         Add obstack-printf and obstack-printf-posix modules.
1490         * modules/obstack-printf: New file.
1491         * modules/obstack-printf-posix: Likewise.
1492         * MODULES.html.sh (Misc): Mention them.
1493         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
1494         Likewise.
1495         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
1496         Likewise.
1497         * modules/stdio (Makefile.am): Accomodate new modules.
1498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1499         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
1500         Declare.
1501         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
1502         functions.
1503         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
1504         (gl_REPLACE_OBSTACK_PRINTF): New macros
1505         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
1506         * tests/test-obstack-printf.c: New file.
1507         * modules/obstack-printf-tests: Likewise.
1508         * modules/obstack-printf-posix-tests: Likewise.
1509
1510 2008-06-11  Bruno Haible  <bruno@clisp.org>
1511
1512         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
1513         * lib/open.c: Include errno.h.
1514         (open): Fail when attempting to write to a file that has a trailing
1515         slash.
1516         * tests/test-open.c (main): Test against trailing slash bug.
1517         * doc/posix-functions/open.texi: Mention the trailing slash bug.
1518
1519 2008-06-10  Bruno Haible  <bruno@clisp.org>
1520
1521         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
1522         for $? to work inside the trap command, with various /bin/sh-s.
1523         * tests/test-vc-list-files-cvs.sh: Likewise.
1524
1525 2008-06-10  Bruno Haible  <bruno@clisp.org>
1526
1527         * lib/acl-internal.h: Don't include gettext.h here.
1528         * lib/set-mode-acl.c: Include gettext.h here.
1529         * lib/copy-acl.c: Likewise.
1530
1531 2008-06-10  Bruno Haible  <bruno@clisp.org>
1532
1533         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
1534         * lib/wait-process.c (wait_subprocess): Likewise.
1535         * lib/execute.h (execute): Add termsigp argument.
1536         * lib/execute.c (execute): Likewise.
1537         * lib/csharpcomp.c (compile_csharp_using_pnet,
1538         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
1539         * lib/csharpexec.c (execute_csharp_using_pnet,
1540         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
1541         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1542         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1543         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1544         is_jikes_present): Update.
1545         * lib/javaexec.c (execute_java_class): Update.
1546         * lib/javaversion.c (execute_and_read_line): Update.
1547         * NEWS: Document the changes.
1548         Reported by Eric Blake.
1549
1550 2008-06-10  Eric Blake  <ebb9@byu.net>
1551
1552         Add missing include.
1553         * tests/test-strstr.c (includes): Add <signal.h>.
1554         * tests/test-strcasestr.c (includes): Likewise.
1555         * tests/test-memmem.c (includes): Likewise.
1556
1557 2008-06-10  Bruno Haible  <bruno@clisp.org>
1558
1559         * lib/wait-process.c (wait_subprocess): Add an assertion.
1560
1561 2008-06-10  Bruno Haible  <bruno@clisp.org>
1562
1563         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
1564
1565 2008-06-10  Bruno Haible  <bruno@clisp.org>
1566
1567         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
1568         using alarm().
1569         * tests/test-strcasestr.c (main): Likewise.
1570         * tests/test-strstr.c (main): Likewise.
1571
1572 2008-06-09  Bruno Haible  <bruno@clisp.org>
1573
1574         Work around the Solaris 10 ACE ACLs ABI change.
1575         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
1576         declare if ACL_NO_TRIVIAL is present.
1577         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
1578         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
1579         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
1580         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
1581         define if ACL_NO_TRIVIAL is present.
1582         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
1583         and use the current ABI.
1584         (file_has_acl): Use same #if condition as elsewhere.
1585         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
1586         in use, and use the current ABI.
1587         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
1588         Reported by Jim Meyering.
1589
1590 2008-06-09  Eric Blake  <ebb9@byu.net>
1591
1592         Work around environments that (stupidly) ignore SIGALRM.
1593         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
1594         before using alarm().
1595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1596         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1597         Reported by Ian Beckwith <ianb@erislabs.net>.
1598
1599         Produce autobuild blurb earlier in log.
1600         * modules/autobuild (configure.ac-early): Move AB_INIT here.
1601
1602 2008-06-09  Jim Meyering  <meyering@redhat.com>
1603         and Ondřej Vašík  <ovasik@redhat.com>
1604
1605         utimens.c: correct kernel bug work-around
1606         Ondřej Vašík found that the invalid return value of 280 indicates
1607         failure, not success, and the kernel bug we're trying to work
1608         around affects not just the utimensat call, but also the fallback
1609         futimens call.
1610         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
1611         not success.
1612         [HAVE_FUTIMENS]: Use the same work-around, here.
1613
1614 2008-06-09  Jim Meyering  <meyering@redhat.com>
1615
1616         add more guards around definition of ACE_-related code
1617         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
1618         ALLOW and ACE_OWNER are also defined.
1619
1620 2008-06-08  Bruno Haible  <bruno@clisp.org>
1621
1622         * lib/acl-internal.h: Add me as co-author.
1623         * lib/file-has-acl.c: Likewise.
1624         * lib/set-mode-acl.c: Likewise.
1625         * lib/copy-acl.c: Likewise.
1626
1627 2008-06-08  Bruno Haible  <bruno@clisp.org>
1628
1629         Add support for AIX ACLs.
1630         * lib/acl-internal.h (acl_nontrivial): New declaration.
1631         * lib/file-has-acl.c (acl_nontrivial): New function.
1632         (file_has_acl): Add implementation using AIX 4 ACL API.
1633         * lib/set-mode-acl.c (qset_acl): Likewise.
1634         * lib/copy-acl.c (qcopy_acl): Likewise.
1635
1636 2008-06-08  Bruno Haible  <bruno@clisp.org>
1637
1638         Add support for HP-UX ACLs.
1639         * lib/acl-internal.h (acl_nontrivial): New declaration.
1640         * lib/file-has-acl.c (acl_nontrivial): New function.
1641         (file_has_acl): Add implementation using HP-UX 11 ACL API.
1642         * lib/set-mode-acl.c (qset_acl): Likewise.
1643         * lib/copy-acl.c (qcopy_acl): Likewise.
1644
1645 2008-06-08  Bruno Haible  <bruno@clisp.org>
1646
1647         Add support for Cygwin ACLs.
1648         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
1649         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
1650         the chmod_or_fchmod call.
1651         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
1652
1653 2008-06-08  Bruno Haible  <bruno@clisp.org>
1654
1655         Fix bug with setuid modes in Solaris 10+ code.
1656         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
1657         succeeded, when the mode contains some special bits.
1658
1659 2008-06-08  Bruno Haible  <bruno@clisp.org>
1660
1661         Add support for Solaris 7..10 ACLs.
1662         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
1663         declarations.
1664         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
1665         functions.
1666         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
1667         * lib/set-mode-acl.c (qset_acl): Likewise.
1668         * lib/copy-acl.c (qcopy_acl): Likewise.
1669
1670 2008-06-08  Bruno Haible  <bruno@clisp.org>
1671
1672         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
1673         declaration.
1674         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
1675         (acl_access_nontrivial): Remove MacOS X case.
1676         (file_has_acl): Use acl_extended_nontrivial.
1677         * lib/copy-acl.c (qcopy_acl): Likewise.
1678
1679 2008-06-08  Bruno Haible  <bruno@clisp.org>
1680
1681         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
1682
1683 2008-06-08  Jim Meyering  <meyering@redhat.com>
1684
1685         * modules/acl (Maintainer): Add Bruno Haible.
1686
1687 2008-06-07  Bruno Haible  <bruno@clisp.org>
1688
1689         Improve support for Tru64 ACLs.
1690         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
1691         ACL on OSF/1.
1692
1693 2008-06-07  Bruno Haible  <bruno@clisp.org>
1694
1695         Add support for MacOS X ACLs.
1696         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
1697         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
1698         * lib/set-mode-acl.c (qset_acl): Likewise.
1699         * lib/copy-acl.c (qcopy_acl): Likewise.
1700
1701 2008-06-07  Bruno Haible  <bruno@clisp.org>
1702
1703         Fix memory leak introduced on 2008-05-22.
1704         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
1705         use.
1706
1707 2008-06-07  Bruno Haible  <bruno@clisp.org>
1708
1709         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
1710         to construct an empty ACL.
1711
1712 2008-06-07  Bruno Haible  <bruno@clisp.org>
1713
1714         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
1715         precisely.
1716         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
1717
1718 2008-06-07  Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
1721         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
1722
1723 2008-06-07  Bruno Haible  <bruno@clisp.org>
1724
1725         * doc/posix-functions/_setjmp.texi: Explain the use of this function
1726         regardless of POSIX.
1727         * doc/posix-functions/_longjmp.texi: Likewise.
1728         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
1729         SystemV platform in this case.
1730
1731 2008-06-06  Eric Blake  <ebb9@byu.net>
1732
1733         Document abort() bugs.
1734         * doc/posix-functions/abort.texi (abort): Mention anomalies.
1735
1736         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
1737         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
1738         sigsetjmp.
1739         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
1740         siglongjmp, but only as a macro.
1741         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
1742         is obsolete.
1743         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
1744
1745         Tweak documentation to cover cygwin argz bugs.
1746         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
1747         argz bug fix; no code change needed since no cygwin releases
1748         occurred between the last fix and the bug being tested.
1749         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
1750         module and recently fixed cygwin bugs.
1751         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
1752         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
1753         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
1754         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
1755         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
1756         Likewise.
1757         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
1758         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
1759         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
1760         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
1761         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
1762         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
1763         Likewise.
1764
1765         Avoid gcc warning on cygwin.
1766         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
1767         !ACL_NO_TRIVIAL]: Avoid unused variable.
1768
1769 2008-06-05  Eric Blake  <ebb9@byu.net>
1770
1771         Be tolerant of UNKNOWN version in gnulib-tool test dir.
1772         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
1773         git-version-gen fails to come up with a version.
1774         Reported by Simon Josefsson.
1775
1776 2008-06-05  Jim Meyering  <meyering@redhat.com>
1777             Paul Eggert  <eggert@cs.ucla.edu>
1778
1779         utimens.c: work around a probable Linux kernel bug
1780         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
1781         appears to be a kernel bug that causes utimensat to return 280
1782         instead of 0, indicating success.
1783
1784 2008-06-04  Bruno Haible  <bruno@clisp.org>
1785
1786         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
1787         2008-06-01 commit.
1788
1789 2008-06-04  Bruno Haible  <bruno@clisp.org>
1790
1791         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
1792         * lib/file-has-acl.c (acl_access_nontrivial): New function.
1793         (file_has_acl): Use it. Save errno afterwards.
1794         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
1795
1796 2008-06-03  Bruno Haible  <bruno@clisp.org>
1797
1798         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
1799         draft code. Simplify #ifs.
1800         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
1801         Put Solaris code after POSIX-draft code. Fix comments regarding
1802         Solaris 10, HP-UX. Mention Cygwin.
1803         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
1804
1805 2008-06-03  Eric Blake  <ebb9@byu.net>
1806
1807         Provide fallback for older kernels.
1808         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
1809         Provide runtime fallback if kernel lacks support.
1810         Reported by Mike Frysinger.
1811
1812 2008-06-02  Bruno Haible  <bruno@clisp.org>
1813
1814         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
1815         it exists.
1816
1817 2008-06-02  Bruno Haible  <bruno@clisp.org>
1818
1819         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
1820         * lib/copy-acl.c (qcopy_acl): Update comment.
1821
1822 2008-06-02  Bruno Haible  <bruno@clisp.org>
1823
1824         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
1825         like ACL APIs.
1826
1827 2008-06-02  Bruno Haible  <bruno@clisp.org>
1828
1829         * tests/test-file-has-acl.sh: Use different code for Cygwin.
1830         * tests/test-set-mode-acl.sh: Likewise.
1831         * tests/test-copy-acl.sh: Likewise.
1832         * tests/test-copy-file.sh: Likewise.
1833
1834 2008-06-02  Bruno Haible  <bruno@clisp.org>
1835
1836         * tests/test-file-has-acl.sh: Remove unused code.
1837
1838 2008-06-01  Bruno Haible  <bruno@clisp.org>
1839
1840         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
1841         (copy_acl): Just a wrapper around qcopy_acl that emits the error
1842         messages.
1843         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
1844
1845 2008-06-01  Bruno Haible  <bruno@clisp.org>
1846
1847         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
1848         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
1849         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
1850         APIs.
1851         * modules/acl-tests (configure.ac): Remove tests now contained in
1852         m4/acl.m4.
1853
1854 2008-06-02  Jim Meyering  <meyering@redhat.com>
1855
1856         announce-gen: use a better key-server host name
1857         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
1858         it may be more consistently reliable.  Suggested by Werner Koch
1859         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
1860
1861 2008-06-01  Bruno Haible  <bruno@clisp.org>
1862
1863         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
1864         Reported by Voroskoi Andras <voroskoi@gmail.com>.
1865
1866 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
1867
1868         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
1869
1870 2008-06-01  Bruno Haible  <bruno@clisp.org>
1871
1872         New ACL tests.
1873         * tests/test-file-has-acl.sh: New file.
1874         * tests/test-file-has-acl.c: New file.
1875         * tests/test-set-mode-acl.sh: New file.
1876         * tests/test-set-mode-acl.c: New file.
1877         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
1878         * tests/test-copy-acl.c: New file.
1879         * modules/acl-tests: New file, based on modules/copy-file-tests.
1880         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
1881         (Depends-on): Add acl-tests.
1882         (configure.ac): Remove checks.
1883         (Makefile.am): Don't create test-sameacls program here any more.
1884
1885 2008-06-01  Bruno Haible  <bruno@clisp.org>
1886
1887         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
1888         * tests/test-sameacls.c: Include progname.h.
1889         (main): Invoke set_program_name. Portability fixes for MacOS X,
1890         Solaris, HP-UX.
1891
1892 2008-06-01  Bruno Haible  <bruno@clisp.org>
1893
1894         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
1895         function.
1896         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
1897
1898 2008-06-01  Bruno Haible  <bruno@clisp.org>
1899
1900         * modules/rpmatch (Depends-on): Add strdup.
1901
1902 2008-06-01  Bruno Haible  <bruno@clisp.org>
1903
1904         * lib/pipe.c: Include unistd-safer.h.
1905         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
1906         * modules/pipe (Depends-on): Add unistd-safer.
1907
1908 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1909
1910         * modules/autobuild (configure.ac): Call AB_INIT.
1911
1912 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1913
1914         * tests/test-getaddrinfo.c: Don't print debug messages by default.
1915         Suggested by Bruno Haible <bruno@clisp.org>.
1916
1917 2008-05-30  Simon Josefsson  <simon@josefsson.org>
1918
1919         * tests/test-base64.c: Cast size_t to unsigned long when invoking
1920         printf.  Use %lu instead of %d.  Reported by Bruno Haible
1921         <bruno@clisp.org>.
1922
1923 2008-05-29  Eric Blake  <ebb9@byu.net>
1924
1925         Prefer new POSIX 200x interfaces over futimesat.
1926         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
1927         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
1928         when available.
1929         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
1930
1931 2008-05-28  Bruno Haible  <bruno@clisp.org>
1932
1933         * modules/stpcpy (License): Change to LGPLv2+.
1934         Requested by David Lutterkort <dlutter@redhat.com>.
1935
1936 2008-05-27  Bruno Haible  <bruno@clisp.org>
1937
1938         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
1939         current mingw.
1940         Reported by Jose E. Marchesi <jemarch@gnu.org>.
1941
1942 2008-05-27  Bruno Haible  <bruno@clisp.org>
1943
1944         * modules/iconv_open (Link): New section, from module 'iconv'.
1945         * modules/striconv (Link): Likewise.
1946         * modules/striconveh (Link): Likewise.
1947         * modules/xstriconv (Link): Likewise.
1948         * modules/unicodeio (Link): Likewise.
1949         * modules/propername (Link): Likewise.
1950         Reported by Jim Meyering.
1951
1952 2008-05-26  Jim Meyering  <meyering@redhat.com>
1953
1954         sha256: do not artificially restrict buffer length to be < 2^32
1955         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
1956         uint32_t to size_t.
1957         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
1958         to match.
1959
1960         avoid unaligned access errors, e.g., on sparc
1961         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
1962         direct access through a possibly-unaligned uint64* pointer.
1963         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
1964         direct access through a possibly-unaligned uint32* pointer.
1965         Prompted by this patch from Tom "spot" Callaway:
1966         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
1967
1968         sha512.c: fix typo in comment
1969         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
1970
1971 2008-05-25  Bruno Haible  <bruno@clisp.org>
1972
1973         * lib/set-mode-acl.c: Renamed from lib/acl.c.
1974         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
1975         (Makefile.am): Update lib_SOURCES.
1976
1977 2008-05-25  Bruno Haible  <bruno@clisp.org>
1978
1979         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
1980
1981 2008-05-25  Jim Meyering  <meyering@redhat.com>
1982
1983         useless-if-before-free: freed expr may have white-space differences
1984         * build-aux/useless-if-before-free: Recognize cases in which the
1985         freed expression differs from the tested one in embedded white
1986         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
1987         $1 was used, so we can't make any regexp shy.  Improved tests now
1988         detect this.
1989
1990         useless-if-before-free: accept white space in the expression.
1991         * build-aux/useless-if-before-free: For now, any white space
1992         in the expression must be identical in the free argument.
1993
1994         useless-if-before-free: efficiency tweak
1995         * build-aux/useless-if-before-free: Make the expression-matching
1996         regexp "shy".
1997         Make the *outer* regexp shy, not the expr-matching one.
1998
1999         update code-in-comment to accept cast of free arg
2000         * build-aux/useless-if-before-free: Update regexp.
2001
2002 2008-05-25  Bruno Haible  <bruno@clisp.org>
2003
2004         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
2005         * modules/copy-file-tests (Files, Makefile.am): Update.
2006         * tests/test-copy-file.c (func_test_copy): Update.
2007
2008 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
2009
2010         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
2011
2012 2008-05-23  Bruno Haible  <bruno@clisp.org>
2013
2014         Improve support for ACLs on OSF/1.
2015         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
2016         Remove fallback for unknown flavors of ACLs.
2017
2018 2008-05-22  Bruno Haible  <bruno@clisp.org>
2019
2020         Add support for ACLs on OSF/1.
2021         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
2022         replacements.
2023         (acl_free_text): New macro fallback.
2024         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
2025         acl_free.
2026         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
2027         acl_free_text function. Require AC_C_INLINE.
2028
2029 2008-05-22  Bruno Haible  <bruno@clisp.org>
2030
2031         Make copy_acl work on MacOS X 10.5.
2032         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
2033         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
2034         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
2035         If MODE_INSIDE_ACL, don't assume that every system has the same text
2036         representation for ACLs as FreeBSD.
2037         * lib/copy-acl.c (copy_acl): Add support for platforms with
2038         !MODE_INSIDE_ACL.
2039         * lib/file-has-acl.c (file_has_acl): Likewise.
2040         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
2041         FreeBSD, MacOS X, or IRIX, respectively.
2042
2043 2008-05-22  Bruno Haible  <bruno@clisp.org>
2044
2045         * lib/acl.h: Don't include <sys/acl.h>.
2046         (GETACLCNT): Move fallback to lib/acl-internal.h.
2047         * lib/acl-internal.h: Include <sys/acl.h> here.
2048         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
2049
2050 2008-05-22  Bruno Haible  <bruno@clisp.org>
2051
2052         Split off copy_acl function to separate file.
2053         * lib/copy-acl.c: New file, extracted from lib/acl.c.
2054         * lib/acl.c (copy_acl): Moved function to separate file.
2055         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
2056         * modules/acl (Files): Add lib/copy-acl.c.
2057         (Makefiles.am): Augment lib_SOURCES.
2058
2059 2008-05-22  Bruno Haible  <bruno@clisp.org>
2060
2061         * modules/copy-file-tests: New file.
2062         * tests/test-copy-file.sh: New file.
2063         * tests/test-copy-file.c: New file.
2064         * tests/test-copy-file-sameacls.c: New file.
2065
2066 2008-05-22  Eric Blake  <ebb9@byu.net>
2067
2068         Avoid gcc warning.
2069         * tests/test-memcmp.c (main): Pass NULL indirectly.
2070
2071 2008-05-21  Bruno Haible  <bruno@clisp.org>
2072
2073         Add reference doc about ACLs.
2074         * doc/acl-resources.txt: New file.
2075         * doc/acl-cygwin.txt: New file.
2076
2077 2008-05-21  Bruno Haible  <bruno@clisp.org>
2078
2079         Avoid one more warning from gcc.
2080         * lib/vasnprintf.c (IF_LINT): Update comments.
2081         (VASNPRINTF): Use it also for the 'prefix' array initializer.
2082
2083 2008-05-21  Jim Meyering  <meyering@redhat.com>
2084
2085         avoid a warning from gcc
2086         * lib/vasnprintf.c (IF_LINT): Define.
2087         (scale10_round_decimal_long_double):
2088         Use it to avoid a "may be used uninitialized" warning.
2089         (scale10_round_decimal_double): Likewise.
2090
2091 2008-05-21  Simon Josefsson  <simon@josefsson.org>
2092
2093         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
2094         declared.
2095
2096 2008-05-20  Bruno Haible  <bruno@clisp.org>
2097
2098         * tests/test-memcmp.c (main): Test also the sign of the result. Test
2099         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
2100
2101 2008-05-20  Simon Josefsson  <simon@josefsson.org>
2102
2103         * modules/memcmp-tests: New file.
2104         * tests/test-memcmp.c: New file.
2105
2106 2008-05-19  Bruno Haible  <bruno@clisp.org>
2107
2108         * modules/propername (Notice, configure.ac): Put quoted "..." into
2109         --keyword option.
2110         * lib/propername.h: Update comments accordingly.
2111         Reported by Eric Blake.
2112
2113 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
2114
2115         * modules/getpass-gnu (Depends-on): Add fseeko.
2116
2117 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2118
2119         * modules/base64-tests: New file.
2120
2121 2008-05-19  Bo Borgerson <gigabo@gmail.com>
2122
2123         * lib/base64.c (base64_decode_ctx): If a decode context structure
2124         was passed in use it to ignore newlines.  If a context structure
2125         was _not_ passed in, continue to treat newlines as garbage (this
2126         is the historical behavior).  Formerly base64_decode.
2127         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2128         takes a decode context structure.
2129         * lib/base64.h (base64_decode): Macro for four-argument calls.
2130         (base64_decode_alloc): Likewise.
2131         * lib/base64.c (base64_decode_ctx): If a decode context structure
2132         was passed in use it to ignore newlines.  If a context structure
2133         was _not_ passed in, continue to treat newlines as garbage (this
2134         is the historical behavior).  Formerly base64_decode.
2135         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
2136         takes a decode context structure.
2137         * lib/base64.h (base64_decode): Macro for four-argument calls.
2138         (base64_decode_alloc): Likewise.
2139
2140 2008-05-19  Jim Meyering  <meyering@redhat.com>
2141
2142         avoid a warning from gcc
2143         * lib/trim.c (IF_LINT): Define.
2144         (trim2): Use it to avoid a "may be used uninitialized" warning.
2145
2146         Fix doc typo.
2147         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
2148
2149 2008-05-19  Bruno Haible  <bruno@clisp.org>
2150
2151         * doc/glibc-functions/getpass.texi: Document limits of other
2152         implementations.
2153
2154 2008-05-19  Simon Josefsson  <simon@josefsson.org>
2155             Bruno Haible <bruno@clisp.org>
2156
2157         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
2158
2159 2008-05-18  Bruno Haible  <bruno@clisp.org>
2160
2161         * modules/propername: New file, from GNU gettext.
2162         * lib/propername.h: New file, from GNU gettext.
2163         * lib/propername.c: New file, from GNU gettext.
2164         * MODULES.html.sh (Internationalization functions): Add propername.
2165
2166 2008-05-16  Jim Meyering  <meyering@redhat.com>
2167             Bruno Haible  <bruno@clisp.org>
2168
2169         Avoid some warnings from "gcc -Wshadow".
2170         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
2171
2172 2008-05-15  Eric Blake  <ebb9@byu.net>
2173
2174         Extend previous patch to cygwin 1.7.0.
2175         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
2176         fast implementation in cygwin >= 1.7.0.
2177         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2179
2180 2008-05-15  Bruno Haible  <bruno@clisp.org>
2181
2182         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
2183         implementation in glibc >= 2.9.
2184         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2186
2187 2008-05-15  Bruno Haible  <bruno@clisp.org>
2188
2189         * MODULES.html.sh (Internationalization functions): Remove linebreak.
2190         (Unicode string functions): Add unilbrk/*.
2191         Reported by Karl Berry.
2192
2193 2008-05-15  Eric Blake  <ebb9@byu.net>
2194
2195         Fix violation of <stdbool.h> replacement in regex.
2196         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
2197         * lib/regexec.c (re_search_internal): Likewise.
2198         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
2199
2200 2008-05-15  Jim Meyering  <meyering@redhat.com>
2201
2202         avoid distracting test output when git or cvs is not found
2203         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
2204         * tests/test-vc-list-files-git.sh: Likewise.
2205
2206 2008-05-15  Eric Blake  <ebb9@byu.net>
2207
2208         Glibc finally accepted the memmem speedup code, bugzilla #5514.
2209         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
2210         glibc version.
2211         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2212         * doc/posix-functions/strstr.texi (strstr): Likewise.
2213         * lib/str-two-way.h (MAX): Sychronize with glibc.
2214
2215 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
2216
2217         * lib/regcomp.c (optimize_utf8): Add a note on why we test
2218         opr.ctx_type.
2219         (calc_first): Initialize constraint field.
2220         (duplicate_node_closure): Use it instead of special casing ANCHORS.
2221         Fix grammar.
2222         (duplicate_node): Merge constraint field for all node types.
2223         (calc_eclosure_iter): Look at constraint field for all node types.
2224         * lib/regex_internal.c (create_cd_newstate): Don't look at
2225         opr.ctx_type.
2226
2227 2008-05-14  Bruno Haible  <bruno@clisp.org>
2228
2229         Help GCC to do better code generation.
2230         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
2231         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
2232         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
2233         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
2234         Declare with attribute 'malloc' if supported.
2235
2236 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
2237
2238         use "echo STR|wc -c" rather than unportable "expr length STR"
2239         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
2240         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
2241
2242 2008-05-14  Jim Meyering  <meyering@redhat.com>
2243
2244         use dd ibs=$n count=1 ... rather than less-portable head -c$n
2245         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
2246         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
2247         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
2248         via Collin Lasse.
2249
2250 2008-05-14  Eric Blake  <ebb9@byu.net>
2251
2252         Avoid quadratic growth in gl_LIBSOURCES.
2253         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
2254         Suggested by Bruno Haible.
2255
2256         Test xmemdup0.
2257         * modules/xmemdup0-tests: New file.
2258         * tests/test-xmemdup0.c: Likewise.
2259
2260 2008-05-13  Eric Blake  <ebb9@byu.net>
2261
2262         Split xmemdup0 into its own module.
2263         * modules/xmemdup0: New file.
2264         * lib/xmemdup0.h: Likewise.
2265         * lib/xmemdup0.c: Likewise.
2266         * MODULES.html.sh (Memory management functions): Add xmemdup0.
2267         * lib/xalloc.h (xmemdup0): Remove.
2268         * lib/xmalloc.c (xmemdup0): Likewise.
2269
2270 2008-05-13  Eric Blake  <ebb9@byu.net>
2271             Bruno Haible  <bruno@clisp.org>
2272
2273         Reduce number of forks required during autoconf.
2274         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
2275         and gl_LIBSOURCES_DIR.
2276         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
2277         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
2278         m4_syscmd per file.
2279         <m4_foreach_w>: Move...
2280         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
2281
2282 2008-05-13  Eric Blake  <ebb9@byu.net>
2283
2284         * gnulib-tool: Fix various comment typos.
2285
2286 2008-05-12  Bruno Haible  <bruno@clisp.org>
2287
2288         Tailor the linebreaking algorithm.
2289         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
2290
2291 2008-05-12  Bruno Haible  <bruno@clisp.org>
2292
2293         Update to Unicode 5.0.0.
2294         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2295         LBP_JV, LBP_JT. Redistribute values.
2296         (unilbrk_table): Change size.
2297         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
2298         Unicode TR#14 rev. 22.
2299         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
2300         LBP_JV, LBP_JT. Redistribute values.
2301         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
2302         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
2303         Update.
2304         * lib/unilbrk/lbrkprop1.h: Regenerated.
2305         * lib/unilbrk/lbrkprop2.h: Regenerated.
2306         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
2307         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
2308         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
2309         Likewise.
2310         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
2311         Likewise.
2312         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
2313         result.
2314         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
2315         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
2316         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
2317         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
2318         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
2319         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
2320
2321 2008-05-11  Bruno Haible  <bruno@clisp.org>
2322
2323         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
2324
2325 2008-05-11  Bruno Haible  <bruno@clisp.org>
2326
2327         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
2328         * modules/unilbrk/gen-lbrk: New file.
2329
2330 2008-05-11  Bruno Haible  <bruno@clisp.org>
2331
2332         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
2333         * m4/sha512.m4 (gl_SHA512): Likewise.
2334
2335 2008-05-11  Jim Meyering  <meyering@redhat.com>
2336
2337         New modules: crypto/sha256, crypto/sha512 (from coreutils)
2338         * modules/crypto/sha256: New file.
2339         * modules/crypto/sha512: Likewise.
2340         * lib/sha256.c: Likewise.
2341         * lib/sha256.h: Likewise.
2342         * lib/sha512.c: Likewise.
2343         * lib/sha512.h: Likewise.
2344         * lib/u64.h: Likewise.
2345         * m4/sha256.m4: Likewise.
2346         * m4/sha512.m4: Likewise.
2347         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
2348
2349 2008-05-10  Bruno Haible  <bruno@clisp.org>
2350
2351         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
2352         (Input/Output <stdio.h>): Add xprintf.
2353         (Signal handling <signal.h>): Add strsignal.
2354         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
2355         (Core language properties): Add func.
2356         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
2357         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
2358         strings.
2359         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
2360         (Input/output): New section.
2361         (File system functions): Add openat-die, stat-macros.
2362         (Networking functions): Add sockets.
2363         (Unicode string functions): Add unictype/*.
2364         (Support for building libraries and executables): Add gperf.
2365         (Support for building documentation): Add agpl-3.0.
2366         (Misc): Add nocrash.
2367
2368 2008-05-10  Bruno Haible  <bruno@clisp.org>
2369
2370         * modules/unictype/gen-ctype: New file.
2371
2372 2008-05-10  Jim Meyering  <meyering@redhat.com>
2373
2374         Make chdir-safer.c more efficient on a system with no symlinks.
2375         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
2376         also if ELOOP is zero.  Suggested by Bruno Haible.
2377
2378         Make chdir-safer.c slightly safer.
2379         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
2380         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
2381
2382         Avoid compile failure on systems without ELOOP (like mingw).
2383         * lib/chdir-safer.c (ELOOP): Define if not already defined.
2384         Reported by Bruno Haible.
2385
2386 2008-05-10  Bruno Haible  <bruno@clisp.org>
2387
2388         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
2389         (is_utf8_encoding): Use a case-insensitive comparison.
2390         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
2391         streq.
2392
2393 2008-05-10  Bruno Haible  <bruno@clisp.org>
2394
2395         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
2396         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
2397         * lib/unilbrk/ulc-common.h (iconv_string_length,
2398         iconv_string_keeping_offsets): Remove declarations.
2399         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
2400         Don't include <iconv.h>, streq.h, xsize.h.
2401         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
2402         conversion.
2403         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
2404         <iconv.h>, streq.h, xsize.h.
2405         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
2406         conversion.
2407         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
2408         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
2409         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
2410         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
2411
2412 2008-05-10  Bruno Haible  <bruno@clisp.org>
2413
2414         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
2415         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
2416
2417         * modules/unilbrk/u32-width-linebreaks-tests: New file.
2418         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
2419
2420         * modules/unilbrk/u16-width-linebreaks-tests: New file.
2421         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
2422
2423         * modules/unilbrk/u8-width-linebreaks-tests: New file.
2424         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
2425
2426         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
2427         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
2428
2429         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
2430         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
2431
2432         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
2433         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
2434
2435         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
2436         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
2437
2438 2008-05-10  Bruno Haible  <bruno@clisp.org>
2439
2440         Split up 'linebreak' module.
2441         * lib/unilbrk.h: New file, based on lib/linebreak.h.
2442         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
2443         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
2444         modifications.
2445         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
2446         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
2447         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
2448         lib/linebreak.c.
2449         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
2450         lib/linebreak.c.
2451         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
2452         lib/linebreak.c.
2453         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
2454         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
2455         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
2456         lib/linebreak.c.
2457         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
2458         lib/linebreak.c.
2459         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
2460         lib/linebreak.c.
2461         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
2462         lib/linebreak.c.
2463         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
2464         lib/linebreak.c.
2465         * modules/unilbrk/base: New file.
2466         * modules/unilbrk/tables: New file.
2467         * modules/unilbrk/u8-possible-linebreaks: New file.
2468         * modules/unilbrk/u16-possible-linebreaks: New file.
2469         * modules/unilbrk/u32-possible-linebreaks: New file.
2470         * modules/unilbrk/ulc-common: New file.
2471         * modules/unilbrk/ulc-possible-linebreaks: New file.
2472         * modules/unilbrk/u8-width-linebreaks: New file.
2473         * modules/unilbrk/u16-width-linebreaks: New file.
2474         * modules/unilbrk/u32-width-linebreaks: New file.
2475         * modules/unilbrk/ulc-width-linebreaks: New file.
2476         * lib/linebreak.h: Remove file.
2477         * lib/linebreak.c: Remove file.
2478         * m4/linebreak.m4: Remove file.
2479         * modules/linebreak: Remove file.
2480         * NEWS: Mention the changes.
2481
2482 2008-05-09  Eric Blake  <ebb9@byu.net>
2483
2484         Add xmemdup0.
2485         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
2486         implementation.
2487         * lib/xmalloc.c (xmemdup0): New C implementation.
2488
2489 2008-05-08  Bruno Haible  <bruno@clisp.org>
2490
2491         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
2492
2493 2008-05-07  Eric Blake  <ebb9@byu.net>
2494
2495         Support cross-compilation of <wctype.h>.
2496         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
2497         AC_CACHE_CHECK.
2498
2499 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
2500
2501         * build-aux/vc-list-files: Add support for bzr.
2502
2503 2008-05-03  Jim Meyering  <meyering@redhat.com>
2504
2505         avoid failed assertion with tight malloc
2506         * tests/test-getndelim2.c: Correct an off-by-one assertion.
2507
2508 2008-05-03  Simon Josefsson  <simon@josefsson.org>
2509
2510         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
2511         are needed from arpa/inet.h.
2512         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
2513         Reported by Bruno Haible.
2514
2515 2008-05-02  Jim Meyering  <meyering@redhat.com>
2516
2517         avoid compilation error on FreeBSD 6
2518         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
2519
2520 2008-05-01  Jim Meyering  <meyering@redhat.com>
2521
2522         useless-if-before-free: correct --help's exit status description
2523         * build-aux/useless-if-before-free (usage): Like grep, exit 0
2524         for one or more matches, etc.  Reported by Bruno Haible.
2525
2526         vc-list-files: make the stand-alone gnulib test work
2527         * modules/vc-list-files-tests (configure.ac):
2528         Define and AC_SUBST abs_aux_dir.
2529         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
2530         $(abs_top_srcdir) to each script and having each of them
2531         duplicate the work of setting PATH, set PATH here, using
2532         the new variable, abs_aux_dir instead.
2533         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
2534         * tests/test-vc-list-files-git.sh: Likewise.
2535         Reported by Bruno Haible.
2536
2537 2008-05-01  Bruno Haible  <bruno@clisp.org>
2538
2539         * lib/getndelim2.c (getndelim2): Fix newsize computation during
2540         reallocation. Rename 'done' to 'found_delimiter'.
2541
2542 2008-05-01  Jim Meyering  <meyering@redhat.com>
2543
2544         vc-list-files: accommodate /bin/sh like the one from Solaris 10
2545         * build-aux/vc-list-files: Use `...`, not $(...).
2546
2547 2008-04-30  Jim Meyering  <meyering@redhat.com>
2548
2549         add tests for vc-list-files
2550         * modules/vc-list-files-tests: New module.
2551         * tests/test-vc-list-files-cvs.sh: New file.
2552         * tests/test-vc-list-files-git.sh: New file.
2553
2554         avoid a warning from gcc
2555         * lib/getndelim2.c (IF_LINT): Define.
2556         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
2557
2558         vc-list-files: work properly with build-aux/cvsu, too
2559         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
2560         to all cvs-based clauses.
2561
2562         vc-list-files: work properly in the CVS+awk case, too
2563         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
2564
2565         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
2566         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
2567         take more than one file argument, so .  Add quotes, just in case $dir
2568         ever contains a shell meta-character.  Prompted by Soren Hansen in
2569         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
2570
2571 2008-04-29  Eric Blake  <ebb9@byu.net>
2572
2573         Optimize getndelim2 to use block operations when possible.
2574         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
2575         freadseek, and memchr2.
2576         * lib/getndelim2.c (getndelim2): Use them for block reads.
2577
2578 2008-04-29  Bruno Haible  <bruno@clisp.org>
2579
2580         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
2581         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2582         * modules/inet_ntop (Depends-on): Add extensions.
2583         * modules/inet_pton (Depends-on): Likewise.
2584         Reported by Simon Josefsson.
2585
2586 2008-04-29  Jim Meyering  <meyering@redhat.com>
2587
2588         When the is more than one match in a block, match all of them.
2589         * build-aux/useless-if-before-free: Iterate through each block
2590         until there are no more matches.
2591
2592         Fix broken useless-if-before-free script.
2593         * build-aux/useless-if-before-free: Fix typo: missing "?" after
2594         the expression to match cast of argument to free-like function.
2595
2596 2008-04-29  Eric Blake  <ebb9@byu.net>
2597
2598         Use new header.
2599         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
2600
2601 2008-04-29  Jim Meyering  <meyering@redhat.com>
2602
2603         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
2604         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
2605         by gnulib to exist and to declare e.g., inet_ntop.
2606         Don't include "inet_ntop.h", now removed.
2607
2608         * m4/arpa_inet_h.m4: Remove trailing blanks.
2609
2610 2008-04-29  Eric Blake  <ebb9@byu.net>
2611
2612         Silence valgrind on safe reads beyond potential array bounds.
2613         * lib/rawmemchr.valgrind: New file.
2614         * lib/strchrnul.valgrind: Likewise.
2615         * modules/rawmemchr (Files): Distribute new file.
2616         * modules/strchrnul (Files): Likewise.
2617         Suggested by Bruno Haible.
2618
2619 2008-04-29  Bruno Haible  <bruno@clisp.org>
2620
2621         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
2622         (inet_ntop, inet_pton): Change portability warning's wording.
2623         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
2624         Invoke gl_CHECK_NEXT_HEADERS.
2625         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
2626         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
2627         set ARPA_INET_H.
2628         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2629         * modules/arpa_inet (Description): No longer only for systems that
2630         lack it.
2631         (Depends-on): Add include_next.
2632         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
2633         HAVE_ARPA_INET_H.
2634
2635 2008-04-29  Jim Meyering  <meyering@redhat.com>
2636
2637         * modules/mkdir (License): Re-license as LGPLv2+.
2638
2639 2008-04-29  Bruno Haible  <bruno@clisp.org>
2640
2641         * modules/rawmemchr (Maintainer): Set to Eric.
2642         * modules/strchrnul (Maintainer): Likewise.
2643
2644 2008-04-29  Simon Josefsson  <simon@josefsson.org>
2645
2646         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
2647         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
2648
2649         * modules/arpa_inet (arpa/inet.h): Use them.
2650
2651 2008-04-28  Eric Blake  <ebb9@byu.net>
2652
2653         Test getndelim2.
2654         * modules/getndelim2-tests: New file.
2655         * tests/test-getndelim2.c: Likewise.
2656         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
2657         stream.
2658         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
2659
2660         * MODULES.html.sh: Document new module.
2661
2662 2008-04-20  Bruno Haible  <bruno@clisp.org>
2663
2664         * lib/c-stack.c (die): Use raise.
2665         * modules/c-stack (Depends-on): Add raise.
2666
2667 2008-04-28  Bruno Haible  <bruno@clisp.org>
2668
2669         Expect rpmatch to be declared.
2670         * lib/yesno.c (rpmatch): Remove declaration.
2671
2672         Declare rpmatch.
2673         * lib/stdlib.in.h (rpmatch): New declaration.
2674         * lib/rpmatch.c: Include <stdlib.h> first.
2675         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
2676         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
2677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
2678         HAVE_RPMATCH.
2679         * modules/rpmatch (Depends-on): Add stdlib, extensions.
2680         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
2681         (Include): Set to <stdlib.h>.
2682         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
2683         HAVE_RPMATCH.
2684         * NEWS: Document the change.
2685
2686 2008-04-28  Bruno Haible  <bruno@clisp.org>
2687
2688         Change rpmatch to use nl_langinfo when appropriate.
2689         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
2690         (N_): New macro.
2691         (localized_pattern): New function/macro.
2692         (try): Remove match, nomatch arguments. Copy the pattern into safe
2693         memory before caching it.
2694         (rpmatch): Use localized_pattern. Add translator comments.
2695         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
2696         Suggested by Eric Blake.
2697         * modules/rpmatch (Depends-on): Add stdbool.
2698
2699 2008-04-28  Eric Blake  <ebb9@byu.net>
2700
2701         Add rawmemchr module, matching glibc.
2702         * modules/string (Makefile.am): New indicator.
2703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
2704         * lib/string.in.h (rawmemchr): Declare when appropriate.
2705         * modules/rawmemchr: New file.
2706         * m4/rawmemchr.m4: Likewise.
2707         * lib/rawmemchr.c: Likewise.
2708         * modules/rawmemchr-tests: Likewise.
2709         * tests/test-rawmemchr.c: Likewise.
2710         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
2711         module.
2712         * modules/strchrnul (Depends-on): Add rawmemchr.
2713         * lib/strchrnul.c (strchrnul): Optimize a corner case.
2714
2715         Whitespace cleanup.
2716         * tests/test-strchrnul.c: Reindent.
2717         * lib/strchrnul.c: Likewise.
2718
2719         Optimize and test strchrnul.
2720         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
2721         * modules/strchrnul-tests: New file.
2722         * tests/test-strchrnul.c: Likewise.
2723
2724         Remove intprops dependency.
2725         * modules/memchr (Depends-on): Remove intprops.
2726         * modules/memrchr (Depends-on): Likewise.
2727         * modules/memchr2 (Depends-on): Likewise.
2728         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
2729         * lib/memrchr.c (__memrchr): Likewise.
2730         * lib/memrchr2.c (memchr2): Likewise.
2731         Reported by Simon Josefsson.
2732
2733 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2734
2735         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
2736         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2737
2738 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2739
2740         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
2741
2742         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
2743
2744         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
2745
2746         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
2747         declarations.
2748         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
2749
2750         * m4/inet_pton.m4: Don't check for header files.
2751
2752         * m4/inet_ntop.m4: Don't check for header files.
2753
2754 2008-04-28  Simon Josefsson  <simon@josefsson.org>
2755
2756         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
2757         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
2758         trigger for cygwin).
2759         Reported by Bruno Haible  <bruno@clisp.org>.
2760
2761 2008-04-28  Bruno Haible  <bruno@clisp.org>
2762
2763         * doc/posix-functions/strdup.texi: Mention mingw problem.
2764
2765 2008-04-27  Bruno Haible  <bruno@clisp.org>
2766
2767         * modules/stat-time-tests (Depends-on): Add sleep.
2768         * tests/test-stat-time.c (force_unlink): New function.
2769         (cleanup): Use it.
2770         (test_mtime): Remove the ctime related tests.
2771         (test_ctime): New function, containing the ctime related tests.
2772         (main): Call test_ctime, except on native Windows platforms.
2773
2774 2008-04-27  Bruno Haible  <bruno@clisp.org>
2775
2776         * lib/rpmatch.c (rpmatch): Add some comments.
2777         Reported by James Youngman <jay@gnu.org>.
2778
2779 2008-04-27  Bruno Haible  <bruno@clisp.org>
2780
2781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
2782         quiet NaNs.
2783
2784 2008-04-27  Bruno Haible  <bruno@clisp.org>
2785
2786         Make test-yesno.sh work on mingw.
2787         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
2788         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
2789         (main): Set stdin to binary mode.
2790         * modules/yesno-tests (Depends-on): Add binary-io.
2791
2792 2008-04-27  Bruno Haible  <bruno@clisp.org>
2793
2794         Fix 'isfinite' on x86, x86_64, ia64 platforms.
2795         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
2796         argument that lie outside the IEEE 854 domain.
2797         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
2798         (gl_ISFINITE): Use it.
2799         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
2800
2801 2008-04-27  Bruno Haible  <bruno@clisp.org>
2802
2803         Allow local renaming in config.h.
2804         * lib/memrchr.c (memrchr): Don't undefine outside libc.
2805
2806 2008-04-27  Bruno Haible  <bruno@clisp.org>
2807
2808         * lib/memchr.c (__memchr): Change type of 'i'.
2809         * lib/memchr2.c (memchr2): Likewise.
2810
2811 2008-04-26  Eric Blake  <ebb9@byu.net>
2812         and Bruno Haible  <bruno@clisp.org>
2813
2814         Optimize and test memrchr.
2815         * modules/memrchr (Depends-on): Add intprops.
2816         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
2817         * modules/memrchr-tests: New file.
2818         * tests/test-memrchr.c: New file.
2819
2820 2008-04-26  Bruno Haible  <bruno@clisp.org>
2821
2822         Add tentative support for DragonFly BSD.
2823         * lib/stdio-impl.h: Add macros for DragonFly BSD.
2824         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
2825         fp.
2826         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2827         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
2828         * lib/fpurge.c (fpurge): Likewise.
2829         * lib/freadable.c (freaadable): Likewise.
2830         * lib/freadahead.c (freadahead): Likewise.
2831         * lib/freading.c (freading): Likewise.
2832         * lib/freadptr.c (freadptr): Likewise.
2833         * lib/freadseek.c (freadptrinc): Likewise.
2834         * lib/fseeko.c (fseeko): Likewise.
2835         * lib/fseterr.c (fseterr): Likewise.
2836         * lib/fwritable.c (fwritable): Likewise.
2837         * lib/fwriting.c (fwriting): Likewise.
2838
2839 2008-04-26  Bruno Haible  <bruno@clisp.org>
2840
2841         * lib/stdio-impl.h: New file.
2842         * lib/fbufmode.c: Include stdio-impl.h.
2843         (fbufmode): Use fp_, remove redundant #defines.
2844         * lib/fflush.c: Include stdio-impl.h.
2845         (clear_ungetc_buffer): Remove redundant #defines.
2846         * lib/fpurge.c: Include stdio-impl.h.
2847         (fpurge): Remove redundant #defines.
2848         * lib/freadable.c: Include stdio-impl.h.
2849         (freadable): Remove redundant #defines.
2850         * lib/freadahead.c: Include stdio-impl.h.
2851         (freadahead): Remove redundant #defines.
2852         * lib/freading.c: Include stdio-impl.h.
2853         (freading): Remove redundant #defines.
2854         * lib/freadptr.c: Include stdio-impl.h.
2855         (freadptr): Remove redundant #defines.
2856         * lib/freadseek.c: Include stdio-impl.h.
2857         (freadptrinc): Remove redundant #defines.
2858         * lib/fseeko.c: Include stdio-impl.h.
2859         (rpl_fseeko): Remove redundant #defines.
2860         * lib/fseterr.c: Include stdio-impl.h.
2861         (fseterr): Remove redundant #defines.
2862         * lib/fwritable.c: Include stdio-impl.h.
2863         (fwritable: Remove redundant #defines.
2864         * lib/fwriting.c: Include stdio-impl.h.
2865         (fwriting): Remove redundant #defines.
2866         * modules/fbufmode (Files): Add lib/stdio-impl.h.
2867         * modules/fflush (Files): Likewise.
2868         * modules/fpurge (Files): Likewise.
2869         * modules/freadable (Files): Likewise.
2870         * modules/freadahead (Files): Likewise.
2871         * modules/freading (Files): Likewise.
2872         * modules/freadptr (Files): Likewise.
2873         * modules/freadseek (Files): Likewise.
2874         * modules/fseeko (Files): Likewise.
2875         * modules/fseterr (Files): Likewise.
2876         * modules/fwritable (Files): Likewise.
2877         * modules/fwriting (Files): Likewise.
2878
2879 2008-04-26  Bruno Haible  <bruno@clisp.org>
2880
2881         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
2882         restore_seek_optimization, update_fpos_cache): New functions, extracted
2883         from rpl_fflush.
2884         (rpl_fflush): Use them.
2885         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
2886         (gl_REPLACE_FFLUSH): Use it.
2887
2888 2008-04-26  Bruno Haible  <bruno@clisp.org>
2889
2890         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
2891         on Solaris.
2892         * tests/test-xstrtoimax.sh: Likewise.
2893         * tests/test-xstrtoumax.sh: Likewise.
2894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2895
2896 2008-04-26  Bruno Haible  <bruno@clisp.org>
2897
2898         * modules/memchr-tests: New file.
2899         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
2900
2901 2008-04-26  Eric Blake  <ebb9@byu.net>
2902             Bruno Haible  <bruno@clisp.org>
2903
2904         * lib/memchr.c: Include intprops.h.
2905         (__memchr): Optimize parallel detection of matching bytes. Rename local
2906         variables. Add explanatory comments.
2907
2908 2008-04-26  Bruno Haible  <bruno@clisp.org>
2909
2910         Fix module 'memchr', broken since 2000-10-28.
2911         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
2912
2913 2008-04-26  Bruno Haible  <bruno@clisp.org>
2914
2915         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
2916         comments.
2917
2918 2008-04-25  Eric Blake  <ebb9@byu.net>
2919
2920         Use native fstatat on cygwin 1.7.0.
2921         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
2922         first.
2923
2924 2008-04-23  Eric Blake  <ebb9@byu.net>
2925
2926         Improve memchr2 performance.
2927         * lib/memchr2.c (memchr2): Further optimize parallel detection of
2928         NUL bytes.
2929         * modules/memchr2 (Depends-on): Use intprops.h.
2930
2931 2008-04-23  Simon Josefsson  <simon@josefsson.org>
2932
2933         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
2934         an inline function instead of a CPP macro.  Patch by Ben Pfaff
2935         <blp@cs.stanford.edu>.
2936
2937 2008-04-23  Simon Josefsson  <simon@josefsson.org>
2938
2939         * lib/arpa_inet.in.h: New file.
2940
2941         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
2942         (Makefile.am): Sed in substitute header file.
2943
2944         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
2945         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
2946
2947         * modules/inet_ntop (configure.ac): Use
2948         gl_ARPA_INET_MODULE_INDICATOR.
2949
2950         * modules/inet_pton (configure.ac): Use
2951         gl_ARPA_INET_MODULE_INDICATOR.
2952
2953 2008-04-22  Jim Meyering  <meyering@redhat.com>
2954
2955         * modules/verify (License): Re-license as LGPLv2+.
2956
2957 2008-04-22  Simon Josefsson  <simon@josefsson.org>
2958
2959         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
2960         parameter to void* as per POSIX standard (MinGW uses char*).
2961
2962 2008-04-21  Bruno Haible  <bruno@clisp.org>
2963
2964         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2965         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
2966         Define to replacements if REPLACE_ISWCNTRL is 1.
2967         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
2968         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
2969         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
2970         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
2971         what it fixes.
2972         * doc/posix-functions/iswalpha.texi: Likewise.
2973         * doc/posix-functions/iswblank.texi: Likewise.
2974         * doc/posix-functions/iswcntrl.texi: Likewise.
2975         * doc/posix-functions/iswdigit.texi: Likewise.
2976         * doc/posix-functions/iswgraph.texi: Likewise.
2977         * doc/posix-functions/iswlower.texi: Likewise.
2978         * doc/posix-functions/iswprint.texi: Likewise.
2979         * doc/posix-functions/iswpunct.texi: Likewise.
2980         * doc/posix-functions/iswspace.texi: Likewise.
2981         * doc/posix-functions/iswupper.texi: Likewise.
2982         * doc/posix-functions/iswxdigit.texi: Likewise.
2983         Reported by Alain Guibert.
2984
2985 2008-04-21  Bruno Haible  <bruno@clisp.org>
2986
2987         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
2988         Patch by Alain Guibert.
2989
2990 2008-04-21  Bruno Haible  <bruno@clisp.org>
2991
2992         Fix test failures on mingw.
2993         * tests/test-xstrtol.c (print_no_progname): New function.
2994         (main): Install it in error_print_progname hook.
2995         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
2996         * tests/test-xstrtoimax.sh: Likewise.
2997         * tests/test-xstrtoumax.sh: Likewise.
2998
2999 2008-04-21  Bruno Haible  <bruno@clisp.org>
3000
3001         Fix test failure on mingw.
3002         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
3003
3004 2008-04-21  Bruno Haible  <bruno@clisp.org>
3005
3006         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
3007         Actually assign a value.
3008
3009 2008-04-20  Bruno Haible  <bruno@clisp.org>
3010
3011         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
3012         take 2.
3013         * lib/canonicalize.c (canonicalize_file_name): Elide if the
3014         'canonicalize-lgpl' module is also used.
3015         * lib/canonicalize-lgpl.c: Undo last change.
3016         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
3017
3018 2008-04-20  Bruno Haible  <bruno@clisp.org>
3019
3020         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
3021         config.h. Provide _mkdir based fallback for mingw.
3022         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
3023         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
3024         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
3025         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
3026         rather than defining mkdir in config.h.
3027         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
3028         (gl_SYS_STAT_H_DEFAULTS): New macro.
3029         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
3030         HAVE_IO_H any more.
3031         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
3032         HAVE_DECL_MKDIR and HAVE_IO_H.
3033
3034 2008-04-20  Bruno Haible  <bruno@clisp.org>
3035
3036         * lib/isapipe.c: Port to native Windows platforms.
3037
3038 2008-04-20  Bruno Haible  <bruno@clisp.org>
3039
3040         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
3041
3042 2008-04-21  Eric Blake  <ebb9@byu.net>
3043
3044         Work around preprocessors that don't handle UINTMAX_MAX.
3045         * lib/memchr2.c (memchr2): Avoid embedded #if.
3046         Reported by Alain Guibert, fix suggested by Bruno Haible.
3047
3048 2008-04-21  Simon Josefsson  <simon@josefsson.org>
3049
3050         * doc/posix-functions/strftime.texi (strftime): Explain better
3051         Windows incompatibility.  Suggested by Micah Cowan
3052         <micah@cowan.name>.
3053
3054 2008-04-20  Bruno Haible  <bruno@clisp.org>
3055
3056         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
3057         unistr/u8-mblen.
3058
3059 2008-04-20  Bruno Haible  <bruno@clisp.org>
3060
3061         Fix test failure on platforms with non-GNU iconv.
3062         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
3063         (U_TO_U8): Use it, rather than u16_to_u8.
3064         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
3065         units at the end of the input string.
3066         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
3067
3068 2008-04-20  Bruno Haible  <bruno@clisp.org>
3069
3070         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
3071         when the resulting length is 0.
3072         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
3073
3074 2008-04-20  Bruno Haible  <bruno@clisp.org>
3075
3076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
3077         works.
3078         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
3079
3080 2008-04-20  Bruno Haible  <bruno@clisp.org>
3081
3082         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
3083         * modules/tsearch-tests (configure.ac): Test for initstate function.
3084
3085 2008-04-20  Bruno Haible  <bruno@clisp.org>
3086
3087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
3088         for nlink_t if missing.
3089         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
3090
3091 2008-04-19  Bruno Haible  <bruno@clisp.org>
3092
3093         Work around snprintf bug on Linux libc5.
3094         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
3095         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3096         gl_SNPRINTF_SIZE1.
3097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3098         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
3099         that test failed.
3100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3101         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
3102         * modules/snprintf (Files): Add m4/printf.m4.
3103         * modules/vsnprintf (Files): Likewise.
3104         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
3105         * doc/posix-functions/vsnprintf.texi: Likewise.
3106
3107 2008-04-19  Bruno Haible  <bruno@clisp.org>
3108
3109         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
3110         from 0.0058 to less than 10^-7.
3111
3112 2008-04-19  Bruno Haible  <bruno@clisp.org>
3113
3114         Fix rounding when a precision is given.
3115         * lib/vasnprintf.c (is_borderline): New function.
3116         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
3117         9...9x.
3118         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
3119         %e, %g.
3120         * tests/test-vasprintf-posix.c (test_function): Likewise.
3121         * tests/test-snprintf-posix.h (test_function): Likewise.
3122         * tests/test-sprintf-posix.h (test_function): Likewise.
3123         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
3124         * tests/test-printf-posix.h (test_function): Likewise.
3125         * tests/test-printf-posix.output: Update.
3126         Reported by John Darrington <john@darrington.wattle.id.au> via
3127         Ben Pfaff <blp@cs.stanford.edu>.
3128
3129 2008-04-18  Simon Josefsson  <simon@josefsson.org>
3130
3131         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
3132         Suggested by Bruno Haible <bruno@clisp.org>.
3133
3134 2008-04-17  Bruno Haible  <bruno@clisp.org>
3135
3136         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
3137         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
3138         implementation.
3139         Patch by Bruce Merry <bmerry@gmail.com>.
3140
3141 2008-04-17  Simon Josefsson  <simon@josefsson.org>
3142
3143         * doc/posix-functions/strftime.texi (strftime): Mention that %e
3144         doesn't work under Windows.
3145
3146 2008-04-16  Bruno Haible  <bruno@clisp.org>
3147
3148         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
3149         New macros.
3150         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
3151         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
3152         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
3153         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
3154         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
3155         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
3156         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
3157         macros.
3158         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
3159         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
3160         Northern Sotho, Uighur.
3161
3162 2008-04-16  Bruno Haible  <bruno@clisp.org>
3163
3164         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
3165         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
3166         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
3167         Reported by Daniel Bergström <daniel@octocode.com>.
3168
3169 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
3170             Bruno Haible  <bruno@clisp.org>
3171
3172         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
3173         function.
3174         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
3175         New functions, mostly extracted from gl_locale_name_default.
3176         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
3177
3178 2008-04-16  Eric Blake  <ebb9@byu.net>
3179
3180         Adjust strtod detection to catch glibc 2.7 bug.
3181         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
3182         Reported by John Gatewood Ham.
3183
3184 2008-04-16  Bruno Haible  <bruno@clisp.org>
3185
3186         Add tentative support for Linux libc5.
3187         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
3188         * lib/fpurge.c (fpurge): Likewise.
3189         * lib/freadable.c (freadable): Likewise.
3190         * lib/freadahead.c (freadahead): Likewise.
3191         * lib/freading.c (freading): Likewise.
3192         * lib/freadptr.c (freadptr): Likewise.
3193         * lib/freadseek.c (freadptrinc): Likewise.
3194         * lib/fseeko.c (rpl_fseeko): Likewise.
3195         * lib/fseterr.c (fseterr): Likewise.
3196         * lib/fwritable.c (fwritable): Likewise.
3197         * lib/fwriting.c (fwriting): Likewise.
3198         Reported by Alain Guibert <alguibert+bts@free.fr>.
3199
3200 2008-04-15  Bruno Haible  <bruno@clisp.org>
3201
3202         * modules/mathl (configure.ac): Define module indicator.
3203
3204 2008-04-15  Bruno Haible  <bruno@clisp.org>
3205
3206         * lib/logl.c (logl): Remove unused variables.
3207
3208 2008-04-15  Bruno Haible  <bruno@clisp.org>
3209
3210         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
3211         fails.
3212
3213 2008-04-15  Bruno Haible  <bruno@clisp.org>
3214
3215         * lib/trim.c (trim2): Fix argument of isspace() macro.
3216
3217 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
3218
3219         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
3220         to 0.
3221         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
3222
3223 2008-04-14  Bruno Haible  <bruno@clisp.org>
3224
3225         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
3226         AC_LANG_PROGRAM argument.
3227         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
3228         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
3229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
3230         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3231         * m4/math_h.m4 (gl_MATH_H): Likewise.
3232         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
3233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3234         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
3235         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
3236         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3237         * m4/regex.m4 (gl_REGEX): Likewise.
3238         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
3239         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
3240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3241         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
3242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
3243         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
3244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3246
3247 2008-04-14  Jim Meyering  <meyering@redhat.com>
3248
3249         test-strtod: fix typos: s/abs/fabs/
3250         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
3251
3252 2008-04-13  Bruno Haible  <bruno@clisp.org>
3253
3254         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
3255         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
3256         module is also used and while not building the reloc-wrapper.
3257
3258 2008-04-13  Bruno Haible  <bruno@clisp.org>
3259
3260         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
3261
3262 2008-04-13  Bruno Haible  <bruno@clisp.org>
3263
3264         Fix AIX compilation failure introduced on 2008-04-02.
3265         * tests/test-frexp.c (exp): Undefine before redefining.
3266         * tests/test-frexpl.c (exp): Likewise.
3267
3268 2008-04-13  Bruno Haible  <bruno@clisp.org>
3269
3270         Work around a HP-UX stdio bug.
3271         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
3272         * tests/test-ftello.c (main): Likewise.
3273         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
3274         * doc/posix-functions/ftello.texi: Likewise.
3275
3276 2008-04-13  Bruno Haible  <bruno@clisp.org>
3277
3278         Make test-signbit pass on HP-UX/hppa.
3279         * tests/test-signbit.c (minus_zerol): New variable.
3280         (test_signbitl): Use it.
3281
3282 2008-04-13  Bruno Haible  <bruno@clisp.org>
3283
3284         Make truncl work on OSF/1 4.0.
3285         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
3286         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3287         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
3288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
3289         HAVE_DECL_TRUNCL.
3290         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
3291         HAVE_DECL_TRUNCL.
3292         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
3293
3294 2008-04-13  Bruno Haible  <bruno@clisp.org>
3295
3296         * lib/unictype.h: Remove trailing comma from enumeration definitions.
3297
3298 2008-04-13  Bruno Haible  <bruno@clisp.org>
3299
3300         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
3301         expression, so as to avoid HP-UX 11 cc compiler bug.
3302
3303 2008-04-13  Bruno Haible  <bruno@clisp.org>
3304
3305         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
3306
3307 2008-04-13  Bruno Haible  <bruno@clisp.org>
3308
3309         * lib/git-merge-changelog.c: Remove empty declaration outside of
3310         functions.
3311
3312 2008-04-13  Bruno Haible  <bruno@clisp.org>
3313
3314         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
3315
3316 2008-04-13  Bruno Haible  <bruno@clisp.org>
3317
3318         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
3319         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
3320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
3321         also if it exists but lacks definitions of the SHUT_* macros.
3322         * modules/sys_socket (Description): Update.
3323         Reported by Elbert Pol <e.pol@chello.nl>.
3324
3325 2008-04-13  Bruno Haible  <bruno@clisp.org>
3326
3327         * lib/localcharset.c (OS2): Don't redefine if already defined.
3328         Reported by Elbert Pol <e.pol@chello.nl>.
3329
3330 2008-04-13  Bruno Haible  <bruno@clisp.org>
3331
3332         * lib/binary-io.h [__EMX__]: Include <io.h>.
3333         Reported by Elbert Pol <e.pol@chello.nl>.
3334
3335 2008-04-12  Bruno Haible  <bruno@clisp.org>
3336
3337         * lib/fpucw.h: Enable the definitions also for x86_64.
3338         Needed for NetBSD/x86_64.
3339         Reported by Thomas Klausner <tk@giga.or.at>.
3340
3341 2008-04-12  Bruno Haible  <bruno@clisp.org>
3342
3343         * tests/test-strtod.c: Include isnand.h.
3344         (main): Use isnand instead of isnan.
3345         Reported by Jim Meyering.
3346
3347 2008-04-12  Bruno Haible  <bruno@clisp.org>
3348
3349         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
3350         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3351
3352 2008-04-12  Jim Meyering  <meyering@redhat.com>
3353
3354         * m4/math_h.m4 (gl_MATH_H): Fix typos.
3355
3356 2008-04-12  Bruno Haible  <bruno@clisp.org>
3357
3358         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
3359         Reported by Elbert Pol <e.pol@chello.nl>.
3360
3361 2008-04-12  Eric Blake  <ebb9@byu.net>
3362
3363         Work around Solaris 10 math.h bug.
3364         * m4/math_h.m4 (gl_MATH_H): Check for bug.
3365         (gl_MATH_H_DEFAULTS): Set up default.
3366         * modules/math (Makefile.am): Replace new indicators.
3367         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
3368         * tests/test-math.c (main): Test this.
3369         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
3370         * doc/posix-headers/math.texi (math.h): Mention bug.
3371         Reported by Nelson H. F. Beebe and Jim Meyering.
3372
3373 2008-04-11  Bruno Haible  <bruno@clisp.org>
3374
3375         Adapt to future versions of Apple GCC.
3376         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
3377         Reported by Peter O'Gorman <peter@pogma.com>.
3378
3379 2008-04-11  Bruno Haible  <bruno@clisp.org>
3380
3381         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
3382
3383 2008-04-11  Bruno Haible  <bruno@clisp.org>
3384
3385         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
3386
3387         * modules/getaddrinfo-tests (Makefile.am): Define
3388         test_getaddrinfo_LDADD.
3389
3390 2008-04-11  Bruno Haible  <bruno@clisp.org>
3391
3392         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
3393         (init): Fix syntax error.
3394         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
3395         is declared.
3396
3397 2008-04-11  Bruno Haible  <bruno@clisp.org>
3398
3399         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
3400         * modules/glob (Depends-on): Add stdbool.
3401
3402 2008-04-11  Bruno Haible  <bruno@clisp.org>
3403
3404         * lib/trim.c: Include <string.h>.
3405
3406 2008-04-11  Eric Blake  <ebb9@byu.net>
3407
3408         Avoid compile failure on OS/2.
3409         * lib/regex_internal.h (internal_function): Disable optimization
3410         on OS/2 (__EMX__), where it caused compiler error.
3411         Reported by Elbert Pol.
3412
3413 2008-04-11  Bruno Haible  <bruno@clisp.org>
3414
3415         Flush the standard error stream before aborting. Needed on mingw.
3416         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
3417         * tests/test-array_list.c (ASSERT): Likewise.
3418         * tests/test-array_oset.c (ASSERT): Likewise.
3419         * tests/test-avltree_list.c (ASSERT): Likewise.
3420         * tests/test-avltree_oset.c (ASSERT): Likewise.
3421         * tests/test-avltreehash_list.c (ASSERT): Likewise.
3422         * tests/test-binary-io.c (ASSERT): Likewise.
3423         * tests/test-byteswap.c (ASSERT): Likewise.
3424         * tests/test-c-ctype.c (ASSERT): Likewise.
3425         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
3426         * tests/test-c-strcasestr.c (ASSERT): Likewise.
3427         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
3428         * tests/test-c-strstr.c (ASSERT): Likewise.
3429         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
3430         * tests/test-canonicalize.c (ASSERT): Likewise.
3431         * tests/test-carray_list.c (ASSERT): Likewise.
3432         * tests/test-ceilf1.c (ASSERT): Likewise.
3433         * tests/test-ceilf2.c (ASSERT): Likewise.
3434         * tests/test-ceill.c (ASSERT): Likewise.
3435         * tests/test-count-one-bits.c (ASSERT): Likewise.
3436         * tests/test-fbufmode.c (ASSERT): Likewise.
3437         * tests/test-fflush2.c (ASSERT): Likewise.
3438         * tests/test-floorf1.c (ASSERT): Likewise.
3439         * tests/test-floorf2.c (ASSERT): Likewise.
3440         * tests/test-floorl.c (ASSERT): Likewise.
3441         * tests/test-fopen.c (ASSERT): Likewise.
3442         * tests/test-fpending.c (ASSERT): Likewise.
3443         * tests/test-fprintf-posix.c (ASSERT): Likewise.
3444         * tests/test-fpurge.c (ASSERT): Likewise.
3445         * tests/test-freadable.c (ASSERT): Likewise.
3446         * tests/test-freadahead.c (ASSERT): Likewise.
3447         * tests/test-freading.c (ASSERT): Likewise.
3448         * tests/test-freadptr.c (ASSERT): Likewise.
3449         * tests/test-freadptr2.c (ASSERT): Likewise.
3450         * tests/test-freadseek.c (ASSERT): Likewise.
3451         * tests/test-freopen.c (ASSERT): Likewise.
3452         * tests/test-frexp.c (ASSERT): Likewise.
3453         * tests/test-frexpl.c (ASSERT): Likewise.
3454         * tests/test-fseek.c (ASSERT): Likewise.
3455         * tests/test-fseeko.c (ASSERT): Likewise.
3456         * tests/test-fstrcmp.c (ASSERT): Likewise.
3457         * tests/test-ftell.c (ASSERT): Likewise.
3458         * tests/test-ftello.c (ASSERT): Likewise.
3459         * tests/test-func.c (ASSERT): Likewise.
3460         * tests/test-fwritable.c (ASSERT): Likewise.
3461         * tests/test-fwriting.c (ASSERT): Likewise.
3462         * tests/test-getdelim.c (ASSERT): Likewise.
3463         * tests/test-getline.c (ASSERT): Likewise.
3464         * tests/test-i-ring.c (ASSERT): Likewise.
3465         * tests/test-iconv-utf.c (ASSERT): Likewise.
3466         * tests/test-iconv.c (ASSERT): Likewise.
3467         * tests/test-isfinite.c (ASSERT): Likewise.
3468         * tests/test-isnand.c (ASSERT): Likewise.
3469         * tests/test-isnanf.c (ASSERT): Likewise.
3470         * tests/test-isnanl.h (ASSERT): Likewise.
3471         * tests/test-ldexpl.c (ASSERT): Likewise.
3472         * tests/test-linked_list.c (ASSERT): Likewise.
3473         * tests/test-linkedhash_list.c (ASSERT): Likewise.
3474         * tests/test-localename.c (ASSERT): Likewise.
3475         * tests/test-lseek.c (ASSERT): Likewise.
3476         * tests/test-mbscasecmp.c (ASSERT): Likewise.
3477         * tests/test-mbscasestr1.c (ASSERT): Likewise.
3478         * tests/test-mbscasestr2.c (ASSERT): Likewise.
3479         * tests/test-mbscasestr3.c (ASSERT): Likewise.
3480         * tests/test-mbscasestr4.c (ASSERT): Likewise.
3481         * tests/test-mbschr.c (ASSERT): Likewise.
3482         * tests/test-mbscspn.c (ASSERT): Likewise.
3483         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
3484         * tests/test-mbspbrk.c (ASSERT): Likewise.
3485         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
3486         * tests/test-mbsrchr.c (ASSERT): Likewise.
3487         * tests/test-mbsspn.c (ASSERT): Likewise.
3488         * tests/test-mbsstr1.c (ASSERT): Likewise.
3489         * tests/test-mbsstr2.c (ASSERT): Likewise.
3490         * tests/test-mbsstr3.c (ASSERT): Likewise.
3491         * tests/test-memchr2.c (ASSERT): Likewise.
3492         * tests/test-memmem.c (ASSERT): Likewise.
3493         * tests/test-open.c (ASSERT): Likewise.
3494         * tests/test-printf-frexp.c (ASSERT): Likewise.
3495         * tests/test-printf-frexpl.c (ASSERT): Likewise.
3496         * tests/test-printf-posix.c (ASSERT): Likewise.
3497         * tests/test-quotearg.c (ASSERT): Likewise.
3498         * tests/test-rbtree_list.c (ASSERT): Likewise.
3499         * tests/test-rbtree_oset.c (ASSERT): Likewise.
3500         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
3501         * tests/test-round1.c (ASSERT): Likewise.
3502         * tests/test-roundf1.c (ASSERT): Likewise.
3503         * tests/test-roundl.c (ASSERT): Likewise.
3504         * tests/test-signbit.c (ASSERT): Likewise.
3505         * tests/test-sleep.c (ASSERT): Likewise.
3506         * tests/test-snprintf-posix.c (ASSERT): Likewise.
3507         * tests/test-snprintf.c (ASSERT): Likewise.
3508         * tests/test-sprintf-posix.c (ASSERT): Likewise.
3509         * tests/test-stat-time.c (ASSERT): Likewise.
3510         * tests/test-strcasestr.c (ASSERT): Likewise.
3511         * tests/test-strerror.c (ASSERT): Likewise.
3512         * tests/test-striconv.c (ASSERT): Likewise.
3513         * tests/test-striconveh.c (ASSERT): Likewise.
3514         * tests/test-striconveha.c (ASSERT): Likewise.
3515         * tests/test-strsignal.c (ASSERT): Likewise.
3516         * tests/test-strstr.c (ASSERT): Likewise.
3517         * tests/test-strtod.c (ASSERT): Likewise.
3518         * tests/test-trunc1.c (ASSERT): Likewise.
3519         * tests/test-trunc2.c (ASSERT): Likewise.
3520         * tests/test-truncf1.c (ASSERT): Likewise.
3521         * tests/test-truncf2.c (ASSERT): Likewise.
3522         * tests/test-truncl.c (ASSERT): Likewise.
3523         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
3524         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
3525         * tests/test-vasnprintf.c (ASSERT): Likewise.
3526         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
3527         * tests/test-vasprintf.c (ASSERT): Likewise.
3528         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
3529         * tests/test-vprintf-posix.c (ASSERT): Likewise.
3530         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
3531         * tests/test-vsnprintf.c (ASSERT): Likewise.
3532         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
3533         * tests/test-wcwidth.c (ASSERT): Likewise.
3534         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
3535         * tests/test-xprintf-posix.c (ASSERT): Likewise.
3536         * tests/test-xvasprintf.c (ASSERT): Likewise.
3537         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
3538         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
3539         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
3540         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
3541         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
3542         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
3543         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
3544         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
3545         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
3546         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
3547         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
3548         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
3549         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
3550         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
3551         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
3552         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
3553         * tests/unictype/test-block_list.c (ASSERT): Likewise.
3554         * tests/unictype/test-block_of.c (ASSERT): Likewise.
3555         * tests/unictype/test-block_test.c (ASSERT): Likewise.
3556         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
3557         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
3558         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
3559         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
3560         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
3561         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
3562         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
3563         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
3564         * tests/unictype/test-combining.c (ASSERT): Likewise.
3565         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
3566         * tests/unictype/test-digit.c (ASSERT): Likewise.
3567         * tests/unictype/test-mirror.c (ASSERT): Likewise.
3568         * tests/unictype/test-numeric.c (ASSERT): Likewise.
3569         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
3570         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
3571         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
3572         * tests/unictype/test-scripts.c (ASSERT): Likewise.
3573         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
3574         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
3575         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
3576         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
3577         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
3578         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
3579         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
3580         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
3581         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
3582         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
3583         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
3584         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
3585         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
3586         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
3587         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
3588         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
3589         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
3590         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
3591         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
3592         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
3593         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
3594         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
3595         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
3596         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
3597         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
3598         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
3599         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
3600         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
3601         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
3602         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
3603         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
3604         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
3605         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
3606         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
3607         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
3608         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
3609         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
3610         Reported by Eric Blake.
3611
3612 2008-04-11  Bruno Haible  <bruno@clisp.org>
3613
3614         * lib/wchar.in.h: Tweak comment.
3615
3616 2008-04-11  Bruno Haible  <bruno@clisp.org>
3617
3618         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
3619         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
3620         gl_COMMON.
3621         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
3622
3623 2008-04-11  Bruno Haible  <bruno@clisp.org>
3624
3625         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
3626
3627 2008-04-11  Simon Josefsson  <simon@josefsson.org>
3628
3629         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
3630         of attempting to use non-existing /dev/*random.  Based on patch
3631         from Adam Strzelecki <ono@java.pl> in
3632         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
3633
3634 2008-04-08  Bruno Haible  <bruno@clisp.org>
3635
3636         Add tentative support for emx+gcc.
3637         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
3638         * lib/fpurge.c (fpurge): Likewise.
3639         * lib/freadable.c (freadable): Likewise.
3640         * lib/freadahead.c (freadahead): Likewise.
3641         * lib/freading.c (freading): Likewise.
3642         * lib/freadptr.c (freadptr): Likewise.
3643         * lib/freadseek.c (freadptrinc): Likewise.
3644         * lib/fseeko.c (rpl_fseeko): Likewise.
3645         * lib/fseterr.c (fseterr): Likewise.
3646         * lib/fwritable.c (fwritable): Likewise.
3647         * lib/fwriting.c (fwriting): Likewise.
3648         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
3649
3650 2008-04-09  Eric Blake  <ebb9@byu.net>
3651
3652         Avoid some autoconf warnings.
3653         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
3654         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
3655         * m4/afs.m4 (gl_AFS): Likewise.
3656         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
3657         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
3658         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3659         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
3660         (gl_INTEGER_TYPE_SUFFIX): Likewise.
3661         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
3662         (AC_CHECK_DECLS_ONCE): Likewise.
3663         Rename file...
3664         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
3665         gnulib-tool requires autoconf 2.59 or better.
3666         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
3667
3668 2008-04-08  Eric Blake  <ebb9@byu.net>
3669
3670         Use 'git describe --match' if present (added in git 1.5.5).
3671         * build-aux/git-version-gen: Limit result to tags that match 'v*'
3672         if possible.
3673
3674 2008-04-08  Bruno Haible  <bruno@clisp.org>
3675
3676         Add tentative support for OpenServer.
3677         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
3678         _ptr, _cnt.
3679         * lib/fpurge.c (fpurge): Likewise.
3680         * lib/freadable.c (freadable): Likewise.
3681         * lib/freadahead.c (freadahead): Likewise.
3682         * lib/freading.c (freading): Likewise.
3683         * lib/freadptr.c (freadptr): Likewise.
3684         * lib/freadseek.c (freadptrinc): Likewise.
3685         * lib/fseeko.c (rpl_fseeko): Likewise.
3686         * lib/fseterr.c (fseterr): Likewise.
3687         * lib/fwritable.c (fwritable): Likewise.
3688         * lib/fwriting.c (fwriting): Likewise.
3689         Reported by Roger Cornelius <rac@tenzing.org> and
3690         Brian K. White <brian@aljex.com>.
3691
3692 2008-04-06  Jim Meyering  <meyering@redhat.com>
3693
3694         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
3695
3696 2008-04-06  Bruno Haible  <bruno@clisp.org>
3697
3698         Avoid possible error with non-ASCII bytes in UTF-8 locales.
3699         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
3700         * tests/test-printf-posix.sh: Likewise.
3701         * tests/test-vfprintf-posix.sh: Likewise.
3702         * tests/test-vprintf-posix.sh: Likewise.
3703         * tests/test-xprintf-posix.sh: Likewise.
3704
3705 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3706
3707         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
3708         hide error from 'ls', needed on OS/2.
3709         Report by Elbert Pol <elbert.pol@gmail.com>.
3710
3711 2008-04-04  Eric Blake  <ebb9@byu.net>
3712
3713         Make test-fseeko.c failures meaningful.
3714         * tests/test-fseeko.c: Print line number on failure.
3715         * tests/test-fseek.c: Likewise.
3716         Reported by Nelson H. F. Beebe.
3717
3718         Improve strtod bug detection check.
3719         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
3720         required for Solaris 10.
3721         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
3722
3723 2008-04-04  Bruno Haible  <bruno@clisp.org>
3724
3725         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
3726         by m4/setenv.m4.
3727
3728 2008-04-03  Eric Blake  <ebb9@byu.net>
3729
3730         Ensure sane .version contents.
3731         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
3732         version string.
3733         * build-aux/git-version-gen: Improve documentation.
3734
3735         Make GNU make output nicer.
3736         * top/GNUmakefile [!_have-Makefile]: Add dependency on
3737         MAKECMDGOALS to enforce message for all command line targets.  Set
3738         srcdir for use in maint.mk.
3739
3740         Another maintainer tweak.
3741         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
3742         a target that regenerates version.
3743
3744 2008-04-03  Jim Meyering  <meyering@redhat.com>
3745
3746         vc-list-files: don't cause coreutils "make po-check" failure
3747         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
3748
3749 2008-04-03  Eric Blake  <ebb9@byu.net>
3750
3751         Allow VPATH usage of vc-list-files.
3752         * build-aux/vc-list-files (scriptversion): Add timestamp.
3753         (options): Add --help, --version, -C.
3754         (CVS): Support installed cvsu.
3755
3756 2008-04-02  Bruno Haible  <bruno@clisp.org>
3757
3758         Avoid some "statement with no effect" warnings from gcc.
3759         * tests/test-wctype.c (main): Explicitly ignore unused values.
3760         Reported by Jim Meyering.
3761
3762 2008-04-02  Jim Meyering  <meyering@redhat.com>
3763
3764         Avoid some warnings from "gcc -Wshadow".
3765         * tests/test-frexp.c (exp): Define to a different identifier.
3766         * tests/test-frexpl.c (exp): Likewise.
3767
3768 2008-04-03  Jim Meyering  <meyering@redhat.com>
3769
3770         bootstrap: remove dangling *.[ch] symlinks from lib
3771         * build-aux/bootstrap [dangling symlink removal]: Move find's
3772         -depth option to precede all others, to avoid a warning.
3773         Remove *.[ch] files too, and from "$source_base" (usually lib/).
3774
3775 2008-04-02  Bruno Haible  <bruno@clisp.org>
3776
3777         Avoid some warnings from "gcc -Wshadow".
3778         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
3779         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
3780         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
3781         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
3782         Reported by Jim Meyering.
3783
3784 2008-04-01  Bruno Haible  <bruno@clisp.org>
3785
3786         Fix test to work on IRIX 6.5 with cc.
3787         * tests/test-math.c (numeric_equal): New function.
3788         (main): Use it.
3789
3790 2008-04-01  Bruno Haible  <bruno@clisp.org>
3791
3792         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
3793
3794 2008-04-01  Bruno Haible  <bruno@clisp.org>
3795
3796         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
3797         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3798         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
3799         (Depends-on): Remove math.
3800
3801         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
3802         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3803         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
3804         (Depends-on): Remove math.
3805
3806         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
3807         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3808         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
3809         (Depends-on): Remove math.
3810         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
3811         (Depends-on): Remove math.
3812
3813         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
3814         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
3815         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
3816         (Depends-on): Remove math.
3817         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
3818         (Depends-on): Remove math.
3819
3820         * tests/test-round1.c: Include nan.h.
3821         (main): Use NaNd instead of NAN.
3822         * modules/round-tests (Files): Add tests/nan.h.
3823
3824         * tests/test-trunc1.c: Include nan.h.
3825         (main): Use NaNd instead of NAN.
3826         * modules/trunc-tests (Files): Add tests/nan.h.
3827
3828         * tests/test-roundf1.c: Include nan.h.
3829         (main): Use NaNf instead of NAN.
3830         * modules/roundf-tests (Files): Add tests/nan.h.
3831
3832         * tests/test-truncf1.c: Include nan.h.
3833         (main): Use NaNf instead of NAN.
3834         * modules/truncf-tests (Files): Add tests/nan.h.
3835
3836         * tests/test-ceilf1.c: Include nan.h.
3837         (main): Use NaNf instead of NAN.
3838         * modules/ceilf-tests (Files): Add tests/nan.h.
3839
3840         * tests/test-floorf1.c: Include nan.h.
3841         (main): Use NaNf instead of NAN.
3842         * modules/floorf-tests (Files): Add tests/nan.h.
3843
3844         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
3845         (main): Use NaNf instead of NAN.
3846         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
3847
3848         * tests/test-isnand.c: Include nan.h instead of <math.h>.
3849         (main): Use NaNd instead of NAN.
3850         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
3851
3852         * tests/test-frexp.c: Include nan.h.
3853         (main): Use NaNd instead of NAN.
3854         * modules/frexp-tests (Files): Add tests/nan.h.
3855
3856         * lib/isnan.c: Don't include <math.h>.
3857         (FUNC): Don't use NAN macro.
3858         * modules/isnand-nolibm (Depends-on): Remove math.
3859         * modules/isnanf-nolibm (Depends-on): Remove math.
3860         * modules/isnanl (Depends-on): Remove math.
3861         * modules/isnanl-nolibm (Depends-on): Remove math.
3862
3863         * tests/nan.h: New file.
3864
3865 2008-04-01  Eric Blake  <ebb9@byu.net>
3866
3867         Fix typos.
3868         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
3869         values to be the right type.
3870
3871         For now, cater to gnulib strtod inaccuracies.
3872         * tests/test-strtod.c (main): Allow 1-ulp error on expected
3873         fractional results.  While not as nice from a QoI perspective, it
3874         is a quicker patch than correctly implementing decimal to binary
3875         rounding.
3876
3877 2008-03-31  Eric Blake  <ebb9@byu.net>
3878
3879         Guarantee a definition of NAN.
3880         * lib/math.in.h (NAN): Define if missing.
3881         * tests/test-math.c (main): Test it.
3882         * doc/posix-headers/math.texi (math.h): Document this.
3883         * lib/isnan.c (rpl_isnand): Use it.
3884         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
3885         * tests/test-floorf1.c (NaN): Likewise.
3886         * tests/test-frexp.c (NaN): Likewise.
3887         * tests/test-isnand.c (NaN): Likewise.
3888         * tests/test-isnanf.c (NaN): Likewise.
3889         * tests/test-round1.c (NaN): Likewise.
3890         * tests/test-roundf1.c (NaN): Likewise.
3891         * tests/test-snprintf-posix.h (NaN): Likewise.
3892         * tests/test-sprintf-posix.h (NaN): Likewise.
3893         * tests/test-trunc1.c (NaN): Likewise.
3894         * tests/test-truncf1.c (NaN): Likewise.
3895         * tests/test-vasnprintf-posix.c (NaN): Likewise.
3896         * tests/test-vasprintf-posix.c (NaN): Likewise.
3897         * modules/isnand-nolibm (Depends-on): Add math.
3898         * modules/isnanf-nolibm (Depends-on): Likewise.
3899         * modules/isnanl (Depends-on): Likewise.
3900         * modules/isnanl-nolibm (Depends-on): Likewise.
3901         * modules/snprintf-posix-tests (Depends-on): Likewise.
3902         * modules/sprintf-posix-tests (Depends-on): Likewise.
3903         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
3904         * modules/vsprintf-posix-tests (Depends-on): Likewise.
3905         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
3906         * modules/vasprintf-posix-tests (Depends-on): Likewise.
3907
3908 2008-03-31  Bruno Haible  <bruno@clisp.org>
3909
3910         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
3911         * doc/posix-functions/strtod.texi: Likewise.
3912
3913 2008-03-31  Bruno Haible  <bruno@clisp.org>
3914
3915         * tests/test-strtod.c (main): Don't use C99 syntax.
3916
3917 2008-03-31  Bruno Haible  <bruno@clisp.org>
3918
3919         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
3920         Reported by Eric Blake.
3921
3922 2008-03-31  Jim Meyering  <meyering@redhat.com>
3923
3924         Don't compare actual signbit return values.
3925         * tests/test-strtod.c (main): Rather, compare only their
3926         zero/non-zero nature.
3927
3928 2008-03-31  Eric Blake  <ebb9@byu.net>
3929
3930         More strtod documentation.
3931         * doc/posix-functions/strtod.texi (strtod): Interpret more test
3932         failures as distinct bugs.
3933
3934 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3935
3936         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
3937         Problem reported by Erik Benada in
3938         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
3939
3940 2008-03-30  Bruno Haible  <bruno@clisp.org>
3941
3942         * tests/test-strtod.c: Add comments about which assertion fails on which
3943         platform.
3944         * doc/posix-functions/strtod.texi: Add info about many more platforms.
3945
3946 2008-03-30  Eric Blake  <ebb9@byu.net>
3947
3948         Test signbit behavior on zeros.
3949         * tests/test-signbit.c (test_signbitf): Add tests for zero.
3950         (test_signbitd, test_signbitl): Likewise.
3951
3952         More strtod touchups.
3953         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
3954         sign of negative underflow, for now.  Use .5, not .1.
3955         * doc/posix-functions/strtod.texi (strtod): Mention these
3956         limitations.
3957         Reported by Jim Meyering.
3958
3959 2008-03-30  Bruno Haible  <bruno@clisp.org>
3960
3961         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
3962         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
3963
3964 2008-03-30  Bruno Haible  <bruno@clisp.org>
3965
3966         Avoid failure when attempting to return empty iconv results on some
3967         platforms.
3968         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
3969         allocation, don't report ENOMEM when the resulting string is empty.
3970
3971 2008-03-30  Bruno Haible  <bruno@clisp.org>
3972
3973         Fix buffer overrun.
3974         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
3975         Don't consider the width for tmp_length. Check count against tmp_length
3976         before doing the padding. Ensure enough allocation during padding.
3977
3978 2008-03-30  Eric Blake  <ebb9@byu.net>
3979
3980         strtod touchups.
3981         * lib/strtod.c (strtod): Avoid compiler warnings.
3982         Reported by Jim Meyering.
3983
3984 2008-03-30  Bruno Haible  <bruno@clisp.org>
3985
3986         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
3987         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
3988         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
3989         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
3990         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
3991         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
3992         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
3993         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
3994
3995         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
3996         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
3997         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
3998         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
3999         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
4000         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
4001         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
4002         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
4003
4004         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
4005         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
4006         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
4007         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
4008         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
4009         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
4010         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
4011         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
4012
4013         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
4014         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
4015
4016         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
4017         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
4018
4019         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
4020         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
4021
4022         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
4023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
4024         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
4025
4026         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
4027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
4028         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
4029
4030         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
4031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
4032         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
4033
4034         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
4035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
4036         * modules/vasprintf (Depends-on): Add EOVERFLOW.
4037
4038         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
4039         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
4040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
4041         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
4042         (Depends-on): Add EOVERFLOW.
4043         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
4044         (Depends-on): Add EOVERFLOW.
4045         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4046         (Depends-on): Add EOVERFLOW.
4047         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
4048         (Depends-on): Add EOVERFLOW.
4049         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4050         (Depends-on): Add EOVERFLOW.
4051         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
4052         (Depends-on): Add EOVERFLOW.
4053         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4054         (Depends-on): Add EOVERFLOW.
4055         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
4056         (Depends-on): Add EOVERFLOW.
4057
4058         * lib/sprintf.c (EOVERFLOW): Remove fallback.
4059         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
4060         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
4061
4062         * lib/snprintf.c (EOVERFLOW): Remove fallback.
4063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
4064         * modules/snprintf (Depends-on): Add EOVERFLOW.
4065
4066         * lib/poll.c (EOVERFLOW): Remove fallback.
4067         * modules/poll (Depends-on): Add EOVERFLOW.
4068
4069         * lib/getugroups.c (EOVERFLOW): Remove fallback.
4070         * modules/getugroups (Depends-on): Add EOVERFLOW.
4071
4072         * lib/getdelim.c (EOVERFLOW): Remove fallback.
4073         * modules/getdelim (Depends-on): Add EOVERFLOW.
4074
4075         * lib/ftell.c (EOVERFLOW): Remove fallback.
4076         * modules/ftell (Depends-on): Add EOVERFLOW.
4077
4078         * lib/fprintf.c (EOVERFLOW): Remove fallback.
4079         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
4080         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
4081
4082         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
4083
4084         * modules/EOVERFLOW-tests: New file.
4085         * tests/test-EOVERFLOW.c: New file.
4086
4087         * modules/EOVERFLOW: New file.
4088         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
4089
4090 2008-03-30  Bruno Haible  <bruno@clisp.org>
4091
4092         Fix bug introduced on 2007-06-10.
4093         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
4094         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
4095
4096 2008-03-30  Bruno Haible  <bruno@clisp.org>
4097
4098         Improve freadseek's efficiency after ungetc.
4099         * lib/freadseek.c: Include freadahead.h.
4100         (freadptrinc): New function, extracted from freadseek.
4101         (freadseek): Use it in a loop. Use freadahead to determine the number
4102         of loop iterations.
4103         * modules/freadseek (Depends-on): Add freadahead.
4104         (configure.ac): Require AC_C_INLINE.
4105
4106 2008-03-30  Bruno Haible  <bruno@clisp.org>
4107
4108         * lib/freadseek.c (freadseek): Don't ignore the return value of
4109         freadptr.
4110
4111 2008-03-29  Eric Blake  <ebb9@byu.net>
4112
4113         Add hex float support.
4114         * modules/strtod (Depends-on): Add c-ctype.
4115         (Link): Mention POW_LIB.
4116         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
4117         whitespace between 'e' and exponent.
4118         * tests/test-strtod.c (main): Enable hex float tests.
4119         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
4120         now provides.
4121
4122         Document various strtod bugs, with some fixes.
4123         * doc/posix-functions/strtod.texi (strtod): Document bugs with
4124         "-0x", "inf", "nan", and hex constants.
4125         * doc/posix-functions/atof.texi (atof): Likewise.
4126         * modules/stdlib (Makefile.am): Support strtod.
4127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4128         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
4129         detect additional strtod bugs.
4130         * lib/stdlib.in.h (rpl_strtod): Add declarations.
4131         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
4132         bool where appropriate.  Parse 'inf' and 'nan'.
4133         * tests/test-strtod.c: New file.
4134         * modules/strtod (Depends-on): Add stdbool, stdlib.
4135         (configure.ac): Turn on module indicator.
4136         * modules/strtod-tests: New module.
4137
4138 2008-03-29  Eric Blake  <ebb9@byu.net>
4139
4140         Fix ftell on mingw.
4141         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
4142         * modules/ftell-tests (Depends-on): Add binary-io.
4143         * modules/ftello-tests (Depends-on): Likewise.
4144         * tests/test-ftell.c (main): Enhance test to cover behavior after
4145         ungetc.  Enforce binary mode.
4146         * tests/test-ftello.c (main): Likewise.
4147
4148         Pass test-freadseek on cygwin.
4149         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
4150         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
4151         ungetc buffer.
4152
4153         * tests/test-fflush2.c (main): Fix typo.
4154
4155 2008-03-29  Bruno Haible  <bruno@clisp.org>
4156
4157         * tests/test-fflush2.c (main): Temporarily disable the contents of
4158         this test.
4159         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
4160         Reported by Eric Blake.
4161
4162 2008-03-28  Simon Josefsson  <simon@josefsson.org>
4163
4164         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
4165         (GC_SHA224_DIGEST_SIZE): Add.
4166
4167         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
4168         (gc_hash_digest_length): Likewise.
4169         (gc_hash_buffer): Likewise.
4170
4171 2008-03-25  Bruno Haible  <bruno@clisp.org>
4172
4173         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
4174         detail which gettext release to use.
4175         Reported by Simon Josefsson.
4176
4177 2008-03-26  Jim Meyering  <meyering@redhat.com>
4178
4179         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
4180         * modules/gnumakefile (clean-GNUmakefile): Also, use
4181         test ... && ... || : syntax rather than if-then ... fi.
4182
4183         gnumakefile: Don't double-quote-expand $(VPATH) value.
4184         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
4185
4186 2008-03-24  Eric Blake  <ebb9@byu.net>
4187
4188         Alter GNUmakefile to install into top directory.
4189         * modules/maintainer-makefile: Split, and add dependency...
4190         * modules/gnumakefile: to this new module.
4191         * build-aux/GNUmakefile: Move...
4192         * top/GNUmakefile: ...here.
4193         * build-aux/maint.mk: Move...
4194         * top/maint.mk: ...here.
4195         * MODULES.html.sh (Support for maintaining...): Document new
4196         module.
4197
4198 2008-03-23  Bruno Haible  <bruno@clisp.org>
4199
4200         * gnulib-tool: New options --vc-files, --no-vc-files.
4201         (func_usage): Document them.
4202         (vc_files): New variable.
4203         (func_import): Consider vc_files.
4204         (func_create_testdir): Set vc_files to empty.
4205         Suggested by Jim Meyering and Karl Berry.
4206
4207 2008-03-23  Bruno Haible  <bruno@clisp.org>
4208
4209         Fix regex compilation error on HP-UX 11.
4210         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
4211         * modules/regex (Files): Add m4/mbstate_t.m4.
4212         Reported by Ton Voon <ton.voon@altinity.com>.
4213
4214 2008-03-23  Bruno Haible  <bruno@clisp.org>
4215
4216         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
4217
4218 2008-03-23  Eric Blake  <ebb9@byu.net>
4219             Bruno Haible  <bruno@clisp.org>
4220
4221         Install files from top/ in the destination directory.
4222         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
4223         augmentation also for the files from top/.
4224         (func_import, func_create_testdir): Rewrite file names:
4225         top/filename -> filename.
4226
4227 2008-03-23  Bruno Haible  <bruno@clisp.org>
4228
4229         Tweak "gnulib --version" output.
4230         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
4231
4232 2008-03-23  Bruno Haible  <bruno@clisp.org>
4233
4234         Tweak "gnulib --version" output.
4235         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
4236         rather than contents of ChangeLog, when possible.
4237
4238 2008-03-21  Eric Blake  <ebb9@byu.net>
4239
4240         More --version tweaks.
4241         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
4242         date of last ChangeLog entry.
4243
4244 2008-03-21  Jim Meyering  <meyering@redhat.com>
4245
4246         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
4247
4248 2008-03-20  Eric Blake  <ebb9@byu.net>
4249
4250         VPATH fix.
4251         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
4252
4253 2008-03-20  Simon Josefsson  <simon@josefsson.org>
4254
4255         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
4256         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
4257
4258 2008-03-20  Eric Blake  <ebb9@byu.net>
4259
4260         Sync GNUmakefile with coreutils.
4261         * build-aux/GNUmakefile (have-Makefile): Rename...
4262         (_have-Makefile): ...to this, for namespace consideration.
4263         (GNUmakefile.cfg): Include, if present.
4264         (_autoreconf): Define a default.
4265         (_is-dist-target): New rule for rebuilds to pick up intra-release
4266         version.
4267         (maint-cfg.mk): Rename...
4268         (cfg.mk): ...to this.
4269
4270 2008-03-18  Jim Meyering  <meyering@redhat.com>
4271
4272         New script and module: mktempd
4273         * MODULES.html.sh (maint+release support): Add mktempd.
4274         * build-aux/mktempd: New file.
4275         * modules/mktempd: New file.
4276
4277 2008-03-15  Jim Meyering  <meyering@redhat.com>
4278
4279         Undo last change.
4280         * lib/sha1.c, lib/md5.c: 63 != ~63.
4281         Reported by Andreas Schwab.
4282
4283         sha1.c, md5.c: Hoist a redundant expression.
4284         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
4285         "ctx->buflen" only once, before calling *_process_block.
4286         * lib/md5.c (md5_process_bytes): Likewise.
4287
4288 2008-03-14  Eric Blake  <ebb9@byu.net>
4289
4290         Bump copyright year in files generated by gnulib-tool.
4291         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
4292         gnulib-tool, rather than hard-coding it.
4293
4294         Fix 'gnulib-tool --version' output to work with git.
4295         * gnulib-tool (func_gnulib_dir): New function, extracted from...
4296         (startup): ...here.
4297         (func_version): Use it to invoke git-version-gen, rather than
4298         relying on CVS keyword expansion.  Modernize wording.
4299         (cvsdatestamp, last_checkin_date, version): Kill unused
4300         variables.
4301
4302 2008-03-12  Jim Meyering  <meyering@redhat.com>
4303
4304         Recognize optional cast of the argument to free.
4305         * build-aux/useless-if-before-free: Update regexps.
4306
4307         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
4308
4309 2008-03-11  Bruno Haible  <bruno@clisp.org>
4310
4311         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
4312         by a single package.
4313         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
4314         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
4315         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
4316         Reported by Sam Steingold <sds@gnu.org>.
4317
4318 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4319
4320         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
4321         repositories.
4322
4323 2008-03-11  Bruno Haible  <bruno@clisp.org>
4324
4325         Avoid conflicts between local macro definitions.
4326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4327         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
4328
4329 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
4330             Bruno Haible  <bruno@clisp.org>
4331
4332         Make va_copy work with some version of xlc on AIX 5.1.
4333         * lib/stdarg.in.h: New file.
4334         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
4335         On AIX, use a <stdarg.h> file substitute.
4336         * modules/stdarg (Files): Add lib/stdarg.in.h.
4337         (Depends-on): Add include_next.
4338         (Makefile.am): Build a stdarg.h substitute if requested.
4339         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
4340
4341 2008-03-10  Bruno Haible  <bruno@clisp.org>
4342
4343         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
4344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4345         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4346
4347 2008-03-10  Bruno Haible  <bruno@clisp.org>
4348
4349         * modules/stdlib (Depends-on): Add include_next, remove
4350         absolute-header.
4351
4352 2008-03-09  Bruno Haible  <bruno@clisp.org>
4353
4354         * lib/freadahead.h (freadahead): Document more precisely.
4355         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
4356         the sum of both buffer sizes.
4357         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
4358         * NEWS: Document the change.
4359
4360 2008-03-09  Bruno Haible  <bruno@clisp.org>
4361
4362         Extend freadptr to return also the buffer size.
4363         * lib/freadptr.h (freadptr): Add sizep argument.
4364         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
4365         (freadptr): Add sizep argument. Determine buffer size like freadahead
4366         does.
4367         * tests/test-freadptr.c: Don't include freadahead.h.
4368         (main): Adapt for new calling convention of freadptr.
4369         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
4370         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
4371         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
4372         tests/test-freadptr2.sh.
4373         (Depends): Remove freadahead.
4374         (TESTS): Add test-freadptr2.sh.
4375         (check_PROGRAMS): Add test-freadptr2.
4376
4377 2008-03-09  Bruno Haible  <bruno@clisp.org>
4378
4379         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
4380         Report and solution by Simon Josefsson.
4381
4382 2008-03-06  Bruno Haible  <bruno@clisp.org>
4383
4384         Make fflush after ungetc work on BSD platforms.
4385         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
4386         * tests/test-fflush2.c: New file.
4387         * tests/test-fflush2.sh: New file.
4388         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
4389         tests/test-fflush2.c.
4390         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
4391         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
4392
4393 2008-03-06  Eric Blake  <ebb9@byu.net>
4394
4395         Likewise for ftello.
4396         * modules/ftello (Dependencies): Add extensions.
4397         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
4398
4399 2008-03-06  Bruno Haible  <bruno@clisp.org>
4400
4401         * modules/fseeko (Dependencies): Add extensions.
4402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
4403         Needed on glibc systems.
4404
4405 2008-03-06  Bruno Haible  <bruno@clisp.org>
4406
4407         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
4408         email address.
4409         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4410
4411 2008-03-06  Bruno Haible  <bruno@clisp.org>
4412
4413         * users.txt: Add libgnupdf.
4414
4415 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4416
4417         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
4418         (Header File Substitutes, Function Substitutes,
4419         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
4420         (Build robot for gnulib): Fix typo.
4421
4422 2008-03-06  Bruno Haible  <bruno@clisp.org>
4423
4424         * doc/gnulib-tool.texi (VCS Issues): Small updates.
4425         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4426
4427 2008-03-06  Bruno Haible  <bruno@clisp.org>
4428
4429         * doc/func.texi: New file, extracted from doc/gnulib.texi.
4430         * doc/gnulib.texi: Include it.
4431
4432 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4433
4434         * modules/func (License): Change license to unlimited; there was
4435         no LGPL parts in the module anyway.
4436
4437 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4438
4439         * modules/__func__: Renamed to modules/func.
4440         * modules/__func__-tests: Renamed to modules/func-tests.
4441         * tests/test-__func__.c: Renamed to tests/test-func.c.
4442         * m4/__func__.m4: Renamed to m4/func.m4.
4443         * doc/gnulib.texi (__func__): Section renamed to func.
4444         Suggested by Eric Blake <ebb9@byu.net>.
4445
4446 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4447
4448         * doc/gnulib.texi (__func__): Use C99 terminology when talking
4449         about __func__.  Make example self-contained.  Suggested by Eric
4450         Blake <ebb9@byu.net>.
4451
4452         * tests/test-__func__.c (main): Avoid extraneous () around __func.
4453         Suggested by Eric Blake <ebb9@byu.net>.
4454
4455 2008-03-06  Simon Josefsson  <simon@josefsson.org>
4456
4457         * modules/__func__: New file.
4458         * modules/__func__-tests: New file.
4459         * tests/test-__func__.c: New file.
4460         * m4/__func__.m4: New file.
4461         * doc/gnulib.texi (__func__): Document __func__ module.
4462
4463 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4464
4465         * modules/byteswap (License): Re-license as LGPLv2+.
4466
4467 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4468
4469         * doc/Makefile: Add pdf target.
4470
4471 2008-03-05  Simon Josefsson  <simon@josefsson.org>
4472
4473         * modules/inline (License): Use 'unlimited', since there are only
4474         *.m4 files in this module.
4475
4476 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4477             Bruno Haible  <bruno@clisp.org>
4478
4479         Add support for HP C 7.1 on OpenVMS 8.3.
4480         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
4481
4482 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
4483
4484         Update VMS specifics.
4485         * lib/getopt.c [VMS]: Remove include of unixlib.h.
4486
4487 2008-03-02  Jim Meyering  <meyering@redhat.com>
4488
4489         Remove the last dependency on the "free" module.
4490         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
4491         Reported by Bob Proulx.
4492
4493         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
4494
4495         Remove useless "if" tests before free.  Deprecate "free" module.
4496         * doc/posix-functions/free.texi: Mention that this
4497         module is no longer useful.
4498         * modules/free (Notice): Say this module is obsolete.
4499         * modules/readutmp (Depends-on): Remove free.
4500         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
4501         * lib/putenv.c (putenv): Likewise.
4502         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
4503         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
4504         * tests/test-c-strcasestr.c (main): Likewise.
4505         * tests/test-c-strstr.c (main): Likewise.
4506         * tests/test-mbscasestr1.c (main): Likewise.
4507         * tests/test-mbscasestr2.c (main): Likewise.
4508         * tests/test-mbsstr1.c (main): Likewise.
4509         * tests/test-mbsstr2.c (main): Likewise.
4510         * tests/test-memmem.c (main): Likewise.
4511         * tests/test-strcasestr.c (main): Likewise.
4512         * tests/test-striconv.c (main): Likewise.
4513         * tests/test-striconveh.c (main): Likewise.
4514         * tests/test-striconveha.c (main): Likewise.
4515         * tests/test-strstr.c (main): Likewise.
4516
4517         * build-aux/git-version-gen: Adjust a comment and the Usage string.
4518
4519         bootstrap: sync from coreutils again
4520         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
4521
4522 2008-03-01  Jim Meyering  <meyering@redhat.com>
4523
4524         bootstrap: sync from coreutils
4525         * build-aux/bootstrap (update_po_files): Copy a .po file into place
4526         also when the target doesn't exist.
4527
4528 2008-03-01  Eric Blake  <ebb9@byu.net>
4529
4530         Fix bugs in last patch.
4531         * lib/memchr2.c (memchr2): Fix typo.
4532         * tests/test-memchr2.c: Test previous bug, and don't use GNU
4533         extension.
4534         Reported by Bruce Korb.
4535
4536         New module 'memchr2'.
4537         * modules/memchr2: New file.
4538         * modules/memchr2-tests: Likewise.
4539         * lib/memchr2.h: Likewise.
4540         * lib/memchr2.c: Likewise, based on memchr.c.
4541         * tests/test-memchr2.c: New test.
4542         * MODULES.html.sh (String handling): Add memchr2.
4543
4544 2008-02-29  Bruno Haible  <bruno@clisp.org>
4545
4546         * modules/freadseek-tests: New file.
4547         * tests/test-freadseek.sh: New file.
4548         * tests/test-freadseek.c: New file.
4549
4550         New module 'freadseek'.
4551         * modules/freadseek: New file.
4552         * lib/freadseek.h: New file.
4553         * lib/freadseek.c: New file.
4554         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
4555
4556 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
4557
4558         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
4559         wydawca.
4560
4561         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
4562         program_invocation_name and program_invocation_short_name are
4563         present.
4564
4565 2008-02-28  Bruno Haible  <bruno@clisp.org>
4566
4567         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
4568         * tests/test-freadptr.sh: Also test non-seekable stdin.
4569
4570 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
4571
4572         * build-aux/bootstrap (source_base, m4_base)
4573         (doc_base, tests_base): New variables.
4574         (gnulib_tool_options): Do not hardcode base directories, use
4575         the above variables instead.
4576
4577 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
4578
4579         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
4580
4581 2008-02-28  Bruno Haible  <bruno@clisp.org>
4582
4583         * modules/freadptr-tests: New file.
4584         * tests/test-freadptr.sh: New file.
4585         * tests/test-freadptr.c: New file.
4586
4587         New module 'freadptr'.
4588         * modules/freadptr: New file.
4589         * lib/freadptr.h: New file.
4590         * lib/freadptr.c: New file.
4591         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
4592
4593 2008-02-26  Karl Berry  <karl@freefriends.org>
4594
4595         Sync from Libtool:
4596         * libltdl/argz.c (argz_add, argz_count): New functions.
4597         * libltdl/argz.in.h: Declare them.
4598         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
4599
4600 2008-02-22  Bruno Haible  <bruno@clisp.org>
4601
4602         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
4603         is a pointer type.  Needed for HP-UX 10.
4604         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
4605         * doc/posix-functions/gmtime_r.texi: Likewise.
4606         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
4607
4608 2008-02-24  Bruno Haible  <bruno@clisp.org>
4609
4610         * modules/environ-tests: New file.
4611         * tests/test-environ.c: New file.
4612
4613         New module 'environ'.
4614         * modules/environ: New file.
4615         * lib/unistd.in.h (environ): New declaration.
4616         * m4/environ.m4: New file.
4617         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
4618         after use.
4619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
4620         HAVE_DECL_ENVIRON.
4621         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
4622         HAVE_DECL_ENVIRON.
4623         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
4624         wrong claim that 'environ' is missing on some systems.
4625         * modules/execute (Depends-on): Add environ.
4626         * lib/execute.c (environ): Remove fallback declaration.
4627         * modules/pipe (Depends-on): Add environ.
4628         * lib/pipe.c (environ): Remove fallback declaration.
4629         * modules/setenv (Depends-on): Add environ.
4630         * lib/setenv.c (environ): Remove fallback declaration.
4631         * modules/unsetenv (Depends-on): Add environ.
4632         * lib/unsetenv.c (environ): Remove fallback declaration.
4633         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
4634         m4/environ.m4.
4635         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
4636         (gl_PREREQ_UNSETENV): Likewise.
4637
4638 2008-02-24  Bruno Haible  <bruno@clisp.org>
4639
4640         * doc/posix-functions/environ.texi: Document the MacOS X problem.
4641
4642 2008-02-20  Bob Proulx  <bob@proulx.com>
4643
4644         Enable use of older two part flavor 'git describe'.
4645         * build-aux/git-version-gen: If using the older two part flavor of
4646         git version then recreate the third part now present in the
4647         newer three part flavor of git describe.
4648
4649 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
4650
4651         * lib/fts.c (fts_build): Typo correction to comment.
4652
4653 2008-02-17  Bruno Haible  <bruno@clisp.org>
4654
4655         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
4656         generating no-op conflicts.
4657
4658 2008-02-17  Bruno Haible  <bruno@clisp.org>
4659
4660         Speed up by 10%.
4661         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
4662         result_entries, rather than an index-based loop.
4663
4664 2008-02-17  Bruno Haible  <bruno@clisp.org>
4665
4666         Speed up by 25%.
4667         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
4668         'hashcode_cached'.
4669         (entry_create): New function.
4670         (entry_hashcode): Use the cached hashcode if possible.
4671         (read_changelog_file, try_split_merged_entry): Use entry_create.
4672
4673 2008-02-17  Bruno Haible  <bruno@clisp.org>
4674
4675         Speed up from O(n^2) to O(n) for long ChangeLog files.
4676         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
4677         (read_changelog_file): Change implementation of entries_reversed list
4678         to rbtreehash.
4679         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
4680
4681 2008-02-17  Bruno Haible  <bruno@clisp.org>
4682
4683         New option --split-merged-entry.
4684         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
4685         (find_paragraph_end, try_split_merged_entry): New functions.
4686         (long_options): Add option --split-merged-entry.
4687         (usage): Document option --split-merged-entry.
4688         (main): Implement option --split-merged-entry.
4689         Reported by Eric Blake.
4690
4691 2008-02-17  Bruno Haible  <bruno@clisp.org>
4692
4693         * lib/git-merge-changelog.c: Include c-strstr.h.
4694         (main): Support the "git pull --rebase" situation.
4695         * modules/git-merge-changelog (Depends-on): Add c-strstr.
4696         Reported by Eric Blake.
4697
4698 2008-02-16  Eric Blake  <ebb9@byu.net>
4699
4700         Avoid doubling \ in common case of "c-maybe" quoting style.
4701         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
4702         eliding outer quotes.
4703         * lib/quotearg.h: Document this.
4704         * tests/test-quotearg.c (result_strings, inputs, results_g)
4705         (flag_results, locale_results): Test it by adding a new string to
4706         each test group.
4707         (compare_strings): Test new string.
4708
4709 2008-02-13  Eric Blake  <ebb9@byu.net>
4710
4711         Avoid trigraph quoting in default output.
4712         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
4713         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
4714         unless explicitly requested.
4715         * tests/test-quotearg.c (flag_results, main): Add additional tests.
4716
4717 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
4718
4719         Don't rely on signed integer overflowing to negative value.
4720         * lib/getugroups.c (getugroups): Include <limits.h>.
4721         Instead, compare against INT_MAX, and increment only if the test passes.
4722
4723 2008-02-13  Jim Meyering  <meyering@redhat.com>
4724         and Eric Blake  <ebb9@byu.net>
4725
4726         Avoid shadowing warning and compile errors on Linux.
4727         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
4728         forwarding macros on Linux.
4729         (dcgettext): Define a stub, for Linux.
4730         (results_g, main): Avoid warnings.
4731
4732 2008-02-12  Eric Blake  <ebb9@byu.net>
4733
4734         Silence warning in last patch.
4735         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
4736
4737         Quotearg part 4: add tests, fix c-maybe colon quoting.
4738         * lib/quotearg.h: Improve documentation.
4739         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
4740         escapes when adding outer quotes.  When quoting trigraphs, use
4741         valid C notation.  When quoting NUL, omit extra characters if next
4742         character is not digit.  Alter prototype.
4743         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
4744         callers.
4745         * modules/quotearg-tests: New module.
4746         * tests/test-quotearg.c: New test.
4747
4748 2008-02-07  Eric Blake  <ebb9@byu.net>
4749
4750         Quotearg part 3: add flag to control outer quote elision.
4751         * lib/quotearg.h (c_maybe_quoting_style): New style.
4752         (enum quoting_flags): Better documentation of flags.
4753         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
4754         c-maybe style.
4755         (quotearg_buffer_restyled): Handle new flag to elide outer
4756         quotes.
4757
4758         Quotearg part 2: add flag that can control NUL elision.
4759         * lib/quotearg.h (set_quoting_flags): New prototype.
4760         * lib/quotearg.c (struct quoting_options): Add flag field.
4761         (set_quoting_flags): New function.
4762         (quotearg_buffer_restyled): Add flags parameter.
4763         (quotearg_alloc_mem): Set the flag if length cannot be returned.
4764         (quotearg_n_options): Set the flag, since length cannot be
4765         returned.
4766         (quoting_options_from_style): Default flags correctly.
4767
4768         Quotearg part 1: more wrappers, restore quotearg_char state.
4769         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
4770         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
4771         (quotearg_colon_mem): New wrappers.
4772         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
4773         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
4774         functions.
4775         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
4776         (quotearg_colon_mem): New functions.
4777
4778 2008-02-11  Bruno Haible  <bruno@clisp.org>
4779
4780         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
4781         library in the current directory: it does not work with parallel make.
4782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4783
4784 2008-02-11  Bruno Haible  <bruno@clisp.org>
4785
4786         * .gitattributes: New file.
4787
4788 2008-02-11  Jim Meyering  <meyering@redhat.com>
4789
4790         useless-if-before-free: Fix reversed exit values.
4791         * build-aux/useless-if-before-free: Use correct values
4792         for EXIT_MATCH and EXIT_NO_MATCH.
4793
4794         * build-aux/useless-if-before-free: Close stdout carefully.
4795
4796 2008-02-10  Bruno Haible  <bruno@clisp.org>
4797
4798         New module 'git-merge-changelog'.
4799         * modules/git-merge-changelog: New file.
4800         * lib/git-merge-changelog.c: New file.
4801
4802 2008-02-10  Jim Meyering  <meyering@redhat.com>
4803
4804         useless-if-before-free: New option: --list (-l).
4805
4806         useless-if-before-free: Don't exit immediately upon open failure.
4807         * build-aux/useless-if-before-free: Exit 2 for errors.
4808         Upon failure to open a file, don't exit immediately.
4809         Rather, just warn and continue with any remaining files.
4810
4811 2008-02-10  Bruno Haible  <bruno@clisp.org>
4812
4813         New abstract list operation 'node_set_value'.
4814         * lib/gl_list.h (gl_list_node_set_value): New function.
4815         (struct gl_list_implementation): New field node_set_value.
4816         * lib/gl_list.c (gl_list_node_set_value): New function.
4817         * lib/gl_array_list.c (gl_array_node_set_value): New function.
4818         (gl_array_list_implementation): Update.
4819         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
4820         (gl_carray_list_implementation): Update.
4821         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
4822         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4823         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4824         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
4825         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4826         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4827         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4828         Update.
4829         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4830         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
4831         (gl_sublist_list_implementation): Update.
4832
4833 2008-02-10  Bruno Haible  <bruno@clisp.org>
4834
4835         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
4836         Needed when ELEMENT is #defined to 'some_type *'.
4837
4838 2008-02-10  Jim Meyering  <meyering@redhat.com>
4839
4840         New script and module: useless-if-before-free
4841         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
4842         * build-aux/useless-if-before-free: New file.
4843         * modules/useless-if-before-free: New file.
4844
4845         * build-aux/gitlog-to-changelog: Use committer date, not author date.
4846
4847         xstrtol_error: Fix typo.
4848         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
4849         s/exit_failure/exit_status/.
4850
4851 2008-02-09  Jim Meyering  <meyering@redhat.com>
4852
4853         New script and module: gitlog-to-changelog
4854         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
4855         * modules/gitlog-to-changelog: New file.
4856         * build-aux/gitlog-to-changelog: New file.
4857
4858 2008-02-08  Jim Meyering  <meyering@redhat.com>
4859
4860         Avoid two "parameter unused" warnings.
4861         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4862         Mark "st" as used.
4863
4864         Use "git COMMAND", not "git-COMMAND".
4865         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
4866         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
4867         * build-aux/git-version-gen: Use "git status", not "git-status".
4868
4869 2008-02-07  Bruno Haible  <bruno@clisp.org>
4870
4871         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
4872         Avoids a crash on Windows Vista.
4873         Reported by Adam Strzelecki <ono@java.pl> via
4874         Simon Josefsson <simon@josefsson.org>.
4875
4876 2008-02-06  Bruno Haible  <bruno@clisp.org>
4877
4878         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
4879         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
4880         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
4881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
4882         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4884         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
4885         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
4886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4893         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
4894         left-adjust flag.
4895         * tests/test-snprintf-posix.h (test_function): Likewise.
4896         * tests/test-sprintf-posix.h (test_function): Likewise.
4897         * tests/test-vasprintf-posix.c (test_function): Likewise.
4898         * doc/posix-functions/fprintf.texi: Update.
4899         * doc/posix-functions/printf.texi: Update.
4900         * doc/posix-functions/snprintf.texi: Update.
4901         * doc/posix-functions/sprintf.texi: Update.
4902         * doc/posix-functions/vfprintf.texi: Update.
4903         * doc/posix-functions/vprintf.texi: Update.
4904         * doc/posix-functions/vsnprintf.texi: Update.
4905         * doc/posix-functions/vsprintf.texi: Update.
4906         Reported by Peter Fales <psfales@alcatel-lucent.com>.
4907
4908 2008-02-06  Bruno Haible  <bruno@clisp.org>
4909
4910         Fix bug introduced on 2008-01-26.
4911         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
4912
4913 2008-02-06  Bruno Haible  <bruno@clisp.org>
4914
4915         Fix bug introduced on 2007-06-10.
4916         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
4917         !NEED_PRINTF_FLAG_ZERO.
4918
4919 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
4920
4921         getloadavg: use libperfstat on AIX5
4922         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
4923
4924 2008-02-03  Bruno Haible  <bruno@clisp.org>
4925
4926         * lib/diffseq.h: Add comments about required #includes.
4927         Reported by Michael Biggs <gnulib@doubleplum.net>.
4928
4929 2008-02-01  Bruno Haible  <bruno@clisp.org>
4930
4931         * users.txt: Add gnuit.
4932
4933 2008-01-31  Bruno Haible  <bruno@clisp.org>
4934
4935         * lib/md4.c (set_uint32): Mark as inline.
4936         * lib/md5.c (set_uint32): Likewise.
4937         * lib/sha1.c (set_uint32): Likewise.
4938         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
4939         * m4/md5.m4 (gl_MD5): Likewise.
4940         * m4/sha1.m4 (gl_SHA1): Likewise.
4941
4942 2008-01-31  Jim Meyering  <meyering@redhat.com>
4943
4944         Use "sizeof VAR", rather than a literal "4".
4945         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
4946         * lib/md4.c (md4_read_ctx): Likewise.
4947         * lib/sha1.c (sha1_read_ctx): Likewise.
4948
4949 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4950
4951         * tests/test-sha1.c: New file, based on test-md5.c.
4952
4953         * modules/crypto/sha1-tests: New file.
4954
4955 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4956
4957         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
4958
4959 2008-01-31  Jim Meyering  <meyering@redhat.com>
4960
4961         Prefer "sizeof v" over the equivalent "4".
4962         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
4963         * lib/md5.c (set_uint32): Likewise.
4964         * lib/sha1.c (set_uint32): Likewise.
4965
4966 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4967
4968         * lib/sha1.c (set_uint32): Mark function as static.
4969
4970 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4971
4972         md2: clarify comments to say that alignment is not required.
4973         * lib/md2.h: Remove warning about alignment in comment.
4974         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
4975         never been required.
4976
4977 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4978
4979         md4: adapt alignment constraint fix from sha1.
4980         * lib/md4.c (set_uint32): New function, from sha1.c
4981         (md4_read_ctx): Use it.
4982         (md4_finish_ctx): Doc fix.
4983         * lib/md4.h: Doc fix.
4984
4985 2008-01-31  Simon Josefsson  <simon@josefsson.org>
4986
4987         md5: adapt alignment constraint fix from sha1.
4988         * lib/md5.c (set_uint32): New function, from sha1.c
4989         (md5_read_ctx): Use it.
4990         (md5_finish_ctx): Doc fix.
4991         * lib/md5.h: Doc fix.
4992
4993 2008-01-30  Peter Palfrader  <weasel@debian.org>
4994
4995         sha1: remove the result buffer alignment constraint
4996         * lib/sha1.c (set_uint32): New function.
4997         (sha1_read_ctx): Rewrite to remove the result buffer alignment
4998         constraint.
4999         (sha1_finish_ctx): Remove comment warning about alignment constraint.
5000         * lib/sha1.h: Likewise.
5001
5002 2008-01-30  Andreas Schwab  <schwab@suse.de>
5003             Bruno Haible  <bruno@clisp.org>
5004
5005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
5006         correct definition of LDBL_MIN_EXP.
5007
5008 2008-01-30  Karl Berry  <karl@gnu.org>
5009
5010         * config/srclist-update: try to preserve x bit on updates.
5011         * config/srclistvars.sh: update for karl.
5012
5013 2008-01-29  Jim Meyering  <meyering@redhat.com>
5014
5015         vasnprintf.c: Avoid warning about unused label
5016         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
5017         "overflow" label definition and associated code with the
5018         same cpp condition that guards the sole use of that label.
5019
5020 2008-01-26  Bruno Haible  <bruno@clisp.org>
5021
5022         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
5023         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
5024         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
5025         * lib/isnanl-nolibm.h (isnanl): Likewise.
5026         Reported by Paul Eggert <eggert@cs.ucla.edu>.
5027
5028 2008-01-26  Bruno Haible  <bruno@clisp.org>
5029
5030         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
5031         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
5032
5033 2008-01-26  Bruno Haible  <bruno@clisp.org>
5034
5035         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
5036         GCC >= 4.0 built-in.
5037         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
5038
5039 2008-01-26  Bruno Haible  <bruno@clisp.org>
5040
5041         Rename isnan, applicable to 'double' only, to isnand.
5042         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
5043         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
5044         (configure.ac): Update.
5045         (Include): Replace "isnan.h" with "isnand.h".
5046         * m4/isnand.m4: Renamed from m4/isnan.m4.
5047         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
5048         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
5049         instead of isnan.c.
5050         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
5051         instead of HAVE_ISNAN_IN_LIBC.
5052         (isnand): Renamed from isnan.
5053         * lib/isnand.c: New file.
5054         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
5055         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
5056         (Makefile.am): Update.
5057         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
5058         Include isnand.h instead of isnan.h.
5059         (main): Test isnand instead of isnan.
5060         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
5061         isnan-nolibm.
5062         * modules/frexp (Depends-on): Likewise.
5063         * modules/frexp-tests (Depends-on): Likewise.
5064         * modules/frexp-nolibm (Depends-on): Likewise.
5065         * modules/frexp-nolibm-tests (Depends-on): Likewise.
5066         * modules/isfinite (Depends-on): Likewise.
5067         * modules/round-tests (Depends-on): Likewise.
5068         * modules/signbit (Depends-on): Likewise.
5069         * modules/signbit-tests (Depends-on): Likewise.
5070         * modules/snprintf-posix (Depends-on): Likewise.
5071         * modules/sprintf-posix (Depends-on): Likewise.
5072         * modules/trunc-tests (Depends-on): Likewise.
5073         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5074         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5075         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5076         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5077         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5078         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5079         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5080         * modules/vasnprintf-posix (Depends-on): Likewise.
5081         * modules/vasprintf-posix (Depends-on): Likewise.
5082         * modules/vfprintf-posix (Depends-on): Likewise.
5083         * modules/vsnprintf-posix (Depends-on): Likewise.
5084         * modules/vsprintf-posix (Depends-on): Likewise.
5085         * lib/frexp.c: Include isnand.h instead of isnan.h.
5086         (ISNAN): Set to isnand instead of isnan.
5087         * lib/isfinite.c: Include isnand.h instead of isnan.h.
5088         (gl_isfinited): Use isnand instead of isnan.
5089         * lib/signbitd.c: Include isnand.h instead of isnan.h.
5090         (gl_signbitd): Use isnand instead of isnan.
5091         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
5092         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
5093         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
5094         (main): Use isnand instead of isnan.
5095         * tests/test-round1.c: Include isnand.h.
5096         (main): Use isnand instead of isnan.
5097         * tests/test-round2.c: Include isnand.h instead of isnan.h.
5098         (ISNAN): Set to isnand instead of isnan.
5099         * tests/test-trunc1.c: Include isnand.h.
5100         (main): Use isnand instead of isnan.
5101         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
5102         (equal): Use isnand instead of isnan.
5103         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
5104         isnand-nolibm.
5105         * NEWS: Mention the change.
5106
5107 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5108             Bruno Haible  <bruno@clisp.org>
5109
5110         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
5111         the GCC builtins for signbits are present and set
5112         REPLACE_SIGNBIT_USING_GCC if so.
5113         * lib/math.in.h (signbit): Define using GCC builtins if
5114         REPLACE_SIGNBIT_USING_GCC is set.
5115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5116         REPLACE_SIGNBIT_USING_GCC.
5117         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
5118
5119 2008-01-25  Jim Meyering  <meyering@redhat.com>
5120
5121         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
5122         * lib/poll.c: Include <config.h>, not "config.h".
5123         * tests/test-getaddrinfo.c: Likewise.
5124
5125 2008-01-25  Simon Josefsson  <simon@josefsson.org>
5126
5127         * modules/sockets-tests: New file.
5128
5129 2008-01-24  Simon Josefsson  <simon@josefsson.org>
5130
5131         * modules/sockets: New module, can be used to call WSA_Startup and
5132         WSA_Cleanup when needed.
5133
5134         * lib/sockets.h, lib/sockets.c: New files.
5135
5136         * m4/sockets.m4: New file.
5137
5138         * tests/test-sockets.c: New file.
5139
5140 2008-01-19  Bruno Haible  <bruno@clisp.org>
5141
5142         * doc/posix-headers: Renamed from doc/headers.
5143         * doc/posix-functions: Renamed from doc/functions.
5144         * doc/gnulib.texi: Update.
5145
5146 2008-01-19  Bruno Haible  <bruno@clisp.org>
5147
5148         * doc/glibc-functions/strcasestr.texi: Include contents of
5149         doc/functions/strcasestr.texi, fixing the list of platforms.
5150         * doc/functions/strcasestr.texi: Remove file.
5151
5152 2008-01-19  Bruno Haible  <bruno@clisp.org>
5153
5154         * doc/glibc-functions/memmem.texi: Include contents of
5155         doc/functions/memmem.texi.
5156         * doc/functions/memmem.texi: Remove file.
5157
5158 2008-01-18  Bruno Haible  <bruno@clisp.org>
5159
5160         * doc/glibc-functions/*.texi: New files.
5161         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
5162         to use the new files.
5163
5164 2008-01-17  Bruno Haible  <bruno@clisp.org>
5165
5166         * tests/test-gethostname.c (main): Fix printf statement.
5167
5168 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5169
5170         * modules/gethostname-tests: New file.
5171
5172         * tests/test-gethostname.c: New file.
5173
5174 2008-01-17  Simon Josefsson  <simon@josefsson.org>
5175
5176         * lib/gethostname.c: Include string.h unconditionally, strncpy is
5177         used by the UNAME case.  Reported by Bruno Haible
5178         <bruno@clisp.org>.
5179
5180 2008-01-17  Eric Blake  <ebb9@byu.net>
5181
5182         Convert c-strcasestr to be more efficient.
5183         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
5184         (Depends-on): Add c-strcase, remove malloca, strnlen.
5185         * tests/test-c-strcasestr.c (main): Enhance test.
5186         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
5187
5188 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5189
5190         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
5191         Use it in creating po/Makevars.
5192
5193 2008-01-15  Simon Josefsson  <simon@josefsson.org>
5194
5195         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
5196         Applications that requires it should initialize libgcrypt
5197         manually.
5198
5199 2008-01-16  Simon Josefsson  <simon@josefsson.org>
5200
5201         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
5202
5203 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
5204
5205         Fix problem with getdate on mingw32 reported by Simon Josefsson
5206         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
5207         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
5208         tzname", when deciding whether to declare tzname.
5209         * lib/strftime.c (tzname): Likewise.
5210
5211 2008-01-15  Bruno Haible  <bruno@clisp.org>
5212
5213         Work around a MacOS X 10.5 bug in frexpl().
5214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
5215         * doc/functions/frexpl.texi: Document the bug.
5216         Reported by Elias Pipping <pipping@gentoo.org>.
5217
5218 2008-01-14  Eric Blake  <ebb9@byu.net>
5219
5220         Touch up previous patch.
5221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
5222         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
5223
5224         Convert strcasestr module to use Two-Way algorithm.
5225         * modules/strcasestr-simple: New module, based on the old
5226         strcasestr, but with Two-Way rather than KMP.
5227         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
5228         * lib/string.in.h (rpl_strcasestr): Declare.
5229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
5230         performance.
5231         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
5232         * modules/string (Makefile.am): Support strcasestr.
5233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
5234         * modules/strcasestr-tests (Depends-on): Check for alarm.
5235         * tests/test-strcasestr.c: Augment test.
5236         * lib/str-two-way.h: Clean up stray macro.
5237         * NEWS: Document new module.
5238         * MODULES.html.sh (string handling): Likewise.
5239         * doc/functions/strcasestr.texi: New file.
5240         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
5241         here, since it is not a POSIX function.
5242
5243 2008-01-14  Colin Watson  <cjwatson@debian.org>
5244             Bruno Haible  <bruno@clisp.org>
5245
5246         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
5247         works fine; if not, set REPLACE_STRSIGNAL.
5248         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
5249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5250         REPLACE_STRSIGNAL.
5251         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
5252         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
5253         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
5254
5255 2008-01-14  Bruno Haible  <bruno@clisp.org>
5256
5257         * modules/strsignal (Include): Change to <string.h>.
5258
5259 2008-01-14  Colin Watson  <cjwatson@debian.org>
5260
5261         * modules/argp (Notice): Add a notice recommending to change
5262         XGETTEXT_OPTIONS.
5263         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
5264
5265 2008-01-13  Colin Watson  <cjwatson@debian.org>
5266
5267         * modules/strsignal-tests: New file.
5268         * tests/test-strsignal.c: New file.
5269
5270         * lib/strsignal.c: New file, from glibc with modifications.
5271         * lib/siglist.h: New file, from glibc with modifications.
5272         * lib/string.in.h (strsignal): New declaration.
5273         * m4/strsignal.m4: New file.
5274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5275         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
5276         * modules/strsignal: New file.
5277         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
5278         HAVE_DECL_STRSIGNAL.
5279
5280 2008-01-13  Bruno Haible  <bruno@clisp.org>
5281
5282         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
5283         locale encoding is not ASCII. Needed for OpenBSD 4.0.
5284         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5285         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5286
5287 2008-01-13  Bruno Haible  <bruno@clisp.org>
5288
5289         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
5290         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
5291         * lib/argp.h (__attribute__): Likewise.
5292         * lib/c-stack.c (__attribute__): Likewise.
5293         * lib/error.h (__attribute__): Likewise.
5294         * lib/fts.c (__attribute__): Likewise.
5295         * lib/openat.h (__attribute__): Likewise.
5296         * lib/stdio.in.h (__attribute__): Likewise.
5297         * lib/string.in.h (__attribute__): Likewise.
5298         * lib/utimens.c (__attribute__): Likewise.
5299         * lib/vasnprintf.h (__attribute__): Likewise.
5300         * lib/xalloc.h (__attribute__): Likewise.
5301         * lib/xprintf.h (__attribute__): Likewise.
5302         * lib/xstrtol.h (__attribute__): Likewise.
5303         * lib/xvasprintf.h (__attribute__): Likewise.
5304
5305 2008-01-12  Bruno Haible  <bruno@clisp.org>
5306
5307         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
5308         * doc/glibc-headers/a.out.texi: New file.
5309         * doc/glibc-headers/aliases.texi: New file.
5310         * doc/glibc-headers/alloca.texi: New file.
5311         * doc/glibc-headers/ar.texi: New file.
5312         * doc/glibc-headers/argp.texi: New file.
5313         * doc/glibc-headers/argz.texi: New file.
5314         * doc/glibc-headers/byteswap.texi: New file.
5315         * doc/glibc-headers/crypt.texi: New file.
5316         * doc/glibc-headers/endian.texi: New file.
5317         * doc/glibc-headers/envz.texi: New file.
5318         * doc/glibc-headers/err.texi: New file.
5319         * doc/glibc-headers/error.texi: New file.
5320         * doc/glibc-headers/execinfo.texi: New file.
5321         * doc/glibc-headers/fpu_control.texi: New file.
5322         * doc/glibc-headers/fstab.texi: New file.
5323         * doc/glibc-headers/fts.texi: New file.
5324         * doc/glibc-headers/getopt.texi: New file.
5325         * doc/glibc-headers/ieee754.texi: New file.
5326         * doc/glibc-headers/ifaddrs.texi: New file.
5327         * doc/glibc-headers/libintl.texi: New file.
5328         * doc/glibc-headers/mcheck.texi: New file.
5329         * doc/glibc-headers/mntent.texi: New file.
5330         * doc/glibc-headers/obstack.texi: New file.
5331         * doc/glibc-headers/paths.texi: New file.
5332         * doc/glibc-headers/printf.texi: New file.
5333         * doc/glibc-headers/pty.texi: New file.
5334         * doc/glibc-headers/resolv.texi: New file.
5335         * doc/glibc-headers/shadow.texi: New file.
5336         * doc/glibc-headers/sysexits.texi: New file.
5337         * doc/glibc-headers/ttyent.texi: New file.
5338
5339 2008-01-12  Jim Meyering  <meyering@redhat.com>
5340
5341         announce-gen: emit Gnulib's git-based version string.
5342         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
5343         New option --gnulib-version=V, where V is expected to be
5344         the output of running git describe in the gnulib directory.
5345         (get_tool_versions): Request feedback on xdelta.  I suspect it's
5346         not useful, and plan to stop publishing an xdelta file with each
5347         coreutils release.
5348
5349         * build-aux/announce-gen: Also check for lzma-compressed files.
5350
5351 2008-01-11  Bruno Haible  <bruno@clisp.org>
5352
5353         * tests/test-memmem.c (main): Increase maximum allowed time.
5354         * tests/test-strstr.c (main): Likewise.
5355
5356 2008-01-11  Bruno Haible  <bruno@clisp.org>
5357
5358         * doc/functions/memmem.texi: Add more precisions about platforms.
5359         * doc/functions/strstr.texi: Likewise.
5360
5361 2008-01-10  Eric Blake  <ebb9@byu.net>
5362
5363         * m4/strstr.m4: Delete cruft from copy-n-paste.
5364         Reported by Bruno Haible.
5365
5366 2008-01-10  Bruno Haible  <bruno@clisp.org>
5367
5368         Make c-strstr rely on strstr.
5369         * lib/c-strstr.c: Don't include str-kmp.h.
5370         (c_strstr): Define in terms of strstr.
5371         * modules/c-strstr (Files): Remove lib/str-kmp.h.
5372         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
5373
5374 2008-01-10  Bruno Haible  <bruno@clisp.org>
5375
5376         * doc/gnulib.texi (String Functions in C Locale): New section.
5377         * doc/c-ctype.texi: New file.
5378         * doc/c-strcase.texi: New file.
5379         * doc/c-strcaseeq.texi: New file.
5380         * doc/c-strcasestr.texi: New file.
5381         * doc/c-strstr.texi: New file.
5382         * doc/c-strtod.texi: New file.
5383         * doc/c-strtold.texi: New file.
5384
5385 2008-01-10  Eric Blake  <ebb9@byu.net>
5386
5387         * lib/relocatable.h: Fix a comment.
5388
5389 2008-01-10  Eric Blake  <ebb9@byu.net>
5390
5391         Share two-way algorithm.
5392         * lib/str-two-way.h: New file, merged from...
5393         * lib/memmem.c: ...here...
5394         * lib/strstr.c: ...and here.
5395         * modules/memmem (Files): Use it.
5396         * modules/strstr (Files): Likewise.
5397
5398         Avoid quadratic strstr implementations.
5399         * lib/strstr.c: New file.
5400         * m4/strstr.m4: Likewise.
5401         * modules/strstr: Likewise.
5402         * modules/strstr-tests: Likewise.
5403         * tests/test-strstr.c: Likewise.
5404         * lib/string.in.h (rpl_strstr): Declare.
5405         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
5406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
5407         * modules/string (Makefile.am): Likewise.
5408         * MODULES.html.sh (string handling): Mention new module.
5409         * doc/functions/strstr.texi (strstr): Document the bug.
5410
5411 2008-01-10  Bruno Haible  <bruno@clisp.org>
5412
5413         * lib/relocatable.h (relocate): State whether result is freshly
5414         allocated or not.
5415         * lib/relocatable.c (relocate): Return a freshly allocated string
5416         instead of a pointer to a privately held string.
5417         Reported by Sylvain Beucler <beuc@gnu.org>.
5418
5419 2008-01-10  Colin Watson  <cjwatson@debian.org>
5420
5421         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
5422         s/S_ISNLK/S_ISLNK/.
5423
5424 2008-01-09  Bruno Haible  <bruno@clisp.org>
5425
5426         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
5427         and other files.
5428         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
5429         if it's only a guess.
5430         * modules/memmem: Simplify by depending on memmem-simple.
5431
5432 2008-01-09  Bruno Haible  <bruno@clisp.org>
5433
5434         Work around OpenBSD 4.0 tdelete() bug.
5435         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
5436         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
5437         macros and don't redefine the enum values.
5438         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
5439         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
5440         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
5441
5442 2008-01-09  Bruno Haible  <bruno@clisp.org>
5443
5444         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
5445         (main): Don't perform the tests if setlocale did not install a UTF-8
5446         locale. Needed on OpenBSD 4.0.
5447         * modules/wcwidth-tests (Depends-on): Add localcharset.
5448
5449 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5450
5451         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
5452         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
5453         * NEWS: announce this.
5454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
5455
5456 2008-01-09  Simon Josefsson  <simon@josefsson.org>
5457         and Eric Blake  <ebb9@byu.net>
5458
5459         Add memmem-simple module.
5460         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
5461         (gl_FUNC_MEMMEM): Separate performance from presence checks.
5462         * modules/memmem-simple: New file.
5463         * modules/memmem (Description): Tweak.
5464         * MODULES.html.sh (string handling): Mention new module.
5465         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
5466         addressed by memmem-simple.
5467         * NEWS: Document the difference.
5468
5469 2008-01-09  Eric Blake  <ebb9@byu.net>
5470
5471         Give gcc some memmem optimization hints.
5472         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
5473         (strcasestr): Declare as pure.
5474         * modules/memmem (Maintainer): Claim my implementation.
5475
5476 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5477
5478         Support AIX 6.1 and higher.
5479         * build-aux/config.libpath: Likewise.
5480         * build-aux/config.rpath: Likewise.
5481
5482 2008-01-08  Jim Meyering  <meyering@redhat.com>
5483             Bruno Haible  <bruno@clisp.org>
5484
5485         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
5486         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
5487         Reported by Peter Fales in
5488         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
5489
5490 2008-01-08  Bruno Haible  <bruno@clisp.org>
5491
5492         * modules/unictype/category-of (Depends-on): Add
5493         unictype/category-none.
5494         * modules/unictype/category-and-tests (Depends-on): Add
5495         unictype/category-{L,N,Lu,Nd}.
5496         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
5497         * modules/unictype/category-or-tests (Depends-on): Add
5498         unictype/category-{L,N}.
5499         * modules/unictype/category-name-tests (Depends-on): Add
5500         unictype/category-{Z,Nl}.
5501         Reported by Simon Josefsson.
5502
5503 2008-01-08  Bruno Haible  <bruno@clisp.org>
5504
5505         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
5506         convention better.
5507         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
5508         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
5509         Reported by Peter Miller <millerp@canb.auug.org.au>.
5510
5511 2008-01-08  Eric Blake  <ebb9@byu.net>
5512
5513         Rewrite memmem to guarantee linear complexity without malloc.
5514         * lib/memmem.c (memmem): Use Two-Way rather than
5515         Knuth-Morris-Pratt, to allow O(1) space usage.
5516         (critical_factorization, two_way_short_needle)
5517         (two_way_long_needle): New functions.
5518         (knuth_morris_pratt): Delete.
5519         * modules/memmem (Depends-on): No longer need malloca or stdbool.
5520         Add stdint.
5521         * tests/test-memmem.c (main): Add tests for periodic needle and
5522         sublinear performance.
5523         * doc/functions/memmem.texi (memmem): Document other deficiencies
5524         in cygwin and older glibc.
5525
5526 2008-01-08  Bruno Haible  <bruno@clisp.org>
5527
5528         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
5529         augmentation.
5530
5531 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
5532
5533         Add a configure time option: --disable-acl.
5534         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
5535         AC_ARG_ENABLE(acl).
5536
5537 2008-01-06  Simon Josefsson  <simon@josefsson.org>
5538
5539         * tests/test-localename.c: Don't include obsolete "setenv.h".
5540
5541         * modules/localename-tests (Depends-on): Need unsetenv.
5542
5543 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5544
5545         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
5546
5547 2008-01-06  Colin Watson  <cjwatson@debian.org>
5548
5549         * users.txt: Add man-db.
5550
5551 2008-01-07  Bruno Haible  <bruno@clisp.org>
5552
5553         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
5554         previous section name.
5555
5556 2008-01-07  Bruno Haible  <bruno@clisp.org>
5557
5558         * lib/progname.c (set_program_name): Don't strip off a leading
5559         "lt-" prefix outside a .libs directory.
5560         Suggested by Paul Eggert.
5561
5562 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
5563             Bruno Haible  <bruno@clisp.org>
5564
5565         Improve memory cleanup in 'relocatable' module.
5566         * lib/relocatable.h (compute_curr_prefix): Change return type to
5567         'char *'.
5568         * lib/relocatable.c (compute_curr_prefix): Change return type to
5569         'char *'. Free curr_installdir after use.
5570         (relocate): Free curr_prefix_better after use.
5571         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
5572
5573 2008-01-01  Bruno Haible  <bruno@clisp.org>
5574
5575         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
5576         failure on older glibc systems.
5577         Reported by Peter Fales <psfales@alcatel-lucent.com>.
5578
5579 2008-01-05  Eric Blake  <ebb9@byu.net>
5580
5581         Avoid quadratic system memmem.
5582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
5583         Reported by Ralf Wildenhues.
5584
5585         Fix memmem test for mingw.
5586         * modules/memmem-tests (configure.ac): Check for alarm.
5587         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
5588         it.
5589         * doc/functions/memmem.texi: New file.
5590         * doc/gnulib.texi (Function Substitutes): Add memmem.
5591         Reported by Bruno Haible.
5592
5593 2008-01-04  Bruno Haible  <bruno@clisp.org>
5594
5595         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
5596         Require gl_HEADER_STRINGS_H_DEFAULTS, not
5597         gl_HEADER_STRING_H_DEFAULTS.
5598
5599 2008-01-04  Eric Blake  <ebb9@byu.net>
5600
5601         Shorten duration of memmem test.
5602         * tests/test-memmem.c (main): Use alarm to declare failure if test
5603         is taking too long.
5604         Reported by Ralf Wildenhues.
5605
5606 2007-12-21  Simon Josefsson  <simon@josefsson.org>
5607
5608         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
5609         string, needed by strerror.
5610
5611 2008-01-03  Colin Watson  <cjwatson@debian.org>
5612             Bruno Haible  <bruno@clisp.org>
5613
5614         * doc/gnulib-tool.texi (Localization): New section.
5615
5616 2008-01-02  Bruno Haible  <bruno@clisp.org>
5617
5618         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
5619         variables to 'unsigned char *' type.
5620         Reported by Paul Eggert.
5621
5622 2008-01-02  Jim Meyering  <jim@meyering.net>
5623
5624         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
5625
5626 2007-12-31  Jim Meyering  <jim@meyering.net>
5627
5628         Avoid use of private FTS type name.
5629         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
5630
5631 2007-12-30  Karl Berry  <karl@gnu.org>
5632
5633         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
5634         work around defect in Texinfo and/or the standalone Info browser.
5635
5636 2007-12-30  Bruno Haible  <bruno@clisp.org>
5637
5638         Unify 5 copies of the KMP code.
5639         * lib/str-kmp.h: New file.
5640         * lib/c-strcasestr.c: Include str-kmp.h.
5641         (knuth_morris_pratt): Remove function.
5642         (c_strcasestr): Update.
5643         * lib/c-strstr.c: Include str-kmp.h.
5644         (knuth_morris_pratt): Remove function.
5645         (c_strcasestr): Update.
5646         * lib/mbscasestr.c: Include str-kmp.h.
5647         (knuth_morris_pratt_unibyte): Remove function.
5648         * lib/mbsstr.c: Include str-kmp.h.
5649         (knuth_morris_pratt_unibyte): Remove function.
5650         * lib/strcasestr.c: Include str-kmp.h.
5651         (knuth_morris_pratt): Remove function.
5652         (strcasestr): Update.
5653         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
5654         * modules/c-strstr (Files): Likewise.
5655         * modules/mbscasestr (Files): Likewise.
5656         * modules/mbsstr (Files): Likewise.
5657         * modules/strcasestr (Files): Likewise.
5658         Suggested by Paul Eggert.
5659
5660 2007-12-30  Bruno Haible  <bruno@clisp.org>
5661
5662         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
5663         defined.
5664
5665 2007-12-30  Bruno Haible  <bruno@clisp.org>
5666
5667         * lib/xmalloca.h: Include xalloc.h.
5668         (xnmalloca): New macro.
5669
5670 2007-12-30  Bruno Haible  <bruno@clisp.org>
5671
5672         * lib/malloca.h (nmalloca): New macro.
5673         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
5674         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
5675         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
5676         knuth_morris_pratt_multibyte): Likewise.
5677         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
5678         knuth_morris_pratt_multibyte): Likewise.
5679         * lib/memmem.c (knuth_morris_pratt): Likewise.
5680         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
5681
5682 2007-12-25  Bruno Haible  <bruno@clisp.org>
5683
5684         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
5685         * lib/glob.c: Don't include openat.h.
5686         (link_exists2_p): Add back the code that deals with the
5687         !GLOB_ALTDIRFUNC case.
5688         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
5689         let it do the filename concatenation.
5690         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
5691         * modules/glob (Depends-on): Remove openat.
5692
5693 2007-12-31  Bruno Haible  <bruno@clisp.org>
5694
5695         * modules/dirfd (License): Change to LGPLv2+.
5696         Approved by Jim Meyering.
5697
5698 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5699
5700         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
5701         when multiplying M by sizeof (size_t).
5702
5703 2007-12-10  Martin Lambers  <marlam@marlam.de>
5704
5705         Override getpagesize on mingw.
5706         * lib/getpagesize.c: New file.
5707         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
5708         * modules/getpagesize (Files): Add lib/getpagesize.c.
5709         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
5710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5711         REPLACE_GETPAGESIZE.
5712         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
5713
5714 2007-12-25  Bruno Haible  <bruno@clisp.org>
5715
5716         * modules/localcharset (Notice): New field.
5717         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
5718         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5719
5720 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5721             Bruno Haible  <bruno@clisp.org>
5722
5723         Avoid using the syntax symbol() in formatted documentation.
5724         * MODULES.html.sh (func_module): When replacing symbol() with a
5725         hyperlink, remove the parentheses. Show an error if some remain.
5726         Recognize and render the '...' syntax.
5727         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
5728         Rework. Add paragraph about GCC's inlining.
5729         * doc/alloca.texi: Likewise.
5730         * doc/error.texi: Remove parentheses from symbol reference.
5731         * doc/gnulib-intro.texi: Likewise.
5732         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
5733         * modules/fnmatch (Description): Reword to say "the ... function".
5734         * modules/full-read (Description): Likewise.
5735         * modules/full-write (Description): Likewise.
5736         * modules/safe-read (Description): Likewise.
5737         * modules/safe-write (Description): Likewise.
5738         * modules/strchrnul (Description): Likewise.
5739         * modules/trim (Description): Likewise.
5740         * modules/error (Description): Remove parentheses from symbol
5741         references.
5742         * modules/verror (Description): Likewise.
5743         Reported by Karl Berry.
5744
5745 2007-12-25  Bruno Haible  <bruno@clisp.org>
5746
5747         Fixup after 2007-10-16 commit.
5748         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
5749
5750 2007-12-24  Bruno Haible  <bruno@clisp.org>
5751
5752         Make --enable-relocatable work with DESTDIR.
5753         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
5754         to compute installdir from destprog.
5755         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
5756         also set the RELOC_DESTDIR variable.
5757         Reported by Левашев Иван <octagram@bluebottle.com>.
5758
5759 2007-12-24  Bruno Haible  <bruno@clisp.org>
5760
5761         Fix link error due to xalloc_die().
5762         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5763         of xreadlink.
5764         * lib/relocwrapper.c: Update comments.
5765         * build-aux/install-reloc: Remove xreadlink.c from file list.
5766         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
5767         xreadlink.c.
5768         Reported by Левашев Иван <octagram@bluebottle.com>.
5769
5770 2007-12-24  Bruno Haible  <bruno@clisp.org>
5771
5772         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
5773         * lib/setenv.h: Remove file.
5774         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
5775         lib/setenv.h.
5776         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
5777         (Depends-on): Add stdlib.
5778         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
5779         gl_FUNC_UNSETENV.
5780         (Include): Replace setenv.h with <stdlib.h>.
5781         * modules/unsetenv: New file.
5782         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
5783         * lib/unsetenv.c: Include <stdlib.h> first.
5784         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
5785         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
5786         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
5787         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
5788         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
5789         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
5791         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
5792         * doc/functions/unsetenv.texi: Update.
5793         * modules/xsetenv (Depends-on): Add unsetenv.
5794         * modules/getdate (Depends-on): Likewise.
5795         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
5796         * lib/xsetenv.c: Don't include setenv.h.
5797         * lib/getdate.y: Likewise.
5798         * lib/relocwrapper.c: Likewise.
5799         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
5800         (Depends-on): Add stdlib.
5801         * NEWS: Mention the changes.
5802         Reported by Левашев Иван <octagram@bluebottle.com>.
5803
5804 2007-12-23  Bruno Haible  <bruno@clisp.org>
5805
5806         * lib/memmem.c (memmem): Use lowercase variable names. Tab
5807         indentation.
5808
5809 2007-12-23  Bruno Haible  <bruno@clisp.org>
5810
5811         * lib/c-strcasestr.c: Add more comments.
5812         * lib/c-strstr.c: Likewise.
5813         * lib/mbscasestr.c: Likewise.
5814         * lib/mbsstr.c: Likewise.
5815         * lib/strcasestr.c: Likewise.
5816         * lib/memmem.c: Likewise.
5817
5818 2007-12-23  Bruno Haible  <bruno@clisp.org>
5819
5820         * tests/test-memmem.c: Include <string.h> first.
5821
5822 2007-12-22  Bruno Haible  <bruno@clisp.org>
5823
5824         * gnulib-tool (func_create_testdir): Change $auxdir while generating
5825         the contents of $testsbase.
5826         Reported by Ralf Wildenhues.
5827
5828 2007-12-22  Bruno Haible  <bruno@clisp.org>
5829
5830         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
5831         two variables local_ldadd_before, local_ldadd_last.
5832
5833 2007-12-20  Eric Blake  <ebb9@byu.net>
5834
5835         Work around circular library issue when cross-compiling.
5836         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
5837         that progname.o does not need to pull in rpl_memcmp.
5838
5839 2007-12-19  Eric Blake  <ebb9@byu.net>
5840
5841         Fix memmem to avoid O(n^2) worst-case complexity.
5842         * lib/memmem.c (knuth_morris_pratt): New function.
5843         (memmem): Use it if first few naive iterations fail.
5844         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
5845         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
5846         * modules/memchr (License): Likewise.
5847         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
5848         malloca.
5849         * tests/test-memmem.c: Rewrite, borrowing ideas from
5850         test-mbsstr1.c; the old version wouldn't even compile!
5851         * modules/memmem-tests: New file.
5852         * lib/string.in.h (rpl_memmem): Add declaration.
5853         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
5854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
5855         REPLACE_MEMMEM.
5856
5857 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
5860         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
5861         before any system include files, and undef after them all.  This
5862         should fix a problem on VMS reported by John E. Malmberg in
5863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
5864
5865 2007-12-17  Eric Blake  <ebb9@byu.net>
5866
5867         Revert addition of verify, for BSD/OS.
5868         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
5869         can't handle large files, for the sake of obsolete platforms.
5870         * modules/fseeko (Depends-on): Remove verify.
5871         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
5872         * doc/functions/ftello.texi (ftello): Likewise.
5873         * doc/functions/fgetpos.texi (fgetpos): Likewise.
5874         Reported by Larry Jones.
5875
5876 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
5877
5878         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
5879         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
5880
5881 2007-12-17  Jim Meyering  <meyering@redhat.com>
5882
5883         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
5884         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
5885         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
5886         * modules/getcwd (Depends-on): Add openat.
5887         Reported by Petr Salinger.
5888
5889 2007-12-17  Bruno Haible  <bruno@clisp.org>
5890
5891         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
5892         avoid a segmentation fault of the configure test on x86_64 systems.
5893
5894 2007-12-15  Jim Meyering  <meyering@redhat.com>
5895
5896         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
5897
5898 2007-12-13  Eric Blake  <ebb9@byu.net>
5899
5900         Another fseek test.
5901         * tests/test-fseek.c (main): Also test ungetc handling.
5902         * tests/test-fseeko.c (main): Likewise.
5903         * modules/fseeko (Depends-on): Add verify.
5904         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
5905         large.
5906         Reported by Larry Jones.
5907
5908         Fix fseeko on mingw.
5909         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
5910         seek.
5911
5912         Beef up fseek tests.
5913         * tests/test-fseek.c (main): Also test eof handling.
5914         * tests/test-fseeko.c (main): Likewise.
5915         Reported by Larry Jones.
5916
5917 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
5918
5919         Fix fseeko on BSD-based platforms.
5920         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
5921         successful seek.
5922
5923 2007-12-12  Eric Blake  <ebb9@byu.net>
5924
5925         Allow circular dependency of separate libtests.a
5926         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
5927         when use_libtests.
5928
5929 2007-12-11  Eric Blake  <ebb9@byu.net>
5930
5931         Fix bug with -0.0L in previous patch.
5932         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
5933         * tests/test-isnan.c (main): Also test on zeroes.
5934         * tests/test-isnanf.c (main): Likewise.
5935         * tests/test-isnanl.h (main): Likewise.
5936
5937         Detect pseudo-denormals on x86 even when cross-compiling.
5938         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
5939         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
5940         invalid bit patterns that happen to satisfy ==.
5941
5942         Avoid link failures with separate libtests.a.
5943         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
5944         last, to satisfy circular dependencies.
5945
5946 2007-12-11  Eric Blake  <ebb9@byu.net>
5947         and Bruno Haible  <bruno@clisp.org>
5948
5949         Fix OpenBSD 4.0 <float.h> handling of long double.
5950         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
5951         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
5952         * doc/headers/float.texi (float.h): Document OpenBSD bug.
5953
5954 2007-12-11  Jim Meyering  <meyering@redhat.com>
5955
5956         * users.txt: Add libvirt.
5957
5958         Support versions of autoconf prior to 2.59c.
5959         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
5960         if it is not already defined.
5961
5962 2007-12-09  Bruno Haible  <bruno@clisp.org>
5963
5964         Let 'gnulib-tool --import' collect sources needed for the tests in
5965         tests/ rather than in lib/.
5966         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
5967         argument. If true, add rules to generate libtests.a, and put libtests.a
5968         into $(LDADD). Consider source files in subdirectories and set
5969         uses_subdirs.
5970         (func_emit_initmacro_start, func_emit_initmacro_end,
5971         func_emit_initmacro_done): Pass all arguments explicitly.
5972         (func_import): Determine two module lists main_modules,
5973         testsrelated_modules. Determine use_libtests. Determine two variables
5974         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
5975         instead of just sed_transform_lib_file. Determine two variables
5976         main_files and testsrelated_files. Compute 'files' as the union of
5977         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
5978         func_add_or_update. In the generated gnulib-comp.m4, collect the
5979         object files for tests/ in different variables than those for lib/.
5980         Substitute LIBTESTS_LIBDEPS.
5981         (func_create_testdir): Combine the uses_subdirs results from
5982         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
5983
5984 2007-12-09  Bruno Haible  <bruno@clisp.org>
5985
5986         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
5987         the build-aux directory.
5988
5989 2007-12-09  Bruno Haible  <bruno@clisp.org>
5990
5991         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
5992         introduced on 2006-09-09.
5993
5994 2007-12-07  Jim Meyering  <meyering@redhat.com>
5995
5996         Let these macros work also with autoconf-2.59.
5997         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
5998         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
5999         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6000
6001 2007-12-06  Jim Meyering  <meyering@redhat.com>
6002
6003         Avoid a configure-time syntax error in gl_FUNC_ACL.
6004         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
6005         function in each branch, before testing the cache variable.
6006
6007 2007-12-04  Eric Blake  <ebb9@byu.net>
6008
6009         Make scripts executable.
6010         * build-aux/config.guess: Add execute permissions.
6011         * build-aux/config.sub: Likewise.
6012         * build-aux/gendocs.sh: Likewise.
6013
6014         Fix frexp on mingw.
6015         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
6016         cross-compiling.
6017         * doc/functions/frexp.texi (frexp): Document the bug.
6018
6019         Make cygwin fseeko check more reliable.
6020         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
6021         version numbers, rather than unrelated feature check.
6022         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
6023         * doc/functions/ftello.texi (ftello): Likewise.
6024         Reported by Bruno Haible.
6025
6026         * m4/strerror.m4: Bump version number.
6027
6028 2007-12-03  Bruno Haible  <bruno@clisp.org>
6029
6030         * doc/functions/mprotect.texi: Mention the mingw problem.
6031
6032 2007-12-03  Eric Blake  <ebb9@byu.net>
6033
6034         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
6035         REPLACE_STRERROR is initialized before this macro.
6036
6037 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6038
6039         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
6040         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
6041         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
6042         put -lsec in even for programs other than 'ls'.  This fixes a problem
6043         for gettext reported by Bruno Haible in
6044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
6045         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
6046         Add support for Solaris 10.  This isn't efficient, but should get the
6047         job done for now.
6048
6049 2007-12-03  James Youngman  <jay@gnu.org>
6050
6051         * doc/regexprops-generic.texi: change "an close-group" to "a
6052         close-group" and "illegal" to "not allowed".
6053
6054 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6055
6056         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
6057         pr_byname.h. Needed for the rare case when the maintainer has done
6058         "make maintainer-clean" in the source directory and then attempts a
6059         build outside the source directory.
6060         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
6061         scripts_byname.h.
6062
6063 2007-12-02  Martin Lambers <marlam@marlam.de>
6064             Bruno Haible  <bruno@clisp.org>
6065
6066         * lib/getpagesize.h: Remove file.
6067         * lib/unistd.in.h: Include declaration of getpagesize here.
6068         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
6069         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
6070         HAVE_SYS_PARAM_H.
6071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
6072         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6073         * modules/getpagesize (Files): Remove lib/getpagesize.h.
6074         (Depends-on): Add unistd.
6075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6076         (Include): Use <unistd.h> instead of getpagesize.h.
6077         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
6078         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
6079         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
6080         gl_GETPAGESIZE invocation, already handled by module dependency.
6081         * lib/pagealign_alloc.c: Don't include getpagesize.h.
6082
6083 2007-12-02  Bruno Haible  <bruno@clisp.org>
6084
6085         * modules/strings-tests: New file.
6086         * tests/test-strings.c: New file.
6087
6088         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
6089         * lib/strings.in.h: New file.
6090         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
6091         * m4/strings_h.m4: New file.
6092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
6093         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
6094         * modules/strings: New file.
6095         * modules/string (Makefile.am): Update.
6096         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
6097         Reported by Karl Berry.
6098
6099 2007-12-01  Eric Blake  <ebb9@byu.net>
6100
6101         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
6102         accomodate fix in cygwin 1.5.25.
6103
6104 2007-12-01  Jim Meyering  <meyering@redhat.com>
6105
6106         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
6107         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
6108         that would inhibit utf8-optimization of a regexp containing line-
6109         or buffer-anchors, e.g., `^', `$'.
6110
6111 2007-11-30  Bruno Haible  <bruno@clisp.org>
6112
6113         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
6114         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
6115         glthread_recursive_lock_init.
6116         * lib/lock.c (glthread_recursive_lock_init)
6117         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
6118         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6119
6120 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         New function qset_acl, like set_acl but with syscall semantics.
6123         * lib/acl.h (qset_acl): New decl.
6124         * lib/acl.c (qset_acl): New function.
6125         (set_acl): Use new function.  Use more-consistent diagnostics.
6126
6127 2007-11-28  Jim Meyering  <meyering@redhat.com>
6128
6129         * modules/physmem (License): Change from GPL to LGPLv2+.
6130
6131 2007-11-26  Bruno Haible  <bruno@clisp.org>
6132
6133         * lib/vasnprintf.c (decode_long_double): Don't abort if the
6134         'long double' type has excess precision.
6135         Reported by Jim Meyering in
6136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
6137
6138 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6139
6140         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
6141         Sync from <http://gnu.org/licenses>.
6142         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
6143         with license text from same location.
6144         * doc/maintain.texi, doc/standards.texi:  Sync from
6145         <http://savannah.gnu.org/projects/gnustandards>.
6146
6147 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
6148         and Jim Meyering  <meyering@redhat.com>
6149
6150         Adjust getdate' grammar to accept a slightly more regular language.
6151         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
6152         Before, the former was rejected.
6153         * lib/getdate.y (digits_to_date_time): New function, factored
6154         out of ...
6155         (number): ...here.  Just call digits_to_date_time.
6156         (hybrid): New non-terminal to handle an <unsigned number,
6157         signed relative offset> sequence consistently.
6158
6159 2007-11-18  Jim Meyering  <meyering@redhat.com>
6160
6161         Pull my changes from coreutils:
6162         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
6163         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
6164         use of $gnulib_tool_option_extras, so that it's separated from the
6165         preceding argument.
6166
6167         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
6168         * build-aux/bootstrap (cp_mark_as_generated): Create any required
6169         parent destination directories before copying a file into place.
6170
6171 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
6172
6173         bootstrap: work also with 4-argument variant of AC_INIT
6174         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
6175
6176 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6177
6178         Port test-getaddrinfo to Solaris.
6179         Problem reported by Bruno Haible in
6180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
6181         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
6182         explanation of setting 'hints'.
6183         Don't reject an implementation merely because it returns EAI_SERVICE.
6184         (EAI_SERVICE): Define to 0 if not defined.
6185
6186 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
6187
6188         The license of gnu-make and posix-shell is now "GPLed build tool".
6189         * modules/gnu-make (License): Likewise.
6190         * modules/posix-shell (License): Likewise.
6191
6192         New module posix-shell, for determining a POSIX shell
6193         or perhaps something that is close enough to a POSIX shell.
6194         * m4/posix-shell.m4: New file.
6195         * modules/posix-shell: New file.
6196
6197         * MODULES.html.sh: Mention new module.
6198
6199         New module gnu-make, for determining whether we're using GNU Make.
6200         * m4/gnu-make.m4: New file.
6201         * modules/gnu-make: New file.
6202         * MODULES.html.sh: Mention new module.
6203
6204 2007-11-14  Jim Meyering  <meyering@redhat.com>
6205
6206         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
6207         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
6208         use this macro to create a function _definition_.
6209         Remove useless "#undef ARGMATCH_DIE".
6210
6211 2007-11-14  Bruno Haible  <bruno@clisp.org>
6212
6213         * lib/config.charset: Update for OpenBSD 4.1.
6214         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
6215
6216 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         Document 64-bit #if problems in stdint.texi.
6219         * doc/headers/stdint.texi (stdint.h): Mention problems with
6220         64-bit-#if, and how to work around them.
6221
6222         Don't insist on 'long long int' support in the preprocessor.  It
6223         breaks too many things.  For example, PRIdMAX still uses a 'long
6224         long int' format with the latest Sun compiler, even though
6225         HAVE_LONG_LONG_INT isn't defined due to that compiler's
6226         preprocessor problem.  This causes the latest coreutils to dump
6227         core on Solaris 10 sparc with the Sun C compiler.
6228         Instead, fix the 2007-10-16 problem in a different way, by evaluating
6229         the troublesome expressions at configure-time, not at #if-time.
6230         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
6231         preprocessor.
6232         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
6233         compile-time C checks, done at 'configure'-time.
6234         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
6235         * modules/inttypes (Makefile): Substitute the new symbols that
6236         gl_INTTYPES_H now generates.
6237         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
6238
6239 2007-11-12  Bruno Haible  <bruno@clisp.org>
6240
6241         Tests for Unicode character classification functions.
6242
6243         * modules/unictype/bidicategory-byname-tests: New file.
6244         * modules/unictype/bidicategory-name-tests: New file.
6245         * modules/unictype/bidicategory-of-tests: New file.
6246         * modules/unictype/bidicategory-test-tests: New file.
6247         * modules/unictype/block-list-tests: New file.
6248         * modules/unictype/block-of-tests: New file.
6249         * modules/unictype/block-test-tests: New file.
6250         * modules/unictype/category-C-tests: New file.
6251         * modules/unictype/category-Cc-tests: New file.
6252         * modules/unictype/category-Cf-tests: New file.
6253         * modules/unictype/category-Cn-tests: New file.
6254         * modules/unictype/category-Co-tests: New file.
6255         * modules/unictype/category-Cs-tests: New file.
6256         * modules/unictype/category-L-tests: New file.
6257         * modules/unictype/category-Ll-tests: New file.
6258         * modules/unictype/category-Lm-tests: New file.
6259         * modules/unictype/category-Lo-tests: New file.
6260         * modules/unictype/category-Lt-tests: New file.
6261         * modules/unictype/category-Lu-tests: New file.
6262         * modules/unictype/category-M-tests: New file.
6263         * modules/unictype/category-Mc-tests: New file.
6264         * modules/unictype/category-Me-tests: New file.
6265         * modules/unictype/category-Mn-tests: New file.
6266         * modules/unictype/category-N-tests: New file.
6267         * modules/unictype/category-Nd-tests: New file.
6268         * modules/unictype/category-Nl-tests: New file.
6269         * modules/unictype/category-No-tests: New file.
6270         * modules/unictype/category-P-tests: New file.
6271         * modules/unictype/category-Pc-tests: New file.
6272         * modules/unictype/category-Pd-tests: New file.
6273         * modules/unictype/category-Pe-tests: New file.
6274         * modules/unictype/category-Pf-tests: New file.
6275         * modules/unictype/category-Pi-tests: New file.
6276         * modules/unictype/category-Po-tests: New file.
6277         * modules/unictype/category-Ps-tests: New file.
6278         * modules/unictype/category-S-tests: New file.
6279         * modules/unictype/category-Sc-tests: New file.
6280         * modules/unictype/category-Sk-tests: New file.
6281         * modules/unictype/category-Sm-tests: New file.
6282         * modules/unictype/category-So-tests: New file.
6283         * modules/unictype/category-Z-tests: New file.
6284         * modules/unictype/category-Zl-tests: New file.
6285         * modules/unictype/category-Zp-tests: New file.
6286         * modules/unictype/category-Zs-tests: New file.
6287         * modules/unictype/category-and-not-tests: New file.
6288         * modules/unictype/category-and-tests: New file.
6289         * modules/unictype/category-byname-tests: New file.
6290         * modules/unictype/category-name-tests: New file.
6291         * modules/unictype/category-none-tests: New file.
6292         * modules/unictype/category-of-tests: New file.
6293         * modules/unictype/category-or-tests: New file.
6294         * modules/unictype/category-test-withtable-tests: New file.
6295         * modules/unictype/combining-class-tests: New file.
6296         * modules/unictype/ctype-alnum-tests: New file.
6297         * modules/unictype/ctype-alpha-tests: New file.
6298         * modules/unictype/ctype-blank-tests: New file.
6299         * modules/unictype/ctype-cntrl-tests: New file.
6300         * modules/unictype/ctype-digit-tests: New file.
6301         * modules/unictype/ctype-graph-tests: New file.
6302         * modules/unictype/ctype-lower-tests: New file.
6303         * modules/unictype/ctype-print-tests: New file.
6304         * modules/unictype/ctype-punct-tests: New file.
6305         * modules/unictype/ctype-space-tests: New file.
6306         * modules/unictype/ctype-upper-tests: New file.
6307         * modules/unictype/ctype-xdigit-tests: New file.
6308         * modules/unictype/decimal-digit-tests: New file.
6309         * modules/unictype/digit-tests: New file.
6310         * modules/unictype/mirror-tests: New file.
6311         * modules/unictype/numeric-tests: New file.
6312         * modules/unictype/property-alphabetic-tests: New file.
6313         * modules/unictype/property-ascii-hex-digit-tests: New file.
6314         * modules/unictype/property-bidi-arabic-digit-tests: New file.
6315         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
6316         * modules/unictype/property-bidi-block-separator-tests: New file.
6317         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
6318         * modules/unictype/property-bidi-common-separator-tests: New file.
6319         * modules/unictype/property-bidi-control-tests: New file.
6320         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
6321         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
6322         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
6323         * modules/unictype/property-bidi-european-digit-tests: New file.
6324         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
6325         * modules/unictype/property-bidi-left-to-right-tests: New file.
6326         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
6327         * modules/unictype/property-bidi-other-neutral-tests: New file.
6328         * modules/unictype/property-bidi-pdf-tests: New file.
6329         * modules/unictype/property-bidi-segment-separator-tests: New file.
6330         * modules/unictype/property-bidi-whitespace-tests: New file.
6331         * modules/unictype/property-byname-tests: New file.
6332         * modules/unictype/property-combining-tests: New file.
6333         * modules/unictype/property-composite-tests: New file.
6334         * modules/unictype/property-currency-symbol-tests: New file.
6335         * modules/unictype/property-dash-tests: New file.
6336         * modules/unictype/property-decimal-digit-tests: New file.
6337         * modules/unictype/property-default-ignorable-code-point-tests: New file.
6338         * modules/unictype/property-deprecated-tests: New file.
6339         * modules/unictype/property-diacritic-tests: New file.
6340         * modules/unictype/property-extender-tests: New file.
6341         * modules/unictype/property-format-control-tests: New file.
6342         * modules/unictype/property-grapheme-base-tests: New file.
6343         * modules/unictype/property-grapheme-extend-tests: New file.
6344         * modules/unictype/property-grapheme-link-tests: New file.
6345         * modules/unictype/property-hex-digit-tests: New file.
6346         * modules/unictype/property-hyphen-tests: New file.
6347         * modules/unictype/property-id-continue-tests: New file.
6348         * modules/unictype/property-id-start-tests: New file.
6349         * modules/unictype/property-ideographic-tests: New file.
6350         * modules/unictype/property-ids-binary-operator-tests: New file.
6351         * modules/unictype/property-ids-trinary-operator-tests: New file.
6352         * modules/unictype/property-ignorable-control-tests: New file.
6353         * modules/unictype/property-iso-control-tests: New file.
6354         * modules/unictype/property-join-control-tests: New file.
6355         * modules/unictype/property-left-of-pair-tests: New file.
6356         * modules/unictype/property-line-separator-tests: New file.
6357         * modules/unictype/property-logical-order-exception-tests: New file.
6358         * modules/unictype/property-lowercase-tests: New file.
6359         * modules/unictype/property-math-tests: New file.
6360         * modules/unictype/property-non-break-tests: New file.
6361         * modules/unictype/property-not-a-character-tests: New file.
6362         * modules/unictype/property-numeric-tests: New file.
6363         * modules/unictype/property-other-alphabetic-tests: New file.
6364         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
6365         * modules/unictype/property-other-grapheme-extend-tests: New file.
6366         * modules/unictype/property-other-id-continue-tests: New file.
6367         * modules/unictype/property-other-id-start-tests: New file.
6368         * modules/unictype/property-other-lowercase-tests: New file.
6369         * modules/unictype/property-other-math-tests: New file.
6370         * modules/unictype/property-other-uppercase-tests: New file.
6371         * modules/unictype/property-paired-punctuation-tests: New file.
6372         * modules/unictype/property-paragraph-separator-tests: New file.
6373         * modules/unictype/property-pattern-syntax-tests: New file.
6374         * modules/unictype/property-pattern-white-space-tests: New file.
6375         * modules/unictype/property-private-use-tests: New file.
6376         * modules/unictype/property-punctuation-tests: New file.
6377         * modules/unictype/property-quotation-mark-tests: New file.
6378         * modules/unictype/property-radical-tests: New file.
6379         * modules/unictype/property-sentence-terminal-tests: New file.
6380         * modules/unictype/property-soft-dotted-tests: New file.
6381         * modules/unictype/property-space-tests: New file.
6382         * modules/unictype/property-terminal-punctuation-tests: New file.
6383         * modules/unictype/property-test-tests: New file.
6384         * modules/unictype/property-titlecase-tests: New file.
6385         * modules/unictype/property-unassigned-code-value-tests: New file.
6386         * modules/unictype/property-unified-ideograph-tests: New file.
6387         * modules/unictype/property-uppercase-tests: New file.
6388         * modules/unictype/property-variation-selector-tests: New file.
6389         * modules/unictype/property-white-space-tests: New file.
6390         * modules/unictype/property-xid-continue-tests: New file.
6391         * modules/unictype/property-xid-start-tests: New file.
6392         * modules/unictype/property-zero-width-tests: New file.
6393         * modules/unictype/scripts-tests: New file.
6394         * modules/unictype/syntax-c-ident-tests: New file.
6395         * modules/unictype/syntax-c-whitespace-tests: New file.
6396         * modules/unictype/syntax-java-ident-tests: New file.
6397         * modules/unictype/syntax-java-whitespace-tests: New file.
6398         * tests/unictype/test-bidi_byname.c: New file.
6399         * tests/unictype/test-bidi_name.c: New file.
6400         * tests/unictype/test-bidi_of.c: New file.
6401         * tests/unictype/test-bidi_test.c: New file.
6402         * tests/unictype/test-block_list.c: New file.
6403         * tests/unictype/test-block_of.c: New file.
6404         * tests/unictype/test-block_test.c: New file.
6405         * tests/unictype/test-categ_and.c: New file.
6406         * tests/unictype/test-categ_and_not.c: New file.
6407         * tests/unictype/test-categ_byname.c: New file.
6408         * tests/unictype/test-categ_name.c: New file.
6409         * tests/unictype/test-categ_none.c: New file.
6410         * tests/unictype/test-categ_of.c: New file.
6411         * tests/unictype/test-categ_or.c: New file.
6412         * tests/unictype/test-categ_test_withtable.c: New file.
6413         * tests/unictype/test-combining.c: New file.
6414         * tests/unictype/test-decdigit.c: New file.
6415         * tests/unictype/test-digit.c: New file.
6416         * tests/unictype/test-mirror.c: New file.
6417         * tests/unictype/test-numeric.c: New file.
6418         * tests/unictype/test-pr_byname.c: New file.
6419         * tests/unictype/test-pr_test.c: New file.
6420         * tests/unictype/test-predicate-part1.h: New file.
6421         * tests/unictype/test-predicate-part2.h: New file.
6422         * tests/unictype/test-scripts.c: New file.
6423         * tests/unictype/test-sy_c_ident.c: New file.
6424         * tests/unictype/test-sy_java_ident.c: New file.
6425
6426         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
6427         for Unicode 5.0.0.
6428         * tests/unictype/test-categ_Cc.c: Likewise.
6429         * tests/unictype/test-categ_Cf.c: Likewise.
6430         * tests/unictype/test-categ_Cn.c: Likewise.
6431         * tests/unictype/test-categ_Co.c: Likewise.
6432         * tests/unictype/test-categ_Cs.c: Likewise.
6433         * tests/unictype/test-categ_L.c: Likewise.
6434         * tests/unictype/test-categ_Ll.c: Likewise.
6435         * tests/unictype/test-categ_Lm.c: Likewise.
6436         * tests/unictype/test-categ_Lo.c: Likewise.
6437         * tests/unictype/test-categ_Lt.c: Likewise.
6438         * tests/unictype/test-categ_Lu.c: Likewise.
6439         * tests/unictype/test-categ_M.c: Likewise.
6440         * tests/unictype/test-categ_Mc.c: Likewise.
6441         * tests/unictype/test-categ_Me.c: Likewise.
6442         * tests/unictype/test-categ_Mn.c: Likewise.
6443         * tests/unictype/test-categ_N.c: Likewise.
6444         * tests/unictype/test-categ_Nd.c: Likewise.
6445         * tests/unictype/test-categ_Nl.c: Likewise.
6446         * tests/unictype/test-categ_No.c: Likewise.
6447         * tests/unictype/test-categ_P.c: Likewise.
6448         * tests/unictype/test-categ_Pc.c: Likewise.
6449         * tests/unictype/test-categ_Pd.c: Likewise.
6450         * tests/unictype/test-categ_Pe.c: Likewise.
6451         * tests/unictype/test-categ_Pf.c: Likewise.
6452         * tests/unictype/test-categ_Pi.c: Likewise.
6453         * tests/unictype/test-categ_Po.c: Likewise.
6454         * tests/unictype/test-categ_Ps.c: Likewise.
6455         * tests/unictype/test-categ_S.c: Likewise.
6456         * tests/unictype/test-categ_Sc.c: Likewise.
6457         * tests/unictype/test-categ_Sk.c: Likewise.
6458         * tests/unictype/test-categ_Sm.c: Likewise.
6459         * tests/unictype/test-categ_So.c: Likewise.
6460         * tests/unictype/test-categ_Z.c: Likewise.
6461         * tests/unictype/test-categ_Zl.c: Likewise.
6462         * tests/unictype/test-categ_Zp.c: Likewise.
6463         * tests/unictype/test-categ_Zs.c: Likewise.
6464         * tests/unictype/test-ctype_alnum.c: Likewise.
6465         * tests/unictype/test-ctype_alpha.c: Likewise.
6466         * tests/unictype/test-ctype_blank.c: Likewise.
6467         * tests/unictype/test-ctype_cntrl.c: Likewise.
6468         * tests/unictype/test-ctype_digit.c: Likewise.
6469         * tests/unictype/test-ctype_graph.c: Likewise.
6470         * tests/unictype/test-ctype_lower.c: Likewise.
6471         * tests/unictype/test-ctype_print.c: Likewise.
6472         * tests/unictype/test-ctype_punct.c: Likewise.
6473         * tests/unictype/test-ctype_space.c: Likewise.
6474         * tests/unictype/test-ctype_upper.c: Likewise.
6475         * tests/unictype/test-ctype_xdigit.c: Likewise.
6476         * tests/unictype/test-decdigit.h: Likewise.
6477         * tests/unictype/test-digit.h: Likewise.
6478         * tests/unictype/test-numeric.h: Likewise.
6479         * tests/unictype/test-pr_alphabetic.c: Likewise.
6480         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
6481         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6482         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6483         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
6484         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6485         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
6486         * tests/unictype/test-pr_bidi_control.c: Likewise.
6487         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
6488         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
6489         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6490         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6491         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6492         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6493         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6494         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6495         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
6496         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
6497         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
6498         * tests/unictype/test-pr_combining.c: Likewise.
6499         * tests/unictype/test-pr_composite.c: Likewise.
6500         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6501         * tests/unictype/test-pr_dash.c: Likewise.
6502         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6503         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
6504         * tests/unictype/test-pr_deprecated.c: Likewise.
6505         * tests/unictype/test-pr_diacritic.c: Likewise.
6506         * tests/unictype/test-pr_extender.c: Likewise.
6507         * tests/unictype/test-pr_format_control.c: Likewise.
6508         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6509         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6510         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6511         * tests/unictype/test-pr_hex_digit.c: Likewise.
6512         * tests/unictype/test-pr_hyphen.c: Likewise.
6513         * tests/unictype/test-pr_id_continue.c: Likewise.
6514         * tests/unictype/test-pr_id_start.c: Likewise.
6515         * tests/unictype/test-pr_ideographic.c: Likewise.
6516         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
6517         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
6518         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6519         * tests/unictype/test-pr_iso_control.c: Likewise.
6520         * tests/unictype/test-pr_join_control.c: Likewise.
6521         * tests/unictype/test-pr_left_of_pair.c: Likewise.
6522         * tests/unictype/test-pr_line_separator.c: Likewise.
6523         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6524         * tests/unictype/test-pr_lowercase.c: Likewise.
6525         * tests/unictype/test-pr_math.c: Likewise.
6526         * tests/unictype/test-pr_non_break.c: Likewise.
6527         * tests/unictype/test-pr_not_a_character.c: Likewise.
6528         * tests/unictype/test-pr_numeric.c: Likewise.
6529         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6530         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
6531         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
6532         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6533         * tests/unictype/test-pr_other_id_start.c: Likewise.
6534         * tests/unictype/test-pr_other_lowercase.c: Likewise.
6535         * tests/unictype/test-pr_other_math.c: Likewise.
6536         * tests/unictype/test-pr_other_uppercase.c: Likewise.
6537         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
6538         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
6539         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
6540         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
6541         * tests/unictype/test-pr_private_use.c: Likewise.
6542         * tests/unictype/test-pr_punctuation.c: Likewise.
6543         * tests/unictype/test-pr_quotation_mark.c: Likewise.
6544         * tests/unictype/test-pr_radical.c: Likewise.
6545         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6546         * tests/unictype/test-pr_soft_dotted.c: Likewise.
6547         * tests/unictype/test-pr_space.c: Likewise.
6548         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6549         * tests/unictype/test-pr_titlecase.c: Likewise.
6550         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6551         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6552         * tests/unictype/test-pr_uppercase.c: Likewise.
6553         * tests/unictype/test-pr_variation_selector.c: Likewise.
6554         * tests/unictype/test-pr_white_space.c: Likewise.
6555         * tests/unictype/test-pr_xid_continue.c: Likewise.
6556         * tests/unictype/test-pr_xid_start.c: Likewise.
6557         * tests/unictype/test-pr_zero_width.c: Likewise.
6558         * tests/unictype/test-sy_c_whitespace.c: Likewise.
6559         * tests/unictype/test-sy_java_whitespace.c: Likewise.
6560
6561 2007-11-12  Bruno Haible  <bruno@clisp.org>
6562
6563         Unicode character classification functions.
6564         * lib/unictype.h: New file.
6565         * modules/unictype/base: New file.
6566         * modules/unictype/category-L: New file.
6567         * modules/unictype/category-Lu: New file.
6568         * modules/unictype/category-Ll: New file.
6569         * modules/unictype/category-Lt: New file.
6570         * modules/unictype/category-Lm: New file.
6571         * modules/unictype/category-Lo: New file.
6572         * modules/unictype/category-M: New file.
6573         * modules/unictype/category-Mn: New file.
6574         * modules/unictype/category-Mc: New file.
6575         * modules/unictype/category-Me: New file.
6576         * modules/unictype/category-N: New file.
6577         * modules/unictype/category-Nd: New file.
6578         * modules/unictype/category-Nl: New file.
6579         * modules/unictype/category-No: New file.
6580         * modules/unictype/category-P: New file.
6581         * modules/unictype/category-Pc: New file.
6582         * modules/unictype/category-Pd: New file.
6583         * modules/unictype/category-Ps: New file.
6584         * modules/unictype/category-Pe: New file.
6585         * modules/unictype/category-Pi: New file.
6586         * modules/unictype/category-Pf: New file.
6587         * modules/unictype/category-Po: New file.
6588         * modules/unictype/category-S: New file.
6589         * modules/unictype/category-Sm: New file.
6590         * modules/unictype/category-Sc: New file.
6591         * modules/unictype/category-Sk: New file.
6592         * modules/unictype/category-So: New file.
6593         * modules/unictype/category-Z: New file.
6594         * modules/unictype/category-Zs: New file.
6595         * modules/unictype/category-Zl: New file.
6596         * modules/unictype/category-Zp: New file.
6597         * modules/unictype/category-C: New file.
6598         * modules/unictype/category-Cc: New file.
6599         * modules/unictype/category-Cf: New file.
6600         * modules/unictype/category-Cs: New file.
6601         * modules/unictype/category-Co: New file.
6602         * modules/unictype/category-Cn: New file.
6603         * modules/unictype/category-or: New file.
6604         * modules/unictype/category-of: New file.
6605         * modules/unictype/category-test: New file.
6606         * modules/unictype/category-test-withtable: New file.
6607         * modules/unictype/category-byname: New file.
6608         * modules/unictype/category-none: New file.
6609         * modules/unictype/category-and: New file.
6610         * modules/unictype/category-and-not: New file.
6611         * modules/unictype/category-name: New file.
6612         * modules/unictype/combining-class: New file.
6613         * modules/unictype/category-all: New file.
6614         * modules/unictype/bidicategory-all: New file.
6615         * modules/unictype/bidicategory-byname: New file.
6616         * modules/unictype/bidicategory-name: New file.
6617         * modules/unictype/bidicategory-of: New file.
6618         * modules/unictype/bidicategory-test: New file.
6619         * modules/unictype/decimal-digit: New file.
6620         * modules/unictype/digit: New file.
6621         * modules/unictype/numeric: New file.
6622         * modules/unictype/mirror: New file.
6623         * modules/unictype/property-white-space: New file.
6624         * modules/unictype/property-alphabetic: New file.
6625         * modules/unictype/property-other-alphabetic: New file.
6626         * modules/unictype/property-not-a-character: New file.
6627         * modules/unictype/property-default-ignorable-code-point: New file.
6628         * modules/unictype/property-other-default-ignorable-code-point: New
6629         file.
6630         * modules/unictype/property-deprecated: New file.
6631         * modules/unictype/property-logical-order-exception: New file.
6632         * modules/unictype/property-variation-selector: New file.
6633         * modules/unictype/property-private-use: New file.
6634         * modules/unictype/property-unassigned-code-value: New file.
6635         * modules/unictype/property-uppercase: New file.
6636         * modules/unictype/property-other-uppercase: New file.
6637         * modules/unictype/property-lowercase: New file.
6638         * modules/unictype/property-other-lowercase: New file.
6639         * modules/unictype/property-titlecase: New file.
6640         * modules/unictype/property-soft-dotted: New file.
6641         * modules/unictype/property-id-start: New file.
6642         * modules/unictype/property-other-id-start: New file.
6643         * modules/unictype/property-id-continue: New file.
6644         * modules/unictype/property-other-id-continue: New file.
6645         * modules/unictype/property-xid-start: New file.
6646         * modules/unictype/property-xid-continue: New file.
6647         * modules/unictype/property-pattern-white-space: New file.
6648         * modules/unictype/property-pattern-syntax: New file.
6649         * modules/unictype/property-join-control: New file.
6650         * modules/unictype/property-grapheme-base: New file.
6651         * modules/unictype/property-grapheme-extend: New file.
6652         * modules/unictype/property-other-grapheme-extend: New file.
6653         * modules/unictype/property-grapheme-link: New file.
6654         * modules/unictype/property-bidi-control: New file.
6655         * modules/unictype/property-bidi-left-to-right: New file.
6656         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
6657         * modules/unictype/property-bidi-arabic-right-to-left: New file.
6658         * modules/unictype/property-bidi-european-digit: New file.
6659         * modules/unictype/property-bidi-eur-num-separator: New file.
6660         * modules/unictype/property-bidi-eur-num-terminator: New file.
6661         * modules/unictype/property-bidi-arabic-digit: New file.
6662         * modules/unictype/property-bidi-common-separator: New file.
6663         * modules/unictype/property-bidi-block-separator: New file.
6664         * modules/unictype/property-bidi-segment-separator: New file.
6665         * modules/unictype/property-bidi-whitespace: New file.
6666         * modules/unictype/property-bidi-non-spacing-mark: New file.
6667         * modules/unictype/property-bidi-boundary-neutral: New file.
6668         * modules/unictype/property-bidi-pdf: New file.
6669         * modules/unictype/property-bidi-embedding-or-override: New file.
6670         * modules/unictype/property-bidi-other-neutral: New file.
6671         * modules/unictype/property-hex-digit: New file.
6672         * modules/unictype/property-ascii-hex-digit: New file.
6673         * modules/unictype/property-ideographic: New file.
6674         * modules/unictype/property-unified-ideograph: New file.
6675         * modules/unictype/property-radical: New file.
6676         * modules/unictype/property-ids-binary-operator: New file.
6677         * modules/unictype/property-ids-trinary-operator: New file.
6678         * modules/unictype/property-zero-width: New file.
6679         * modules/unictype/property-space: New file.
6680         * modules/unictype/property-non-break: New file.
6681         * modules/unictype/property-iso-control: New file.
6682         * modules/unictype/property-format-control: New file.
6683         * modules/unictype/property-dash: New file.
6684         * modules/unictype/property-hyphen: New file.
6685         * modules/unictype/property-punctuation: New file.
6686         * modules/unictype/property-line-separator: New file.
6687         * modules/unictype/property-paragraph-separator: New file.
6688         * modules/unictype/property-quotation-mark: New file.
6689         * modules/unictype/property-sentence-terminal: New file.
6690         * modules/unictype/property-terminal-punctuation: New file.
6691         * modules/unictype/property-currency-symbol: New file.
6692         * modules/unictype/property-math: New file.
6693         * modules/unictype/property-other-math: New file.
6694         * modules/unictype/property-paired-punctuation: New file.
6695         * modules/unictype/property-left-of-pair: New file.
6696         * modules/unictype/property-combining: New file.
6697         * modules/unictype/property-composite: New file.
6698         * modules/unictype/property-decimal-digit: New file.
6699         * modules/unictype/property-numeric: New file.
6700         * modules/unictype/property-diacritic: New file.
6701         * modules/unictype/property-extender: New file.
6702         * modules/unictype/property-ignorable-control: New file.
6703         * modules/unictype/property-test: New file.
6704         * modules/unictype/property-byname: New file.
6705         * modules/unictype/property-all: New file.
6706         * modules/unictype/scripts: New file.
6707         * modules/unictype/scripts-all: New file.
6708         * modules/unictype/block-of: New file.
6709         * modules/unictype/block-test: New file.
6710         * modules/unictype/block-list: New file.
6711         * modules/unictype/block-all: New file.
6712         * modules/unictype/syntax-c-whitespace: New file.
6713         * modules/unictype/syntax-java-whitespace: New file.
6714         * modules/unictype/syntax-c-ident: New file.
6715         * modules/unictype/syntax-java-ident: New file.
6716         * modules/unictype/ctype-alnum: New file.
6717         * modules/unictype/ctype-alpha: New file.
6718         * modules/unictype/ctype-cntrl: New file.
6719         * modules/unictype/ctype-digit: New file.
6720         * modules/unictype/ctype-graph: New file.
6721         * modules/unictype/ctype-lower: New file.
6722         * modules/unictype/ctype-print: New file.
6723         * modules/unictype/ctype-punct: New file.
6724         * modules/unictype/ctype-space: New file.
6725         * modules/unictype/ctype-upper: New file.
6726         * modules/unictype/ctype-xdigit: New file.
6727         * modules/unictype/ctype-blank: New file.
6728         * lib/unictype/bidi_byname.c: New file.
6729         * lib/unictype/bidi_name.c: New file.
6730         * lib/unictype/bidi_of.c: New file.
6731         * lib/unictype/bidi_test.c: New file.
6732         * lib/unictype/bitmap.h: New file.
6733         * lib/unictype/block_test.c: New file.
6734         * lib/unictype/blocks.c: New file.
6735         * lib/unictype/categ_C.c: New file.
6736         * lib/unictype/categ_Cc.c: New file.
6737         * lib/unictype/categ_Cf.c: New file.
6738         * lib/unictype/categ_Cn.c: New file.
6739         * lib/unictype/categ_Co.c: New file.
6740         * lib/unictype/categ_Cs.c: New file.
6741         * lib/unictype/categ_L.c: New file.
6742         * lib/unictype/categ_Ll.c: New file.
6743         * lib/unictype/categ_Lm.c: New file.
6744         * lib/unictype/categ_Lo.c: New file.
6745         * lib/unictype/categ_Lt.c: New file.
6746         * lib/unictype/categ_Lu.c: New file.
6747         * lib/unictype/categ_M.c: New file.
6748         * lib/unictype/categ_Mc.c: New file.
6749         * lib/unictype/categ_Me.c: New file.
6750         * lib/unictype/categ_Mn.c: New file.
6751         * lib/unictype/categ_N.c: New file.
6752         * lib/unictype/categ_Nd.c: New file.
6753         * lib/unictype/categ_Nl.c: New file.
6754         * lib/unictype/categ_No.c: New file.
6755         * lib/unictype/categ_P.c: New file.
6756         * lib/unictype/categ_Pc.c: New file.
6757         * lib/unictype/categ_Pd.c: New file.
6758         * lib/unictype/categ_Pe.c: New file.
6759         * lib/unictype/categ_Pf.c: New file.
6760         * lib/unictype/categ_Pi.c: New file.
6761         * lib/unictype/categ_Po.c: New file.
6762         * lib/unictype/categ_Ps.c: New file.
6763         * lib/unictype/categ_S.c: New file.
6764         * lib/unictype/categ_Sc.c: New file.
6765         * lib/unictype/categ_Sk.c: New file.
6766         * lib/unictype/categ_Sm.c: New file.
6767         * lib/unictype/categ_So.c: New file.
6768         * lib/unictype/categ_Z.c: New file.
6769         * lib/unictype/categ_Zl.c: New file.
6770         * lib/unictype/categ_Zp.c: New file.
6771         * lib/unictype/categ_Zs.c: New file.
6772         * lib/unictype/categ_and.c: New file.
6773         * lib/unictype/categ_and_not.c: New file.
6774         * lib/unictype/categ_byname.c: New file.
6775         * lib/unictype/categ_name.c: New file.
6776         * lib/unictype/categ_none.c: New file.
6777         * lib/unictype/categ_of.c: New file.
6778         * lib/unictype/categ_or.c: New file.
6779         * lib/unictype/categ_test.c: New file.
6780         * lib/unictype/combining.c: New file.
6781         * lib/unictype/ctype_alnum.c: New file.
6782         * lib/unictype/ctype_alpha.c: New file.
6783         * lib/unictype/ctype_blank.c: New file.
6784         * lib/unictype/ctype_cntrl.c: New file.
6785         * lib/unictype/ctype_digit.c: New file.
6786         * lib/unictype/ctype_graph.c: New file.
6787         * lib/unictype/ctype_lower.c: New file.
6788         * lib/unictype/ctype_print.c: New file.
6789         * lib/unictype/ctype_punct.c: New file.
6790         * lib/unictype/ctype_space.c: New file.
6791         * lib/unictype/ctype_upper.c: New file.
6792         * lib/unictype/ctype_xdigit.c: New file.
6793         * lib/unictype/decdigit.c: New file.
6794         * lib/unictype/digit.c: New file.
6795         * lib/unictype/identsyntaxmap.h: New file.
6796         * lib/unictype/mirror.c: New file.
6797         * lib/unictype/numeric.c: New file.
6798         * lib/unictype/pr_alphabetic.c: New file.
6799         * lib/unictype/pr_ascii_hex_digit.c: New file.
6800         * lib/unictype/pr_bidi_arabic_digit.c: New file.
6801         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
6802         * lib/unictype/pr_bidi_block_separator.c: New file.
6803         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
6804         * lib/unictype/pr_bidi_common_separator.c: New file.
6805         * lib/unictype/pr_bidi_control.c: New file.
6806         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
6807         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
6808         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
6809         * lib/unictype/pr_bidi_european_digit.c: New file.
6810         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
6811         * lib/unictype/pr_bidi_left_to_right.c: New file.
6812         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
6813         * lib/unictype/pr_bidi_other_neutral.c: New file.
6814         * lib/unictype/pr_bidi_pdf.c: New file.
6815         * lib/unictype/pr_bidi_segment_separator.c: New file.
6816         * lib/unictype/pr_bidi_whitespace.c: New file.
6817         * lib/unictype/pr_byname.c: New file.
6818         * lib/unictype/pr_byname.gperf: New file.
6819         * lib/unictype/pr_combining.c: New file.
6820         * lib/unictype/pr_composite.c: New file.
6821         * lib/unictype/pr_currency_symbol.c: New file.
6822         * lib/unictype/pr_dash.c: New file.
6823         * lib/unictype/pr_decimal_digit.c: New file.
6824         * lib/unictype/pr_default_ignorable_code_point.c: New file.
6825         * lib/unictype/pr_deprecated.c: New file.
6826         * lib/unictype/pr_diacritic.c: New file.
6827         * lib/unictype/pr_extender.c: New file.
6828         * lib/unictype/pr_format_control.c: New file.
6829         * lib/unictype/pr_grapheme_base.c: New file.
6830         * lib/unictype/pr_grapheme_extend.c: New file.
6831         * lib/unictype/pr_grapheme_link.c: New file.
6832         * lib/unictype/pr_hex_digit.c: New file.
6833         * lib/unictype/pr_hyphen.c: New file.
6834         * lib/unictype/pr_id_continue.c: New file.
6835         * lib/unictype/pr_id_start.c: New file.
6836         * lib/unictype/pr_ideographic.c: New file.
6837         * lib/unictype/pr_ids_binary_operator.c: New file.
6838         * lib/unictype/pr_ids_trinary_operator.c: New file.
6839         * lib/unictype/pr_ignorable_control.c: New file.
6840         * lib/unictype/pr_iso_control.c: New file.
6841         * lib/unictype/pr_join_control.c: New file.
6842         * lib/unictype/pr_left_of_pair.c: New file.
6843         * lib/unictype/pr_line_separator.c: New file.
6844         * lib/unictype/pr_logical_order_exception.c: New file.
6845         * lib/unictype/pr_lowercase.c: New file.
6846         * lib/unictype/pr_math.c: New file.
6847         * lib/unictype/pr_non_break.c: New file.
6848         * lib/unictype/pr_not_a_character.c: New file.
6849         * lib/unictype/pr_numeric.c: New file.
6850         * lib/unictype/pr_other_alphabetic.c: New file.
6851         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
6852         * lib/unictype/pr_other_grapheme_extend.c: New file.
6853         * lib/unictype/pr_other_id_continue.c: New file.
6854         * lib/unictype/pr_other_id_start.c: New file.
6855         * lib/unictype/pr_other_lowercase.c: New file.
6856         * lib/unictype/pr_other_math.c: New file.
6857         * lib/unictype/pr_other_uppercase.c: New file.
6858         * lib/unictype/pr_paired_punctuation.c: New file.
6859         * lib/unictype/pr_paragraph_separator.c: New file.
6860         * lib/unictype/pr_pattern_syntax.c: New file.
6861         * lib/unictype/pr_pattern_white_space.c: New file.
6862         * lib/unictype/pr_private_use.c: New file.
6863         * lib/unictype/pr_punctuation.c: New file.
6864         * lib/unictype/pr_quotation_mark.c: New file.
6865         * lib/unictype/pr_radical.c: New file.
6866         * lib/unictype/pr_sentence_terminal.c: New file.
6867         * lib/unictype/pr_soft_dotted.c: New file.
6868         * lib/unictype/pr_space.c: New file.
6869         * lib/unictype/pr_terminal_punctuation.c: New file.
6870         * lib/unictype/pr_test.c: New file.
6871         * lib/unictype/pr_titlecase.c: New file.
6872         * lib/unictype/pr_unassigned_code_value.c: New file.
6873         * lib/unictype/pr_unified_ideograph.c: New file.
6874         * lib/unictype/pr_uppercase.c: New file.
6875         * lib/unictype/pr_variation_selector.c: New file.
6876         * lib/unictype/pr_white_space.c: New file.
6877         * lib/unictype/pr_xid_continue.c: New file.
6878         * lib/unictype/pr_xid_start.c: New file.
6879         * lib/unictype/pr_zero_width.c: New file.
6880         * lib/unictype/scripts.c: New file.
6881         * lib/unictype/sy_c_ident.c: New file.
6882         * lib/unictype/sy_c_whitespace.c: New file.
6883         * lib/unictype/sy_java_ident.c: New file.
6884         * lib/unictype/sy_java_whitespace.c: New file.
6885
6886         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
6887         Unicode 5.0.0.
6888         * lib/unictype/blocks.h: Likewise.
6889         * lib/unictype/categ_C.h: Likewise.
6890         * lib/unictype/categ_Cc.h: Likewise.
6891         * lib/unictype/categ_Cf.h: Likewise.
6892         * lib/unictype/categ_Cn.h: Likewise.
6893         * lib/unictype/categ_Co.h: Likewise.
6894         * lib/unictype/categ_Cs.h: Likewise.
6895         * lib/unictype/categ_L.h: Likewise.
6896         * lib/unictype/categ_Ll.h: Likewise.
6897         * lib/unictype/categ_Lm.h: Likewise.
6898         * lib/unictype/categ_Lo.h: Likewise.
6899         * lib/unictype/categ_Lt.h: Likewise.
6900         * lib/unictype/categ_Lu.h: Likewise.
6901         * lib/unictype/categ_M.h: Likewise.
6902         * lib/unictype/categ_Mc.h: Likewise.
6903         * lib/unictype/categ_Me.h: Likewise.
6904         * lib/unictype/categ_Mn.h: Likewise.
6905         * lib/unictype/categ_N.h: Likewise.
6906         * lib/unictype/categ_Nd.h: Likewise.
6907         * lib/unictype/categ_Nl.h: Likewise.
6908         * lib/unictype/categ_No.h: Likewise.
6909         * lib/unictype/categ_P.h: Likewise.
6910         * lib/unictype/categ_Pc.h: Likewise.
6911         * lib/unictype/categ_Pd.h: Likewise.
6912         * lib/unictype/categ_Pe.h: Likewise.
6913         * lib/unictype/categ_Pf.h: Likewise.
6914         * lib/unictype/categ_Pi.h: Likewise.
6915         * lib/unictype/categ_Po.h: Likewise.
6916         * lib/unictype/categ_Ps.h: Likewise.
6917         * lib/unictype/categ_S.h: Likewise.
6918         * lib/unictype/categ_Sc.h: Likewise.
6919         * lib/unictype/categ_Sk.h: Likewise.
6920         * lib/unictype/categ_Sm.h: Likewise.
6921         * lib/unictype/categ_So.h: Likewise.
6922         * lib/unictype/categ_Z.h: Likewise.
6923         * lib/unictype/categ_Zl.h: Likewise.
6924         * lib/unictype/categ_Zp.h: Likewise.
6925         * lib/unictype/categ_Zs.h: Likewise.
6926         * lib/unictype/categ_of.h: Likewise.
6927         * lib/unictype/combining.h: Likewise.
6928         * lib/unictype/ctype_alnum.h: Likewise.
6929         * lib/unictype/ctype_alpha.h: Likewise.
6930         * lib/unictype/ctype_blank.h: Likewise.
6931         * lib/unictype/ctype_cntrl.h: Likewise.
6932         * lib/unictype/ctype_digit.h: Likewise.
6933         * lib/unictype/ctype_graph.h: Likewise.
6934         * lib/unictype/ctype_lower.h: Likewise.
6935         * lib/unictype/ctype_print.h: Likewise.
6936         * lib/unictype/ctype_punct.h: Likewise.
6937         * lib/unictype/ctype_space.h: Likewise.
6938         * lib/unictype/ctype_upper.h: Likewise.
6939         * lib/unictype/ctype_xdigit.h: Likewise.
6940         * lib/unictype/decdigit.h: Likewise.
6941         * lib/unictype/digit.h: Likewise.
6942         * lib/unictype/mirror.h: Likewise.
6943         * lib/unictype/numeric.h: Likewise.
6944         * lib/unictype/pr_alphabetic.h: Likewise.
6945         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6946         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6947         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6948         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6949         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6950         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6951         * lib/unictype/pr_bidi_control.h: Likewise.
6952         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6953         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6954         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6955         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6956         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6957         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6958         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6959         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6960         * lib/unictype/pr_bidi_pdf.h: Likewise.
6961         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6962         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6963         * lib/unictype/pr_combining.h: Likewise.
6964         * lib/unictype/pr_composite.h: Likewise.
6965         * lib/unictype/pr_currency_symbol.h: Likewise.
6966         * lib/unictype/pr_dash.h: Likewise.
6967         * lib/unictype/pr_decimal_digit.h: Likewise.
6968         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6969         * lib/unictype/pr_deprecated.h: Likewise.
6970         * lib/unictype/pr_diacritic.h: Likewise.
6971         * lib/unictype/pr_extender.h: Likewise.
6972         * lib/unictype/pr_format_control.h: Likewise.
6973         * lib/unictype/pr_grapheme_base.h: Likewise.
6974         * lib/unictype/pr_grapheme_extend.h: Likewise.
6975         * lib/unictype/pr_grapheme_link.h: Likewise.
6976         * lib/unictype/pr_hex_digit.h: Likewise.
6977         * lib/unictype/pr_hyphen.h: Likewise.
6978         * lib/unictype/pr_id_continue.h: Likewise.
6979         * lib/unictype/pr_id_start.h: Likewise.
6980         * lib/unictype/pr_ideographic.h: Likewise.
6981         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6982         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6983         * lib/unictype/pr_ignorable_control.h: Likewise.
6984         * lib/unictype/pr_iso_control.h: Likewise.
6985         * lib/unictype/pr_join_control.h: Likewise.
6986         * lib/unictype/pr_left_of_pair.h: Likewise.
6987         * lib/unictype/pr_line_separator.h: Likewise.
6988         * lib/unictype/pr_logical_order_exception.h: Likewise.
6989         * lib/unictype/pr_lowercase.h: Likewise.
6990         * lib/unictype/pr_math.h: Likewise.
6991         * lib/unictype/pr_non_break.h: Likewise.
6992         * lib/unictype/pr_not_a_character.h: Likewise.
6993         * lib/unictype/pr_numeric.h: Likewise.
6994         * lib/unictype/pr_other_alphabetic.h: Likewise.
6995         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6996         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6997         * lib/unictype/pr_other_id_continue.h: Likewise.
6998         * lib/unictype/pr_other_id_start.h: Likewise.
6999         * lib/unictype/pr_other_lowercase.h: Likewise.
7000         * lib/unictype/pr_other_math.h: Likewise.
7001         * lib/unictype/pr_other_uppercase.h: Likewise.
7002         * lib/unictype/pr_paired_punctuation.h: Likewise.
7003         * lib/unictype/pr_paragraph_separator.h: Likewise.
7004         * lib/unictype/pr_pattern_syntax.h: Likewise.
7005         * lib/unictype/pr_pattern_white_space.h: Likewise.
7006         * lib/unictype/pr_private_use.h: Likewise.
7007         * lib/unictype/pr_punctuation.h: Likewise.
7008         * lib/unictype/pr_quotation_mark.h: Likewise.
7009         * lib/unictype/pr_radical.h: Likewise.
7010         * lib/unictype/pr_sentence_terminal.h: Likewise.
7011         * lib/unictype/pr_soft_dotted.h: Likewise.
7012         * lib/unictype/pr_space.h: Likewise.
7013         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7014         * lib/unictype/pr_titlecase.h: Likewise.
7015         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7016         * lib/unictype/pr_unified_ideograph.h: Likewise.
7017         * lib/unictype/pr_uppercase.h: Likewise.
7018         * lib/unictype/pr_variation_selector.h: Likewise.
7019         * lib/unictype/pr_white_space.h: Likewise.
7020         * lib/unictype/pr_xid_continue.h: Likewise.
7021         * lib/unictype/pr_xid_start.h: Likewise.
7022         * lib/unictype/pr_zero_width.h: Likewise.
7023         * lib/unictype/scripts.h: Likewise.
7024         * lib/unictype/scripts_byname.gperf: Likewise.
7025         * lib/unictype/sy_c_ident.h: Likewise.
7026         * lib/unictype/sy_c_whitespace.h: Likewise.
7027         * lib/unictype/sy_java_ident.h: Likewise.
7028         * lib/unictype/sy_java_whitespace.h: Likewise.
7029
7030         * lib/unictype/Makefile: New file.
7031         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
7032         glibc.
7033         * lib/unictype/3level.h: New file, copied from glibc.
7034         * lib/unictype/3levelbit.h: New file.
7035
7036 2007-11-11  Bruno Haible  <bruno@clisp.org>
7037
7038         * modules/gperf: New file.
7039         * modules/iconv_open (Depends-on): Add it.
7040         (Makefile.am): Remove the GPERF definition.
7041
7042 2007-11-11  Bruno Haible  <bruno@clisp.org>
7043
7044         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
7045         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
7046
7047 2007-11-11  Bruno Haible  <bruno@clisp.org>
7048
7049         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
7050         (usage): Remove function.
7051
7052 2007-11-11  Bruno Haible  <bruno@clisp.org>
7053
7054         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
7055         gl_FUNC_CEILF_LIBS.
7056         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
7057         gl_FUNC_CEIL_LIBS.
7058         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
7059         gl_FUNC_CEILL_LIBS.
7060         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
7061         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
7062         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
7063
7064 2007-11-11  Bruno Haible  <bruno@clisp.org>
7065
7066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
7067         roundf were declared but do not exist on functions.
7068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
7069         roundl were declared but do not exist on functions.
7070         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
7071         HAVE_FLOORL_AND_CEILL, respectively.
7072         Needed for Sun C on Solaris 10.
7073
7074 2007-11-11  Bruno Haible  <bruno@clisp.org>
7075
7076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
7077         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
7078         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
7079         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
7080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
7081         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
7082         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
7083         HAVE_DECL_ROUNDF.
7084         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
7085         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
7086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
7087         of HAVE_DECL_ROUND*.
7088         * modules/math (Makefile.am): Update.
7089
7090 2007-11-10  Bruno Haible  <bruno@clisp.org>
7091
7092         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
7093         ptrdiff_t as m4/intl.m4.
7094
7095 2007-11-10  Jim Meyering  <meyering@redhat.com>
7096
7097         Avoid link failure for the argmatch test.
7098         * tests/test-argmatch.c (usage): Define function to avoid a link
7099         failure: argmatch_die requires a usage function.
7100
7101 2007-11-09  Bruno Haible  <bruno@clisp.org>
7102
7103         * doc/functions/snprintf.texi: Mention BeOS deficiency.
7104         * doc/functions/vsnprintf.texi: Likewise.
7105         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
7106         with a size argument < 2.
7107
7108 2007-11-09  Bruno Haible  <bruno@clisp.org>
7109
7110         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
7111         buffer. Fixes an inefficiency introduced on 2007-11-03.
7112
7113 2007-11-09  Bruno Haible  <bruno@clisp.org>
7114
7115         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
7116         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
7117
7118 2007-11-08  Jim Meyering  <meyering@redhat.com>
7119
7120         Change cache variable name prefix "jm_" to "gl_" everywhere.
7121         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
7122         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
7123         * m4/uptime.m4: s/gl_/jm_/
7124
7125 2007-11-07  Bruno Haible  <bruno@clisp.org>
7126
7127         Update to GNU gettext 0.17.
7128         * m4/intl.m4: Update to GNU gettext 0.17.
7129         * m4/po.m4: Likewise.
7130         * modules/gettext (Files): Remove m4/ulonglong.m4.
7131         (configure.ac): Require gettext infrastructure from version 0.17.
7132
7133 2007-11-06  Bruno Haible  <bruno@clisp.org>
7134
7135         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
7136         symbolic values are not defined in a public header.
7137         * lib/freadable.c (freadable) [QNX]: Likewise.
7138         * lib/freadahead.c (freadahead) [QNX]: Likewise.
7139         * lib/freading.c (freading) [QNX]: Likewise.
7140         * lib/fseterr.c (fseterr) [QNX]: Likewise.
7141         * lib/fwritable.c (fwritable) [QNX]: Likewise.
7142         * lib/fwriting.c (fwriting) [QNX]: Likewise.
7143         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
7144         Reported by Alain Magloire.
7145
7146         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
7147
7148 2007-11-05  Bruno Haible  <bruno@clisp.org>
7149
7150         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
7151         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
7152         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
7153         Reported by Eric Blake.
7154
7155 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7156             Bruno Haible  <bruno@clisp.org>
7157
7158         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
7159         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
7160         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
7161         (malloc): Undefine also before including <stdlib.h>.
7162         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
7163         Needed on OSF/1 4.0.
7164
7165 2007-11-05  Jim Meyering  <meyering@redhat.com>
7166
7167         git-version-gen: sync from coreutils.
7168         * build-aux/git-version-gen: Add comments.
7169         Change the first '-' to '.' in the snapshot version string,
7170         e.g., 6.9-377-08144 -> 6.9.377-08144
7171         Remove first parameter.
7172         Don't declare a version "-dirty" merely because a time
7173         stamp has changed.
7174
7175 2007-11-04  Bruno Haible  <bruno@clisp.org>
7176
7177         * lib/lock.h: Protect all macro definitions containing an 'if'
7178         statement through a "do { ... } while (0)".
7179         * lib/tls.h: Likewise.
7180
7181 2007-11-04  Bruno Haible  <bruno@clisp.org>
7182
7183         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
7184
7185 2007-11-04  Bruno Haible  <bruno@clisp.org>
7186
7187         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
7188         * modules/fprintf-posix (Depends-on): Add nocrash.
7189         * modules/snprintf-posix (Depends-on): Likewise.
7190         * modules/sprintf-posix (Depends-on): Likewise.
7191         * modules/vasnprintf-posix (Depends-on): Likewise.
7192         * modules/vasprintf-posix (Depends-on): Likewise.
7193         * modules/vfprintf-posix (Depends-on): Likewise.
7194         * modules/vsnprintf-posix (Depends-on): Likewise.
7195         * modules/vsprintf-posix (Depends-on): Likewise.
7196         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7197         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7198         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7199         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7200         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7203
7204 2007-11-04  Bruno Haible  <bruno@clisp.org>
7205
7206         * modules/nocrash: New file.
7207         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
7208         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
7209
7210 2007-11-04  Bruno Haible  <bruno@clisp.org>
7211
7212         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
7213         precision handling.
7214         * tests/test-vasprintf-posix.c (test_function): Likewise.
7215         * tests/test-snprintf-posix.h (test_function): Likewise.
7216         * tests/test-sprintf-posix.h (test_function): Likewise.
7217
7218         Fix *printf behaviour for large precisions on mingw and BeOS.
7219         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
7220         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
7221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
7222         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7224         gl_PRINTF_PRECISION and test its result. Invoke
7225         gl_PREREQ_VASNPRINTF_PRECISION.
7226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7233         * doc/functions/fprintf.texi: Update.
7234         * doc/functions/printf.texi: Update.
7235         * doc/functions/snprintf.texi: Update.
7236         * doc/functions/sprintf.texi: Update.
7237         * doc/functions/vfprintf.texi: Update.
7238         * doc/functions/vprintf.texi: Update.
7239         * doc/functions/vsnprintf.texi: Update.
7240         * doc/functions/vsprintf.texi: Update.
7241
7242 2007-11-04  Bruno Haible  <bruno@clisp.org>
7243
7244         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
7245
7246 2007-11-04  Bruno Haible  <bruno@clisp.org>
7247
7248         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
7249         Reported by Sylvain Beucler <beuc@gnu.org>.
7250
7251 2007-11-03  Bruno Haible  <bruno@clisp.org>
7252
7253         * tests/test-fprintf-posix2.sh: New file.
7254         * tests/test-fprintf-posix2.c: New file.
7255         * modules/fprintf-posix-tests (Files): Add them.
7256         (TESTS): Add test-fprintf-posix2.sh.
7257         (configure.ac): Check for getrlimit and setrlimit.
7258         (check_PROGRAMS): Add test-fprintf-posix2.
7259
7260         * tests/test-printf-posix2.sh: New file.
7261         * tests/test-printf-posix2.c: New file.
7262         * modules/printf-posix-tests (Files): Add them.
7263         (TESTS): Add test-printf-posix2.sh.
7264         (configure.ac): Check for getrlimit and setrlimit.
7265         (check_PROGRAMS): Add test-printf-posix2.
7266
7267         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
7268         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
7269         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
7270         (decode_double): New function, copied from decode_long_double.
7271         (scale10_round_decimal_decoded): New function, extracted from
7272         scale10_round_decimal_long_double.
7273         (scale10_round_decimal_long_double): Use it.
7274         (scale10_round_decimal_double): New function.
7275         (floorlog10): New function.
7276         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
7277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
7278         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7280         gl_PRINTF_ENOMEM and test its result. Invoke
7281         gl_PREREQ_VASNPRINTF_ENOMEM.
7282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7285         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7286         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7287         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7288         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7289         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
7290         * modules/snprintf-posix (Depends-on): Likewise.
7291         * modules/sprintf-posix (Depends-on): Likewise.
7292         * modules/vasnprintf-posix (Depends-on): Likewise.
7293         * modules/vasprintf-posix (Depends-on): Likewise.
7294         * modules/vfprintf-posix (Depends-on): Likewise.
7295         * modules/vsnprintf-posix (Depends-on): Likewise.
7296         * modules/vsprintf-posix (Depends-on): Likewise.
7297         * doc/functions/fprintf.texi: Update.
7298         * doc/functions/printf.texi: Update.
7299         * doc/functions/snprintf.texi: Update.
7300         * doc/functions/sprintf.texi: Update.
7301         * doc/functions/vfprintf.texi: Update.
7302         * doc/functions/vprintf.texi: Update.
7303         * doc/functions/vsnprintf.texi: Update.
7304         * doc/functions/vsprintf.texi: Update.
7305
7306 2007-11-03  Bruno Haible  <bruno@clisp.org>
7307
7308         * modules/frexp-nolibm-tests: New file.
7309
7310         * modules/frexp-nolibm: New file.
7311         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
7312
7313 2007-11-03  Bruno Haible  <bruno@clisp.org>
7314
7315         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
7316         value is C99 compliant.
7317         Needed for OSF/1 5.1.
7318
7319 2007-11-03  Bruno Haible  <bruno@clisp.org>
7320
7321         Fix out-of-memory handling of vasnprintf.
7322         * lib/printf-parse.c: Include <errno.h>.
7323         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
7324         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
7325         is already set.
7326
7327 2007-11-02  Eric Blake  <ebb9@byu.net>
7328
7329         Fix tests on cygwin.
7330         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
7331
7332 2007-11-01  Bruno Haible  <bruno@clisp.org>
7333
7334         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
7335         warning.
7336         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
7337         needed for POSIX compatibility.
7338
7339 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7340
7341         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
7342         for compatibility with GNU.
7343
7344 2007-11-01  Bruno Haible  <bruno@clisp.org>
7345
7346         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
7347         (putenv): Renamed from rpl_putenv. Change argument type from
7348         'const char *' to 'char *'.
7349         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
7350         of defining putenv in config.h, just set REPLACE_PUTENV.
7351         * modules/putenv (Depends-on): Add stdlib.
7352         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
7353         (Include): Use <stdlib.h>.
7354         * lib/stdlib.in.h (putenv): New declaration.
7355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
7356         REPLACE_PUTENV.
7357         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
7358         REPLACE_PUTENV.
7359         Needed for MacOS X 10.5.0.
7360         Reported by Peter O'Gorman <peter@pogma.com>.
7361
7362 2007-11-01  Jim Meyering  <meyering@redhat.com>
7363
7364         Treat an empty date string exactly like "0".
7365         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
7366         if the remaining date string (to be parsed) is empty, use "0".
7367         Reported by Mischa Molhoek and discussed in this thread:
7368         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
7369
7370 2007-10-31  Bruno Haible  <bruno@clisp.org>
7371
7372         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
7373         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
7374         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
7375         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
7376         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
7377         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
7378
7379 2007-10-31  Bruno Haible  <bruno@clisp.org>
7380
7381         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
7382         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
7383         (AC_TYPE_LONG_LONG_INT): Use it.
7384         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
7385         it as well.
7386         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
7387         to m4/longlong.m4.
7388         * modules/stdint (Files): Remove m4/ulonglong.m4.
7389         * modules/strtoull (Files): Use m4/longlong.m4 instead of
7390         m4/ulonglong.m4.
7391         * modules/strtoumax (Files): Likewise.
7392
7393 2007-10-30  Bruno Haible  <bruno@clisp.org>
7394
7395         * modules/xvasprintf-posix: New file.
7396         Suggested by Eric Blake.
7397
7398 2007-10-30  Bruno Haible  <bruno@clisp.org>
7399
7400         * modules/xprintf-posix-tests: New file.
7401         * tests/test-xprintf-posix.sh: New file.
7402         * tests/test-xprintf-posix.c: New file.
7403         * tests/test-xfprintf-posix.c: New file.
7404
7405         * modules/xprintf-posix: New file.
7406
7407 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7408
7409         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
7410         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
7411         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
7412
7413 2007-10-29  Bruno Haible  <bruno@clisp.org>
7414
7415         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
7416         contain the special marker '_cv_'.
7417         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
7418         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
7419         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
7420         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
7421         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
7422         Reported by Ralf Wildenhues.
7423
7424 2007-10-29  Bruno Haible  <bruno@clisp.org>
7425
7426         * gnulib-tool (func_import): When --lgpl is not specified, set
7427         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
7428         GPLv3.
7429         Reported by Simon Josefsson.
7430
7431 2007-10-28  Bruno Haible  <bruno@clisp.org>
7432
7433         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
7434         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
7435         HAVE_DECL_ISFINITE.
7436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7437         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
7438         HAVE_DECL_ISFINITE.
7439
7440 2007-10-28  Bruno Haible  <bruno@clisp.org>
7441
7442         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
7443         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
7444
7445 2007-10-28  Bruno Haible  <bruno@clisp.org>
7446
7447         Fix link errors with Sun C 5.0 on Solaris 10.
7448         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
7449         function is declared but not present in the compiler's libm.
7450         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7451         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7452         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
7453         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
7454         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
7455         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
7456         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
7457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
7458         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
7459         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
7460         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
7461         HAVE_DECL_FLOORL.
7462
7463 2007-10-28  Bruno Haible  <bruno@clisp.org>
7464
7465         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
7466         gl_FUNC_FLOORL. Cache the result.
7467         (gl_FUNC_FLOORL): Use it.
7468         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
7469         gl_FUNC_CEILL. Cache the result.
7470         (gl_FUNC_CEILL): Use it.
7471
7472         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
7473         gl_FUNC_FLOOR. Cache the result.
7474         (gl_FUNC_FLOOR): Use it.
7475         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
7476         gl_FUNC_CEIL. Cache the result.
7477         (gl_FUNC_CEIL): Use it.
7478
7479         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
7480         gl_FUNC_FLOORF. Cache the result.
7481         (gl_FUNC_FLOORF): Use it.
7482         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
7483         gl_FUNC_CEILF. Cache the result.
7484         (gl_FUNC_CEILF): Use it.
7485
7486 2007-10-28  Bruno Haible  <bruno@clisp.org>
7487
7488         * gnulib-tool: Allow specifying the LGPL version number through
7489         --lgpl=2 or --lgpl=3.
7490         (func_usage): Document --lgpl with argument.
7491         Handle --lgpl=... arguments.
7492         (func_import): Recognize also gl_LGPL calls with an argument. When
7493         --lgpl=2 is used and the module's license is just LGPL, report an
7494         error. Set sed_transform_lib_file according to the lgpl variable. In
7495         the generated files, use --lgpl or gl_LGPL invocations with argument,
7496         if necessary.
7497         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
7498         an LGPv2+ license.
7499         * doc/gnulib-tool.texi (Modified imports): Update explanation of
7500         gl_LGPL macro.
7501
7502 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7503             Bruno Haible  <bruno@clisp.org>
7504
7505         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
7506         (u16_uctomb_aux): Likewise.
7507         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
7508         !HAVE_INLINE.
7509         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
7510
7511 2007-10-28  Bruno Haible  <bruno@clisp.org>
7512
7513         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
7514         Invoke AM_GETTEXT_OPTION if it exists.
7515         * modules/vasprintf: Likewise.
7516         * modules/verror: Likewise.
7517         * modules/xprintf: Likewise.
7518         * modules/xvasprintf: Likewise.
7519
7520 2007-10-27  Ben Pfaff  <blp@gnu.org>
7521
7522         * lib/math.in.h: Define isfinite macro and prototypes for
7523         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
7524         implementations.
7525         * m4/math_h.m4: New substitutions for isfinite module.
7526         * lib/isfinite.c: New file.
7527         * m4/isfinite.m4: New file.
7528         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
7529         * modules/isfinite: New file.
7530         * modules/isfinite-tests: New file.
7531         * tests/tests-isfinite.c: New file.
7532         * doc/functions/isfinite.texi: Mention isfinite module.
7533         * MODULES.html.sh: Mention new module.
7534
7535 2007-10-27  Ben Pfaff  <blp@gnu.org>
7536
7537         Ralf Wildenhues reported that Tru64 4.0D declares the round
7538         functions but does not have definitions.
7539         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
7540         cannot be found in any library, set the output variable to
7541         "missing" instead of "".
7542         * m4/round.m4: Also use our substitute if we cannot find round in
7543         any library, even if it is declared.
7544         * m4/roundf.m4: Likewise for roundf.
7545         * m4/roundl.m4: Likewise for roundl.
7546         * lib/math.in.h: Undefine roundf, round, roundl before defining
7547         their replacements, to allow for hypothetical systems where these
7548         may be defined as macros but not available in libraries.
7549
7550 2007-10-27  Bruno Haible  <bruno@clisp.org>
7551
7552         * doc/gnulib.texi: Invoke @firstparagraphindent.
7553         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
7554         changes in gnulib.
7555         (Source changes): New section.
7556
7557 2007-10-26  Bruno Haible  <bruno@clisp.org>
7558
7559         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
7560         borrowed from autoconf.
7561
7562 2007-10-26  Bruno Haible  <bruno@clisp.org>
7563
7564         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
7565         strerror returned the empty string. Needed on HP-UX 11.00.
7566
7567 2007-10-24  Micah Cowan  <micah@cowan.name>
7568
7569         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
7570         * build-aux/bootstrap: Remove support for now-unnecessary option,
7571         --cvs-user, and envvars CVS_USER, CVS_RSH.
7572
7573 2007-10-24  Jim Meyering  <meyering@redhat.com>
7574
7575         Avoid diagnostics from sha1sum when there is no cached checksum.
7576         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
7577         if the po.s1 file hasn't been created yet.
7578
7579         * build-aux/bootstrap: Sync from coreutils:
7580         2007-10-24  Jim Meyering  <meyering@redhat.com>
7581         Get gnulib from the git repository, not from an obsolete cvs one.
7582         * build-aux/bootstrap: Suggestion from Micah Cowan.
7583         2007-10-04  Jim Meyering  <jim@meyering.net>
7584         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
7585         (update_po_files): Work also when there are no .po files in po/.
7586
7587 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7588
7589         * README: Append ".git" to git and cg examples.
7590         Problem reported by Benoit Sigoure.
7591
7592 2007-10-23  Micah Cowan  <micah@cowan.name>
7593
7594         * users.txt: Add wget.
7595
7596 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7597
7598         Fix linking of some unistdio tests on FreeBSD.
7599         * modules/unistdio/u16-vsnprintf-tests
7600         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
7601         * modules/unistdio/u16-vsprintf-tests
7602         (test_u16_vsnprintf1_LDADD): Likewise.
7603         * modules/unistdio/u32-vsnprintf-tests
7604         (test_u32_vsnprintf1_LDADD): Likewise.
7605         * modules/unistdio/u32-vsprintf-tests
7606         (test_u32_vsprintf1_LDADD): Likewise.
7607         * modules/unistdio/u8-vsnprintf-tests
7608         (test_u8_vsnprintf1_LDADD): Likewise.
7609         * modules/unistdio/u8-vsprintf-tests
7610         (test_u8_vsprintf1_LDADD): Likewise.
7611         * modules/unistdio/ulc-vsnprintf-tests
7612         (test_ulc_vsnprintf1_LDADD): Likewise.
7613         * modules/unistdio/ulc-vsprintf-tests
7614         (test_ulc_vsprintf1_LDADD): Likewise.
7615
7616         Fix linking of some uniconv tests on FreeBSD.
7617         * modules/uniconv/u16-conv-from-enc-tests
7618         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
7619         * modules/uniconv/u16-conv-to-enc-tests
7620         (test_u16_conv_to_enc_LDADD): Likewise.
7621         * modules/uniconv/u16-strconv-from-enc-tests
7622         (test_u16_strconv_from_enc_LDADD): Likewise.
7623         * modules/uniconv/u16-strconv-to-enc-tests
7624         (test_u16_strconv_to_enc_LDADD): Likewise.
7625         * modules/uniconv/u32-conv-from-enc-tests
7626         (test_u32_conv_from_enc_LDADD): Likewise.
7627         * modules/uniconv/u32-conv-to-enc-tests
7628         (test_u32_conv_to_enc_LDADD): Likewise.
7629         * modules/uniconv/u32-strconv-from-enc-tests
7630         (test_u32_strconv_from_enc_LDADD): Likewise.
7631         * modules/uniconv/u32-strconv-to-enc-tests
7632         (test_u32_strconv_to_enc_LDADD): Likewise.
7633         * modules/uniconv/u8-conv-from-enc-tests
7634         (test_u8_conv_from_enc_LDADD): Likewise.
7635         * modules/uniconv/u8-conv-to-enc-tests
7636         (test_u8_conv_to_enc_LDADD): Likewise.
7637         * modules/uniconv/u8-strconv-from-enc-tests
7638         (test_u8_strconv_from_enc_LDADD): Likewise.
7639         * modules/uniconv/u8-strconv-to-enc-tests
7640         (test_u8_strconv_to_enc_LDADD): Likewise.
7641
7642 2007-10-22  Bruno Haible  <bruno@clisp.org>
7643
7644         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
7645         size.
7646
7647 2007-10-22  Eric Blake  <ebb9@byu.net>
7648
7649         Tweak x*printf documentation.
7650         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
7651         variable name and comments.
7652         Suggested by Bruno Haible.
7653
7654 2007-10-22  Bruno Haible  <bruno@clisp.org>
7655
7656         * lib/acl.c (copy_acl): Fix file name in comment.
7657
7658 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7659
7660         Fix Tru64 problem with stdbool.h.
7661         * lib/stdbool.in.h (false, true):
7662         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
7663         Don't declare as an enum in this situation; it runs afoul of Tru64.
7664         Problem reported by Steven M. Schweda in
7665         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
7666
7667 2007-10-22  Eric Blake  <ebb9@byu.net>
7668
7669         Also wrap vf?printf.
7670         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
7671         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
7672         (xvprintf, xvfprintf): New functions.
7673
7674 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7675
7676         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
7677         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
7678
7679         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
7680         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
7681
7682 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
7683
7684         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
7685         by Bruno Haible.
7686
7687 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7688
7689         * lib/getloadavg.c
7690         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
7691         Undef `sys' after including sys/table.h, for Tru64 4.0D.
7692
7693         * tests/test-i-ring.c: Work for C89.
7694
7695 2007-10-22  Bruno Haible  <bruno@clisp.org>
7696
7697         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
7698         -1u, in preprocessor expression, so that we don't test for the bug
7699         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
7700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
7701
7702 2007-10-22  Eric Blake  <ebb9@byu.net>
7703
7704         * tests/test-yesno.sh: Silence stderr during test.
7705
7706 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7707
7708         * modules/crypto/gc-camellia: New file.
7709
7710         * m4/gc-camellia.m4: New file.
7711
7712         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
7713
7714         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
7715
7716 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7717
7718         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
7719         --help to stdout.  Reported by sms@antinode.org (Steven
7720         M. Schweda).
7721
7722 2007-10-22  Simon Josefsson  <simon@josefsson.org>
7723
7724         * users.txt: Fix link to libksba.
7725
7726 2007-10-21  Ben Pfaff  <blp@gnu.org>
7727
7728         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
7729         round.c roundf implementation that depends on floorf and ceilf to
7730         be tested unconditionally.
7731
7732 2007-10-21  Ben Pfaff  <blp@gnu.org>
7733
7734         * m4/check-libm-func.m4: Removed.
7735         * m4/check-math-lib.m4: New file.
7736         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
7737         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
7738         definition and lack of AC_LIBOBJ([roundf]).
7739         * m4/roundl.m4: Ditto, and similarly for roundl.
7740         * modules/round: Reference new m4 file.
7741         * modules/roundf: Ditto.
7742         * modules/roundl: Ditto.
7743         * tests/test-round2.c (main): Use ROUND instead of round.
7744         Bug report from Bruno Haible.
7745
7746 2007-10-21  Bruno Haible  <bruno@clisp.org>
7747
7748         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
7749         context.
7750
7751 2007-10-21  Bruno Haible  <bruno@clisp.org>
7752
7753         * tests/test-wcwidth.c (main): Allow negative result for some control
7754         characters.
7755
7756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
7757         Needed on OSF/1 5.1.
7758
7759 2007-10-21  Bruno Haible  <bruno@clisp.org>
7760
7761         * tests/test-floorf1.c: Include isnanf.h.
7762         (main): Use isnanf() instead of isnan().
7763         * tests/test-ceilf1.c: Include isnanf.h.
7764         (main): Use isnanf() instead of isnan().
7765         * tests/test-truncf1.c: Include isnanf.h.
7766         (main): Use isnanf() instead of isnan().
7767         * tests/test-roundf1.c: Include isnanf.h.
7768         (main): Use isnanf() instead of isnan().
7769
7770 2007-10-21  Eric Blake  <ebb9@byu.net>
7771
7772         * users.txt: Update URL for m4.
7773
7774 2007-10-21  Bruno Haible  <bruno@clisp.org>
7775
7776         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
7777
7778 2007-10-21  Bruno Haible  <bruno@clisp.org>
7779
7780         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
7781         Git's management files if the CVS files are not present.
7782
7783 2007-10-20  Bruno Haible  <bruno@clisp.org>
7784
7785         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
7786         gcc-3.4.x.
7787
7788 2007-10-20  Ben Pfaff  <blp@gnu.org>
7789
7790         * lib/math.in.h: Declare round, roundf, roundl if we are providing
7791         implementations.
7792         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
7793         * lib/round.c: New file.
7794         * lib/roundf.c: New file.
7795         * lib/roundl.c: New file.
7796         * m4/round.m4: New file.
7797         * m4/roundf.m4: New file.
7798         * m4/roundl.m4: New file.
7799         * m4/check-libm-func-m4: New file.
7800         * modules/math: Replace round, roundf, roundl related @VARS@ in
7801         math.in.h.
7802         * modules/round: New file.
7803         * modules/round-tests: New file.
7804         * modules/roundf: New file.
7805         * modules/roundf-tests: New file.
7806         * modules/roundl: New file.
7807         * modules/roundl-tests: New file.
7808         * tests/test-round1.c: New file.
7809         * tests/test-round2.c: New file.
7810         * tests/test-roundf1.c: New file.
7811         * tests/test-roundf2.c: New file.
7812         * tests/test-roundl.c: New file.
7813         * doc/functions/round.texi: Mention round module.
7814         * doc/functions/roundf.texi: Mention roundf module.
7815         * doc/functions/roundl.texi: Mention roundl module.
7816         * MODULES.html.sh: Mention new modules.
7817         Thanks to Bruno Haible for suggestions.
7818
7819 2007-10-20  Jim Meyering  <meyering@redhat.com>
7820
7821         * lib/xprintf.c: Include <config.h> unconditionally.
7822
7823         Change xprintf's license to GPL.
7824         * modules/xprintf (License): s/LGPL/GPL/, since this module
7825         depends on modules (exit and exitfail) which are GPL.
7826         Suggestion from Bruno Haible.
7827
7828         xprintf fixes.
7829         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
7830         Use a clearer diagnostic.
7831         Patch from Bruno Haible.
7832
7833 2007-10-20  Bruno Haible  <bruno@clisp.org>
7834
7835         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
7836         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
7837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7838
7839 2007-10-20  Bruno Haible  <bruno@clisp.org>
7840
7841         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
7842         precision in the comparison result > x - 1 or similar.
7843         * tests/test-ceilf2.c (correct_result_p): Likewise.
7844         * tests/test-truncf2.c (correct_result_p): Likewise.
7845         * tests/test-trunc2.c (correct_result_p): Likewise.
7846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7847
7848 2007-10-20  Bruno Haible  <bruno@clisp.org>
7849
7850         * modules/ceil: New file.
7851         * m4/ceil.m4: New file.
7852         * doc/functions/ceil.texi: Mention the 'ceil' module.
7853
7854 2007-10-20  Bruno Haible  <bruno@clisp.org>
7855
7856         * modules/floor: New file.
7857         * m4/floor.m4: New file.
7858         * doc/functions/floor.texi: Mention the 'floor' module.
7859
7860 2007-10-20  Bruno Haible  <bruno@clisp.org>
7861
7862         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
7863         of %a.
7864         * modules/floorf-tests (Depends-on): Likewise.
7865         * modules/truncf-tests (Depends-on): Likewise.
7866         * modules/trunc-tests (Depends-on): Likewise.
7867         Reported by Ben Pfaff.
7868
7869 2007-10-19  Jim Meyering  <meyering@redhat.com>
7870
7871         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
7872         Don't bother testing specific errno values.  Just test ferror.
7873
7874         New module: xprintf
7875         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
7876
7877 2007-10-19  Bruno Haible  <bruno@clisp.org>
7878
7879         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
7880         syntax.
7881         * modules/javaexec (Makefile.am): Likewise.
7882         * modules/relocatable-prog (Makefile.am): Likewise.
7883         Suggested by Jim Meyering.
7884
7885 2007-10-18  Bruno Haible  <bruno@clisp.org>
7886
7887         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
7888         Reported by Jim Meyering.
7889
7890 2007-10-18  Eric Blake  <ebb9@byu.net>
7891
7892         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
7893
7894 2007-10-18  Bruno Haible  <bruno@clisp.org>
7895
7896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
7897         the format string into writable memory. Needed in Fortify conditions.
7898
7899 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
7900             Bruno Haible  <bruno@clisp.org>
7901
7902         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
7903         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
7904         * modules/trim (Depends-on): Add mbchar.
7905         (configure.ac): Add gl_FUNC_MBRTOWC.
7906         (Makefile.am): Augment lib_SOURCES.
7907
7908 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
7909
7910         Modify glob.c to use fstatat and dirfd, to simplify it.
7911         Suggested by Eric Blake.
7912         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
7913         Don't include <stdbool.h>; not used.
7914         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
7915         (link_exists_p): Simplify implementation, since we can now assume
7916         dirfd and fstatat.
7917         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
7918
7919 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7920
7921         * gnulib-tool (func_get_dependencies): Fix sed script to
7922         match only tests.
7923
7924 2007-10-17  Bruno Haible  <bruno@clisp.org>
7925
7926         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
7927         allow locale names without encoding suffix.
7928         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7930
7931 2007-10-16  Bruno Haible  <bruno@clisp.org>
7932
7933         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
7934         * lib/getgroups.c (getgroups): Likewise.
7935         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
7936
7937 2007-10-16  Bruno Haible  <bruno@clisp.org>
7938
7939         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
7940         * modules/malloc-posix (License): Likewise.
7941         * modules/realloc-posix (License): Likewise.
7942         * modules/calloc-posix (License): Likewise.
7943         * modules/intprops (License): Change from GPL to LGPL, with
7944         Paul Eggert's approval.
7945
7946 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7947
7948         Merge glibc changes into lib/glob.c.
7949
7950         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
7951         2007-10-15 04:59:03 UTC.  Here are the changes:
7952
7953         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
7954
7955         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
7956
7957         * lib/glob.c: Add some branch prediction throughout.
7958
7959         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
7960
7961         [BZ #5103]
7962         * lib/glob.c (glob): Recognize patterns starting \/.
7963
7964         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
7965
7966         [BZ #3996]
7967         * lib/glob.c (attribute_hidden): Define if not defined.
7968         (glob): Unescape dirname, filename or username when needed and not
7969         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
7970         is NULL.  Handle unescaped [ in pattern without closing ].
7971         Don't pass GLOB_CHECK down to recursive glob for directories.
7972         (__glob_pattern_type): New function.
7973         (__glob_pattern_p): Implement using __glob_pattern_type.
7974         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
7975         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
7976         Remove unreachable code.
7977
7978         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
7979
7980         * lib/glob.c (glob_in_dir): Add some comments and asserts to
7981         explain why there are no leaks.
7982
7983         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
7984
7985         [BZ #3253]
7986         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
7987         time, rather allocate increasingly bigger arrays of pointers, if
7988         possible with alloca, if too large with malloc.
7989
7990 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7991
7992         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
7993         Problem reported by H.Merijn Brand in
7994         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
7995         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
7996         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7997
7998 2007-10-15  Bruno Haible  <bruno@clisp.org>
7999
8000         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
8001         with explicit rpl_ prefix.
8002         * lib/fopen.c (fopen): Likewise.
8003         * lib/freopen.c (freopen): Likewise.
8004         * lib/iconv.c (iconv): Likewise.
8005         * lib/iconv_close.c (iconv_close): Likewise.
8006
8007 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8008
8009         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
8010
8011 2007-10-15  Bruno Haible  <bruno@clisp.org>
8012
8013         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
8014         <stddef.h> instead of <stdlib.h> since we only need NULL.
8015         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8016
8017 2007-10-15  Bruno Haible  <bruno@clisp.org>
8018
8019         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
8020         Replace paragraph talking about LIBOBJS.
8021         Reported by Colin Watson <cjwatson@debian.org>.
8022
8023 2007-10-15  Bruno Haible  <bruno@clisp.org>
8024
8025         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
8026         <stdlib.h> before using NULL.
8027
8028 2007-10-15  Simon Josefsson  <simon@josefsson.org>
8029
8030         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
8031         Reported by Albert Chin <china@thewrittenword.com>.
8032
8033 2007-10-14  Bruno Haible  <bruno@clisp.org>
8034
8035         * modules/iconv_open-utf-tests: New file.
8036         * tests/test-iconv-utf.c: New file.
8037
8038         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
8039         * modules/iconv_open-utf: New file.
8040         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
8041         (iconv, iconv_close): New declarations.
8042         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
8043         be defined.
8044         (iconv_open): Add special handling of conversion between UTF-8 and
8045         UTF-{16,32}{BE,LE}.
8046         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
8047         * lib/iconv_close.c: New file.
8048         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
8049         gl_FUNC_ICONV_OPEN.
8050         (gl_FUNC_ICONV_OPEN): Use it.
8051         (gl_FUNC_ICONV_OPEN_UTF): New macro.
8052         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
8053         and REPLACE_ICONV_UTF.
8054         * modules/iconv_open (Depends-on): Add c-strcase.
8055         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
8056         ICONV_CONST.
8057         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
8058
8059 2007-10-13  Albert Chin  <china@thewrittenword.com>
8060             Bruno Haible  <bruno@clisp.org>
8061
8062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
8063         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
8064
8065 2007-10-13  Bruno Haible  <bruno@clisp.org>
8066
8067         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
8068         defined, use the ISO C99 inline semantics.
8069         * lib/argp.h (ARGP_EI): Likewise.
8070
8071 2007-10-13  Bruno Haible  <bruno@clisp.org>
8072
8073         Handle 'inline' change in gcc 4.3.0.
8074         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
8075         argp_fmtstream_write, argp_fmtstream_set_lmargin,
8076         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
8077         argp_fmtstream_point): Disable 'extern' declaration if the function
8078         definition is going to be provided inline.
8079         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
8080         semantics, not the ISO C99 inline semantics.
8081         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
8082         'extern' declaration if the function definition is going to be provided
8083         inline.
8084         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
8085         the GNU C inline semantics, not the ISO C99 inline semantics. With
8086         GCC 4.2, avoid a warning.
8087
8088 2007-10-13  Bruno Haible  <bruno@clisp.org>
8089
8090         * lib/freading.h (freading): Enable the use of __freading for
8091         glibc >= 2.7.
8092         * lib/freading.c (freading): Likewise.
8093
8094 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
8095
8096         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
8097         "warning: C99 inline functions are not supported; using GNU89".
8098
8099 2007-10-12  Bruno Haible  <bruno@clisp.org>
8100
8101         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
8102         of 2.
8103         * tests/test-ceilf2.c: New file.
8104         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
8105
8106         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
8107         * modules/ceilf-tests: Update.
8108
8109 2007-10-12  Bruno Haible  <bruno@clisp.org>
8110
8111         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
8112         of 2.
8113         * tests/test-floorf2.c: New file.
8114         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
8115
8116         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
8117         * modules/floorf-tests: Update.
8118
8119 2007-10-12  Bruno Haible  <bruno@clisp.org>
8120
8121         * tests/test-trunc2.c: New file.
8122         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
8123
8124         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
8125         * modules/trunc-tests: Update.
8126
8127 2007-10-12  Bruno Haible  <bruno@clisp.org>
8128
8129         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
8130         of 2.
8131         * tests/test-truncf2.c: New file.
8132         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
8133
8134         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
8135         * modules/truncf-tests: Update.
8136
8137 2007-10-11  Eric Blake  <ebb9@byu.net>
8138
8139         Don't claim strerror is broken on Interix.
8140         * doc/functions/strerror.texi (strerror): Known broken systems are
8141         now Solaris 8, and not Interix.
8142         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
8143         Interix on cross-compile.
8144         Reported by Martin Koeppe in
8145         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
8146
8147 2007-10-11  Bruno Haible  <bruno@clisp.org>
8148
8149         * modules/i-ring-tests: New file.
8150         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
8151         instead of assert.
8152
8153 2007-10-11  Bruno Haible  <bruno@clisp.org>
8154
8155         * modules/filenamecat-tests: New file.
8156         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
8157         * lib/filenamecat.c: Remove test code.
8158
8159 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
8162
8163         * lib/strerror.c: Include <string.h> always, to test interface,
8164         and to remove the need for the dummy.
8165         Include intprops.h to compute width instead of doing it ourselves
8166         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
8167         (strerror): Define it to return NULL if there's no system strerror.
8168         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
8169         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
8170         ancient pre-strerror Unix systems well any more.  Saying "unknown
8171         system error" is enough.
8172         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
8173         simpler strerror.c implementation.
8174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
8175         Simplify the tests to reflect the simpler strerror implementation.
8176         * modules/strerror (Depends-on): Add intprops.
8177
8178 2007-10-09  Eric Blake  <ebb9@byu.net>
8179
8180         Silence test-fpending.
8181         * modules/fpending-tests (Files): Add wrapper script.
8182         * tests/test-fpending.sh: New file.
8183
8184 2007-10-09  Bruno Haible  <bruno@clisp.org>
8185
8186         * MODULES.html.sh (func_module): Don't create a hyperlink for
8187         function names like 'printf_frexp'.
8188         (Misc): Add crc, memxor.
8189         (Characteristics of floating types): New section.
8190         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
8191         isnanf-nolibm, signbit, trunc, truncf, truncl.
8192         (Enhancements for ISO C 99 functions): New subsection Input/output.
8193         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
8194         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
8195         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
8196         (Compatibility checks for POSIX:2001 functions): Add clock-time.
8197         (Enhancements for POSIX:2001 functions): Add chdir-long.
8198         (File system functions): Add areadlink, chdir-safer, read-file.
8199         Remove cycle-check.
8200         (File system as inode set): New section.
8201         (Date and time): Add gethrxtime.
8202         (Multithreading): Add openmp.
8203         (Internationalization functions): Add localename.
8204         (Unicode string functions): Add unistr/u*-mbsnlen.
8205         (Support for maintaining and releasing projects): Add git-version-gen.
8206         (Lone files): Remove directories.
8207
8208 2007-10-08  Ben Pfaff  <blp@gnu.org>
8209
8210         * lib/xmalloca.h: Fix typo in comment.
8211
8212 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8213
8214         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
8215         when avoiding problems with integer overflow.  Use a portable test
8216         instead.
8217
8218 2007-10-08  Simon Josefsson  <simon@josefsson.org>
8219
8220         * modules/dummy (License): Change to LGPLv2+.
8221         * modules/float (License): Likewise
8222         * modules/realloc (License): Likewise
8223         * modules/stdlib (License): Likewise
8224
8225 2007-10-07  Bruno Haible  <bruno@clisp.org>
8226
8227         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
8228         * floor.c (TWO_MANT_DIG): Likewise.
8229         * ceil.c (TWO_MANT_DIG): Likewise.
8230         Reported by Ben Pfaff.
8231
8232 2007-10-07  Bruno Haible  <bruno@clisp.org>
8233
8234         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
8235         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
8236         * lib/frexp.c (FUNC): Likewise.
8237         * lib/printf-frexp.h (printf_frexp): Likewise.
8238         * lib/printf-frexpl.h (printf_frexpl): Likewise.
8239         * lib/printf-frexp.c (FUNC): Likewise.
8240         Suggested by Jim Meyering.
8241
8242 2007-10-07  Jim Meyering  <meyering@redhat.com>
8243
8244         Make xnanosleep's integer overflow test more robust.
8245         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
8246         so that gcc-4.3.0 doesn't optimize away this test for overflow.
8247
8248 2007-10-07  Bruno Haible  <bruno@clisp.org>
8249
8250         * NEWS: Mention the license change.
8251
8252         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
8253         abbreviations in the modules files.
8254
8255         Change copyright notice from GPLv2+ to GPLv3+.
8256         * README: Change copyright notice.
8257         * MODULES.html.sh: Likewise.
8258         * build-aux/bootstrap.conf: Likewise.
8259         * build-aux/config.libpath: Likewise.
8260         * build-aux/csharpcomp.sh.in: Likewise.
8261         * build-aux/csharpexec.sh.in: Likewise.
8262         * build-aux/install-reloc: Likewise.
8263         * build-aux/javacomp.sh.in: Likewise.
8264         * build-aux/javaexec.sh.in: Likewise.
8265         * build-aux/ldd.sh.in: Likewise.
8266         * build-aux/reloc-ldflags: Likewise.
8267         * build-aux/relocatable.sh.in: Likewise.
8268         * build-aux/x-to-1.in: Likewise.
8269         * check-module: Likewise.
8270         * config/srclistvars.sh: Likewise.
8271         * gnulib-tool: Likewise.
8272         * lib/acl-internal.h: Likewise.
8273         * lib/acl.c: Likewise.
8274         * lib/acl.h: Likewise.
8275         * lib/acl_entries.c: Likewise.
8276         * lib/areadlink-with-size.c: Likewise.
8277         * lib/areadlink.c: Likewise.
8278         * lib/areadlink.h: Likewise.
8279         * lib/argmatch.c: Likewise.
8280         * lib/argmatch.h: Likewise.
8281         * lib/argp-ba.c: Likewise.
8282         * lib/argp-eexst.c: Likewise.
8283         * lib/argp-fmtstream.c: Likewise.
8284         * lib/argp-fmtstream.h: Likewise.
8285         * lib/argp-fs-xinl.c: Likewise.
8286         * lib/argp-help.c: Likewise.
8287         * lib/argp-namefrob.h: Likewise.
8288         * lib/argp-parse.c: Likewise.
8289         * lib/argp-pin.c: Likewise.
8290         * lib/argp-pv.c: Likewise.
8291         * lib/argp-pvh.c: Likewise.
8292         * lib/argp-xinl.c: Likewise.
8293         * lib/argp.h: Likewise.
8294         * lib/at-func.c: Likewise.
8295         * lib/atanl.c: Likewise.
8296         * lib/backupfile.c: Likewise.
8297         * lib/backupfile.h: Likewise.
8298         * lib/basename.c: Likewise.
8299         * lib/binary-io.h: Likewise.
8300         * lib/byteswap.in.h: Likewise.
8301         * lib/c-stack.c: Likewise.
8302         * lib/c-stack.h: Likewise.
8303         * lib/c-strcasestr.c: Likewise.
8304         * lib/c-strcasestr.h: Likewise.
8305         * lib/c-strstr.c: Likewise.
8306         * lib/c-strstr.h: Likewise.
8307         * lib/c-strtod.c: Likewise.
8308         * lib/calloc.c: Likewise.
8309         * lib/canon-host.c: Likewise.
8310         * lib/canon-host.h: Likewise.
8311         * lib/canonicalize-lgpl.c: Likewise.
8312         * lib/canonicalize.c: Likewise.
8313         * lib/canonicalize.h: Likewise.
8314         * lib/ceil.c: Likewise.
8315         * lib/ceilf.c: Likewise.
8316         * lib/ceill.c: Likewise.
8317         * lib/chdir-long.c: Likewise.
8318         * lib/chdir-long.h: Likewise.
8319         * lib/chdir-safer.c: Likewise.
8320         * lib/chdir-safer.h: Likewise.
8321         * lib/chown.c: Likewise.
8322         * lib/classpath.c: Likewise.
8323         * lib/classpath.h: Likewise.
8324         * lib/clean-temp.c: Likewise.
8325         * lib/clean-temp.h: Likewise.
8326         * lib/cloexec.c: Likewise.
8327         * lib/close-stream.c: Likewise.
8328         * lib/closein.c: Likewise.
8329         * lib/closein.h: Likewise.
8330         * lib/closeout.c: Likewise.
8331         * lib/closeout.h: Likewise.
8332         * lib/concat-filename.c: Likewise.
8333         * lib/copy-file.c: Likewise.
8334         * lib/copy-file.h: Likewise.
8335         * lib/count-one-bits.h: Likewise.
8336         * lib/crc.c: Likewise.
8337         * lib/crc.h: Likewise.
8338         * lib/creat-safer.c: Likewise.
8339         * lib/csharpcomp.c: Likewise.
8340         * lib/csharpcomp.h: Likewise.
8341         * lib/csharpexec.c: Likewise.
8342         * lib/csharpexec.h: Likewise.
8343         * lib/cycle-check.c: Likewise.
8344         * lib/cycle-check.h: Likewise.
8345         * lib/diacrit.c: Likewise.
8346         * lib/diacrit.h: Likewise.
8347         * lib/diffseq.h: Likewise.
8348         * lib/dirchownmod.c: Likewise.
8349         * lib/dirent.in.h: Likewise.
8350         * lib/dirfd.c: Likewise.
8351         * lib/dirfd.h: Likewise.
8352         * lib/dirname.c: Likewise.
8353         * lib/dirname.h: Likewise.
8354         * lib/dummy.c: Likewise.
8355         * lib/dup-safer.c: Likewise.
8356         * lib/dup2.c: Likewise.
8357         * lib/eealloc.h: Likewise.
8358         * lib/error.c: Likewise.
8359         * lib/error.h: Likewise.
8360         * lib/euidaccess.c: Likewise.
8361         * lib/exclude.c: Likewise.
8362         * lib/exclude.h: Likewise.
8363         * lib/execute.c: Likewise.
8364         * lib/execute.h: Likewise.
8365         * lib/exitfail.c: Likewise.
8366         * lib/exitfail.h: Likewise.
8367         * lib/expl.c: Likewise.
8368         * lib/fatal-signal.c: Likewise.
8369         * lib/fatal-signal.h: Likewise.
8370         * lib/fbufmode.c: Likewise.
8371         * lib/fbufmode.h: Likewise.
8372         * lib/fchdir.c: Likewise.
8373         * lib/fchmodat.c: Likewise.
8374         * lib/fchownat.c: Likewise.
8375         * lib/fcntl--.h: Likewise.
8376         * lib/fcntl-safer.h: Likewise.
8377         * lib/fcntl.in.h: Likewise.
8378         * lib/fd-safer.c: Likewise.
8379         * lib/fflush.c: Likewise.
8380         * lib/file-has-acl.c: Likewise.
8381         * lib/file-set.c: Likewise.
8382         * lib/file-type.c: Likewise.
8383         * lib/file-type.h: Likewise.
8384         * lib/fileblocks.c: Likewise.
8385         * lib/filemode.c: Likewise.
8386         * lib/filemode.h: Likewise.
8387         * lib/filename.h: Likewise.
8388         * lib/filenamecat.c: Likewise.
8389         * lib/filenamecat.h: Likewise.
8390         * lib/findprog.c: Likewise.
8391         * lib/findprog.h: Likewise.
8392         * lib/float.in.h: Likewise.
8393         * lib/floor.c: Likewise.
8394         * lib/floorf.c: Likewise.
8395         * lib/floorl.c: Likewise.
8396         * lib/fopen-safer.c: Likewise.
8397         * lib/fopen.c: Likewise.
8398         * lib/fpending.c: Likewise.
8399         * lib/fpending.h: Likewise.
8400         * lib/fprintf.c: Likewise.
8401         * lib/fprintftime.h: Likewise.
8402         * lib/fpucw.h: Likewise.
8403         * lib/fpurge.c: Likewise.
8404         * lib/fpurge.h: Likewise.
8405         * lib/freadable.c: Likewise.
8406         * lib/freadable.h: Likewise.
8407         * lib/freadahead.c: Likewise.
8408         * lib/freadahead.h: Likewise.
8409         * lib/freading.c: Likewise.
8410         * lib/freading.h: Likewise.
8411         * lib/free.c: Likewise.
8412         * lib/freopen.c: Likewise.
8413         * lib/frexp.c: Likewise.
8414         * lib/frexpl.c: Likewise.
8415         * lib/fseek.c: Likewise.
8416         * lib/fseterr.c: Likewise.
8417         * lib/fseterr.h: Likewise.
8418         * lib/fstatat.c: Likewise.
8419         * lib/fstrcmp.c: Likewise.
8420         * lib/fstrcmp.h: Likewise.
8421         * lib/fsusage.c: Likewise.
8422         * lib/fsusage.h: Likewise.
8423         * lib/ftell.c: Likewise.
8424         * lib/ftello.c: Likewise.
8425         * lib/fts-cycle.c: Likewise.
8426         * lib/fts.c: Likewise.
8427         * lib/fts_.h: Likewise.
8428         * lib/full-read.c: Likewise.
8429         * lib/full-read.h: Likewise.
8430         * lib/full-write.c: Likewise.
8431         * lib/full-write.h: Likewise.
8432         * lib/fwritable.c: Likewise.
8433         * lib/fwritable.h: Likewise.
8434         * lib/fwriteerror.c: Likewise.
8435         * lib/fwriteerror.h: Likewise.
8436         * lib/fwriting.c: Likewise.
8437         * lib/fwriting.h: Likewise.
8438         * lib/gcd.c: Likewise.
8439         * lib/gcd.h: Likewise.
8440         * lib/getcwd.c: Likewise.
8441         * lib/getdate.h: Likewise.
8442         * lib/getdate.y: Likewise.
8443         * lib/getdomainname.c: Likewise.
8444         * lib/getdomainname.h: Likewise.
8445         * lib/getgroups.c: Likewise.
8446         * lib/gethostname.c: Likewise.
8447         * lib/gethrxtime.c: Likewise.
8448         * lib/gethrxtime.h: Likewise.
8449         * lib/getloadavg.c: Likewise.
8450         * lib/getndelim2.c: Likewise.
8451         * lib/getndelim2.h: Likewise.
8452         * lib/getnline.c: Likewise.
8453         * lib/getnline.h: Likewise.
8454         * lib/getopt.c: Likewise.
8455         * lib/getopt.in.h: Likewise.
8456         * lib/getopt1.c: Likewise.
8457         * lib/getopt_int.h: Likewise.
8458         * lib/getpagesize.h: Likewise.
8459         * lib/getsubopt.c: Likewise.
8460         * lib/gettime.c: Likewise.
8461         * lib/getugroups.c: Likewise.
8462         * lib/getugroups.h: Likewise.
8463         * lib/getusershell.c: Likewise.
8464         * lib/gl_anyavltree_list1.h: Likewise.
8465         * lib/gl_anyavltree_list2.h: Likewise.
8466         * lib/gl_anyhash_list1.h: Likewise.
8467         * lib/gl_anyhash_list2.h: Likewise.
8468         * lib/gl_anylinked_list1.h: Likewise.
8469         * lib/gl_anylinked_list2.h: Likewise.
8470         * lib/gl_anyrbtree_list1.h: Likewise.
8471         * lib/gl_anyrbtree_list2.h: Likewise.
8472         * lib/gl_anytree_list1.h: Likewise.
8473         * lib/gl_anytree_list2.h: Likewise.
8474         * lib/gl_anytree_oset.h: Likewise.
8475         * lib/gl_anytreehash_list1.h: Likewise.
8476         * lib/gl_anytreehash_list2.h: Likewise.
8477         * lib/gl_array_list.c: Likewise.
8478         * lib/gl_array_list.h: Likewise.
8479         * lib/gl_array_oset.c: Likewise.
8480         * lib/gl_array_oset.h: Likewise.
8481         * lib/gl_avltree_list.c: Likewise.
8482         * lib/gl_avltree_list.h: Likewise.
8483         * lib/gl_avltree_oset.c: Likewise.
8484         * lib/gl_avltree_oset.h: Likewise.
8485         * lib/gl_avltreehash_list.c: Likewise.
8486         * lib/gl_avltreehash_list.h: Likewise.
8487         * lib/gl_carray_list.c: Likewise.
8488         * lib/gl_carray_list.h: Likewise.
8489         * lib/gl_linked_list.c: Likewise.
8490         * lib/gl_linked_list.h: Likewise.
8491         * lib/gl_linkedhash_list.c: Likewise.
8492         * lib/gl_linkedhash_list.h: Likewise.
8493         * lib/gl_list.c: Likewise.
8494         * lib/gl_list.h: Likewise.
8495         * lib/gl_oset.c: Likewise.
8496         * lib/gl_oset.h: Likewise.
8497         * lib/gl_rbtree_list.c: Likewise.
8498         * lib/gl_rbtree_list.h: Likewise.
8499         * lib/gl_rbtree_oset.c: Likewise.
8500         * lib/gl_rbtree_oset.h: Likewise.
8501         * lib/gl_rbtreehash_list.c: Likewise.
8502         * lib/gl_rbtreehash_list.h: Likewise.
8503         * lib/gl_sublist.c: Likewise.
8504         * lib/gl_sublist.h: Likewise.
8505         * lib/group-member.c: Likewise.
8506         * lib/group-member.h: Likewise.
8507         * lib/hard-locale.c: Likewise.
8508         * lib/hard-locale.h: Likewise.
8509         * lib/hash-pjw.c: Likewise.
8510         * lib/hash-pjw.h: Likewise.
8511         * lib/hash-triple.c: Likewise.
8512         * lib/hash.c: Likewise.
8513         * lib/hash.h: Likewise.
8514         * lib/human.c: Likewise.
8515         * lib/human.h: Likewise.
8516         * lib/i-ring.c: Likewise.
8517         * lib/i-ring.h: Likewise.
8518         * lib/idcache.c: Likewise.
8519         * lib/imaxabs.c: Likewise.
8520         * lib/imaxdiv.c: Likewise.
8521         * lib/inet_pton.c: Likewise.
8522         * lib/inet_pton.h: Likewise.
8523         * lib/intprops.h: Likewise.
8524         * lib/inttostr.c: Likewise.
8525         * lib/inttostr.h: Likewise.
8526         * lib/inttypes.in.h: Likewise.
8527         * lib/isapipe.c: Likewise.
8528         * lib/isdir.c: Likewise.
8529         * lib/isnan.c: Likewise.
8530         * lib/isnan.h: Likewise.
8531         * lib/isnanf.c: Likewise.
8532         * lib/isnanf.h: Likewise.
8533         * lib/isnanl-nolibm.h: Likewise.
8534         * lib/isnanl.c: Likewise.
8535         * lib/isnanl.h: Likewise.
8536         * lib/javacomp.c: Likewise.
8537         * lib/javacomp.h: Likewise.
8538         * lib/javaexec.c: Likewise.
8539         * lib/javaexec.h: Likewise.
8540         * lib/javaversion.c: Likewise.
8541         * lib/javaversion.h: Likewise.
8542         * lib/javaversion.java: Likewise.
8543         * lib/lbrkprop.h: Likewise.
8544         * lib/lchmod.h: Likewise.
8545         * lib/lchown.c: Likewise.
8546         * lib/ldexpl.c: Likewise.
8547         * lib/linebreak.c: Likewise.
8548         * lib/linebreak.h: Likewise.
8549         * lib/linebuffer.c: Likewise.
8550         * lib/linebuffer.h: Likewise.
8551         * lib/locale.in.h: Likewise.
8552         * lib/logl.c: Likewise.
8553         * lib/long-options.c: Likewise.
8554         * lib/long-options.h: Likewise.
8555         * lib/lstat.c: Likewise.
8556         * lib/lstat.h: Likewise.
8557         * lib/math.in.h: Likewise.
8558         * lib/mbchar.c: Likewise.
8559         * lib/mbchar.h: Likewise.
8560         * lib/mbfile.h: Likewise.
8561         * lib/mbiter.h: Likewise.
8562         * lib/mbscasecmp.c: Likewise.
8563         * lib/mbscasestr.c: Likewise.
8564         * lib/mbschr.c: Likewise.
8565         * lib/mbscspn.c: Likewise.
8566         * lib/mbslen.c: Likewise.
8567         * lib/mbsncasecmp.c: Likewise.
8568         * lib/mbsnlen.c: Likewise.
8569         * lib/mbspbrk.c: Likewise.
8570         * lib/mbspcasecmp.c: Likewise.
8571         * lib/mbsrchr.c: Likewise.
8572         * lib/mbssep.c: Likewise.
8573         * lib/mbsspn.c: Likewise.
8574         * lib/mbsstr.c: Likewise.
8575         * lib/mbstok_r.c: Likewise.
8576         * lib/mbswidth.c: Likewise.
8577         * lib/mbswidth.h: Likewise.
8578         * lib/mbuiter.h: Likewise.
8579         * lib/memcasecmp.c: Likewise.
8580         * lib/memcasecmp.h: Likewise.
8581         * lib/memchr.c: Likewise.
8582         * lib/memcmp.c: Likewise.
8583         * lib/memcoll.c: Likewise.
8584         * lib/memcoll.h: Likewise.
8585         * lib/memcpy.c: Likewise.
8586         * lib/memrchr.c: Likewise.
8587         * lib/mkancesdirs.c: Likewise.
8588         * lib/mkdir-p.c: Likewise.
8589         * lib/mkdir-p.h: Likewise.
8590         * lib/mkdir.c: Likewise.
8591         * lib/mkdirat.c: Likewise.
8592         * lib/mkdtemp.c: Likewise.
8593         * lib/mkstemp-safer.c: Likewise.
8594         * lib/mkstemp.c: Likewise.
8595         * lib/modechange.c: Likewise.
8596         * lib/modechange.h: Likewise.
8597         * lib/mountlist.c: Likewise.
8598         * lib/mountlist.h: Likewise.
8599         * lib/mpsort.c: Likewise.
8600         * lib/nanosleep.c: Likewise.
8601         * lib/obstack.c: Likewise.
8602         * lib/obstack.h: Likewise.
8603         * lib/open-safer.c: Likewise.
8604         * lib/open.c: Likewise.
8605         * lib/openat-die.c: Likewise.
8606         * lib/openat-priv.h: Likewise.
8607         * lib/openat-proc.c: Likewise.
8608         * lib/openat.c: Likewise.
8609         * lib/openat.h: Likewise.
8610         * lib/pagealign_alloc.c: Likewise.
8611         * lib/pagealign_alloc.h: Likewise.
8612         * lib/physmem.c: Likewise.
8613         * lib/physmem.h: Likewise.
8614         * lib/pipe-safer.c: Likewise.
8615         * lib/pipe.c: Likewise.
8616         * lib/pipe.h: Likewise.
8617         * lib/posixtm.c: Likewise.
8618         * lib/posixtm.h: Likewise.
8619         * lib/posixver.c: Likewise.
8620         * lib/printf-frexp.c: Likewise.
8621         * lib/printf-frexp.h: Likewise.
8622         * lib/printf-frexpl.c: Likewise.
8623         * lib/printf-frexpl.h: Likewise.
8624         * lib/printf.c: Likewise.
8625         * lib/progname.c: Likewise.
8626         * lib/progname.h: Likewise.
8627         * lib/progreloc.c: Likewise.
8628         * lib/putenv.c: Likewise.
8629         * lib/quote.c: Likewise.
8630         * lib/quote.h: Likewise.
8631         * lib/quotearg.c: Likewise.
8632         * lib/quotearg.h: Likewise.
8633         * lib/raise.c: Likewise.
8634         * lib/readline.c: Likewise.
8635         * lib/readline.h: Likewise.
8636         * lib/readlink.c: Likewise.
8637         * lib/readtokens.c: Likewise.
8638         * lib/readtokens.h: Likewise.
8639         * lib/readtokens0.c: Likewise.
8640         * lib/readtokens0.h: Likewise.
8641         * lib/readutmp.c: Likewise.
8642         * lib/readutmp.h: Likewise.
8643         * lib/realloc.c: Likewise.
8644         * lib/relocwrapper.c: Likewise.
8645         * lib/rename-dest-slash.c: Likewise.
8646         * lib/rename.c: Likewise.
8647         * lib/rmdir.c: Likewise.
8648         * lib/rpmatch.c: Likewise.
8649         * lib/safe-read.c: Likewise.
8650         * lib/safe-read.h: Likewise.
8651         * lib/safe-write.c: Likewise.
8652         * lib/safe-write.h: Likewise.
8653         * lib/same-inode.h: Likewise.
8654         * lib/same.c: Likewise.
8655         * lib/same.h: Likewise.
8656         * lib/save-cwd.c: Likewise.
8657         * lib/save-cwd.h: Likewise.
8658         * lib/savedir.c: Likewise.
8659         * lib/savedir.h: Likewise.
8660         * lib/savewd.c: Likewise.
8661         * lib/savewd.h: Likewise.
8662         * lib/search.in.h: Likewise.
8663         * lib/setenv.c: Likewise.
8664         * lib/setenv.h: Likewise.
8665         * lib/settime.c: Likewise.
8666         * lib/sh-quote.c: Likewise.
8667         * lib/sh-quote.h: Likewise.
8668         * lib/sig2str.c: Likewise.
8669         * lib/sig2str.h: Likewise.
8670         * lib/signal.in.h: Likewise.
8671         * lib/signbitd.c: Likewise.
8672         * lib/signbitf.c: Likewise.
8673         * lib/signbitl.c: Likewise.
8674         * lib/sigprocmask.c: Likewise.
8675         * lib/sincosl.c: Likewise.
8676         * lib/sleep.c: Likewise.
8677         * lib/sprintf.c: Likewise.
8678         * lib/sqrtl.c: Likewise.
8679         * lib/stat-time.h: Likewise.
8680         * lib/stdio--.h: Likewise.
8681         * lib/stdio-safer.h: Likewise.
8682         * lib/stdlib--.h: Likewise.
8683         * lib/stdlib-safer.h: Likewise.
8684         * lib/stdlib.in.h: Likewise.
8685         * lib/stpcpy.c: Likewise.
8686         * lib/stpncpy.c: Likewise.
8687         * lib/strchrnul.c: Likewise.
8688         * lib/strcspn.c: Likewise.
8689         * lib/strerror.c: Likewise.
8690         * lib/strftime.c: Likewise.
8691         * lib/strftime.h: Likewise.
8692         * lib/striconveh.c: Likewise.
8693         * lib/striconveh.h: Likewise.
8694         * lib/striconveha.c: Likewise.
8695         * lib/striconveha.h: Likewise.
8696         * lib/stripslash.c: Likewise.
8697         * lib/strnlen1.c: Likewise.
8698         * lib/strnlen1.h: Likewise.
8699         * lib/strtod.c: Likewise.
8700         * lib/strtoimax.c: Likewise.
8701         * lib/strtok_r.c: Likewise.
8702         * lib/strtol.c: Likewise.
8703         * lib/strtoll.c: Likewise.
8704         * lib/strtoul.c: Likewise.
8705         * lib/strtoull.c: Likewise.
8706         * lib/sysexits.in.h: Likewise.
8707         * lib/tempname.c: Likewise.
8708         * lib/tempname.h: Likewise.
8709         * lib/timespec.h: Likewise.
8710         * lib/tls.c: Likewise.
8711         * lib/tls.h: Likewise.
8712         * lib/tmpdir.c: Likewise.
8713         * lib/tmpdir.h: Likewise.
8714         * lib/tmpfile-safer.c: Likewise.
8715         * lib/tmpfile.c: Likewise.
8716         * lib/trigl.c: Likewise.
8717         * lib/trigl.h: Likewise.
8718         * lib/trim.c: Likewise.
8719         * lib/trim.h: Likewise.
8720         * lib/trunc.c: Likewise.
8721         * lib/truncf.c: Likewise.
8722         * lib/truncl.c: Likewise.
8723         * lib/tsearch.c: Likewise.
8724         * lib/unicodeio.c: Likewise.
8725         * lib/unicodeio.h: Likewise.
8726         * lib/unistd--.h: Likewise.
8727         * lib/unistd-safer.h: Likewise.
8728         * lib/unistdio/ulc-fprintf.c: Likewise.
8729         * lib/unistdio/ulc-vfprintf.c: Likewise.
8730         * lib/unlinkdir.c: Likewise.
8731         * lib/unlinkdir.h: Likewise.
8732         * lib/unlocked-io.h: Likewise.
8733         * lib/unsetenv.c: Likewise.
8734         * lib/userspec.c: Likewise.
8735         * lib/utime.c: Likewise.
8736         * lib/utimecmp.c: Likewise.
8737         * lib/utimecmp.h: Likewise.
8738         * lib/utimens.c: Likewise.
8739         * lib/verify.h: Likewise.
8740         * lib/verror.c: Likewise.
8741         * lib/verror.h: Likewise.
8742         * lib/version-etc-fsf.c: Likewise.
8743         * lib/version-etc.c: Likewise.
8744         * lib/version-etc.h: Likewise.
8745         * lib/vfprintf.c: Likewise.
8746         * lib/vprintf.c: Likewise.
8747         * lib/vsprintf.c: Likewise.
8748         * lib/w32spawn.h: Likewise.
8749         * lib/wait-process.c: Likewise.
8750         * lib/wait-process.h: Likewise.
8751         * lib/wcwidth.c: Likewise.
8752         * lib/write-any-file.c: Likewise.
8753         * lib/xalloc-die.c: Likewise.
8754         * lib/xalloc.h: Likewise.
8755         * lib/xasprintf.c: Likewise.
8756         * lib/xgetcwd.c: Likewise.
8757         * lib/xgetcwd.h: Likewise.
8758         * lib/xgetdomainname.c: Likewise.
8759         * lib/xgetdomainname.h: Likewise.
8760         * lib/xgethostname.c: Likewise.
8761         * lib/xmalloc.c: Likewise.
8762         * lib/xmalloca.c: Likewise.
8763         * lib/xmalloca.h: Likewise.
8764         * lib/xmemcoll.c: Likewise.
8765         * lib/xnanosleep.c: Likewise.
8766         * lib/xreadlink.c: Likewise.
8767         * lib/xreadlink.h: Likewise.
8768         * lib/xsetenv.c: Likewise.
8769         * lib/xsetenv.h: Likewise.
8770         * lib/xstriconv.c: Likewise.
8771         * lib/xstriconv.h: Likewise.
8772         * lib/xstrndup.c: Likewise.
8773         * lib/xstrndup.h: Likewise.
8774         * lib/xstrtod.c: Likewise.
8775         * lib/xstrtod.h: Likewise.
8776         * lib/xstrtol-error.c: Likewise.
8777         * lib/xstrtol.c: Likewise.
8778         * lib/xstrtol.h: Likewise.
8779         * lib/xtime.h: Likewise.
8780         * lib/xvasprintf.c: Likewise.
8781         * lib/xvasprintf.h: Likewise.
8782         * lib/yesno.c: Likewise.
8783         * lib/yesno.h: Likewise.
8784         * posix-modules: Likewise.
8785         * tests/test-alloca-opt.c: Likewise.
8786         * tests/test-arcfour.c: Likewise.
8787         * tests/test-arctwo.c: Likewise.
8788         * tests/test-argmatch.c: Likewise.
8789         * tests/test-argp-2.sh: Likewise.
8790         * tests/test-argp.c: Likewise.
8791         * tests/test-arpa_inet.c: Likewise.
8792         * tests/test-array_list.c: Likewise.
8793         * tests/test-array_oset.c: Likewise.
8794         * tests/test-atexit.c: Likewise.
8795         * tests/test-avltree_list.c: Likewise.
8796         * tests/test-avltree_oset.c: Likewise.
8797         * tests/test-avltreehash_list.c: Likewise.
8798         * tests/test-base64.c: Likewise.
8799         * tests/test-binary-io.c: Likewise.
8800         * tests/test-byteswap.c: Likewise.
8801         * tests/test-c-ctype.c: Likewise.
8802         * tests/test-c-strcasecmp.c: Likewise.
8803         * tests/test-c-strcasestr.c: Likewise.
8804         * tests/test-c-strncasecmp.c: Likewise.
8805         * tests/test-c-strstr.c: Likewise.
8806         * tests/test-canonicalize-lgpl.c: Likewise.
8807         * tests/test-canonicalize.c: Likewise.
8808         * tests/test-carray_list.c: Likewise.
8809         * tests/test-ceilf.c: Likewise.
8810         * tests/test-ceill.c: Likewise.
8811         * tests/test-count-one-bits.c: Likewise.
8812         * tests/test-crc.c: Likewise.
8813         * tests/test-dirname.c: Likewise.
8814         * tests/test-fbufmode.c: Likewise.
8815         * tests/test-fcntl.c: Likewise.
8816         * tests/test-fflush.c: Likewise.
8817         * tests/test-floorf.c: Likewise.
8818         * tests/test-floorl.c: Likewise.
8819         * tests/test-fopen.c: Likewise.
8820         * tests/test-fprintf-posix.c: Likewise.
8821         * tests/test-fprintf-posix.h: Likewise.
8822         * tests/test-fpurge.c: Likewise.
8823         * tests/test-freadable.c: Likewise.
8824         * tests/test-freadahead.c: Likewise.
8825         * tests/test-freading.c: Likewise.
8826         * tests/test-freopen.c: Likewise.
8827         * tests/test-frexp.c: Likewise.
8828         * tests/test-frexpl.c: Likewise.
8829         * tests/test-fseek.c: Likewise.
8830         * tests/test-fseeko.c: Likewise.
8831         * tests/test-fseterr.c: Likewise.
8832         * tests/test-fstrcmp.c: Likewise.
8833         * tests/test-ftell.c: Likewise.
8834         * tests/test-ftello.c: Likewise.
8835         * tests/test-fwritable.c: Likewise.
8836         * tests/test-fwriting.c: Likewise.
8837         * tests/test-getaddrinfo.c: Likewise.
8838         * tests/test-getpass.c: Likewise.
8839         * tests/test-gettimeofday.c: Likewise.
8840         * tests/test-hmac-md5.c: Likewise.
8841         * tests/test-hmac-sha1.c: Likewise.
8842         * tests/test-iconv.c: Likewise.
8843         * tests/test-iconvme.c: Likewise.
8844         * tests/test-inttypes.c: Likewise.
8845         * tests/test-isnan.c: Likewise.
8846         * tests/test-isnanf.c: Likewise.
8847         * tests/test-isnanl-nolibm.c: Likewise.
8848         * tests/test-isnanl.c: Likewise.
8849         * tests/test-isnanl.h: Likewise.
8850         * tests/test-ldexpl.c: Likewise.
8851         * tests/test-linked_list.c: Likewise.
8852         * tests/test-linkedhash_list.c: Likewise.
8853         * tests/test-locale.c: Likewise.
8854         * tests/test-localename.c: Likewise.
8855         * tests/test-lock.c: Likewise.
8856         * tests/test-lseek.c: Likewise.
8857         * tests/test-malloca.c: Likewise.
8858         * tests/test-math.c: Likewise.
8859         * tests/test-mbscasecmp.c: Likewise.
8860         * tests/test-mbscasestr1.c: Likewise.
8861         * tests/test-mbscasestr2.c: Likewise.
8862         * tests/test-mbscasestr3.c: Likewise.
8863         * tests/test-mbscasestr4.c: Likewise.
8864         * tests/test-mbschr.c: Likewise.
8865         * tests/test-mbscspn.c: Likewise.
8866         * tests/test-mbsncasecmp.c: Likewise.
8867         * tests/test-mbspbrk.c: Likewise.
8868         * tests/test-mbspcasecmp.c: Likewise.
8869         * tests/test-mbsrchr.c: Likewise.
8870         * tests/test-mbsspn.c: Likewise.
8871         * tests/test-mbsstr1.c: Likewise.
8872         * tests/test-mbsstr2.c: Likewise.
8873         * tests/test-mbsstr3.c: Likewise.
8874         * tests/test-md5.c: Likewise.
8875         * tests/test-memmem.c: Likewise.
8876         * tests/test-netinet_in.c: Likewise.
8877         * tests/test-open.c: Likewise.
8878         * tests/test-printf-frexp.c: Likewise.
8879         * tests/test-printf-frexpl.c: Likewise.
8880         * tests/test-printf-posix.c: Likewise.
8881         * tests/test-printf-posix.h: Likewise.
8882         * tests/test-rbtree_list.c: Likewise.
8883         * tests/test-rbtree_oset.c: Likewise.
8884         * tests/test-rbtreehash_list.c: Likewise.
8885         * tests/test-read-file.c: Likewise.
8886         * tests/test-rijndael.c: Likewise.
8887         * tests/test-search.c: Likewise.
8888         * tests/test-signbit.c: Likewise.
8889         * tests/test-sleep.c: Likewise.
8890         * tests/test-snprintf-posix.c: Likewise.
8891         * tests/test-snprintf-posix.h: Likewise.
8892         * tests/test-snprintf.c: Likewise.
8893         * tests/test-sprintf-posix.c: Likewise.
8894         * tests/test-sprintf-posix.h: Likewise.
8895         * tests/test-stat-time.c: Likewise.
8896         * tests/test-stdbool.c: Likewise.
8897         * tests/test-stdint.c: Likewise.
8898         * tests/test-stdio.c: Likewise.
8899         * tests/test-stdlib.c: Likewise.
8900         * tests/test-stpncpy.c: Likewise.
8901         * tests/test-strcasestr.c: Likewise.
8902         * tests/test-striconv.c: Likewise.
8903         * tests/test-striconveh.c: Likewise.
8904         * tests/test-striconveha.c: Likewise.
8905         * tests/test-string.c: Likewise.
8906         * tests/test-sys_select.c: Likewise.
8907         * tests/test-sys_socket.c: Likewise.
8908         * tests/test-sys_stat.c: Likewise.
8909         * tests/test-sys_time.c: Likewise.
8910         * tests/test-sysexits.c: Likewise.
8911         * tests/test-time.c: Likewise.
8912         * tests/test-tls.c: Likewise.
8913         * tests/test-trunc.c: Likewise.
8914         * tests/test-truncf.c: Likewise.
8915         * tests/test-truncl.c: Likewise.
8916         * tests/test-unistd.c: Likewise.
8917         * tests/test-vasnprintf-posix.c: Likewise.
8918         * tests/test-vasnprintf-posix2.c: Likewise.
8919         * tests/test-vasnprintf.c: Likewise.
8920         * tests/test-vasprintf-posix.c: Likewise.
8921         * tests/test-vasprintf.c: Likewise.
8922         * tests/test-verify.c: Likewise.
8923         * tests/test-vfprintf-posix.c: Likewise.
8924         * tests/test-vprintf-posix.c: Likewise.
8925         * tests/test-vsnprintf-posix.c: Likewise.
8926         * tests/test-vsnprintf.c: Likewise.
8927         * tests/test-vsprintf-posix.c: Likewise.
8928         * tests/test-wchar.c: Likewise.
8929         * tests/test-wctype.c: Likewise.
8930         * tests/test-wcwidth.c: Likewise.
8931         * tests/test-xstrtol.c: Likewise.
8932         * tests/test-xvasprintf.c: Likewise.
8933         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8934         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8935         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8936         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8937         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8938         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8939         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8940         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8941         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8942         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8945         * tests/uniname/test-uninames.c: Likewise.
8946         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8947         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
8948         * tests/unistdio/test-u16-printf1.h: Likewise.
8949         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8950         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8951         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8952         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8953         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8954         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8955         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8956         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
8957         * tests/unistdio/test-u32-printf1.h: Likewise.
8958         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8959         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8960         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8961         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8962         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8963         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8964         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8965         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
8966         * tests/unistdio/test-u8-printf1.h: Likewise.
8967         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8968         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8969         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8970         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8971         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8972         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8973         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8974         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
8975         * tests/unistdio/test-ulc-printf1.h: Likewise.
8976         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8977         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8978         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8979         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8980         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8981         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8982         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8983         * tests/uniwidth/test-u16-width.c: Likewise.
8984         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8985         * tests/uniwidth/test-u32-width.c: Likewise.
8986         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8987         * tests/uniwidth/test-u8-width.c: Likewise.
8988         * tests/uniwidth/test-uc_width.c: Likewise.
8989         * config/srclist-update: Likewise.
8990         (fixlicense): Update to GPLv3+.
8991
8992         Change copyright notice from LGPLv2.1+ to LGPLv3+.
8993         * tests/test-tsearch.c: Change copyright notice.
8994
8995         Change copyright notice from LGPLv2.0+ to LGPLv3+.
8996         * lib/c-strcaseeq.h: Change copyright notice.
8997         * lib/streq.h: Likewise.
8998         * lib/uniconv.h: Likewise.
8999         * lib/uniconv/u-conv-from-enc.h: Likewise.
9000         * lib/uniconv/u-conv-to-enc.h: Likewise.
9001         * lib/uniconv/u-strconv-from-enc.h: Likewise.
9002         * lib/uniconv/u-strconv-to-enc.h: Likewise.
9003         * lib/uniconv/u16-conv-from-enc.c: Likewise.
9004         * lib/uniconv/u16-conv-to-enc.c: Likewise.
9005         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
9006         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
9007         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
9008         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
9009         * lib/uniconv/u32-conv-from-enc.c: Likewise.
9010         * lib/uniconv/u32-conv-to-enc.c: Likewise.
9011         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
9012         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
9013         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
9014         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
9015         * lib/uniconv/u8-conv-from-enc.c: Likewise.
9016         * lib/uniconv/u8-conv-to-enc.c: Likewise.
9017         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
9018         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
9019         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
9020         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
9021         * lib/uniname.h: Likewise.
9022         * lib/uniname/uniname.c: Likewise.
9023         * lib/unistdio.h: Likewise.
9024         * lib/unistdio/u-asnprintf.h: Likewise.
9025         * lib/unistdio/u-asprintf.h: Likewise.
9026         * lib/unistdio/u-printf-args.c: Likewise.
9027         * lib/unistdio/u-printf-args.h: Likewise.
9028         * lib/unistdio/u-printf-parse.h: Likewise.
9029         * lib/unistdio/u-snprintf.h: Likewise.
9030         * lib/unistdio/u-sprintf.h: Likewise.
9031         * lib/unistdio/u-vasprintf.h: Likewise.
9032         * lib/unistdio/u-vsnprintf.h: Likewise.
9033         * lib/unistdio/u-vsprintf.h: Likewise.
9034         * lib/unistdio/u16-asnprintf.c: Likewise.
9035         * lib/unistdio/u16-asprintf.c: Likewise.
9036         * lib/unistdio/u16-printf-parse.c: Likewise.
9037         * lib/unistdio/u16-snprintf.c: Likewise.
9038         * lib/unistdio/u16-sprintf.c: Likewise.
9039         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
9040         * lib/unistdio/u16-u16-asprintf.c: Likewise.
9041         * lib/unistdio/u16-u16-snprintf.c: Likewise.
9042         * lib/unistdio/u16-u16-sprintf.c: Likewise.
9043         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
9044         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
9045         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
9046         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
9047         * lib/unistdio/u16-vasnprintf.c: Likewise.
9048         * lib/unistdio/u16-vasprintf.c: Likewise.
9049         * lib/unistdio/u16-vsnprintf.c: Likewise.
9050         * lib/unistdio/u16-vsprintf.c: Likewise.
9051         * lib/unistdio/u32-asnprintf.c: Likewise.
9052         * lib/unistdio/u32-asprintf.c: Likewise.
9053         * lib/unistdio/u32-printf-parse.c: Likewise.
9054         * lib/unistdio/u32-snprintf.c: Likewise.
9055         * lib/unistdio/u32-sprintf.c: Likewise.
9056         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
9057         * lib/unistdio/u32-u32-asprintf.c: Likewise.
9058         * lib/unistdio/u32-u32-snprintf.c: Likewise.
9059         * lib/unistdio/u32-u32-sprintf.c: Likewise.
9060         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
9061         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
9062         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
9063         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
9064         * lib/unistdio/u32-vasnprintf.c: Likewise.
9065         * lib/unistdio/u32-vasprintf.c: Likewise.
9066         * lib/unistdio/u32-vsnprintf.c: Likewise.
9067         * lib/unistdio/u32-vsprintf.c: Likewise.
9068         * lib/unistdio/u8-asnprintf.c: Likewise.
9069         * lib/unistdio/u8-asprintf.c: Likewise.
9070         * lib/unistdio/u8-printf-parse.c: Likewise.
9071         * lib/unistdio/u8-snprintf.c: Likewise.
9072         * lib/unistdio/u8-sprintf.c: Likewise.
9073         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
9074         * lib/unistdio/u8-u8-asprintf.c: Likewise.
9075         * lib/unistdio/u8-u8-snprintf.c: Likewise.
9076         * lib/unistdio/u8-u8-sprintf.c: Likewise.
9077         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
9078         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
9079         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
9080         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
9081         * lib/unistdio/u8-vasnprintf.c: Likewise.
9082         * lib/unistdio/u8-vasprintf.c: Likewise.
9083         * lib/unistdio/u8-vsnprintf.c: Likewise.
9084         * lib/unistdio/u8-vsprintf.c: Likewise.
9085         * lib/unistdio/ulc-asnprintf.c: Likewise.
9086         * lib/unistdio/ulc-asprintf.c: Likewise.
9087         * lib/unistdio/ulc-printf-parse.c: Likewise.
9088         * lib/unistdio/ulc-snprintf.c: Likewise.
9089         * lib/unistdio/ulc-sprintf.c: Likewise.
9090         * lib/unistdio/ulc-vasnprintf.c: Likewise.
9091         * lib/unistdio/ulc-vasprintf.c: Likewise.
9092         * lib/unistdio/ulc-vsnprintf.c: Likewise.
9093         * lib/unistdio/ulc-vsprintf.c: Likewise.
9094         * lib/unistr.h: Likewise.
9095         * lib/unistr/u-cpy-alloc.h: Likewise.
9096         * lib/unistr/u-cpy.h: Likewise.
9097         * lib/unistr/u-endswith.h: Likewise.
9098         * lib/unistr/u-move.h: Likewise.
9099         * lib/unistr/u-set.h: Likewise.
9100         * lib/unistr/u-startswith.h: Likewise.
9101         * lib/unistr/u-stpcpy.h: Likewise.
9102         * lib/unistr/u-stpncpy.h: Likewise.
9103         * lib/unistr/u-strcat.h: Likewise.
9104         * lib/unistr/u-strcpy.h: Likewise.
9105         * lib/unistr/u-strcspn.h: Likewise.
9106         * lib/unistr/u-strdup.h: Likewise.
9107         * lib/unistr/u-strlen.h: Likewise.
9108         * lib/unistr/u-strncat.h: Likewise.
9109         * lib/unistr/u-strncpy.h: Likewise.
9110         * lib/unistr/u-strnlen.h: Likewise.
9111         * lib/unistr/u-strpbrk.h: Likewise.
9112         * lib/unistr/u-strspn.h: Likewise.
9113         * lib/unistr/u-strstr.h: Likewise.
9114         * lib/unistr/u-strtok.h: Likewise.
9115         * lib/unistr/u16-check.c: Likewise.
9116         * lib/unistr/u16-chr.c: Likewise.
9117         * lib/unistr/u16-cmp.c: Likewise.
9118         * lib/unistr/u16-cpy-alloc.c: Likewise.
9119         * lib/unistr/u16-cpy.c: Likewise.
9120         * lib/unistr/u16-endswith.c: Likewise.
9121         * lib/unistr/u16-mblen.c: Likewise.
9122         * lib/unistr/u16-mbsnlen.c: Likewise.
9123         * lib/unistr/u16-mbtouc-aux.c: Likewise.
9124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9125         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9126         * lib/unistr/u16-mbtouc.c: Likewise.
9127         * lib/unistr/u16-mbtoucr.c: Likewise.
9128         * lib/unistr/u16-move.c: Likewise.
9129         * lib/unistr/u16-next.c: Likewise.
9130         * lib/unistr/u16-prev.c: Likewise.
9131         * lib/unistr/u16-set.c: Likewise.
9132         * lib/unistr/u16-startswith.c: Likewise.
9133         * lib/unistr/u16-stpcpy.c: Likewise.
9134         * lib/unistr/u16-stpncpy.c: Likewise.
9135         * lib/unistr/u16-strcat.c: Likewise.
9136         * lib/unistr/u16-strchr.c: Likewise.
9137         * lib/unistr/u16-strcmp.c: Likewise.
9138         * lib/unistr/u16-strcpy.c: Likewise.
9139         * lib/unistr/u16-strcspn.c: Likewise.
9140         * lib/unistr/u16-strdup.c: Likewise.
9141         * lib/unistr/u16-strlen.c: Likewise.
9142         * lib/unistr/u16-strmblen.c: Likewise.
9143         * lib/unistr/u16-strmbtouc.c: Likewise.
9144         * lib/unistr/u16-strncat.c: Likewise.
9145         * lib/unistr/u16-strncmp.c: Likewise.
9146         * lib/unistr/u16-strncpy.c: Likewise.
9147         * lib/unistr/u16-strnlen.c: Likewise.
9148         * lib/unistr/u16-strpbrk.c: Likewise.
9149         * lib/unistr/u16-strrchr.c: Likewise.
9150         * lib/unistr/u16-strspn.c: Likewise.
9151         * lib/unistr/u16-strstr.c: Likewise.
9152         * lib/unistr/u16-strtok.c: Likewise.
9153         * lib/unistr/u16-to-u32.c: Likewise.
9154         * lib/unistr/u16-to-u8.c: Likewise.
9155         * lib/unistr/u16-uctomb-aux.c: Likewise.
9156         * lib/unistr/u16-uctomb.c: Likewise.
9157         * lib/unistr/u32-check.c: Likewise.
9158         * lib/unistr/u32-chr.c: Likewise.
9159         * lib/unistr/u32-cmp.c: Likewise.
9160         * lib/unistr/u32-cpy-alloc.c: Likewise.
9161         * lib/unistr/u32-cpy.c: Likewise.
9162         * lib/unistr/u32-endswith.c: Likewise.
9163         * lib/unistr/u32-mblen.c: Likewise.
9164         * lib/unistr/u32-mbsnlen.c: Likewise.
9165         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9166         * lib/unistr/u32-mbtouc.c: Likewise.
9167         * lib/unistr/u32-mbtoucr.c: Likewise.
9168         * lib/unistr/u32-move.c: Likewise.
9169         * lib/unistr/u32-next.c: Likewise.
9170         * lib/unistr/u32-prev.c: Likewise.
9171         * lib/unistr/u32-set.c: Likewise.
9172         * lib/unistr/u32-startswith.c: Likewise.
9173         * lib/unistr/u32-stpcpy.c: Likewise.
9174         * lib/unistr/u32-stpncpy.c: Likewise.
9175         * lib/unistr/u32-strcat.c: Likewise.
9176         * lib/unistr/u32-strchr.c: Likewise.
9177         * lib/unistr/u32-strcmp.c: Likewise.
9178         * lib/unistr/u32-strcpy.c: Likewise.
9179         * lib/unistr/u32-strcspn.c: Likewise.
9180         * lib/unistr/u32-strdup.c: Likewise.
9181         * lib/unistr/u32-strlen.c: Likewise.
9182         * lib/unistr/u32-strmblen.c: Likewise.
9183         * lib/unistr/u32-strmbtouc.c: Likewise.
9184         * lib/unistr/u32-strncat.c: Likewise.
9185         * lib/unistr/u32-strncmp.c: Likewise.
9186         * lib/unistr/u32-strncpy.c: Likewise.
9187         * lib/unistr/u32-strnlen.c: Likewise.
9188         * lib/unistr/u32-strpbrk.c: Likewise.
9189         * lib/unistr/u32-strrchr.c: Likewise.
9190         * lib/unistr/u32-strspn.c: Likewise.
9191         * lib/unistr/u32-strstr.c: Likewise.
9192         * lib/unistr/u32-strtok.c: Likewise.
9193         * lib/unistr/u32-to-u16.c: Likewise.
9194         * lib/unistr/u32-to-u8.c: Likewise.
9195         * lib/unistr/u32-uctomb.c: Likewise.
9196         * lib/unistr/u8-check.c: Likewise.
9197         * lib/unistr/u8-chr.c: Likewise.
9198         * lib/unistr/u8-cmp.c: Likewise.
9199         * lib/unistr/u8-cpy-alloc.c: Likewise.
9200         * lib/unistr/u8-cpy.c: Likewise.
9201         * lib/unistr/u8-endswith.c: Likewise.
9202         * lib/unistr/u8-mblen.c: Likewise.
9203         * lib/unistr/u8-mbsnlen.c: Likewise.
9204         * lib/unistr/u8-mbtouc-aux.c: Likewise.
9205         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9206         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9207         * lib/unistr/u8-mbtouc.c: Likewise.
9208         * lib/unistr/u8-mbtoucr.c: Likewise.
9209         * lib/unistr/u8-move.c: Likewise.
9210         * lib/unistr/u8-next.c: Likewise.
9211         * lib/unistr/u8-prev.c: Likewise.
9212         * lib/unistr/u8-set.c: Likewise.
9213         * lib/unistr/u8-startswith.c: Likewise.
9214         * lib/unistr/u8-stpcpy.c: Likewise.
9215         * lib/unistr/u8-stpncpy.c: Likewise.
9216         * lib/unistr/u8-strcat.c: Likewise.
9217         * lib/unistr/u8-strchr.c: Likewise.
9218         * lib/unistr/u8-strcmp.c: Likewise.
9219         * lib/unistr/u8-strcpy.c: Likewise.
9220         * lib/unistr/u8-strcspn.c: Likewise.
9221         * lib/unistr/u8-strdup.c: Likewise.
9222         * lib/unistr/u8-strlen.c: Likewise.
9223         * lib/unistr/u8-strmblen.c: Likewise.
9224         * lib/unistr/u8-strmbtouc.c: Likewise.
9225         * lib/unistr/u8-strncat.c: Likewise.
9226         * lib/unistr/u8-strncmp.c: Likewise.
9227         * lib/unistr/u8-strncpy.c: Likewise.
9228         * lib/unistr/u8-strnlen.c: Likewise.
9229         * lib/unistr/u8-strpbrk.c: Likewise.
9230         * lib/unistr/u8-strrchr.c: Likewise.
9231         * lib/unistr/u8-strspn.c: Likewise.
9232         * lib/unistr/u8-strstr.c: Likewise.
9233         * lib/unistr/u8-strtok.c: Likewise.
9234         * lib/unistr/u8-to-u16.c: Likewise.
9235         * lib/unistr/u8-to-u32.c: Likewise.
9236         * lib/unistr/u8-uctomb-aux.c: Likewise.
9237         * lib/unistr/u8-uctomb.c: Likewise.
9238         * lib/unitypes.h: Likewise.
9239         * lib/uniwidth.h: Likewise.
9240         * lib/uniwidth/cjk.h: Likewise.
9241         * lib/uniwidth/u16-strwidth.c: Likewise.
9242         * lib/uniwidth/u16-width.c: Likewise.
9243         * lib/uniwidth/u32-strwidth.c: Likewise.
9244         * lib/uniwidth/u32-width.c: Likewise.
9245         * lib/uniwidth/u8-strwidth.c: Likewise.
9246         * lib/uniwidth/u8-width.c: Likewise.
9247         * lib/uniwidth/width.c: Likewise.
9248
9249 2007-10-07  Bruno Haible  <bruno@clisp.org>
9250
9251         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
9252         The file is still under LGPL (see modules/inttypes).
9253
9254 2007-10-06  Bruno Haible  <bruno@clisp.org>
9255
9256         * modules/trunc (Dependencies): Add 'extensions'.
9257         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
9258         Reported by Ben Pfaff <blp@gnu.org>.
9259
9260 2007-10-06  Bruno Haible  <bruno@clisp.org>
9261
9262         * modules/freopen-tests: New file.
9263         * tests/test-freopen.c: New file.
9264
9265         * modules/fopen-tests: New file.
9266         * tests/test-fopen.c: New file.
9267
9268         * modules/fopen: New file.
9269         * lib/fopen.c: New file.
9270         * m4/fopen.m4: New file.
9271         * modules/freopen: New file.
9272         * lib/freopen.c: New file.
9273         * m4/freopen.m4: New file.
9274         * lib/stdio.in.h (fopen, freopen): New declarations.
9275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
9276         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9277         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
9278         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
9279         * doc/functions/fopen.texi: Mention the 'fopen' module.
9280         * doc/functions/freopen.texi: Mention the 'freopen' module.
9281
9282 2007-10-06  Bruno Haible  <bruno@clisp.org>
9283
9284         * modules/open-tests: New file.
9285         * tests/test-open.c: New file.
9286
9287         * modules/open: New file.
9288         * lib/open.c: New file.
9289         * m4/open.m4: New file.
9290         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
9291         lib/open.c does.
9292         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
9293         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
9294         macros.
9295         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
9296         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
9297         REPLACE_OPEN.
9298         * doc/functions/open.texi: Mention the 'open' module.
9299
9300 2007-10-04  Bruno Haible  <bruno@clisp.org>
9301
9302         * modules/ceill-tests: New file.
9303         * tests/test-ceill.c: New file.
9304
9305         * modules/ceill: New file.
9306         * lib/ceill.c: Replace entire file.
9307         * m4/ceill.m4: New file.
9308         * lib/math.in.h (ceill): Replace declaration.
9309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
9310         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
9311         * doc/functions/ceill.texi: Mention the 'ceill' module.
9312         * modules/mathl (Files): Remove lib/ceill.c.
9313         (Depends-on): Add ceill.
9314
9315 2007-10-04  Bruno Haible  <bruno@clisp.org>
9316
9317         * modules/ceilf-tests: New file.
9318         * tests/test-ceilf.c: New file.
9319
9320         * modules/ceilf: New file.
9321         * lib/ceil.c: New file.
9322         * lib/ceilf.c: New file.
9323         * m4/ceilf.m4: New file.
9324         * lib/math.in.h (ceilf): New declaration.
9325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
9326         HAVE_DECL_CEILF.
9327         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
9328         HAVE_DECL_CEILF.
9329         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
9330
9331 2007-10-04  Bruno Haible  <bruno@clisp.org>
9332
9333         * modules/floorl-tests: New file.
9334         * tests/test-floorl.c: New file.
9335
9336         * modules/floorl: New file.
9337         * lib/floorl.c: Replace entire file.
9338         * m4/floorl.m4: New file.
9339         * lib/math.in.h (floorl): Replace declaration.
9340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
9341         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
9342         * doc/functions/floorl.texi: Mention the 'floorl' module.
9343         * modules/mathl (Files): Remove lib/floorl.c.
9344         (Depends-on): Add floorl.
9345
9346 2007-10-04  Bruno Haible  <bruno@clisp.org>
9347
9348         * modules/floorf-tests: New file.
9349         * tests/test-floorf.c: New file.
9350
9351         * modules/floorf: New file.
9352         * lib/floor.c: New file.
9353         * lib/floorf.c: New file.
9354         * m4/floorf.m4: New file.
9355         * lib/math.in.h (floorf): New declaration.
9356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
9357         HAVE_DECL_FLOORF.
9358         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
9359         HAVE_DECL_FLOORF.
9360         * doc/functions/floorf.texi: Mention the 'floorf' module.
9361
9362 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
9363             Bruno Haible  <bruno@clisp.org>
9364
9365         Advertise for the Git server instead of the CVS server.
9366         * doc/gnulib-intro.texi (Steady Development): Mention the Git
9367         repository instead of the CVS one.
9368         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
9369         about all VCS systems generically.
9370         * doc/gnulib.texi (Introduction): Capitalize `Git'.
9371
9372 2007-10-04  Bruno Haible  <bruno@clisp.org>
9373
9374         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
9375         means.
9376         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
9377
9378 2007-10-04  Bruno Haible  <bruno@clisp.org>
9379
9380         * modules/truncl-tests: New file.
9381         * tests/test-truncl.c: New file.
9382
9383         * modules/truncl: New file.
9384         * lib/truncl.c: New file.
9385         * m4/truncl.m4: New file.
9386         * lib/math.in.h (truncl): New declaration.
9387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
9388         HAVE_DECL_TRUNCL.
9389         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
9390         HAVE_DECL_TRUNCL.
9391         * doc/functions/truncl.texi: Mention the 'truncl' module.
9392
9393 2007-10-04  Bruno Haible  <bruno@clisp.org>
9394
9395         * modules/truncf-tests: New file.
9396         * tests/test-truncf.c: New file.
9397
9398         * modules/truncf: New file.
9399         * lib/trunc.c: Make paramerizable through USE_* macros.
9400         * lib/truncf.c: New file.
9401         * m4/truncf.m4: New file.
9402         * lib/math.in.h (truncf): New declaration.
9403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
9404         HAVE_DECL_TRUNCF.
9405         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
9406         HAVE_DECL_TRUNCF.
9407         * doc/functions/truncf.texi: Mention the 'truncf' module.
9408
9409 2007-10-03  Bruno Haible  <bruno@clisp.org>
9410
9411         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
9412         augmentation also for tests modules.
9413         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
9414         * modules/atexit-tests (Makefile.am): Likewise.
9415         * modules/binary-io-tests (Makefile.am): Likewise.
9416         * modules/c-strcase-tests (Makefile.am): Likewise.
9417         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
9418         * modules/canonicalize-tests (Makefile.am): Likewise.
9419         * modules/closein-tests (Makefile.am): Likewise.
9420         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9421         * modules/freadahead-tests (Makefile.am): Likewise.
9422         * modules/fseek-tests (Makefile.am): Likewise.
9423         * modules/fseeko-tests (Makefile.am): Likewise.
9424         * modules/ftell-tests (Makefile.am): Likewise.
9425         * modules/ftello-tests (Makefile.am): Likewise.
9426         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
9427         * modules/isnanl-tests (Makefile.am): Likewise.
9428         * modules/lseek-tests (Makefile.am): Likewise.
9429         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9430         * modules/mbscasestr-tests (Makefile.am): Likewise.
9431         * modules/mbschr-tests (Makefile.am): Likewise.
9432         * modules/mbscspn-tests (Makefile.am): Likewise.
9433         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9434         * modules/mbspbrk-tests (Makefile.am): Likewise.
9435         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9436         * modules/mbsrchr-tests (Makefile.am): Likewise.
9437         * modules/mbsspn-tests (Makefile.am): Likewise.
9438         * modules/mbsstr-tests (Makefile.am): Likewise.
9439         * modules/printf-posix-tests (Makefile.am): Likewise.
9440         * modules/snprintf-posix-tests (Makefile.am): Likewise.
9441         * modules/sprintf-posix-tests (Makefile.am): Likewise.
9442         * modules/tsearch-tests (Makefile.am): Likewise.
9443         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9444         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9445         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9446         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9447         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9448         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9449         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9450         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9451         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
9452         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
9453         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9454         * modules/xstrtol-tests (Makefile.am): Likewise.
9455         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9456         * modules/yesno-tests (Makefile.am): Likewise.
9457
9458 2007-10-03  Bruno Haible  <bruno@clisp.org>
9459
9460         * modules/trunc-tests: New file.
9461         * tests/test-trunc.c: New file.
9462
9463         * modules/trunc: New file.
9464         * lib/trunc.c: New file.
9465         * m4/trunc.m4: New file.
9466         * lib/math.in.h (trunc): New declaration.
9467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
9468         HAVE_DECL_TRUNC.
9469         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
9470         HAVE_DECL_TRUNC.
9471         * doc/functions/trunc.texi: Mention the 'trunc' module.
9472
9473 2007-10-03  Bruno Haible  <bruno@clisp.org>
9474
9475         * tests/test-fpending.c: New file, mostly copied
9476         from coreutils/lib/t-fpending.c.
9477         * modules/fpending-tests: New file.
9478
9479 2007-10-03  Bruno Haible  <bruno@clisp.org>
9480
9481         Port the stdio extensions to QNX (untested).
9482         * lib/fseterr.c (fseterr): Add support for QNX.
9483         * lib/fbufmode.c (fbufmode): Likewise.
9484         * lib/freadable.c (freadable): Likewise.
9485         * lib/fwritable.c (fwritable): Likewise.
9486         * lib/freading.c (freading): Likewise.
9487         * lib/fwriting.c (fwriting): Likewise.
9488         * lib/freadahead.c (freadahed): Likewise.
9489         * lib/fpurge.c (fpurge): Likewise.
9490         * lib/fseeko.c (rpl_fseeko): Likewise.
9491
9492 2007-10-03  Bruno Haible  <bruno@clisp.org>
9493             Jim Meyering  <jim@meyering.net>
9494             Eric Blake  <ebb9@byu.net>
9495
9496         * doc/relocatable.texi: Use @command instead of @program.
9497
9498 2007-10-02  Jim Meyering  <jim@meyering.net>
9499
9500         Perform one more "_.h" -> ".in.h" substitution.
9501         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
9502         instead of unistd_.h here, too.
9503
9504 2007-10-01  Bruno Haible  <bruno@clisp.org>
9505
9506         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
9507         Needed for the alloca-opt module.
9508
9509 2007-09-30  Bruno Haible  <bruno@clisp.org>
9510
9511         * lib/alloca.in.h: Renamed from lib/alloca_.h.
9512         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
9513         alloca_.h.
9514         * lib/argz.in.h: Renamed from lib/argz_.h.
9515         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
9516         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
9517         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
9518         byteswap_.h.
9519         * lib/dirent.in.h: Renamed from lib/dirent_.h.
9520         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
9521         dirent_.h.
9522         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
9523         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
9524         fcntl_.h.
9525         * lib/float.in.h: Renamed from lib/float_.h.
9526         * modules/float (Files, Makefile.am): Use float.in.h instead of
9527         float_.h.
9528         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
9529         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
9530         fnmatch_.h.
9531         * lib/getopt.in.h: Renamed from lib/getopt_.h.
9532         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
9533         getopt_.h.
9534         * lib/glob.in.h: Renamed from lib/glob_.h.
9535         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
9536         * lib/iconv.in.h: Renamed from lib/iconv_.h.
9537         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
9538         iconv_.h.
9539         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
9540         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
9541         inttypes_.h.
9542         * lib/locale.in.h: Renamed from lib/locale_.h.
9543         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
9544         locale_.h.
9545         * lib/math.in.h: Renamed from lib/math_.h.
9546         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
9547         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
9548         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
9549         of netinet_in_.h. Add dependency.
9550         * lib/poll.in.h: Renamed from lib/poll_.h.
9551         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
9552         * lib/search.in.h: Renamed from lib/search_.h.
9553         * modules/search (Files, Makefile.am): Use search.in.h instead of
9554         search_.h.
9555         * lib/signal.in.h: Renamed from lib/signal_.h.
9556         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
9557         _signal.h.
9558         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
9559         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
9560         stdbool_.h.
9561         * lib/stdint.in.h: Renamed from lib/stdint_.h.
9562         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
9563         stdint_.h.
9564         * lib/stdio.in.h: Renamed from lib/stdio_.h.
9565         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
9566         stdio_.h.
9567         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
9568         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
9569         stdlib_.h.
9570         * lib/string.in.h: Renamed from lib/string_.h.
9571         * modules/string (Files, Makefile.am): Use string.in.h instead of
9572         string_.h.
9573         * doc/gnulib-tool.texi (Initial import): Update.
9574         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
9575         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
9576         of sys_select_.h. Add dependency.
9577         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
9578         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
9579         of sys_socket_.h.
9580         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
9581         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
9582         sys_stat_.h.
9583         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
9584         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
9585         sys_time_.h.
9586         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
9587         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
9588         sysexits_.h.
9589         * lib/time.in.h: Renamed from lib/time_.h.
9590         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
9591         * lib/unistd.in.h: Renamed from lib/unistd_.h.
9592         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
9593         unistd_.h.
9594         * lib/wchar.in.h: Renamed from lib/wchar_.h.
9595         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
9596         wchar_.h.
9597         * lib/wctype.in.h: Renamed from lib/wctype_.h.
9598         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
9599         wctype_.h.
9600         * build-aux/bootstrap (slurp): Update.
9601         * lib/.cppi-disable: Update.
9602
9603 2007-09-30  Bruno Haible  <bruno@clisp.org>
9604
9605         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
9606         Needed on BeOS.
9607
9608 2007-09-30  Bruno Haible  <bruno@clisp.org>
9609
9610         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
9611
9612 2007-09-29  Bruno Haible  <bruno@clisp.org>
9613
9614         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
9615
9616 2007-09-29  Bruno Haible  <bruno@clisp.org>
9617
9618         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
9619         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9620         * build-aux/install-reloc: Compile also areadlink.c.
9621         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
9622
9623 2007-09-29  Bruno Haible  <bruno@clisp.org>
9624
9625         * gnulib-tool (func_emit_initmacro_done): Indentation.
9626
9627 2007-09-29  Bruno Haible  <bruno@clisp.org>
9628
9629         * README: Add CVS checkout update instructions.
9630         Info from Bob Proulx <bob@proulx.com>.
9631
9632 2007-09-28  Eric Blake  <ebb9@byu.net>
9633
9634         Provide move-if-change.
9635         * build-aux/move-if-change: New file, based on best practice
9636         rather than any canonical upstream location.
9637
9638 2007-09-28  Jim Meyering  <jim@meyering.net>
9639
9640         Fix canonicalize loop-detection corner case.
9641         Do not attempt to stat the symlink values stored via seen_triple.
9642         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
9643         on linux-2.6.18, (but not 2.6.22).
9644         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
9645         triple_compare.  The former compares dev,ino,filename, while the latter
9646         would actually stat dirname(filename) when dev and ino were equal.
9647         * lib/hash-triple.c: Install <string.h>.
9648         (STREQ): Define.
9649         (triple_compare_ino_str): New function.
9650         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
9651
9652 2007-09-28  Eric Blake  <ebb9@byu.net>
9653
9654         Enforce that AC_REPLACE_FUNCS files exist.
9655         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
9656         override check for typos.
9657
9658         Fix test-closein on Solaris 10.
9659         * tests/test-closein.c (main): Don't assume stdin can be inherited
9660         closed on all systems.
9661         * tests/test-closein.sh: Likewise.
9662         Reported by Piotr Tarnowski.
9663
9664 2007-09-28  Jim Meyering  <jim@meyering.net>
9665
9666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
9667
9668 2007-09-27  Jim Meyering  <jim@meyering.net>
9669
9670         canonicalize: Avoid a false-positive cycle failure.
9671         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
9672         Sort.  Remove cycle-check.
9673         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
9674         not cycle-check.h.
9675         (seen_triple): New function.
9676         (canonicalize_filename_mode): Use it instead of cycle-check.
9677         * tests/test-canonicalize.c: Add a test for this bug.
9678         * tests/test-canonicalize.sh: Set up and run the test.
9679
9680         New module, file-set, from coreutils.
9681         * modules/file-set: Define it.
9682         * lib/file-set.c, lib/file-set.h: Implement.
9683
9684         New module, hash-triple, from coreutils.
9685         * modules/hash-triple: Define it.
9686         * lib/hash-triple.c, lib/hash-triple.h: Implement.
9687
9688 2007-09-25  Eric Blake  <ebb9@byu.net>
9689
9690         Fix strerror on Interix.
9691         * lib/string_.h (strerror): Declare replacement.
9692         * doc/functions/strerror.texi (strerror): Document the Interix
9693         shortcoming.
9694         * modules/string (Makefile.am): Support new hooks.
9695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
9696         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
9697         gl_FUNC_STRERROR_SEPARATE.
9698         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
9699         * lib/strerror.c (rpl_strerror): Provide replacement.
9700         * modules/strerror (Depends-on): Add string.
9701         (configure.ac): Detect use of module.
9702         * tests/test-strerror.c: New file.
9703         * modules/strerror-tests: New test module.
9704         * modules/argp (Depends-on): Add strerror.
9705         * modules/error (Depends-on): Likewise.
9706         Reported by Martin Koeppe.
9707
9708 2007-09-24  Bruno Haible  <bruno@clisp.org>
9709
9710         * README: Update git instructions.
9711
9712 2007-09-24  Eric Blake  <ebb9@byu.net>
9713
9714         Revert fpending breakage from 2007-09-08.
9715         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
9716         __fpending.c.
9717
9718 2007-09-24  Jim Meyering  <jim@meyering.net>
9719
9720         filenamecat.c: Add a test.
9721         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
9722         showing how the function works when DIR is the empty string.
9723
9724 2007-09-21  Simon Josefsson  <simon@josefsson.org>
9725
9726         * tests/test-canonicalize.sh: Turn on executable bit.
9727
9728 2007-09-19  Eric Blake  <ebb9@byu.net>
9729
9730         * README: Update CVS instructions.
9731
9732 2007-09-18  Bruno Haible  <bruno@clisp.org>
9733
9734         * modules/areadlink: New file.
9735         * lib/areadlink.h (areadlink): New declaration.
9736         * lib/areadlink.c: New file, based on lib/xreadlink.c.
9737
9738 2007-09-17  Jim Meyering  <jim@meyering.net>
9739
9740         * lib/savewd.c (ESTALE) [!defined]: Define.
9741         Reported to be required on Interix by Martin Koeppe.
9742
9743 2007-09-17  Bruno Haible  <bruno@clisp.org>
9744
9745         * gnulib-tool (func_version): Use $version.
9746
9747 2007-09-16  Bruno Haible  <bruno@clisp.org>
9748
9749         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
9750         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
9751         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
9752         Reported by Greg Schafer <gschafer@zip.com.au>.
9753
9754 2007-09-15  Bruno Haible  <bruno@clisp.org>
9755
9756         * gnulib-tool (sed): Try a little harder to make bash understand the
9757         alias.
9758         Reported by Bruce Korb <bruce.korb@gmail.com>.
9759
9760 2007-09-13  Eric Blake  <ebb9@byu.net>
9761
9762         * ChangeLog: Remove conflict markers.
9763
9764 2007-09-13  Simon Josefsson  <simon@josefsson.org>
9765
9766         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
9767         Reported by Bruno Haible <bruno@clisp.org>.
9768
9769 2007-09-12  Bruno Haible  <bruno@clisp.org>
9770
9771         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
9772         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
9773         is not defined.
9774
9775 2007-09-12  Eric Blake  <ebb9@byu.net>
9776
9777         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
9778         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
9779         Autoconf definition.
9780         * modules/euidaccess (Depends-on): Add extensions, for
9781         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
9782         * modules/fnmatch (Depends-on): Likewise.
9783         * modules/getaddrinfo (Depends-on): Likewise.
9784         * modules/getdelim (Depends-on): Likewise.
9785         * modules/getline (Depends-on): Likewise.
9786         * modules/getsubopt (Depends-on): Likewise.
9787         * modules/gettext (Depends-on): Likewise.
9788         * modules/group-member (Depends-on): Likewise.
9789         * modules/mbchar (Depends-on): Likewise.
9790         * modules/memmem (Depends-on): Likewise.
9791         * modules/mempcpy (Depends-on): Likewise.
9792         * modules/memrchr (Depends-on): Likewise.
9793         * modules/pagealign_alloc (Depends-on): Likewise.
9794         * modules/readutmp (Depends-on): Likewise.
9795         * modules/stpcpy (Depends-on): Likewise.
9796         * modules/stpncpy (Depends-on): Likewise.
9797         * modules/strchrnul (Depends-on): Likewise.
9798         * modules/strndup (Depends-on): Likewise.
9799         * modules/strsep (Depends-on): Likewise.
9800         * modules/strverscmp (Depends-on): Likewise.
9801         * modules/vasprintf (Depends-on): Likewise.
9802         * modules/wcwidth (Depends-on): Likewise.
9803         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
9804         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
9805         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
9806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
9807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9808         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9809         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
9810         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
9811         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
9812         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9813         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9814         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
9815         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
9816         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9817         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
9818         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9819         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9820         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
9821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
9823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9824         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
9825         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
9826         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
9827         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
9828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9829         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
9830         so that lock.m4 can be used in gettext without extensions module.
9831
9832 2007-09-11  Bruno Haible  <bruno@clisp.org>
9833
9834         * m4/isc-posix.m4: Remove file.
9835         Suggested by Eric Blake.
9836
9837 2007-09-11  Eric Blake  <ebb9@byu.net>
9838
9839         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
9840
9841 2007-09-10  Bruno Haible  <bruno@clisp.org>
9842
9843         * posix-modules: Fix typo in error message.
9844         Reported by Matt <mkraai@beckman.com>.
9845
9846 2007-09-09  Bruno Haible  <bruno@clisp.org>
9847
9848         * doc/functions/getdelim.texi: Update list of platforms lacking the
9849         function.
9850         * doc/functions/getline.texi: Likewise.
9851
9852 2007-09-09  Jim Meyering  <jim@meyering.net>
9853
9854         * lib/hash.c (hash_initialize): Detect calloc failure.
9855         Reported by Bruno Haible.
9856
9857 2007-09-09  Bruno Haible  <bruno@clisp.org>
9858
9859         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
9860         malloc or realloc fails.
9861
9862 2007-09-09  Bruno Haible  <bruno@clisp.org>
9863
9864         * modules/getcwd (Depends-on): Add malloc-posix.
9865         * modules/glob (Depends-on): Likewise.
9866         * modules/putenv (Depends-on): Likewise.
9867         * modules/strdup (Depends-on): Likewise.
9868         * modules/getdelim (Depends-on): Add realloc-posix.
9869         * modules/read-file (Depends-on): Likewise.
9870
9871 2007-09-09  Bruno Haible  <bruno@clisp.org>
9872
9873         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
9874         (gl_FUNC_MALLOC_POSIX): Require it.
9875         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
9876         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
9877         * modules/realloc (Files): Add m4/malloc.m4.
9878         * modules/calloc (Files): Likewise.
9879
9880 2007-09-09  Bruno Haible  <bruno@clisp.org>
9881
9882         * modules/malloc-posix: New file.
9883         * modules/malloc (Depends-on): Add malloc-posix.
9884         * lib/malloc.c: Include errno.h.
9885         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
9886         and a POSIX-compatible malloc into a single function. Set ENOMEM
9887         when returning NULL.
9888         * m4/malloc.m4: New file.
9889         * doc/functions/malloc.texi: Mention the malloc-posix module.
9890         * lib/stdlib_.h (malloc): New declaration.
9891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9892         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
9893         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
9894         and HAVE_MALLOC_POSIX.
9895
9896 2007-09-09  Bruno Haible  <bruno@clisp.org>
9897
9898         * modules/realloc-posix: New file.
9899         * modules/realloc (Depends-on): Add realloc-posix.
9900         * lib/realloc.c: Include errno.h.
9901         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
9902         and a POSIX-compatible realloc into a single function. Set ENOMEM
9903         when returning NULL.
9904         * m4/realloc.m4: New file.
9905         * doc/functions/realloc.texi: Mention the realloc-posix module.
9906         * lib/stdlib_.h (realloc): New declaration.
9907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9908         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
9909         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
9910         and HAVE_REALLOC_POSIX.
9911
9912 2007-09-09  Bruno Haible  <bruno@clisp.org>
9913
9914         * modules/calloc-posix: New file.
9915         * modules/calloc (Depends-on): Add calloc-posix.
9916         * lib/calloc.c: Include errno.h.
9917         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
9918         and a POSIX-compatible calloc into a single function. Set ENOMEM
9919         when returning NULL.
9920         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
9921         * doc/functions/calloc.texi: Mention the calloc-posix module.
9922         * lib/stdlib_.h (calloc): New declaration.
9923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9924         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
9925         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
9926         and HAVE_CALLOC_POSIX.
9927
9928 2007-09-09  Bruno Haible  <bruno@clisp.org>
9929
9930         Allow for modules to show an arbitrary notice.
9931         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
9932         * gnulib-tool: New option --extract-notice.
9933         (func_usage): Document it.
9934         (sed_extract_prog): Update.
9935         (func_get_notice): New function.
9936         (func_modules_notice): New function.
9937         (func_import, func_create_testdir): Invoke it.
9938         Suggested by Jim Meyering.
9939
9940 2007-09-09  Bruno Haible  <bruno@clisp.org>
9941
9942         * gnulib-tool: New options --verbose, --quiet.
9943         (func_usage): Document them.
9944         (verbose): New variable.
9945         (func_execute_command): New function.
9946         (func_import): Don't show the module list and the file list if
9947         $verbose < 0.
9948         (func_create_testdir): Likewise. Use func_execute_command.
9949         (func_create_megatestdir): Use func_execute_command.
9950
9951 2007-09-08  Bruno Haible  <bruno@clisp.org>
9952
9953         * gnulib-tool (func_import): Prefer rsync over wget when available,
9954         for fetching the PO files.
9955
9956 2007-09-08  Bruno Haible  <bruno@clisp.org>
9957
9958         * posix-modules: New file. Portions copied from gnulib-tool.
9959         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
9960
9961 2007-09-08  Jim Meyering  <jim@meyering.net>
9962
9963         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
9964         * lib/fpending.h: Rename from __fpending.h.
9965         * lib/fpending.c: Rename from __fpending.c.
9966         Include "fpending.h", not "__fpending.h".
9967         * lib/__fpending.h, lib/__fpending.c: Remove files.
9968         * modules/fpending (Files): Reflect new file names.
9969         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
9970
9971 2007-09-08  Bruno Haible  <bruno@clisp.org>
9972
9973         * m4/inttypes-h.m4: Remove stub file.
9974
9975 2007-09-07  Simon Josefsson  <simon@josefsson.org>
9976
9977         * doc/headers/stdint.texi: Discuss #include_next issue.
9978
9979 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9980
9981         * build-aux/bootstrap: Remove obsolete comment about wget --help.
9982
9983 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9984
9985         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
9986         in variable name.
9987
9988 2007-09-03  Jim Meyering  <jim@meyering.net>
9989
9990         New module: git-version-gen.
9991         * modules/git-version-gen: New file.
9992
9993         Import changes from coreutils for bootstrap script.
9994
9995         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
9996
9997         bootstrap: uses rsync to download the .po files
9998         * build-aux/bootstrap (po_download_command_format): New global.
9999         (download_po_files): Use rsync.
10000         (update_po_files): Don't remove .po files after download,
10001         so future rsync runs can take advantage of the copies.
10002
10003         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
10004
10005         Solve the unnecessary-.po-file-regeneration problem once and for all.
10006         * build-aux/bootstrap (download_po_files): New function, renamed from
10007         get_translations.  Now, downloads, but doesn't update LINGUAS.
10008         (update_po_files): New function.
10009
10010         bootstrap: Ignore more.
10011         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
10012         uniwidth to e.g., lib/.gitignore.
10013         (slurp): Handle the sys_stat_.h -> sys mapping, too.
10014
10015         * build-aux/bootstrap: New setting: vc_ignore.
10016         (insert_sorted_if_absent): Create $file if absent.
10017         Adapt to new, possibly empty, list: $vc_ignore.
10018
10019         bootstrap: generate more ignorable names
10020         * build-aux/bootstrap (slurp): When generating ignorable names,
10021         also map .sin to .sed, .gperf to .c, and .y to .c.
10022
10023 2007-09-03  Jim Meyering  <jim@meyering.net>
10024
10025         * build-aux/git-version-gen: New file, from coreutils.  For details, see
10026         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
10027
10028 2007-09-02  Bruno Haible  <bruno@clisp.org>
10029
10030         Fix mis-recognition of 'mcs' on QNX 6.
10031         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
10032         output contains the string "Mono".
10033         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
10034         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
10035
10036 2007-09-01  Bruno Haible  <bruno@clisp.org>
10037
10038         Fix collision between uniwidth/* and linebreak modules.
10039         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
10040         u32_width): Remove declarations.
10041         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
10042         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
10043         streq3, streq2, streq1, streq0): Remove functions.
10044         (STREQ): Remove macro.
10045         (is_cjk_encoding): Remove function.
10046         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
10047         (uc_width, u8_width, u16_width, u32_width): Remove functions.
10048         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
10049         * NEWS: Document the change.
10050
10051 2007-09-01  Bruno Haible  <bruno@clisp.org>
10052
10053         * lib/streq.h: Add double-inclusion guard.
10054
10055 2007-09-01  Karl Berry  <karl@gnu.org>
10056
10057         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
10058
10059 2007-08-28  Jim Meyering  <jim@meyering.net>
10060
10061         Rename mreadlink_with_size to areadlink_with_size.
10062         * NEWS: Document the change.
10063         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
10064         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
10065         * lib/mreadlink.h: Rename this to...
10066         * lib/areadlink.h: ...this.
10067         * modules/mreadlink-with-size: Rename this to...
10068         * modules/areadlink-with-size: ...this.
10069         * lib/canonicalize.c: Reflect the renaming.
10070         * modules/canonicalize: Likewise.
10071
10072 2007-08-26  Bruno Haible  <bruno@clisp.org>
10073
10074         * gnulib-tool (func_import): When deciding which files to remove,
10075         consider also dangling symbolic links.
10076         Reported by Eric Blake.
10077
10078 2007-08-26  Bruno Haible  <bruno@clisp.org>
10079
10080         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
10081
10082 2007-08-23  Simon Josefsson  <simon@josefsson.org>
10083
10084         * lib/readline.c: Don't include getline.h, the prototype is now
10085         found in stdio.h.
10086
10087 2007-08-23  Jim Meyering  <jim@meyering.net>
10088
10089         Getdelim touchup.
10090         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
10091         around the funlockfile call, since funlockfile never sets errno.
10092         Don't set errno upon failed realloc.
10093
10094 2007-08-22  Eric Blake  <ebb9@byu.net>
10095
10096         Getline touchups.
10097         * lib/getdelim.c (getdelim): Revert regression that required *n to
10098         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
10099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
10100         getdelim, rather than whether implementation is missing.
10101         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
10102         * lib/stdio_.h (getline): Also declare if replacement is
10103         required.
10104         * doc/functions/getdelim.texi: New file.
10105         * doc/functions/getline.texi: Likewise.
10106         * doc/gnulib.texi (Function Substitutes): Add new files.
10107         Reported by Bruno Haible.
10108
10109 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
10110
10111         * users.txt: Add Guile.
10112
10113 2007-08-22  Eric Blake  <ebb9@byu.net>
10114
10115         * tests/test-getdelim.c (main): Use remove, not unlink.
10116         * tests/test-getline.c (main): Likewise.
10117
10118         Move getline and getdelim into stdio.h, per POSIX 200x.
10119         * modules/getline (Files): Remove getline.h.
10120         (Depends-on): Add stdio.
10121         (configure.ac): Add module indicator.
10122         * modules/getdelim (Files): Remove getdelim.h.
10123         (Depends-on): Add stdio.
10124         (configure.ac): Add module indicator.
10125         * modules/stdio (Makefile.am): Work with new indicators.
10126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10127         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
10128         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10129         * lib/getdelim.h: Delete.
10130         * lib/getline.h: Delete.
10131         * lib/stdio_.h (getdelim, getline): Declare.
10132         * modules/getdelim-tests: New module.
10133         * modules/getline-tests: Likewise.
10134         * tests/test-getdelim.c: New file.
10135         * tests/test-getline.c: Likewise.
10136         * NEWS: Document the change.
10137         * lib/getline.c: Update choice of header.
10138         * lib/csharpcomp.c: Likewise.
10139         * lib/getpass.c: Likewise.
10140         * lib/javacomp.c: Likewise.
10141         * lib/javaversion.c: Likewise.
10142         * lib/yesno.c: Likewise.
10143         * lib/getdelim.c: Likewise.
10144         (getdelim): Set errno on failure, and avoid memory leak.
10145
10146 2007-08-19  Bruno Haible  <bruno@clisp.org>
10147
10148         * modules/closein (Depends-on): Add freadahead.
10149         * lib/closein.c: Include freadahead.h.
10150         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
10151         is zero.
10152
10153 2007-08-19  Bruno Haible  <bruno@clisp.org>
10154
10155         * modules/freadahead-tests: New file.
10156         * tests/test-freadahead.sh: New file.
10157         * tests/test-freadahead.c: New file.
10158
10159         * modules/freadahead: New file.
10160         * lib/freadahead.h: New file.
10161         * lib/freadahead.c: New file.
10162         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
10163         fbufmode, fpurge, freadable, fwritable.
10164
10165 2007-08-19  Eric Blake  <ebb9@byu.net>
10166
10167         Test yesno in combination with closein.
10168         * lib/yesno.c (yesno): Document use of stdin.
10169         * modules/yesno-tests (Files): New module.
10170         * tests/test-yesno.c (main): New file.
10171         * tests/test-yesno.sh: Likewise.
10172
10173 2007-08-19  Bruno Haible  <bruno@clisp.org>
10174
10175         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
10176         * lib/fseeko.c (rpl_fseeko): Likewise.
10177         * lib/fseterr.c (fseterr): Likewise.
10178
10179 2007-08-19  Bruno Haible  <bruno@clisp.org>
10180
10181         * tests/test-lseek.c (main): Disable a test for BeOS.
10182         * doc/functions/lseek.texi: Document the BeOS bug.
10183
10184 2007-08-19  Bruno Haible  <bruno@clisp.org>
10185             Eric Blake  <ebb9@byu.net>
10186
10187         * lib/lseek.c: Include <sys/stat.h>.
10188         (rpl_lseek): Add workaround code also for Unix platforms.
10189         Needed for BeOS.
10190         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
10191         * doc/functions/lseek.texi: Document BeOS definiency.
10192
10193 2007-08-18  Bruno Haible  <bruno@clisp.org>
10194
10195         * modules/fstrcmp-tests: New file.
10196         * tests/test-fstrcmp.c: New file.
10197
10198 2007-08-18  Bruno Haible  <bruno@clisp.org>
10199
10200         * modules/fstrcmp: New file, from GNU gettext with modifications.
10201         * lib/fstrcmp.h: New file, from GNU gettext.
10202         * lib/fstrcmp.c: New file, from GNU gettext.
10203         * MODULES.html.sh (String handling): Add fstrcmp.
10204
10205 2007-08-18  Bruno Haible  <bruno@clisp.org>
10206
10207         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
10208         'bool'.
10209         (diag, compareseq): Remove const from the ctxt argument.
10210         (USE_HEURISTIC): Undefine at the end.
10211
10212 2007-08-18  Jim Meyering  <jim@meyering.net>
10213
10214         New file: lib/idcache.h
10215         * NEWS: Mention the addition.
10216         * modules/idcache (Files): Add lib/idcache.h
10217         * lib/idcache.c: Include "idcache.h".
10218         Don't include <sys/types.h>.
10219         Add a FIXME comment.
10220         Move file-scoped "static" declarations to the top.
10221         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
10222
10223 2007-08-17  Bruno Haible  <bruno@clisp.org>
10224         and Paul Eggert  <eggert@cs.ucla.edu>
10225
10226         * MODULES.html.sh: Add diffseq.
10227         * modules/diffseq: New file.
10228         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
10229         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
10230
10231 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10232
10233         Import changes from coreutils for bootstrap script.
10234
10235         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
10236
10237         * build-aux/bootstrap (slurp): Work even in environments where
10238         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
10239         current code does not slurp files whose names start with ".", and
10240         this looks like it might be a troublesome area.
10241
10242         2007-07-11  Jim Meyering  <jim@meyering.net>
10243
10244         If there's a GPL vN copyright comment, require that N == 3.
10245
10246         2007-07-08  Jim Meyering  <jim@meyering.net>
10247
10248         Run the coreutils-specific code only if tests/Makefile.am.in exists.
10249         * build-aux/bootstrap (mam_template): Move definition out of loop.
10250
10251         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
10252
10253         * build-aux/bootstrap (symlink_to_dir): Rename function from
10254         symlink_to_gnulib.  Add a directory parameter.  Update all
10255         callers.
10256         (cp_mark_as_generated): Also check for -- and link to -- files in
10257         gl/.
10258
10259         2007-07-08  Jim Meyering  <jim@meyering.net>
10260
10261         Adapt to deeper hierarchy in gnulib.
10262         * build-aux/bootstrap (symlink_to_dir): If the destination
10263         directory doesn't exist, create it. This is required at least for
10264         "lib/uniwidth/cjk.h".
10265
10266         2007-05-15  Jim Meyering  <jim@meyering.net>
10267
10268         * build-aux/bootstrap: Now that generated Makefile.am files
10269         are no longer under version control, they must be created at
10270         bootstrap time.
10271
10272 2007-08-14  Ben Pfaff  <blp@gnu.org>
10273
10274         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
10275
10276 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10277
10278         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
10279         given the changes below.
10280         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
10281         even on hosts that have padding bits beyond the supported 64.
10282
10283 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10284
10285         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
10286         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
10287         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
10288         depends on it.
10289         (xstrtol_error): Remove.
10290         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
10291         but with a different signature.
10292         (ATTRIBUTE_NORETURN, __attribute__): New macros.
10293         * lib/xstrtol-error.c: Include exitfail.h.
10294         (xstrtol_fatal): New function, with a different signature from the
10295         old xstrtol_error, so that the caller need not worry about passing
10296         in an exit status, or about storage management of the option argument.
10297         (xstrtol_error): Now a static function.  Redo signature to
10298         implement xstrtol_fatal.  Output the correct number of hyphens in
10299         front of the option so that the caller need not worry about
10300         storage management.
10301         (N_): New macro.
10302         (_): Remove; not used now.
10303         * modules/xstrtol: Depend on getopt.
10304         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
10305         of old STRTOL_FATAL_ERROR macro.
10306         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
10307         of test program.
10308         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
10309         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
10310
10311 2007-08-08  Eric Blake  <ebb9@byu.net>
10312
10313         * lib/xstrtol-error.c: Add missing include.
10314
10315         Move xstrtol messages into gnulib domain, when --pobase is used.
10316         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
10317         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
10318         * modules/xstrtol (Files): Distribute new file.
10319         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
10320         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
10321         * tests/test-xstrtol.c: ...into new file.
10322         * tests/test-xstrtoul.c: Also test xstrtoul.
10323         * tests/test-xstrtoimax.c: Also test xstrtoimax.
10324         * tests/test-xstrtoumax.c: Also test xstrtoumax.
10325         * tests/test-xstrtol.sh: Drive the tests.
10326         * tests/test-xstrtoimax.sh: Likewise.
10327         * tests/test-xstrtoumax.sh: Likewise.
10328         * modules/xstrtol-tests: New module.
10329         * modules/xstrtoimax-tests: Likewise.
10330         * modules/xstrtoumax-tests: Likewise.
10331
10332 2007-08-08  Jim Meyering  <jim@meyering.net>
10333
10334         New function: mfile_name_concat.
10335         * lib/filenamecat.c (mfile_name_concat): New function, just like
10336         file_name_concat, but return NULL upon failure rather than exiting
10337         with a diagnostic.
10338         * lib/filenamecat.h: Declare it.
10339
10340 2007-08-07  Bruno Haible  <bruno@clisp.org>
10341
10342         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
10343         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
10344         warning from gcc.
10345         Reported by Eric Blake.
10346
10347 2007-08-07  Simon Josefsson  <simon@josefsson.org>
10348
10349         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
10350         * modules/crypto/arcfour (License): Likewise.
10351         * modules/crypto/des-tests (License): Likewise.
10352         * modules/crypto/gc-arctwo-tests (License): Likewise.
10353         * modules/crypto/gc-des-tests (License): Likewise.
10354         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
10355         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
10356         * modules/crypto/gc-md2-tests (License): Likewise.
10357         * modules/crypto/gc-md4-tests (License): Likewise.
10358         * modules/crypto/gc-md5-tests (License): Likewise.
10359         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
10360         * modules/crypto/gc-rijndael-tests (License): Likewise.
10361         * modules/crypto/gc-sha1-tests (License): Likewise.
10362         * modules/crypto/gc-tests (License): Likewise.
10363         * modules/crypto/hmac-md5 (License): Likewise.
10364         * modules/crypto/hmac-sha1 (License): Likewise.
10365         * modules/crypto/md2-tests (License): Likewise.
10366         * modules/crypto/md4-tests (License): Likewise.
10367         * modules/crypto/md5 (License): Likewise.
10368         * modules/crypto/rijndael (License): Likewise.
10369         * modules/crypto/sha1 (License): Likewise.
10370         * modules/memxor (License): Likewise.
10371
10372 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
10373         and Bruno Haible  <bruno@clisp.org>
10374
10375         * NEWS: Describe interface changes to human, xstrtol.
10376         * lib/human.h: Include <xstrtol.h>.
10377         (human_options): Return enum strtol_error, not int.  Remove
10378         bool arg; take int * instead.
10379         * lib/human.c: Don't include "gettext.h".
10380         (_): Remove; no longer used.
10381         Don't include <xstrtol.h>, since human.h does it.
10382         (human_options): Adjust to abovementioned interface changes.
10383         Do not report error to stderr; that's now the caller's
10384         responsibility.
10385         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
10386         interface change.
10387         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
10388         Str, Argument_type_string.  All uses changed.  Put " argument"
10389         in diagnostics to make them clearer.  Change wording of suffix
10390         message for clarity.
10391         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
10392         Argument_type_string.
10393         (STRTOL_FATAL_WARN): Remove; no longer used.
10394         * modules/human (Depends-on): Remove gettext-h.
10395
10396 2007-08-06  Simon Josefsson  <simon@josefsson.org>
10397
10398         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
10399
10400 2007-07-31  Bruno Haible  <bruno@clisp.org>
10401
10402         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
10403         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
10404         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
10405
10406 2007-07-31  Bruno Haible  <bruno@clisp.org>
10407
10408         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
10409         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
10410
10411 2007-07-30  Bruno Haible  <bruno@clisp.org>
10412
10413         * modules/base64 (License): Use the synonymous term "LGPLv2+".
10414         * modules/c-ctype (License): Likewise.
10415         * modules/c-strcase (License): Likewise.
10416         * modules/check-version (License): Likewise.
10417         * modules/iconv (License): Likewise.
10418         * modules/iconv_open (License): Likewise.
10419         * modules/read-file (License): Likewise.
10420         * modules/striconv (License): Likewise.
10421         * modules/strverscmp (License): Likewise.
10422         * modules/vasprintf (License): Likewise.
10423         * modules/crypto/des (License): Likewise.
10424         * modules/crypto/gc (License): Likewise.
10425         * modules/crypto/gc-arcfour (License): Likewise.
10426         * modules/crypto/gc-arctwo (License): Likewise.
10427         * modules/crypto/gc-des (License): Likewise.
10428         * modules/crypto/gc-hmac-md5 (License): Likewise.
10429         * modules/crypto/gc-hmac-sha1 (License): Likewise.
10430         * modules/crypto/gc-md2 (License): Likewise.
10431         * modules/crypto/gc-md4 (License): Likewise.
10432         * modules/crypto/gc-md5 (License): Likewise.
10433         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
10434         * modules/crypto/gc-random (License): Likewise.
10435         * modules/crypto/gc-rijndael (License): Likewise.
10436         * modules/crypto/gc-sha1 (License): Likewise.
10437         * modules/crypto/md2 (License): Likewise.
10438         * modules/crypto/md4 (License): Likewise.
10439
10440 2007-07-30  Jim Meyering  <jim@meyering.net>
10441
10442         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
10443         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
10444         it has valid stat data.  This bug would cause du not to count the
10445         sizes of inaccessible directories.
10446         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
10447         in <http://bugzilla.redhat.com/250077>.
10448
10449 2007-07-25  Peter O'Gorman  <peter@pogma.com>
10450             Bruno Haible  <bruno@clisp.org>
10451
10452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
10453         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
10454         #include_next, gives a diagnostic about it, but reports no error in
10455         the exit code.
10456         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10457
10458 2007-07-24  Ben Pfaff  <blp@gnu.org>
10459
10460         Improve name: "count-one-bits" is better than "popcount".
10461         * MODULES.html.sh: Update name.
10462         * lib/popcount.h: Renamed lib/count-one-bits.h.
10463         (popcount): Renamed count_one_bits.
10464         (popcountl): Renamed count_one_bits_l.
10465         (popcountll): Renamed count_one_bits_ll.
10466         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
10467         * modules/popcount: Renamed module/count-one-bits.
10468         * modules/popcount-tests: Renamed module/count-one-bits-tests.
10469         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
10470
10471 2007-07-23  Ben Pfaff  <blp@gnu.org>
10472
10473         * lib/popcount.h (popcount32): Reduce size of constants, to allow
10474         better code generation, and add U to large constants to avoid
10475         warnings, in non-GCC case.
10476         Suggested by Bruno Haible.
10477
10478 2007-07-23  Ben Pfaff  <blp@gnu.org>
10479
10480         * lib/popcount.h: Use verify_true instead of if...abort.
10481         * modules/popcount: Depend on verify module.
10482         Suggested by Jim Meyering.
10483
10484 2007-07-23  Bruno Haible  <bruno@clisp.org>
10485
10486         * gnulib-tool (func_import): Create a .cvsignore file also when the
10487         directory is not yet in CVS but the toplevel directory is. When
10488         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
10489         Reported by Karl Berry.
10490
10491 2007-07-22  Ben Pfaff  <blp@gnu.org>
10492
10493         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
10494         case.
10495         Suggested by Eric Blake.
10496
10497 2007-07-22  Ben Pfaff  <blp@gnu.org>
10498
10499         New module: popcount.
10500         * MODULES.html.sh: Add popcount.
10501         * modules/popcount: New file.
10502         * modules/popcount-tests: New file.
10503         * tests/test-popcount.c: New file.
10504         * lib/popcount.h: New file.
10505         * m4/popcount.m4: New file.
10506
10507 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10508
10509         * build-aux/announce-gen: Update to GPLv3.
10510
10511         * build-aux/config.guess: Update from config.
10512
10513 2007-07-21  Bruno Haible  <bruno@clisp.org>
10514
10515         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
10516         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
10517
10518 2007-07-20  Jim Meyering  <jim@meyering.net>
10519
10520         * check-module: Diagnose a self-dependency.
10521
10522 2007-07-19  Bruno Haible  <bruno@clisp.org>
10523
10524         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
10525         empty.
10526         Reported by Eric Blake.
10527
10528 2007-07-18  Bruno Haible  <bruno@clisp.org>
10529
10530         * gnulib-tool: New options --po-base, --po-domain.
10531         (func_usage): Document them.
10532         (pobase, po_domain): New variables.
10533         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
10534         DEFAULT_TEXT_DOMAIN.
10535         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
10536         (func_import): Consider pobase and po_domain. Create a po/ directory.
10537         (func_create_testdir): Set pobase and po_domain to empty.
10538         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
10539         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
10540
10541 2007-07-18  Bruno Haible  <bruno@clisp.org>
10542
10543         * gnulib-tool (func_get_automake_snippet): Synthesize also an
10544         EXTRA_DIST augmentation for files in build-aux/.
10545
10546 2007-07-16  Bruno Haible  <bruno@clisp.org>
10547
10548         * modules/lseek (License): Use the synonymous term "LGPLv2+".
10549         * modules/getdelim (License): Likewise.
10550
10551 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10552
10553         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
10554         * modules/d-type (License): Likewise.
10555         * modules/extensions (License): Likewise.
10556         * modules/fnmatch (License): Likewise.
10557         * modules/fseeko (License): Likewise.
10558         * modules/getaddrinfo (License): Likewise.
10559         * modules/getline (License): Likewise.
10560         * modules/getlogin_r (License): Likewise.
10561         * modules/getpass (License): Likewise.
10562         * modules/gettimeofday (License): Likewise.
10563         * modules/glob (License): Likewise.
10564         * modules/inet_ntop (License): Likewise.
10565         * modules/malloc (License): Likewise.
10566         * modules/malloca (License): Likewise.
10567         * modules/memmem (License): Likewise.
10568         * modules/mempcpy (License): Likewise.
10569         * modules/memset (License): Likewise.
10570         * modules/minmax (License): Likewise.
10571         * modules/mktime (License): Likewise.
10572         * modules/netinet_in (License): Likewise.
10573         * modules/pathmax (License): Likewise.
10574         * modules/poll (License): Likewise.
10575         * modules/regex (License): Likewise.
10576         * modules/snprintf (License): Likewise.
10577         * modules/stdbool (License): Likewise.
10578         * modules/stdint (License): Likewise.
10579         * modules/stdio (License): Likewise.
10580         * modules/strcase (License): Likewise.
10581         * modules/strcasestr (License): Likewise.
10582         * modules/strdup (License): Likewise.
10583         * modules/string (License): Likewise.
10584         * modules/strndup (License): Likewise.
10585         * modules/strnlen (License): Likewise.
10586         * modules/strpbrk (License): Likewise.
10587         * modules/strptime (License): Likewise.
10588         * modules/strsep (License): Likewise.
10589         * modules/sys_select (License): Likewise.
10590         * modules/sys_socket (License): Likewise.
10591         * modules/sys_stat (License): Likewise.
10592         * modules/sys_time (License): Likewise.
10593         * modules/time (License): Likewise.
10594         * modules/time_r (License): Likewise.
10595         * modules/timegm (License): Likewise.
10596         * modules/unistd (License): Likewise.
10597         * modules/vsnprintf (License): Likewise.
10598         * modules/wctype (License): Likewise.
10599
10600 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10601
10602         * modules/argz (License): LGPLv2+.
10603
10604 2007-07-15  Karl Berry  <karl@gnu.org>
10605
10606         * doc/gnulib.texi: revise node structure per new fdl.texi.
10607
10608 2007-07-14  Bruno Haible  <bruno@clisp.org>
10609
10610         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
10611         the output file.
10612         * lib/uniname/uninames.h: Regenerated.
10613
10614 2007-07-14  Karl Berry  <karl@gnu.org>
10615
10616         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10617         omitting sectioning and index commands.
10618
10619 2007-07-13  Bruno Haible  <bruno@clisp.org>
10620
10621         New gnulib-tool option --more-symlinks.
10622         * gnulib-tool (func_usage): Document --more-symlinks.
10623         (do_copyrights): New variable.
10624         Recognize option --more-symlinks.
10625         (func_import): Don't add a copyright notice transform to
10626         sed_transform_lib_file if do_copyrights is empty.
10627
10628 2007-07-13  Bruno Haible  <bruno@clisp.org>
10629
10630         * lib/vasnprintf.c (decimal_point_char): Define also if
10631         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
10632         && !NEED_PRINTF_DIRECTIVE_A.
10633         Reported by Clemens Koller <clemens.koller@anagramm.de> via
10634         Gary V. Vaughan <gary@gnu.org>.
10635
10636 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10637
10638         * lib/inttypes_.h: Undo previous change, since it was fixed
10639         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
10640
10641 2007-07-13  Bruno Haible  <bruno@clisp.org>
10642
10643         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
10644         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
10645
10646 2007-07-13  Jim Meyering  <jim@meyering.net>
10647
10648         df: Don't fail for Tru64's "file-on-file mount".
10649         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
10650         so we fall through and use statfs instead.  Details here:
10651         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
10652         Reported by Albert Chin.
10653
10654 2007-07-13  Bruno Haible  <bruno@clisp.org>
10655
10656         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
10657         * modules/configmake (License): Likewise.
10658         * modules/gettext (License): Likewise.
10659         * modules/gettext-h (License): Likewise.
10660         * modules/include_next (License): Likewise.
10661         * modules/link-warning (License): Likewise.
10662         * modules/localcharset (License): Likewise.
10663         * modules/localename (License): Likewise.
10664         * modules/lock (License): Likewise.
10665         * modules/relocatable-lib-lgpl (License): Likewise.
10666         * modules/size_max (License): Likewise.
10667         * modules/vasnprintf (License): Likewise.
10668         * modules/wchar (License): Likewise.
10669         * modules/xsize (License): Likewise.
10670
10671 2007-07-13  Bruno Haible  <bruno@clisp.org>
10672
10673         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
10674         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
10675
10676 2007-07-12  Bruno Haible  <bruno@clisp.org>
10677
10678         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
10679         in the modules files.
10680
10681 2007-07-11  Karl Berry  <karl@gnu.org>
10682
10683         * MODULES.html.sh (func_module): use
10684          sed -e '\|^'"${includefile}"'$|d'
10685          instead of /.../d, to avoid errors on $includefile's containing /.
10686
10687 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10688
10689         * gnulib-tool (func_import): Avoid duplication of --avoid
10690         statements
10691         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
10692         names to `_' in variable names.
10693
10694 2007-07-10  Eric Blake  <ebb9@byu.net>
10695
10696         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
10697         * NEWS: Document this change.
10698
10699 2007-07-08  Bruno Haible  <bruno@clisp.org>
10700
10701         Update to Unicode 5.0.
10702         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
10703         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
10704         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
10705         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
10706         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
10707         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
10708         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
10709         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
10710         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
10711         U+10A3F, U+1D242..U+1D244.
10712         (nonspacing_table_ind): Update.
10713         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
10714         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
10715
10716 2007-07-08  Bruno Haible  <bruno@clisp.org>
10717
10718         Update to Unicode 5.0.
10719         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
10720         code transform. Extend the name index field of unicode_name_to_code and
10721         unicode_code_to_name from 16 to 24 bits.
10722         * lib/uniname/uniname.c (unicode_character_name,
10723         unicode_name_character): Add the range 0x12xxx to the code transform.
10724         * lib/uniname/uninames.h: Regenerated.
10725         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
10726
10727 2007-07-07  Bruno Haible  <bruno@clisp.org>
10728
10729         * modules/wcwidth-tests: New file.
10730         * tests/test-wcwidth.c: New file.
10731
10732         Work around MacOS X wcwidth() bug.
10733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
10734         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
10735         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
10736         original wcwidth in non-UTF-8 locales.
10737         * modules/wcwidth (Depends-on): Add localcharset, streq,
10738         uniwidth/width.
10739         * doc/functions/wcwidth.texi: Update.
10740
10741 2007-07-07  Bruno Haible  <bruno@clisp.org>
10742
10743         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
10744         (wcwidth): New declaration.
10745         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
10746         macros.
10747         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
10748         here. Prepare for creating <wchar.h> unconditionally.
10749         * modules/wchar (Depends-on): Add link-warning.
10750         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
10751         REPLACE_WCWIDTH, and GL_LINK_WARNING.
10752         * lib/wcwidth.h: Remove file.
10753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
10754         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
10755         * modules/wcwidth (Files): Remove lib/wcwidth.h.
10756         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
10757         (Include): Replace wcwidth.h with <wchar.h>.
10758         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
10759         * lib/mbchar.h: Don't include wcwidth.h.
10760         * lib/mbswidth.c: Likewise.
10761         * NEWS: Mention the change.
10762
10763 2007-07-07  Bruno Haible  <bruno@clisp.org>
10764
10765         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
10766         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
10767         definition with an external declaration.
10768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
10769         defined as a function. Remove AC_C_INLINE requirement.
10770         * modules/wcwidth (Files): Add lib/wcwidth.c.
10771         (Makefile.am): Remove redundant statement.
10772
10773 2007-07-07  Bruno Haible  <bruno@clisp.org>
10774
10775         * MODULES.html.sh (Unicode string functions): Add the new modules.
10776
10777         * tests/uniwidth/test-u32-strwidth.c: New file.
10778         * modules/uniwidth/u32-strwidth-tests: New file.
10779
10780         * lib/uniwidth/u32-strwidth.c: New file.
10781         * modules/uniwidth/u32-strwidth: New file.
10782
10783         * tests/uniwidth/test-u16-strwidth.c: New file.
10784         * modules/uniwidth/u16-strwidth-tests: New file.
10785
10786         * lib/uniwidth/u16-strwidth.c: New file.
10787         * modules/uniwidth/u16-strwidth: New file.
10788
10789         * tests/uniwidth/test-u8-strwidth.c: New file.
10790         * modules/uniwidth/u8-strwidth-tests: New file.
10791
10792         * lib/uniwidth/u8-strwidth.c: New file.
10793         * modules/uniwidth/u8-strwidth: New file.
10794
10795         * tests/uniwidth/test-u32-width.c: New file.
10796         * modules/uniwidth/u32-width-tests: New file.
10797
10798         * lib/uniwidth/u32-width.c: New file.
10799         * modules/uniwidth/u32-width: New file.
10800
10801         * tests/uniwidth/test-u16-width.c: New file.
10802         * modules/uniwidth/u16-width-tests: New file.
10803
10804         * lib/uniwidth/u16-width.c: New file.
10805         * modules/uniwidth/u16-width: New file.
10806
10807         * tests/uniwidth/test-u8-width.c: New file.
10808         * modules/uniwidth/u8-width-tests: New file.
10809
10810         * lib/uniwidth/u8-width.c: New file.
10811         * modules/uniwidth/u8-width: New file.
10812
10813         * tests/uniwidth/test-uc_width.c: New file.
10814         * modules/uniwidth/width-tests: New file.
10815
10816         * lib/uniwidth/width.c: New file, from GNU libiconv.
10817         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
10818         * modules/uniwidth/width: New file.
10819
10820         * lib/uniwidth.h: New file, from GNU libiconv.
10821         * modules/uniwidth/base: New file.
10822
10823 2007-07-07  Bruno Haible  <bruno@clisp.org>
10824
10825         * lib/uniname.h: New file, from GNU gettext.
10826         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
10827         * lib/uniname/uninames.h: New file, from GNU gettext.
10828         * lib/uniname/uniname.c: New file, from GNU gettext.
10829         * tests/uniname/test-uninames.sh: New file.
10830         * tests/uniname/test-uninames.c: New file, from GNU gettext.
10831         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
10832         * modules/uniname/base: New file.
10833         * modules/uniname/uniname: New file.
10834         * modules/uniname/uniname-tests: New file.
10835         * MODULES.html.sh (Unicode string functions): Add the new modules.
10836
10837 2007-07-06  Bruno Haible  <bruno@clisp.org>
10838
10839         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
10840
10841 2007-07-06  Bruno Haible  <bruno@clisp.org>
10842
10843         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
10844         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
10845         includes <cygwin/sys_time.h> which includes <sys/select.h> which
10846         include <sys/time.h>.
10847         Reported by Eric Blake.
10848
10849 2007-07-06  Eric Blake  <ebb9@byu.net>
10850
10851         Fix testing canonicalize on cygwin.
10852         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
10853         Revert patch from 2007-06-19.
10854         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
10855         canonicalize module is also in use.
10856         * tests/test-canonicalize.c: New file.
10857         * tests/test-canonicalize.sh: Likewise.
10858         * modules/canonicalize-tests: Likewise.
10859
10860 2007-07-06  Jim Meyering  <jim@meyering.net>
10861
10862         * lib/getugroups.c (getugroups): Detect getgrent failure.
10863         Adjust comment to reflect reality: this function may return -1.
10864
10865 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10866
10867         * build-aux/bootstrap (TP_URL,get_translations): Update to use
10868         the new TP address.
10869         (usage): Fix typo
10870         (gnulib_mk): New variable.
10871
10872 2007-07-05  Jim Meyering  <jim@meyering.net>
10873
10874         Don't let endgrent clobber errno, no matter how improbable.
10875         * lib/getugroups.c (getugroups): Save and restore errno around
10876         endgrent call.
10877
10878         Close the group DB even when failing with 2^31 or more members.
10879         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
10880
10881 2007-07-04  Jim Meyering  <jim@meyering.net>
10882
10883         * lib/getugroups.h: New file.
10884         * lib/getugroups.c: Include "getugroups.h".
10885         Remove uses of "register" keyword.
10886         Move local variable, "cp", down into scope where used.
10887         Give "username" parameter the "const" attribute.
10888         * modules/getugroups (Files): Add lib/getugroups.h
10889
10890 2007-07-04  Karl Berry  <karl@gnu.org>
10891
10892         * MODULES.html.sh (func_all_modules): Complete rename of
10893         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
10894
10895 2007-07-02  Bruno Haible  <bruno@clisp.org>
10896
10897         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
10898         mode, when inttypes.h comes from gnulib.
10899         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10900
10901 2007-07-02  Simon Josefsson  <simon@josefsson.org>
10902
10903         * NEWS: Mention lgpl module name change.
10904
10905         * modules/lgpl-2.1: Renamed from lgpl.
10906
10907         * NEWS: Mention gpl module name change.
10908
10909         * modules/gpl-3.0: New file, based on gpl-2.0.
10910
10911         * modules/gpl-2.0: Renamed from gpl.
10912
10913         * modules/gpl: Fix filename, doc/gpl.texi is now found at
10914         doc/gpl-2.0.texi.
10915
10916 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10917
10918         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
10919         #define __STDC_LIMIT_MACROS temporarily while including
10920         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
10921         Problem reported by Joel E. Denny in
10922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
10923
10924 2007-07-01  Bruno Haible  <bruno@clisp.org>
10925
10926         * lib/unistdio.h: New file.
10927         * lib/unistdio/u-asnprintf.h: New file.
10928         * lib/unistdio/u-asprintf.h: New file.
10929         * lib/unistdio/u-printf-args.c: New file.
10930         * lib/unistdio/u-printf-args.h: New file.
10931         * lib/unistdio/u-printf-parse.h: New file.
10932         * lib/unistdio/u-snprintf.h: New file.
10933         * lib/unistdio/u-sprintf.h: New file.
10934         * lib/unistdio/u-vasprintf.h: New file.
10935         * lib/unistdio/u-vsnprintf.h: New file.
10936         * lib/unistdio/u-vsprintf.h: New file.
10937         * lib/unistdio/ulc-asnprintf.c: New file.
10938         * lib/unistdio/ulc-asprintf.c: New file.
10939         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
10940         * lib/unistdio/ulc-printf-parse.c: New file.
10941         * lib/unistdio/ulc-snprintf.c: New file.
10942         * lib/unistdio/ulc-sprintf.c: New file.
10943         * lib/unistdio/ulc-vasnprintf.c: New file.
10944         * lib/unistdio/ulc-vasprintf.c: New file.
10945         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
10946         * lib/unistdio/ulc-vsnprintf.c: New file.
10947         * lib/unistdio/ulc-vsprintf.c: New file.
10948         * lib/unistdio/u8-asnprintf.c: New file.
10949         * lib/unistdio/u8-asprintf.c: New file.
10950         * lib/unistdio/u8-printf-parse.c: New file.
10951         * lib/unistdio/u8-snprintf.c: New file.
10952         * lib/unistdio/u8-sprintf.c: New file.
10953         * lib/unistdio/u8-vasnprintf.c: New file.
10954         * lib/unistdio/u8-vasprintf.c: New file.
10955         * lib/unistdio/u8-vsnprintf.c: New file.
10956         * lib/unistdio/u8-vsprintf.c: New file.
10957         * lib/unistdio/u8-u8-asnprintf.c: New file.
10958         * lib/unistdio/u8-u8-asprintf.c: New file.
10959         * lib/unistdio/u8-u8-snprintf.c: New file.
10960         * lib/unistdio/u8-u8-sprintf.c: New file.
10961         * lib/unistdio/u8-u8-vasnprintf.c: New file.
10962         * lib/unistdio/u8-u8-vasprintf.c: New file.
10963         * lib/unistdio/u8-u8-vsnprintf.c: New file.
10964         * lib/unistdio/u8-u8-vsprintf.c: New file.
10965         * lib/unistdio/u16-asnprintf.c: New file.
10966         * lib/unistdio/u16-asprintf.c: New file.
10967         * lib/unistdio/u16-printf-parse.c: New file.
10968         * lib/unistdio/u16-snprintf.c: New file.
10969         * lib/unistdio/u16-sprintf.c: New file.
10970         * lib/unistdio/u16-vasnprintf.c: New file.
10971         * lib/unistdio/u16-vasprintf.c: New file.
10972         * lib/unistdio/u16-vsnprintf.c: New file.
10973         * lib/unistdio/u16-vsprintf.c: New file.
10974         * lib/unistdio/u16-u16-asnprintf.c: New file.
10975         * lib/unistdio/u16-u16-asprintf.c: New file.
10976         * lib/unistdio/u16-u16-snprintf.c: New file.
10977         * lib/unistdio/u16-u16-sprintf.c: New file.
10978         * lib/unistdio/u16-u16-vasnprintf.c: New file.
10979         * lib/unistdio/u16-u16-vasprintf.c: New file.
10980         * lib/unistdio/u16-u16-vsnprintf.c: New file.
10981         * lib/unistdio/u16-u16-vsprintf.c: New file.
10982         * lib/unistdio/u32-asnprintf.c: New file.
10983         * lib/unistdio/u32-asprintf.c: New file.
10984         * lib/unistdio/u32-printf-parse.c: New file.
10985         * lib/unistdio/u32-snprintf.c: New file.
10986         * lib/unistdio/u32-sprintf.c: New file.
10987         * lib/unistdio/u32-vasnprintf.c: New file.
10988         * lib/unistdio/u32-vasprintf.c: New file.
10989         * lib/unistdio/u32-vsnprintf.c: New file.
10990         * lib/unistdio/u32-vsprintf.c: New file.
10991         * lib/unistdio/u32-u32-asnprintf.c: New file.
10992         * lib/unistdio/u32-u32-asprintf.c: New file.
10993         * lib/unistdio/u32-u32-snprintf.c: New file.
10994         * lib/unistdio/u32-u32-sprintf.c: New file.
10995         * lib/unistdio/u32-u32-vasnprintf.c: New file.
10996         * lib/unistdio/u32-u32-vasprintf.c: New file.
10997         * lib/unistdio/u32-u32-vsnprintf.c: New file.
10998         * lib/unistdio/u32-u32-vsprintf.c: New file.
10999         * tests/unistdio/test-ulc-asnprintf1.c: New file.
11000         * tests/unistdio/test-ulc-asnprintf1.h: New file.
11001         * tests/unistdio/test-ulc-printf1.h: New file.
11002         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
11003         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
11004         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
11005         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
11006         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
11007         * tests/unistdio/test-ulc-vasprintf1.c: New file.
11008         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
11009         * tests/unistdio/test-ulc-vsprintf1.c: New file.
11010         * tests/unistdio/test-u8-asnprintf1.c: New file.
11011         * tests/unistdio/test-u8-asnprintf1.h: New file.
11012         * tests/unistdio/test-u8-printf1.h: New file.
11013         * tests/unistdio/test-u8-vasnprintf1.c: New file.
11014         * tests/unistdio/test-u8-vasnprintf2.c: New file.
11015         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
11016         * tests/unistdio/test-u8-vasnprintf3.c: New file.
11017         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
11018         * tests/unistdio/test-u8-vasprintf1.c: New file.
11019         * tests/unistdio/test-u8-vsnprintf1.c: New file.
11020         * tests/unistdio/test-u8-vsprintf1.c: New file.
11021         * tests/unistdio/test-u16-asnprintf1.c: New file.
11022         * tests/unistdio/test-u16-asnprintf1.h: New file.
11023         * tests/unistdio/test-u16-printf1.h: New file.
11024         * tests/unistdio/test-u16-vasnprintf1.c: New file.
11025         * tests/unistdio/test-u16-vasnprintf2.c: New file.
11026         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
11027         * tests/unistdio/test-u16-vasnprintf3.c: New file.
11028         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
11029         * tests/unistdio/test-u16-vasprintf1.c: New file.
11030         * tests/unistdio/test-u16-vsnprintf1.c: New file.
11031         * tests/unistdio/test-u16-vsprintf1.c: New file.
11032         * tests/unistdio/test-u32-asnprintf1.c: New file.
11033         * tests/unistdio/test-u32-asnprintf1.h: New file.
11034         * tests/unistdio/test-u32-printf1.h: New file.
11035         * tests/unistdio/test-u32-vasnprintf1.c: New file.
11036         * tests/unistdio/test-u32-vasnprintf2.c: New file.
11037         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
11038         * tests/unistdio/test-u32-vasnprintf3.c: New file.
11039         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
11040         * tests/unistdio/test-u32-vasprintf1.c: New file.
11041         * tests/unistdio/test-u32-vsnprintf1.c: New file.
11042         * tests/unistdio/test-u32-vsprintf1.c: New file.
11043         * modules/unistdio/base: New file.
11044         * modules/unistdio/u-printf-args: New file.
11045         * modules/unistdio/ulc-asnprintf: New file.
11046         * modules/unistdio/ulc-asprintf: New file.
11047         * modules/unistdio/ulc-fprintf: New file.
11048         * modules/unistdio/ulc-printf-parse: New file.
11049         * modules/unistdio/ulc-snprintf: New file.
11050         * modules/unistdio/ulc-sprintf: New file.
11051         * modules/unistdio/ulc-vasnprintf: New file.
11052         * modules/unistdio/ulc-vasprintf: New file.
11053         * modules/unistdio/ulc-vfprintf: New file.
11054         * modules/unistdio/ulc-vsnprintf: New file.
11055         * modules/unistdio/ulc-vsprintf: New file.
11056         * modules/unistdio/u8-asnprintf: New file.
11057         * modules/unistdio/u8-asprintf: New file.
11058         * modules/unistdio/u8-printf-parse: New file.
11059         * modules/unistdio/u8-snprintf: New file.
11060         * modules/unistdio/u8-sprintf: New file.
11061         * modules/unistdio/u8-vasnprintf: New file.
11062         * modules/unistdio/u8-vasprintf: New file.
11063         * modules/unistdio/u8-vsnprintf: New file.
11064         * modules/unistdio/u8-vsprintf: New file.
11065         * modules/unistdio/u8-u8-asnprintf: New file.
11066         * modules/unistdio/u8-u8-asprintf: New file.
11067         * modules/unistdio/u8-u8-snprintf: New file.
11068         * modules/unistdio/u8-u8-sprintf: New file.
11069         * modules/unistdio/u8-u8-vasnprintf: New file.
11070         * modules/unistdio/u8-u8-vasprintf: New file.
11071         * modules/unistdio/u8-u8-vsnprintf: New file.
11072         * modules/unistdio/u8-u8-vsprintf: New file.
11073         * modules/unistdio/u16-asnprintf: New file.
11074         * modules/unistdio/u16-asprintf: New file.
11075         * modules/unistdio/u16-printf-parse: New file.
11076         * modules/unistdio/u16-snprintf: New file.
11077         * modules/unistdio/u16-sprintf: New file.
11078         * modules/unistdio/u16-vasnprintf: New file.
11079         * modules/unistdio/u16-vasprintf: New file.
11080         * modules/unistdio/u16-vsnprintf: New file.
11081         * modules/unistdio/u16-vsprintf: New file.
11082         * modules/unistdio/u16-u16-asnprintf: New file.
11083         * modules/unistdio/u16-u16-asprintf: New file.
11084         * modules/unistdio/u16-u16-snprintf: New file.
11085         * modules/unistdio/u16-u16-sprintf: New file.
11086         * modules/unistdio/u16-u16-vasnprintf: New file.
11087         * modules/unistdio/u16-u16-vasprintf: New file.
11088         * modules/unistdio/u16-u16-vsnprintf: New file.
11089         * modules/unistdio/u16-u16-vsprintf: New file.
11090         * modules/unistdio/u32-asnprintf: New file.
11091         * modules/unistdio/u32-asprintf: New file.
11092         * modules/unistdio/u32-printf-parse: New file.
11093         * modules/unistdio/u32-snprintf: New file.
11094         * modules/unistdio/u32-sprintf: New file.
11095         * modules/unistdio/u32-vasnprintf: New file.
11096         * modules/unistdio/u32-vasprintf: New file.
11097         * modules/unistdio/u32-vsnprintf: New file.
11098         * modules/unistdio/u32-vsprintf: New file.
11099         * modules/unistdio/u32-u32-asnprintf: New file.
11100         * modules/unistdio/u32-u32-asprintf: New file.
11101         * modules/unistdio/u32-u32-snprintf: New file.
11102         * modules/unistdio/u32-u32-sprintf: New file.
11103         * modules/unistdio/u32-u32-vasnprintf: New file.
11104         * modules/unistdio/u32-u32-vasprintf: New file.
11105         * modules/unistdio/u32-u32-vsnprintf: New file.
11106         * modules/unistdio/u32-u32-vsprintf: New file.
11107         * modules/unistdio/ulc-asnprintf-tests: New file.
11108         * modules/unistdio/ulc-vasnprintf-tests: New file.
11109         * modules/unistdio/ulc-vasprintf-tests: New file.
11110         * modules/unistdio/ulc-vsnprintf-tests: New file.
11111         * modules/unistdio/ulc-vsprintf-tests: New file.
11112         * modules/unistdio/u8-asnprintf-tests: New file.
11113         * modules/unistdio/u8-vasnprintf-tests: New file.
11114         * modules/unistdio/u8-vasprintf-tests: New file.
11115         * modules/unistdio/u8-vsnprintf-tests: New file.
11116         * modules/unistdio/u8-vsprintf-tests: New file.
11117         * modules/unistdio/u16-asnprintf-tests: New file.
11118         * modules/unistdio/u16-vasnprintf-tests: New file.
11119         * modules/unistdio/u16-vasprintf-tests: New file.
11120         * modules/unistdio/u16-vsnprintf-tests: New file.
11121         * modules/unistdio/u16-vsprintf-tests: New file.
11122         * modules/unistdio/u32-asnprintf-tests: New file.
11123         * modules/unistdio/u32-vasnprintf-tests: New file.
11124         * modules/unistdio/u32-vasprintf-tests: New file.
11125         * modules/unistdio/u32-vsnprintf-tests: New file.
11126         * modules/unistdio/u32-vsprintf-tests: New file.
11127         * MODULES.html.sh (Unicode string functions): Add the new modules.
11128
11129 2007-07-01  Bruno Haible  <bruno@clisp.org>
11130
11131         * lib/sprintf.c (sprintf): Limit the available length estimation,
11132         to avoid address wraparound.
11133         * lib/vsprintf.c (vsprintf): Likewise.
11134         * modules/sprintf-posix (Dependencies): Add stdint.
11135         * modules/vsprintf-posix (Dependencies): Likewise.
11136
11137 2007-07-01  Bruno Haible  <bruno@clisp.org>
11138
11139         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
11140         Windows PATH as well. Conservative double-quoting. Comments.
11141
11142 2007-07-01  Bruno Haible  <bruno@clisp.org>
11143             Eric Blake  <ebb9@byu.net>
11144             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11145
11146         * gnulib-tool (self_abspathname): Fix algorithm to cope with
11147         empty components in $PATH, denoting '.'.
11148
11149 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11150
11151         * gnulib-tool: Fix indentation.
11152         (func_create_megatestdir): Likewise.
11153         Report by Bruno Haible.
11154
11155 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11156
11157         Sync from Automake.
11158         * build-aux/gnupload: Fix shell portability issues with for loops.
11159         Report by Karl Berry.
11160
11161 2007-06-29  Simon Josefsson  <simon@josefsson.org>
11162
11163         * build-aux/maint.mk (POURL): Use translationproject.org.
11164
11165 2007-06-27  Simon Josefsson  <simon@josefsson.org>
11166             Bruno Haible  <bruno@clisp.org>
11167
11168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
11169         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
11170         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
11171         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
11172         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
11173
11174 2007-06-27  Bruno Haible  <bruno@clisp.org>
11175
11176         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
11177         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
11178
11179 2007-06-26  Karl Berry  <karl@gnu.org>
11180
11181         * MODULES.html.sh: remove xreadlink-with-size.
11182
11183 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11184
11185         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
11186         method that I hope also handles the double-include problem noted
11187         by Bruno Haible in
11188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
11189
11190 2007-06-23  Bruno Haible  <bruno@clisp.org>
11191
11192         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11193         Don't let the 'mostlyclean' target fail if the last subdirectory could
11194         not be removed.
11195         Reported by Karl Berry.
11196
11197 2007-06-23  Bruno Haible  <bruno@clisp.org>
11198
11199         * gnulib-tool (echo): Add a speedier workaround for ksh.
11200         * tests/test-echo.sh: Likewise.
11201
11202 2007-06-23  Bruno Haible  <bruno@clisp.org>
11203
11204         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
11205         * tests/test-echo.sh: Likewise.
11206
11207 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11208
11209         * gnulib-tool (IFS): Initialize early, so we don't set it to
11210         empty later.
11211         (self_abspathname): Rewrite algorithm to set it, reindent.
11212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
11213         (func_create_megatestdir): Merge some sed scripts.
11214
11215 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11216
11217         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
11218         exposed by Sun Studio 11 cc on Solaris 8.
11219
11220 2007-06-22  Bruno Haible  <bruno@clisp.org>
11221
11222         * gnulib-tool (echo): Ensure the echo primitive does not interpret
11223         backslashes.
11224         * tests/test-echo.sh: New file.
11225
11226 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11227
11228         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
11229         simplify `sed_replace_build_aux' scripts, they are portable but
11230         echoing them with `echo' is not.
11231         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
11232
11233 2007-06-21  Karl Berry  <karl@gnu.org>
11234
11235         * config/srclist.txt: guess we can't handle the licenses via
11236         srclist at the moment.
11237
11238 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
11239
11240         * MODULES.html.sh: Add include_next.
11241         * modules/include_next: New file.
11242
11243 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11244
11245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
11246         INCLUDE_NEXT.
11247         (gl_CHECK_NEXT_HEADERS): New macro.
11248         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
11249         the obsolescent gl_ABSOLUTE_HEADER.
11250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
11251         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
11252         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11253         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11254         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11255         * m4/math_h.m4 (gl_MATH_H): Likewise.
11256         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11257         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11258         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11259         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11260         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
11261         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
11262         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
11263         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11267         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11268         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11270         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11271         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11272         * m4/inttypes.m4 (gl_INTTYPES_H): Define
11273         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
11274         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
11275         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
11276         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
11277         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
11278         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
11279         * lib/float_.h: Likewise.
11280         * lib/inttypes_.h: Likewise.
11281         * lib/math_.h: Likewise.
11282         * lib/search_.h: Likewise.
11283         * lib/signal_.h: Likewise.
11284         * lib/stdint_.h: Likewise.
11285         * lib/stdio_.h: Likewise.
11286         * lib/stdlib_.h: Likewise.
11287         * lib/string_.h: Likewise.
11288         * lib/sys_stat_.h: Likewise.
11289         * lib/sys_time_.h: Likewise.
11290         * lib/time_.h: Likewise.
11291         * lib/unistd_.h: Likewise.
11292         * lib/wchar_.h: Likewise.
11293         * lib/wctype_.h: Likewise.
11294         * lib/dirent_.h: Likewise.
11295         * lib/iconv_.h: Likewise.
11296         * lib/locale_.h: Likewise.
11297         * lib/netinet_in_.h: Likewise.
11298         * lib/sys_select_.h: Likewise.
11299         * lib/sys_socket_.h: Likewise.
11300         * lib/sysexits_.h: Likewise.
11301         * modules/fcntl (Depends-on): Depend on include_next, not
11302         absolute_header.
11303         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
11304         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
11305         * modules/fchdir: Likewise.
11306         * modules/float: Likewise.
11307         * modules/iconv_open: Likewise.
11308         * modules/inttypes: Likewise.
11309         * modules/locale: Likewise.
11310         * modules/math: Likewise.
11311         * modules/netinet_in: Likewise.
11312         * modules/search: Likewise.
11313         * modules/signal: Likewise.
11314         * modules/stdint: Likewise.
11315         * modules/stdio: Likewise.
11316         * modules/stdlib: Likewise.
11317         * modules/string: Likewise.
11318         * modules/sys_select: Likewise.
11319         * modules/sys_socket: Likewise.
11320         * modules/sys_stat: Likewise.
11321         * modules/sys_time: Likewise.
11322         * modules/sysexits: Likewise.
11323         * modules/time: Likewise.
11324         * modules/unistd: Likewise.
11325         * modules/wchar: Likewise.
11326         * modules/wctype: Likewise.
11327         * modules/sys_stat: Change maintainer to "all".
11328         * modules/unistd: Likewise.
11329
11330 2007-06-20  Karl Berry  <karl@gnu.org>
11331
11332         * config/srclist.txt: track www changes in license files.
11333
11334 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
11335
11336         * build-aux/bootstrap: Remove stray dot.
11337         Make sure build_aux settings are honored when linking
11338         gnulib_extra_files.
11339
11340 2007-06-19  Eric Blake  <ebb9@byu.net>
11341
11342         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
11343         Allow compilation on cygwin.
11344
11345 2007-06-19  Jim Meyering  <jim@meyering.net>
11346
11347         xreadlink-with-size: Remove module.  No longer used.
11348         Ex-callers now use xreadlink or mreadlink-with-size.
11349         * modules/xreadlink-with-size: Remove module.
11350         * lib/xreadlink-with-size.c: Remove file.
11351         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
11352         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
11353         just before the function definition *is* accurate.
11354
11355         Eliminate one way canonicalize_filename_mode could exit.
11356         * lib/canonicalize.c (canonicalize_filename_mode):
11357         Use mreadlink_with_size, not xreadlink_with_size.
11358
11359 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         Detect porting problems to FreeBSD/arm, which has time_t wider than
11362         long int.  Original problem reported for GNU diff by Xin Li in
11363         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
11364         * modules/getdate (Depends-on): Add intprops, verify.
11365         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
11366         is an integer type no wider than long int.
11367
11368 2007-06-18  Jim Meyering  <jim@meyering.net>
11369
11370         New module: mreadlink-with-size.
11371         * MODULES.html.sh: Add mreadlink-with-size.
11372         * modules/mreadlink-with-size: New module
11373         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
11374         not xreadlink-with-size.
11375         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
11376
11377 2007-06-16  Bruno Haible  <bruno@clisp.org>
11378
11379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
11380         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
11381         Reported by Gary V. Vaughan <gary@gnu.org>.
11382
11383 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11384
11385         Revamp lchown so that it lives in unistd.h where it belongs.
11386         * lib/lchown.h: Remove.
11387         * lib/dirchownmod.c: Don't include lib/lchown.h.
11388         * lib/fchownat.c: Likewise.
11389         * lib/openat.c: Likewise.
11390         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
11391         does not follow symlinks.
11392         (EOPNOTSUPP): Define if not defined.
11393         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
11394         is defined to 0.
11395         (lchown): New decl.
11396         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
11397         Do not check for lchown decl.
11398         Set REPLACE_LCHOWN.
11399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
11400         REPLACE_LCHOWN.
11401         * modules/chown: Make it clear it follows symlinks.
11402         * modules/lchown: Make it clear it doesn't follow symlinks.
11403         (Files): Remove lib/lchown.h
11404         (Depends-on): Add unistd.
11405         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
11406         (Include): Include <unistd.h>, not "lchown.h".
11407         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
11408         REPLACE_LCHOWN.
11409
11410 2007-06-15  Jim Meyering  <jim@meyering.net>
11411
11412         Change license (GPL to LGPL) of fsusage and dependents.
11413         * modules/fsusage (License): Change to LGPL.
11414         * modules/full-read (License): Likewise.
11415         * modules/full-write (License): Likewise.
11416         * modules/safe-read (License): Likewise.
11417         * modules/safe-write (License): Likewise.
11418
11419 2007-06-14  Ben Pfaff  <blp@gnu.org>
11420
11421         Missing part of allocsa -> malloca transition.
11422         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
11423         gl_MALLOCA.
11424
11425 2007-06-12  Bruno Haible  <bruno@clisp.org>
11426
11427         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
11428         to ia64, x86_64, i386.
11429         Reported by Eric Blake.
11430
11431 2007-06-12  Bruno Haible  <bruno@clisp.org>
11432
11433         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
11434         cross-compiling to x86_64.
11435
11436 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
11437
11438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
11439         glitch reported by Ralf Wildenhues in
11440         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
11441
11442         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
11443         Vin Shelton.
11444
11445 2007-06-11  Bruno Haible  <bruno@clisp.org>
11446
11447         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
11448         replacement string.
11449         Reported by Eric Blake.
11450
11451 2007-06-10  Bruno Haible  <bruno@clisp.org>
11452
11453         Prepare vasnprintf code for use with Unicode strings.
11454         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
11455         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
11456         TYPE_U32_STRING.
11457         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
11458         a_u32_string variants.
11459         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11460         * lib/printf-args.c: Don't include config.h and the specification
11461         header if PRINTF_FETCHARGS is already defined.
11462         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
11463         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
11464         TYPE_U16_STRING, TYPE_U32_STRING.
11465         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
11466         u16_directive, u16_directives, u32_directive, u32_directives): New
11467         types.
11468         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
11469         New declarations.
11470         * lib/printf-parse.c: Don't include config.h and the specification
11471         header if PRINTF_PARSE is already defined. Eliminate the set of
11472         parameters for WIDE_CHAR_VERSION; the user of this file must provide
11473         them now. Include c-ctype.h.
11474         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
11475         directive and CHAR_T_ONLY_ASCII.
11476         * lib/vasnprintf.c: Don't include config.h and the specification header
11477         if VASNPRINTF is already defined.
11478         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
11479         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
11480         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
11481         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
11482         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
11483         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
11484         code accordingly.
11485         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
11486         pad_ourselves also in this case, with the 'c' and 's' directives, and
11487         with a different notion of "width".
11488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
11489
11490 2007-06-10  Bruno Haible  <bruno@clisp.org>
11491
11492         * modules/unistr/u32-mbsnlen: New file.
11493         * lib/unistr/u32-mbsnlen.c: New file.
11494
11495         * modules/unistr/u16-mbsnlen: New file.
11496         * lib/unistr/u16-mbsnlen.c: New file.
11497
11498         * modules/unistr/u8-mbsnlen: New file.
11499         * lib/unistr/u8-mbsnlen.c: New file.
11500
11501         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
11502         declarations.
11503
11504 2007-06-10  Bruno Haible  <bruno@clisp.org>
11505
11506         * lib/string_.h (mbsnlen): New declaration.
11507         * lib/mbsnlen.c: New file.
11508         * m4/mbsnlen.m4: New file.
11509         * modules/mbsnlen: New file.
11510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
11511         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
11512         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
11513
11514 2007-06-10  Bruno Haible  <bruno@clisp.org>
11515
11516         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
11517
11518 2007-06-10  Bruno Haible  <bruno@clisp.org>
11519
11520         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
11521         * lib/mbuiter.h: Likewise.
11522
11523 2007-06-10  Bruno Haible  <bruno@clisp.org>
11524
11525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
11526         declaration.
11527
11528 2007-06-10  Karl Berry  <karl@gnu.org>
11529
11530         * config/srclist.txt: remove gettext entries, Bruno prefers
11531         to update individually.
11532
11533 2007-06-10  Bruno Haible  <bruno@clisp.org>
11534
11535         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
11536         'maxlen'. Ensure only length + width bytes are allocated, not
11537         length + 1 + width.
11538
11539 2007-06-09  Bruno Haible  <bruno@clisp.org>
11540
11541         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
11542         (CHAR_T): Remove macro.
11543         (VASNPRINTF): Update.
11544
11545 2007-06-09  Bruno Haible  <bruno@clisp.org>
11546
11547         * MODULES.html.sh (Unicode string functions): Add the new modules.
11548
11549         * modules/uniconv/u32-conv-to-enc: New file.
11550         * lib/uniconv/u32-conv-to-enc.c: New file.
11551         * modules/uniconv/u32-conv-to-enc-tests: New file.
11552         * tests/uniconv/test-u32-conv-to-enc.c: New file.
11553
11554         * modules/uniconv/u16-conv-to-enc: New file.
11555         * lib/uniconv/u16-conv-to-enc.c: New file.
11556         * lib/uniconv/u-conv-to-enc.h: New file.
11557         * modules/uniconv/u16-conv-to-enc-tests: New file.
11558         * tests/uniconv/test-u16-conv-to-enc.c: New file.
11559
11560         * modules/uniconv/u8-conv-to-enc: New file.
11561         * lib/uniconv/u8-conv-to-enc.c: New file.
11562         * modules/uniconv/u8-conv-to-enc-tests: New file.
11563         * tests/uniconv/test-u8-conv-to-enc.c: New file.
11564
11565         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11566         u32_conv_to_encoding): New declarations.
11567
11568 2007-06-09  Bruno Haible  <bruno@clisp.org>
11569
11570         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
11571
11572 2007-06-09  Bruno Haible  <bruno@clisp.org>
11573
11574         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
11575         * modules/malloca: Renamed from modules/allocsa, updated.
11576         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
11577         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
11578         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
11579         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
11580         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
11581         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
11582         * modules/xmalloca: Renamed from modules/xallocsa, updated.
11583         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
11584         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
11585         * modules/c-strcasestr (Depends-on): Update.
11586         * lib/c-strcasestr.c: Update.
11587         * modules/c-strstr (Depends-on): Update.
11588         * lib/c-strstr.c: Update.
11589         * modules/canonicalize-lgpl (Depends-on): Update.
11590         * lib/canonicalize-lgpl.c: Update.
11591         * modules/clean-temp (Depends-on): Update.
11592         * lib/clean-temp.c: Update.
11593         * modules/csharpcomp (Depends-on): Update.
11594         * lib/csharpcomp.c: Update.
11595         * modules/csharpexec (Depends-on): Update.
11596         * lib/csharpexec.c: Update.
11597         * modules/javacomp (Depends-on): Update.
11598         * lib/javacomp.c: Update.
11599         * modules/javaexec (Depends-on): Update.
11600         * lib/javaexec.c: Update.
11601         * modules/mbscasestr (Depends-on): Update.
11602         * lib/mbscasestr.c: Update.
11603         * modules/mbsstr (Depends-on): Update.
11604         * lib/mbsstr.c: Update.
11605         * modules/setenv (Depends-on): Update.
11606         * lib/setenv.c: Update.
11607         * modules/strcasestr (Depends-on): Update.
11608         * lib/strcasestr.c: Update.
11609         * modules/striconveha (Depends-on): Update.
11610         * lib/striconveha.c: Update.
11611         * modules/relocatable-prog-wrapper (Files): Update.
11612         * lib/relocwrapper.c: Update.
11613         * build-aux/install-reloc: Update.
11614         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
11615
11616 2007-06-08  Bruno Haible  <bruno@clisp.org>
11617
11618         Port to uClibc.
11619         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
11620         * lib/fpurge.c (fpurge): Likewise.
11621         * lib/freading.c (freading): Likewise.
11622         * lib/fseeko.c (rpl_fseeko): Likewise.
11623         * lib/fseterr.c (fseterr): Likewise.
11624         * lib/fwriting.c (fwriting): Likewise.
11625         * tests/test-fflush.c (main): Avoid a failure on uClibc.
11626
11627 2007-06-08  Bruno Haible  <bruno@clisp.org>
11628
11629         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
11630         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
11631         * modules/gettext (Files): Add m4/intlmacosx.m4.
11632
11633 2007-06-07  Bruno Haible  <bruno@clisp.org>
11634
11635         * modules/localename-tests: New file.
11636         * tests/test-localename.c: New file.
11637
11638         New module 'localename'.
11639         * lib/localename.h: New file.
11640         * lib/localename.c: New file, from GNU gettext.
11641         * m4/localename.m4: New file.
11642         * modules/localename: New file.
11643
11644 2007-06-07  Bruno Haible  <bruno@clisp.org>
11645
11646         Work around the lack of <wchar.h> on some builds of uClibc.
11647         * doc/headers/wchar.texi: Update.
11648         * lib/wchar_.h: Include <wchar.h> only if it exists.
11649         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
11650         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
11651         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
11652         doesn't exist.
11653         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
11654         * modules/mbfile (Depends-on): Add wchar.
11655         * modules/mbiter (Depends-on): Likewise.
11656         * modules/mbuiter (Depends-on): Likewise.
11657         Reported by Simon Josefsson.
11658
11659 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11660
11661         Work around problem reported by Steven M. Schweda in
11662         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
11663         Tru64 5.1B with the Compaq compiler environment installed declares
11664         an 'isblank' function but does not define it in the C library.
11665         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
11666         * lib/regex_internal.h (isblank): Likewise.
11667         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
11668         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11669
11670 2007-06-05  Bruno Haible  <bruno@clisp.org>
11671
11672         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
11673         ia64.
11674         * modules/printf-safe: New file.
11675         * modules/fprintf-posix (Depends-on): Add printf-safe.
11676         * modules/printf-posix (Depends-on): Likewise.
11677         * modules/snprintf-posix (Depends-on): Likewise.
11678         * modules/sprintf-posix (Depends-on): Likewise.
11679         * modules/vasnprintf-posix (Depends-on): Likewise.
11680         * modules/vasprintf-posix (Depends-on): Likewise.
11681         * modules/vfprintf-posix (Depends-on): Likewise.
11682         * modules/vprintf-posix (Depends-on): Likewise.
11683         * modules/vsnprintf-posix (Depends-on): Likewise.
11684         * modules/vsprintf-posix (Depends-on): Likewise.
11685         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11686         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
11687         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
11688         "no" on i386, x86_64, ia64.
11689         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
11690         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11691         on i386, x86_64, ia64.
11692         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
11693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11694         on i386, x86_64, ia64.
11695         * tests/test-vasnprintf-posix.c: Include float.h.
11696         (LDBL80_WORDS): New macro.
11697         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11698         on i386, x86_64, ia64.
11699         * tests/test-vasprintf-posix.c: Include float.h.
11700         (LDBL80_WORDS): New macro.
11701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
11702         on i386, x86_64, ia64.
11703         * tests/test-snprintf-posix.c: Include float.h.
11704         * tests/test-sprintf-posix.c: Likewise.
11705         * tests/test-vsnprintf-posix.c: Likewise.
11706         * tests/test-vsprintf-posix.c: Likewise.
11707
11708 2007-06-05  Bruno Haible  <bruno@clisp.org>
11709
11710         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
11711         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
11712         non-IEEE numbers on i386, x86_64, ia64.
11713         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
11714         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
11715         * tests/test-isnanl.h: Include float.h.
11716         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
11717
11718 2007-06-05  Bruno Haible  <bruno@clisp.org>
11719
11720         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
11721         also the %a / %A. Handle the %a / %A code before this extra handling.
11722
11723 2007-06-05  Bruno Haible  <bruno@clisp.org>
11724
11725         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
11726         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
11727
11728 2007-06-05  Bruno Haible  <bruno@clisp.org>
11729
11730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
11731         typo in variable name.
11732
11733 2007-06-05  Eric Blake  <ebb9@byu.net>
11734
11735         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
11736         Reported by Simon Josefsson.
11737
11738 2007-06-04  Bruno Haible  <bruno@clisp.org>
11739
11740         Avoid test failures on some PowerPC platforms.
11741         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
11742         Define differently for PowerPC.
11743         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
11744         Reported by Gary V. Vaughan <gary@gnu.org>.
11745
11746 2007-06-02  Bruno Haible  <bruno@clisp.org>
11747
11748         Fix test-stdint failure on FreeBSD/ia64.
11749         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
11750         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
11751         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
11752         * doc/headers/stdint.texi: Update.
11753
11754 2007-06-01  Bruno Haible  <bruno@clisp.org>
11755
11756         * tests/test-binary-io.c (main): Pass a third argument to open().
11757         Reported by Gary V. Vaughan <gary@gnu.org>.
11758
11759 2007-06-01  Bruno Haible  <bruno@clisp.org>
11760
11761         * doc/functions/frexpl.texi: Update for mingw.
11762
11763 2007-06-01  Bruno Haible  <bruno@clisp.org>
11764
11765         * tests/test-lseek.c (main): Disable test of errno for invalid third
11766         argument.
11767         * doc/functions/lseek.texi: Update.
11768         Reported by Gary V. Vaughan <gary@gnu.org>.
11769
11770 2007-05-28  Bruno Haible  <bruno@clisp.org>
11771
11772         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
11773
11774 2007-05-31  Eric Blake  <ebb9@byu.net>
11775
11776         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
11777         cross compiling.
11778
11779 2007-05-30  Eric Blake  <ebb9@byu.net>
11780         and Bruno Haible  <bruno@clisp.org>
11781
11782         Work around mingw test failures exposed by m4-1.4.9b.
11783         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
11784         * tests/test-unistd.c: Disable uid_t and git_t tests for the
11785         moment.
11786
11787 2007-05-30  Bruno Haible  <bruno@clisp.org>
11788
11789         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
11790         assuming that they are closed. Needed on HP-UX 11.
11791
11792 2007-05-29  Bruno Haible  <bruno@clisp.org>
11793
11794         Fix a problem with #include_next.
11795         * lib/dirent_.h: Split the double-inclusion guard.
11796         * lib/fcntl_.h: Likewise.
11797         * lib/float_.h: Likewise.
11798         * lib/iconv_.h: Likewise.
11799         * lib/inttypes_.h: Likewise.
11800         * lib/locale_.h: Likewise.
11801         * lib/math_.h: Likewise.
11802         * lib/netinet_in_.h: Likewise.
11803         * lib/search_.h: Likewise.
11804         * lib/signal_.h: Likewise.
11805         * lib/stdint_.h: Likewise.
11806         * lib/stdio_.h: Likewise.
11807         * lib/stdlib_.h: Likewise.
11808         * lib/string_.h: Likewise.
11809         * lib/sys_select_.h: Likewise.
11810         * lib/sys_socket_.h: Likewise.
11811         * lib/sys_stat_.h: Likewise.
11812         * lib/sys_time_.h: Likewise.
11813         * lib/sysexits_.h: Likewise.
11814         * lib/time_.h: Likewise.
11815         * lib/unistd_.h: Likewise.
11816         * lib/wchar_.h: Likewise.
11817         * lib/wctype_.h: Likewise.
11818
11819 2007-05-29  Bruno Haible  <bruno@clisp.org>
11820
11821         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
11822         for the moment.
11823
11824 2007-05-29  Bruno Haible  <bruno@clisp.org>
11825
11826         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
11827         invocation.
11828         Reported by Eric Blake.
11829
11830 2007-05-29  Bruno Haible  <bruno@clisp.org>
11831
11832         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
11833         compiling case.
11834
11835 2007-05-29  Eric Blake  <ebb9@byu.net>
11836             Bruno Haible  <bruno@clisp.org>
11837
11838         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
11839         cross compiles.
11840
11841 2007-05-28  Eric Blake  <ebb9@byu.net>
11842
11843         * modules/closein-tests (test_closein_LDADD): Support test on
11844         cygwin with libtool.
11845
11846 2007-05-28  Bruno Haible  <bruno@clisp.org>
11847
11848         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
11849         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11850         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11851         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11852         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11853         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11854         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11855         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11856         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11857
11858 2007-05-28  Eric Blake  <ebb9@byu.net>
11859
11860         Unconditionally include <config.h> in unit tests.
11861         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
11862         * tests/test-allocsa.c, tests/test-arcfour.c,
11863         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
11864         tests/test-array_list.c, tests/test-array_oset.c,
11865         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
11866         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
11867         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
11868         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
11869         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
11870         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
11871         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
11872         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
11873         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
11874         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
11875         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
11876         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
11877         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
11878         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
11879         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
11880         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
11881         test-md5.c, test-memmem.c, test-printf-posix.c,
11882         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
11883         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
11884         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
11885         test-strcasestr.c, test-striconv.c, test-striconveh.c,
11886         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
11887         test-vasnprintf-posix2.c, test-vasnprintf.c,
11888         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
11889         test-vfprintf-posix.c, test-vprintf-posix.c,
11890         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
11891         test-xvasprintf.c: Likewise.
11892
11893 2007-05-28  Bruno Haible  <bruno@clisp.org>
11894
11895         * gnulib-tool (func_import): Remember the --with-tests command-line
11896         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
11897         Reported by Eric Blake.
11898
11899 2007-05-28  Bruno Haible  <bruno@clisp.org>
11900
11901         * modules/ftell-tests: New file.
11902         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
11903         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
11904
11905         * lib/ftell.c: New file.
11906         * modules/ftell: New file.
11907         * m4/ftell.m4: New file.
11908         * doc/functions/ftell.texi: Update.
11909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
11910         REPLACE_FTELL.
11911         * lib/stdio_.h (rpl_ftell): New declaration.
11912         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
11913         REPLACE_FTELL.
11914
11915 2007-05-28  Eric Blake  <ebb9@byu.net>
11916
11917         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
11918
11919 2007-05-28  Bruno Haible  <bruno@clisp.org>
11920
11921         * modules/fseek-tests: New file.
11922         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
11923         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
11924
11925         * lib/fseek.c: New file.
11926         * modules/fseek: New file.
11927         * m4/fseek.m4: New file.
11928         * doc/functions/fseek.texi: Update.
11929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
11930         REPLACE_FSEEK.
11931         * lib/stdio_.h (rpl_fseek): New declaration.
11932         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
11933         REPLACE_FSEEK.
11934
11935 2007-05-28  Bruno Haible  <bruno@clisp.org>
11936
11937         * lib/stdio_.h (fflush): More comments.
11938
11939 2007-05-28  Bruno Haible  <bruno@clisp.org>
11940
11941         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
11942         runtime test.
11943
11944 2007-05-28  Eric Blake  <ebb9@byu.net>
11945
11946         Improve lseek module.
11947         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
11948         * lib/unistd_.h (lseek): Scale back link warning message.
11949         * tests/test-lseek.c: Beef up test.
11950         * tests/test-lseek.sh: Exercise more facets of lseek.
11951         Reported by Bruno Haible.
11952
11953 2007-05-28  Bruno Haible  <bruno@clisp.org>
11954
11955         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
11956         to define.
11957
11958 2007-05-27  Bruno Haible  <bruno@clisp.org>
11959
11960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
11961
11962 2007-05-27  Bruno Haible  <bruno@clisp.org>
11963
11964         * modules/openmp: New file.
11965         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
11966         Noah Misch.
11967
11968 2007-05-26  Bruno Haible  <bruno@clisp.org>
11969
11970         * modules/chdir-long (Depends-on): Add fchdir.
11971         * modules/chdir-safer (Depends-on): Likewise.
11972         * modules/fts (Depends-on): Likewise.
11973         * modules/fts-lgpl (Depends-on): Likewise.
11974         * modules/openat (Depends-on): Likewise.
11975         * modules/savewd (Depends-on): Likewise.
11976
11977 2007-05-24  Eric Blake  <ebb9@byu.net>
11978
11979         Fix lseek on mingw.
11980         * modules/lseek: New module.
11981         * m4/lseek.m4: New file.
11982         * lib/lseek.c: New file.
11983         * modules/lseek-tests: New file.
11984         * tests/test-lseek.c: New file.
11985         * tests/test-lseek.sh: New file.
11986         * MODULES.html.sh: Document lseek module.
11987         * modules/fflush (Depends-on): Add lseek, fseeko.
11988         * modules/fseeko (Depends-on): Likewise.
11989         * modules/ftello (Depends-on): Likewise.
11990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
11991         broken.
11992         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
11993         broken.
11994         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
11995         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
11996         * lib/ftello.c (rpl_ftello): Likewise.
11997         * tests/test-fseeko.c (main): Test this.
11998         * tests/test-fseeko.sh: Likewise.
11999         * tests/test-ftello.c (main): Likewise.
12000         * tests/test-ftello.sh: Likewise.
12001         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
12002         implies replacing fseek.
12003         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
12004         HAVE_FTELLO.
12005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
12006         * modules/unistd (Makefile.am): Likewise.
12007         * lib/unistd_.h (lseek): Declare a replacement.
12008         * doc/functions/lseek.texi (lseek): Document this fix.
12009         * doc/functions/fseek.texi (fseek): Likewise.
12010         * doc/functions/ftell.texi (ftell): Likewise.
12011
12012 2007-05-24  Bruno Haible  <bruno@clisp.org>
12013
12014         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
12015         in the printed representation of a NaN.
12016         * tests/test-vasprintf-posix.c (test_function): Likewise.
12017         * tests/test-snprintf-posix.h (test_function): Likewise.
12018         * tests/test-sprintf-posix.h (test_function): Likewise.
12019         Reported by Eric Blake.
12020
12021 2007-05-23  Eric Blake  <ebb9@byu.net>
12022
12023         Fix fseeko/ftello on cygwin 1.5.24.
12024         * doc/functions/fseeko.texi (fseeko): Document the fix.
12025         * doc/functions/ftello.texi (ftello): Document the fix.
12026         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
12027         * doc/functions/stdout.text (stdout): New file.
12028         * doc/functions/stderr.text (stderr): New file.
12029         * doc/gnulib.texi (Function Substitutes): Use new files.
12030         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
12031         prior to 1.7.0.
12032         * tests/test-ftello.c (main): Likewise for ftello.
12033         * tests/test-fseeko.sh: New file.
12034         * tests/test-ftello.sh: New file.
12035         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
12036         with seekable stdin.
12037         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
12038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
12039         (gl_REPLACE_FSEEKO): New macro.
12040         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
12041         * modules/fseeko (Files): Distribute fseeko.c.
12042         * modules/ftello (Files): Distribute ftello.c.
12043         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
12044         mode.
12045         * lib/ftello.c (rpl_ftello): New file.
12046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
12047         fseeko, ftello.
12048         (gl_STDIN_LARGE_OFFSET): New macro.
12049         * modules/stdio (Makefile.am): Perform the replacement.
12050         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
12051
12052 2007-05-23  Bruno Haible  <bruno@clisp.org>
12053
12054         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
12055         GNULIB_POSIXCHECK is defined.
12056
12057 2007-05-21  Bruno Haible  <bruno@clisp.org>
12058
12059         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
12060         Check also the output for NaN arguments. When cross-compiling, guess
12061         no on IRIX.
12062         * lib/vasnprintf.c: Update comments.
12063         * tests/test-vasnprintf-posix.c (strisnan): New function.
12064         (test_function): Use it.
12065         * tests/test-vasprintf-posix.c (strisnan): New function.
12066         (test_function): Use it.
12067         * tests/test-snprintf-posix.h (strisnan): New function.
12068         (test_function): Use it.
12069         * tests/test-sprintf-posix.h (strisnan): New function.
12070         (test_function): Use it.
12071         Reported by Eric Blake.
12072
12073 2007-05-20  Bruno Haible  <bruno@clisp.org>
12074
12075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
12076         numbers that fails on BeOS.
12077         * doc/functions/frexpl.texi: Update.
12078
12079 2007-05-20  Jim Meyering  <jim@meyering.net>
12080
12081         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
12082         forced upon us by glibc-2.6.
12083
12084 2007-05-20  Bruno Haible  <bruno@clisp.org>
12085
12086         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
12087         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
12088         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
12089         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
12090         NEED_PRINTF_INFINITE.
12091         (is_infinitel): New function.
12092         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
12093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
12094         gl_PREREQ_VASNPRINTF_INFINITE.
12095         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
12096         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12097         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
12098         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
12099         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
12100         gl_PREREQ_VASNPRINTF_INFINITE.
12101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12108         * doc/functions/fprintf.texi: Update.
12109         * doc/functions/printf.texi: Update.
12110         * doc/functions/snprintf.texi: Update.
12111         * doc/functions/sprintf.texi: Update.
12112         * doc/functions/vfprintf.texi: Update.
12113         * doc/functions/vprintf.texi: Update.
12114         * doc/functions/vsnprintf.texi: Update.
12115         * doc/functions/vsprintf.texi: Update.
12116
12117 2007-05-20  Bruno Haible  <bruno@clisp.org>
12118
12119         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
12120         was not found in libc.
12121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12122
12123 2007-05-20  Bruno Haible  <bruno@clisp.org>
12124
12125         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12126         printed as "-nan" instead of "nan".
12127         * tests/test-vasprintf-posix.c (test_function): Likewise.
12128         * tests/test-snprintf-posix.h (test_function): Likewise.
12129         * tests/test-sprintf-posix.h (test_function): Likewise.
12130         Needed for HP-UX 11.
12131
12132 2007-05-20  Jim Meyering  <jim@meyering.net>
12133
12134         Fix buggy test for the fchownat-deref bug.
12135         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
12136         symlink required for the run-test.  Without it, this test would
12137         always declare that fchownat doesn't work, and client code would
12138         unnecessarily use the replacement function with fixed libc.
12139         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
12140         Reported by Greg Schafer.
12141
12142 2007-05-19  Bruno Haible  <bruno@clisp.org>
12143
12144         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
12145         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
12146         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
12147         Needed for IRIX 6.5 and Solaris 2.5.1.
12148
12149 2007-05-19  Bruno Haible  <bruno@clisp.org>
12150
12151         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
12152         (test_function): Skip tests involving -0.0 on platforms where
12153         -0.0 = 0.0.
12154         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
12155         (test_function): Skip tests involving -0.0 on platforms where
12156         -0.0 = 0.0.
12157         * tests/test-snprintf-posix.h (have_minus_zero): New function.
12158         (test_function): Skip tests involving -0.0 on platforms where
12159         -0.0 = 0.0.
12160         * tests/test-sprintf-posix.h (have_minus_zero): New function.
12161         (test_function): Skip tests involving -0.0 on platforms where
12162         -0.0 = 0.0.
12163         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
12164         tests.
12165         * tests/test-printf-posix.h (test_function): Likewise.
12166         * tests/test-printf-posix.output: Remove all -0.0 related results.
12167         Needed for IRIX 6.5.
12168
12169 2007-05-19  Bruno Haible  <bruno@clisp.org>
12170
12171         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
12172         printed as "nan0x7fffffff" instead of "nan".
12173         * tests/test-vasprintf-posix.c (test_function): Likewise.
12174         * tests/test-snprintf-posix.h (test_function): Likewise.
12175         * tests/test-sprintf-posix.h (test_function): Likewise.
12176         * tests/test-fprintf-posix.h (NaN): Remove macro.
12177         (test_function): Remove all NaN related tests.
12178         * tests/test-printf-posix.h (NaN): Remove macro.
12179         (test_function): Remove all NaN related tests.
12180         * tests/test-printf-posix.output: Remove all NaN related results.
12181         Needed for IRIX 6.5.
12182
12183 2007-05-19  Bruno Haible  <bruno@clisp.org>
12184
12185         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
12186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12187
12188 2007-05-19  Bruno Haible  <bruno@clisp.org>
12189
12190         * lib/float_.h: New file.
12191         * m4/float_h.m4: New file.
12192         * modules/float: New file.
12193         * modules/isnanl (Dependencies): Add float.
12194         * modules/isnanl-nolibm (Dependencies): Likewise.
12195         * modules/mathl (Dependencies): Likewise.
12196         * modules/printf-frexpl (Dependencies): Likewise.
12197         * modules/signbit (Dependencies): Likewise.
12198         * modules/vasnprintf (Dependencies): Likewise.
12199         * doc/headers/float.texi: Update.
12200
12201 2007-05-19  Jim Meyering  <jim@meyering.net>
12202
12203         * lib/utimens.c (gl_futimens): Rename from futimens,
12204         now that glibc-2.6 declares futimens.
12205         * lib/utimens.h: Likewise.
12206
12207 2007-05-19  Bruno Haible  <bruno@clisp.org>
12208
12209         Avoid test failures on mingw.
12210         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
12211         * tests/test-printf-posix.sh: Likewise.
12212         * tests/test-vfprintf-posix.sh: Likewise.
12213         * tests/test-vprintf-posix.sh: Likewise.
12214
12215 2007-05-19  Bruno Haible  <bruno@clisp.org>
12216
12217         Fix *printf result for NaN, Inf, -0.0 on mingw.
12218         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
12219         * lib/vasnprintf.c: Include math.h and isnan.h.
12220         (is_infinite_or_zero): New function.
12221         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
12222         values in the %f, %F, %e, %E, %g, %G directives.
12223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
12224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12225         gl_PRINTF_INFINITE and test its result. Invoke
12226         gl_PREREQ_VASNPRINTF_INFINITE.
12227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12234         * doc/functions/fprintf.texi: Update.
12235         * doc/functions/printf.texi: Update.
12236         * doc/functions/snprintf.texi: Update.
12237         * doc/functions/sprintf.texi: Update.
12238         * doc/functions/vfprintf.texi: Update.
12239         * doc/functions/vprintf.texi: Update.
12240         * doc/functions/vsnprintf.texi: Update.
12241         * doc/functions/vsprintf.texi: Update.
12242
12243 2007-05-19  Bruno Haible  <bruno@clisp.org>
12244
12245         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
12246         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
12247         Instead of multiplying with 10^k, set extra_zeroes to k.
12248         (scale10_round_long_double): Remove function.
12249
12250 2007-05-18  Bruno Haible  <bruno@clisp.org>
12251
12252         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
12253         introduced on 2007-05-06.
12254
12255 2007-05-18  Bruno Haible  <bruno@clisp.org>
12256
12257         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
12258         %g directives.
12259         * tests/test-vasprintf-posix.c (test_function): Likewise.
12260         * tests/test-snprintf-posix.h (test_function): Likewise.
12261         * tests/test-sprintf-posix.h (test_function): Likewise.
12262
12263 2007-05-18  Bruno Haible  <bruno@clisp.org>
12264
12265         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
12266         (strmatch): New function.
12267         (test_function): Test the %f directive on numbers of various exponents.
12268         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
12269         (strmatch): New function.
12270         (test_function): Test the %f directive on numbers of various exponents.
12271         * tests/test-snprintf-posix.h (strmatch): New function.
12272         (test_function): Test the %f directive on numbers of various exponents.
12273         * tests/test-sprintf-posix.h (strmatch): New function.
12274         (test_function): Test the %f directive on numbers of various exponents.
12275         * tests/test-snprintf-posix.c (SIZEOF): New macro.
12276         * tests/test-sprintf-posix.c (SIZEOF): New macro.
12277         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
12278         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
12279
12280 2007-05-18  Bruno Haible  <bruno@clisp.org>
12281
12282         Add support for 'long double' number output.
12283         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
12284         * lib/vasnprintf.c: Include math.h and float+.h.
12285         (mp_limb_t): New type.
12286         (GMP_LIMB_BITS): New macro.
12287         (mp_twolimb_t): New type.
12288         (GMP_TWOLIMB_BITS): New macro.
12289         (mpn_t): New type.
12290         (multiply, divide, convert_to_decimal, decode_long_double,
12291         scale10_round_long_double, scale10_round_decimal_long_double,
12292         floorlog10l): New functions.
12293         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
12294         for the %f, %F, %e, %E, %g, %G directives.
12295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
12296         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12297         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
12298         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
12299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12306         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
12307         * modules/snprintf-posix (Depends-on): Likewise.
12308         * modules/sprintf-posix (Depends-on): Likewise.
12309         * modules/vasnprintf-posix (Depends-on): Likewise.
12310         * modules/vasprintf-posix (Depends-on): Likewise.
12311         * modules/vfprintf-posix (Depends-on): Likewise.
12312         * modules/vsnprintf-posix (Depends-on): Likewise.
12313         * modules/vsprintf-posix (Depends-on): Likewise.
12314         * modules/vasnprintf (Files): Add lib/float+.h.
12315         * doc/functions/fprintf.texi: Update.
12316         * doc/functions/printf.texi: Update.
12317         * doc/functions/snprintf.texi: Update.
12318         * doc/functions/sprintf.texi: Update.
12319         * doc/functions/vfprintf.texi: Update.
12320         * doc/functions/vprintf.texi: Update.
12321         * doc/functions/vsnprintf.texi: Update.
12322         * doc/functions/vsprintf.texi: Update.
12323
12324 2007-05-18  Bruno Haible  <bruno@clisp.org>
12325
12326         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
12327
12328 2007-05-18  Bruno Haible  <bruno@clisp.org>
12329
12330         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
12331         for printing 64-bit integers. Needed for mingw.
12332
12333 2007-05-18  Bruno Haible  <bruno@clisp.org>
12334
12335         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12336         gl_FUNC_FREXPL_WORKS.
12337         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
12338
12339 2007-05-18  Bruno Haible  <bruno@clisp.org>
12340
12341         * modules/frexpl-nolibm-tests: New file.
12342
12343         * modules/frexpl-nolibm: New file.
12344         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
12345
12346 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12347
12348         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
12349         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12350         GCC 4.2, which otherwise issues a lot of warnings.
12351         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
12352         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
12353         Likewise.
12354         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
12355         * modules/iconv_open (iconv.h): Likewise.
12356         * modules/locale (locale.h): Likewise.
12357         * modules/netinet_in (netinet/in.h): Likewise.
12358         * modules/sys_select (sys_select.h): Likewise.
12359         * modules/sys_socket (sys/socket.h): Likewise.
12360         * modules/sys_stat (sys/stat.h): Likewise.
12361         * modules/sysexits (sysexits.h): Likewise.
12362         * modules/unistd (unistd.h): Likewise.
12363
12364 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12365
12366         * modules/closein-tests (Makefile.am): Distribute
12367         `test-closein.sh'.
12368
12369 2007-05-17  Bruno Haible  <bruno@clisp.org>
12370
12371         * tests/test-printf-posix.output: Renamed from
12372         tests/test-fprintf-posix.out.
12373         * modules/fprintf-posix-tests: Update.
12374         * modules/printf-posix-tests: Update.
12375         * modules/vfprintf-posix-tests: Update.
12376         * modules/vprintf-posix-tests: Update.
12377         * tests/test-fprintf-posix.sh: Update.
12378         * tests/test-printf-posix.sh: Update.
12379         * tests/test-vfprintf-posix.sh: Update.
12380         * tests/test-vprintf-posix.sh: Update.
12381         Reported by Ralf Wildenhues.
12382
12383 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12384
12385         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
12386         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
12387         GCC 4.2, which otherwise issues a lot of warnings.
12388         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
12389         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
12390         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
12391         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
12392         it should no longer be needed.
12393         * lib/string_.h: Likewise.
12394         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
12395         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
12396         * modules/inttypes (inttypes.h): Likewise.
12397         * modules/math (math.h): Likewise.
12398         * modules/search (search.h): Likewise.
12399         * modules/signal (signal.h): Likewise.
12400         * modules/stdint (stdint.h): Likewise.
12401         * modules/stdio (stdio.h): Likewise.
12402         * modules/stdlib (stdlib.h): Likewise.
12403         * modules/string (string.h): Likewise.
12404         * modules/sys_time (sys/time.h): Likewise.
12405         * modules/time (time.h): Likewise.
12406         * modules/wchar (wchar.h): Likewise.
12407         * modules/wctype (wtype.h): Likewise.
12408
12409 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12410
12411         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
12412
12413 2007-05-13  Bruno Haible  <bruno@clisp.org>
12414
12415         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
12416         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12417         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
12418         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12419         (gl_PREREQ_STRTOK_R): Don't require it here.
12420
12421 2007-05-13  Bruno Haible  <bruno@clisp.org>
12422
12423         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
12424         when used in C++ mode.
12425
12426 2007-05-12  Bruno Haible  <bruno@clisp.org>
12427
12428         * lib/linebuffer.h: Tweak doc.
12429         * lib/linebuffer.c: Likewise.
12430
12431 2007-05-12  James Youngman  <jay@gnu.org>
12432
12433         * lib/linebuffer.c (readlinebuffer_delim): New function,
12434         like readlinebuffer, but use a caller-specified delimiter.
12435         (readlinebuffer): Just call readlinebuffer_delim with '\n'
12436         as the delimiter.
12437         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
12438
12439 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12440
12441         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
12442         * modules/openat (Files): Remove openat-die.c.
12443         (Depends-on): Add openat-die.
12444         * modules/openat-die: New module.
12445
12446 2007-05-06  Bruno Haible  <bruno@clisp.org>
12447
12448         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
12449         Update with info about Cygwin.
12450         * doc/functions/fprintf.texi: Update.
12451         * doc/functions/printf.texi: Update.
12452         * doc/functions/snprintf.texi: Update.
12453         * doc/functions/sprintf.texi: Update.
12454         * doc/functions/vfprintf.texi: Update.
12455         * doc/functions/vprintf.texi: Update.
12456         * doc/functions/vsnprintf.texi: Update.
12457         * doc/functions/vsprintf.texi: Update.
12458         Reported by Eric Blake.
12459
12460 2007-05-06  Bruno Haible  <bruno@clisp.org>
12461
12462         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
12463         padding ourselves for the floating-point directives.
12464         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
12465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
12466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12467         gl_PRINTF_FLAG_ZERO and test its result. Invoke
12468         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
12469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12470         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12476         * tests/test-snprintf-posix.h (test_function): Also check the width
12477         and some flags in the %f directive.
12478         * tests/test-sprintf-posix.h (test_function): Likewise.
12479         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12480         * tests/test-vasprintf-posix.c (test_function): Likewise.
12481         * doc/functions/fprintf.texi: Update.
12482         * doc/functions/printf.texi: Update.
12483         * doc/functions/snprintf.texi: Update.
12484         * doc/functions/sprintf.texi: Update.
12485         * doc/functions/vfprintf.texi: Update.
12486         * doc/functions/vprintf.texi: Update.
12487         * doc/functions/vsnprintf.texi: Update.
12488         * doc/functions/vsprintf.texi: Update.
12489
12490 2007-05-06  Bruno Haible  <bruno@clisp.org>
12491
12492         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
12493         pass the ' flag character to sprintf or snprintf.
12494         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
12495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
12496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12497         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
12498         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
12499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
12501         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12506         * tests/test-snprintf-posix.h (test_function): Also check the grouping
12507         flag.
12508         * tests/test-sprintf-posix.h (test_function): Likewise.
12509         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12510         * tests/test-vasprintf-posix.c (test_function): Likewise.
12511         * doc/functions/fprintf.texi: Update.
12512         * doc/functions/printf.texi: Update.
12513         * doc/functions/snprintf.texi: Update.
12514         * doc/functions/sprintf.texi: Update.
12515         * doc/functions/vfprintf.texi: Update.
12516         * doc/functions/vprintf.texi: Update.
12517         * doc/functions/vsnprintf.texi: Update.
12518         * doc/functions/vsprintf.texi: Update.
12519
12520 2007-05-01  Bruno Haible  <bruno@clisp.org>
12521
12522         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
12523
12524 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
12525
12526         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
12527         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
12528
12529 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12530
12531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
12532         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
12533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
12534
12535 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
12536
12537         * lib/argp-help.c (struct hol_entry): New member `ord'.
12538         (HOL_ENTRY_PTRCMP): Use ord for comparison
12539         (hol_sort): Initialize ord.
12540
12541 2007-05-01  Bruno Haible  <bruno@clisp.org>
12542
12543         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
12544         Reported by Eric Blake.
12545         * doc/gnulib.texi (Function Substitutes): Update.
12546
12547 2007-05-01  Bruno Haible  <bruno@clisp.org>
12548
12549         * doc/functions.texi: Remove file, now redundant through
12550         doc/functions/*.texi.
12551
12552 2007-05-01  Bruno Haible  <bruno@clisp.org>
12553
12554         * modules/argp (Depends-on): Add sleep.
12555
12556 2007-05-01  Bruno Haible  <bruno@clisp.org>
12557
12558         * modules/sleep-tests: New file.
12559         * tests/test-sleep.c: New file.
12560
12561         * modules/sleep: New file.
12562         * lib/sleep.c: New file.
12563         * m4/sleep.m4: New file.
12564         * lib/unistd_.h (sleep): New declaration.
12565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
12566         HAVE_SLEEP.
12567         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
12568         * doc/functions/sleep.texi: Document the sleep module.
12569
12570 2007-05-01  Bruno Haible  <bruno@clisp.org>
12571
12572         * lib/sigprocmask.h: Remove file.
12573         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
12574         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
12575         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
12576         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
12577         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12578         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
12579         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
12580         HAVE_SIGSET_T as a shell variable.
12581         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
12582         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
12583         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
12584         (Depends-on): Add signal. Remove verify.
12585         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
12586         (Include): Mention <signal.h> instead of sigprocmask.h.
12587         * NEWS: Mention the change.
12588         * lib/fatal-signal.c: Don't include sigprocmask.h.
12589
12590 2007-05-01  Bruno Haible  <bruno@clisp.org>
12591
12592         * modules/signal: New file.
12593         * lib/signal_.h: New file.
12594         * m4/signal_h.m4: New file.
12595
12596 2007-05-01  Bruno Haible  <bruno@clisp.org>
12597
12598         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
12599         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
12600         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
12601         HAVE_WCTYPE_CTMP_BUG into wctype.h.
12602
12603 2007-05-01  Bruno Haible  <bruno@clisp.org>
12604
12605         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
12606         configure time.
12607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
12608         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
12609         * modules/sys_stat (Makefile.am): Substitute their values into
12610         sys/stat.h.
12611
12612 2007-05-01  Bruno Haible  <bruno@clisp.org>
12613
12614         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
12615         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
12616         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
12617
12618 2007-05-01  Bruno Haible  <bruno@clisp.org>
12619
12620         * doc/header/assert.texi: Undo last change: don't mention the gnulib
12621         'assert' module here.
12622
12623 2007-05-01  Bruno Haible  <bruno@clisp.org>
12624
12625         * doc/functions/*.texi: New files.
12626         * doc/functions/google-ranking.txt: New file.
12627         * doc/gnulib.texi (Function Substitutes): New chapter.
12628         (ctime, inet_ntoa): Remove sections.
12629         * doc/ctime.texi: Remove file.
12630         * doc/inet_ntoa.texi: Remove file.
12631         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
12632         dependencies.
12633         (%.info): New rule, specifying a --reference-limit.
12634
12635 2007-05-01  Bruno Haible  <bruno@clisp.org>
12636
12637         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
12638
12639 2007-05-01  Bruno Haible  <bruno@clisp.org>
12640
12641         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
12642         the portability of 'mkdir' to mingw systems.
12643
12644 2007-05-01  Bruno Haible  <bruno@clisp.org>
12645
12646         * doc/headers/google-ranking.txt: New file.
12647
12648 2007-04-30  Eric Blake  <ebb9@byu.net>
12649
12650         Prefer fseeko to fseek.
12651         * modules/getpass (Depends-on): Add fseeko.
12652         * lib/getpass.c (getpass): Use fseeko, not fseek.
12653
12654 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
12655
12656         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
12657         assumes the sorting is stable, while most qsort implementations
12658         are not.  Use argument addresses to ensure they never compare as
12659         equal.
12660
12661         * tests/test-argp-2.sh (usage-indent test): Fix output
12662         (func_compare): Restore diff options
12663         * tests/test-argp.c: Restore #include "progname.h"
12664
12665 2007-04-29  Bruno Haible  <bruno@clisp.org>
12666
12667         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
12668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
12669         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
12670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12671         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
12672         (configure.ac): Define CHECK_SNPRINTF_POSIX.
12673         (TESTS, check_PROGRAMS): Add test-snprintf.
12674         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
12675         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
12676         (TESTS, check_PROGRAMS): Add test-vsnprintf.
12677         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
12678         assertions that fail on HP-UX, OSF/1, or IRIX.
12679         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
12680
12681 2007-04-29  Bruno Haible  <bruno@clisp.org>
12682
12683         * MODULES.html.sh (posix_functions): Remove 'contents'.
12684
12685 2007-04-29  Karl Berry  <karl@gnu.org>
12686
12687         * config/srclist.txt (gendocs_template_min): new entry.
12688
12689 2007-04-29  Bruno Haible  <bruno@clisp.org>
12690
12691         Work around fpurge bug on BSD systems.
12692         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
12693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
12694         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
12695         fpurge to rpl_fpurge if the system already has this function.
12696         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
12697         the case where the system already has this function. Correct invariants
12698         on BSD systems.
12699         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
12700         BSD systems.
12701
12702 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12703
12704         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
12705         proposed by Sven Verdoolaege.
12706
12707         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
12708         options.
12709         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
12710         (usage and help tests): Update
12711
12712 2007-04-29  Bruno Haible  <bruno@clisp.org>
12713
12714         * tests/test-fflush.c (main): Use a file of size 17, not 10.
12715         Print more information in case of failure. Disable a test on BeOS.
12716
12717 2007-04-29  Bruno Haible  <bruno@clisp.org>
12718
12719         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
12720         This helps debugging on systems on which no gdb is available.
12721
12722 2007-04-29  Bruno Haible  <bruno@clisp.org>
12723
12724         * lib/freading.h: Improve comments.
12725         * lib/fwriting.h: Likewise.
12726         * tests/test-freading.c (main): Don't check freading immediately after
12727         repositioning. Needed for glibc.
12728
12729 2007-04-29  Bruno Haible  <bruno@clisp.org>
12730
12731         * lib/freading.c (freading): Trivial simplification.
12732
12733 2007-04-28  Bruno Haible  <bruno@clisp.org>
12734
12735         * tests/test-fwriting.c (main): Also test the interaction between
12736         fflush and fwriting.
12737         * modules/fwriting-tests (Depends-on): Add fflush.
12738
12739         * tests/test-freading.c (main): Also test the interaction between
12740         fflush and freading.
12741         * modules/freading-tests (Depends-on): Add fflush.
12742
12743 2007-04-28  Bruno Haible  <bruno@clisp.org>
12744
12745         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
12746         fseeko and ftello.
12747         Suggested by Eric Blake.
12748
12749 2007-04-28  Jim Meyering  <jim@meyering.net>
12750
12751         Avoid false-negative in gl_STDINT_H's C99 conformance test.
12752         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
12753         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
12754
12755 2007-04-27  Eric Blake  <ebb9@byu.net>
12756
12757         * doc/headers/assert.texi (assert.h): Document assert module use.
12758
12759 2007-04-27  Bruno Haible  <bruno@clisp.org>
12760
12761         * doc/headers/*.texi: New files.
12762         * doc/gnulib.texi (Header File Substitutes): New chapter.
12763         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
12764         dependencies.
12765         (standards.info ,standards.html, standards.dvi): Update dependencies.
12766         (mostlyclean, clean): New targets.
12767
12768 2007-04-27  Bruno Haible  <bruno@clisp.org>
12769
12770         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
12771         * modules/sysexits (Files, Makefile.am): Update.
12772
12773         * lib/sys_socket_.h: Renamed from lib/socket_.h.
12774         * modules/sys_socket (Files, Makefile.am): Update.
12775
12776         * lib/sys_stat_.h: Renamed from lib/stat_.h.
12777         * modules/sys_stat (Files, Makefile.am): Update.
12778
12779 2007-04-27  Eric Blake  <ebb9@byu.net>
12780
12781         * lib/freading.h: Improve comments.
12782         * lib/fwriting.h: Likewise.
12783         * lib/fflush.c: Likewise.
12784
12785         Fix closein for mingw.
12786         * modules/closein-tests: Add tests for closein.
12787         * tests/test-closein.c: New file.
12788         * tests/test-closein.sh: Likewise.
12789         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
12790         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
12791
12792 2007-04-27  Bruno Haible  <bruno@clisp.org>
12793
12794         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
12795         version is < 6.
12796         * lib/math_.h [__DECC]: Likewise.
12797         * lib/stdio_.h [__DECC]: Likewise.
12798         * lib/stdlib_.h [__DECC]: Likewise.
12799         * lib/string_.h [__DECC]: Likewise.
12800         * lib/time_.h [__DECC]: Likewise.
12801         * lib/wchar_.h [__DECC]: Likewise.
12802         * lib/wctype_.h [__DECC]: Likewise.
12803
12804 2007-04-27  Bruno Haible  <bruno@clisp.org>
12805
12806         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
12807
12808 2007-04-27  Bruno Haible  <bruno@clisp.org>
12809
12810         * lib/fflush.c: Add comments.
12811         * modules/fpurge-tests (Depends-on): Add fflush.
12812         * modules/freadable-tests (Depends-on): Likewise.
12813         * modules/fwritable-tests (Depends-on): Likewise.
12814
12815 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
12816
12817         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
12818         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
12819         Report by Bruno Haible <bruno@clisp.org>.
12820
12821 2007-04-26  Eric Blake  <ebb9@byu.net>
12822
12823         Fix fflush on mingw.
12824         * modules/fflush (Depends-on): Add freading.
12825         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
12826         but unread data.
12827
12828 2007-04-26  Eric Blake  <ebb9@byu.net>
12829         and Bruno Haible  <bruno@clisp.org>
12830
12831         Implement freading and fwriting.
12832         * lib/freading.c: New file.
12833         * lib/freading.h: Likewise.
12834         * m4/freading.m4: Likewise.
12835         * modules/freading: Likewise.
12836         * modules/freading-tests: Likewise.
12837         * tests/test-freading.c: Likewise.
12838         * lib/fwriting.c: New file.
12839         * lib/fwriting.h: Likewise.
12840         * m4/fwriting.m4: Likewise.
12841         * modules/fwriting: Likewise.
12842         * modules/fwriting-tests: Likewise.
12843         * tests/test-fwriting.c: Likewise.
12844         * MODULES.html.sh (File stream based Input/Output): Mention them.
12845
12846 2007-04-26  Bruno Haible  <bruno@clisp.org>
12847
12848         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
12849         'long' when we assume it.
12850         Suggested by Eric Blake.
12851
12852 2007-04-26  Bruno Haible  <bruno@clisp.org>
12853
12854         Ensure fseeko, ftello are declared on glibc systems.
12855         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
12856         * modules/fseeko (configure.ac-early): Likewise.
12857         * modules/ftello (configure.ac-early): Likewise.
12858         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
12859         AC_FUNC_FSEEKO for this.
12860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
12861         (gl_CHECK_FSEEKO): Remove macro.
12862
12863 2007-04-26  Bruno Haible  <bruno@clisp.org>
12864
12865         * tests/test-fflush.c (main): Also check the ftell result after
12866         fflush and fseek/fseeko.
12867         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
12868         file descriptor position cache in the stream.
12869         * lib/fseeko.c (rpl_fseeko): Likewise.
12870
12871 2007-04-26  Bruno Haible  <bruno@clisp.org>
12872
12873         * modules/fflush-tests (Depends-on): Add fseeko.
12874
12875 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
12876             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12877
12878         * lib/argz_.h: ensure error_t definition is obtained in same
12879         mechanism system argz.h would have.
12880         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
12881         argz facilities are known bad.  Err on the side of caution if
12882         cross-compiling.
12883
12884 2007-04-25  Eric Blake  <ebb9@byu.net>
12885
12886         * lib/fpurge.c (includes): Use stdlib.h for free.
12887         * tests/test-fflush.c (main): Also test fflush-fseeko.
12888
12889 2007-04-25  Bruno Haible  <bruno@clisp.org>
12890
12891         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
12892         * lib/fseeko.c: New file.
12893         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
12894         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
12895         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
12896         gl_FUNC_FSEEKO.
12897         (gl_FUNC_FSEEKO): Invoke it.
12898         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
12899         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
12900         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
12901
12902 2007-04-25  Bruno Haible  <bruno@clisp.org>
12903
12904         * modules/fflush (Depends-on): Add ftello.
12905
12906 2007-04-25  Bruno Haible  <bruno@clisp.org>
12907
12908         * modules/ftello-tests: New file.
12909         * tests/test-ftello.c: New file.
12910
12911         * modules/ftello: New file.
12912         * m4/ftello.m4: New file.
12913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
12914         HAVE_FTELLO.
12915         * lib/stdio_.h (ftello): New declaration.
12916         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
12917         HAVE_FTELLO.
12918
12919 2007-04-25  Bruno Haible  <bruno@clisp.org>
12920
12921         * modules/fseeko-tests: New file.
12922         * tests/test-fseeko.c: New file.
12923
12924         * modules/fseeko: New file.
12925         * m4/fseeko.m4: New file.
12926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
12927         HAVE_FSEEKO.
12928         * lib/stdio_.h (fseeko): New declaration.
12929         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
12930         HAVE_FSEEKO.
12931
12932 2007-04-25  Bruno Haible  <bruno@clisp.org>
12933
12934         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
12935
12936 2007-04-25  Bruno Haible  <bruno@clisp.org>
12937
12938         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
12939         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
12940         * tests/test-unistd.c: Likewise.
12941         * tests/test-fcntl.c: Likewise.
12942
12943 2007-04-23  Eric Blake  <ebb9@byu.net>
12944
12945         * lib/fflush.c: Fix missing include.
12946         Reported by Bruno Haible.
12947
12948 2007-04-23  Bruno Haible  <bruno@clisp.org>
12949
12950         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
12951         Reported by Eric Blake.
12952
12953 2007-04-23  Bruno Haible  <bruno@clisp.org>
12954
12955         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
12956
12957 2007-04-23  Bruno Haible  <bruno@clisp.org>
12958
12959         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
12960
12961 2007-04-23  Bruno Haible  <bruno@clisp.org>
12962
12963         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
12964         Needed on HP-UX 11.
12965
12966 2007-04-16  Eric Blake  <ebb9@byu.net>
12967
12968         Make fflush rely on fpurge.
12969         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
12970         open coding all variants.
12971         * modules/fflush (Depends-on): Add fpurge and unistd.
12972         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
12973         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
12974
12975         Fix --with-tests compilation on cygwin.
12976         * modules/argmatch-tests (Makefile.am): List gnulib library first
12977         in LDADD.
12978         * modules/argp-tests (Makefile.am): Likewise.
12979         * modules/array-list-tests (Makefile.am): Likewise.
12980         * modules/array-oset-tests (Makefile.am): Likewise.
12981         * modules/avltree-list-tests (Makefile.am): Likewise.
12982         * modules/avltree-oset-tests (Makefile.am): Likewise.
12983         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12984         * modules/carray-list-tests (Makefile.am): Likewise.
12985         * modules/dirname-tests (Makefile.am): Likewise.
12986         * modules/frexp-tests (Makefile.am): Likewise.
12987         * modules/isnanl-tests (Makefile.am): Likewise.
12988         * modules/linked-list-tests (Makefile.am): Likewise.
12989         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12990         * modules/lock-tests (Makefile.am): Likewise.
12991         * modules/rbtree-list-tests (Makefile.am): Likewise.
12992         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12993         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12994         * modules/tls-tests (Makefile.am): Likewise.
12995         * modules/tsearch-tests (Makefile.am): Likewise.
12996         * modules/xvasprintf-tests (Makefile.am): Likewise.
12997
12998         Fix fpurge for cygwin.
12999         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
13000         value.
13001         * modules/fpurge-tests (Depends-on): Clean up trash.
13002
13003 2007-04-16  Simon Josefsson  <simon@josefsson.org>
13004
13005         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
13006
13007         * m4/autobuild.m4: Re-indent.
13008
13009 2007-04-13  Bruno Haible  <bruno@clisp.org>
13010
13011         * modules/fpurge-tests: New file.
13012         * tests/test-fpurge.c: New file.
13013
13014         * modules/fpurge: New file.
13015         * lib/fpurge.h: New file.
13016         * lib/fpurge.c: New file.
13017         * m4/fpurge.m4: New file.
13018
13019 2007-04-13  Bruno Haible  <bruno@clisp.org>
13020
13021         * modules/fbufmode-tests: New file.
13022         * tests/test-fbufmode.c: New file.
13023
13024         * modules/fbufmode: New file.
13025         * lib/fbufmode.h: New file.
13026         * lib/fbufmode.c: New file.
13027         * m4/fbufmode.m4: New file.
13028
13029 2007-04-13  Bruno Haible  <bruno@clisp.org>
13030
13031         * modules/fwritable-tests: New file.
13032         * tests/test-fwritable.c: New file.
13033
13034         * modules/fwritable: New file.
13035         * lib/fwritable.h: New file.
13036         * lib/fwritable.c: New file.
13037         * m4/fwritable.m4: New file.
13038
13039 2007-04-13  Bruno Haible  <bruno@clisp.org>
13040
13041         * modules/freadable-tests: New file.
13042         * tests/test-freadable.c: New file.
13043
13044         * modules/freadable: New file.
13045         * lib/freadable.h: New file.
13046         * lib/freadable.c: New file.
13047         * m4/freadable.m4: New file.
13048
13049 2007-04-13  Bruno Haible  <bruno@clisp.org>
13050
13051         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
13052         MOSTLYCLEANFILES.
13053
13054 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
13057         gzip bootstrap.conf to avoid dragging in i18n machinery.
13058         (gnulib_tool_option): Use it.
13059
13060 2007-04-13  Bruno Haible  <bruno@clisp.org>
13061
13062         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
13063         %F directives.
13064         * tests/test-vasprintf-posix.c (test_function): Likewise.
13065         * tests/test-snprintf-posix.h (test_function): Likewise.
13066         * tests/test-sprintf-posix.h (test_function): Likewise.
13067         * tests/test-fprintf-posix.h (test_function): Likewise.
13068         * tests/test-printf-posix.h (test_function): Likewise.
13069         * tests/test-fprintf-posix.out: Likewise.
13070
13071 2007-04-13  Bruno Haible  <bruno@clisp.org>
13072
13073         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
13074         * modules/tls-tests (configure.ac): Likewise.
13075         Reported by Arto C. Nirkko <anirkko@insel.ch>.
13076
13077 2007-04-13  Bruno Haible  <bruno@clisp.org>
13078
13079         * lib/tls.c (glthread_tls_get): Fix return type.
13080         Patch by Arto C. Nirkko <anirkko@insel.ch>.
13081
13082 2007-04-12  Eric Blake  <ebb9@byu.net>
13083
13084         * modules/gettime (Depends-on): Remove gettime.
13085         Reported by Dmitry V. Levin.
13086
13087 2007-04-12  Bruno Haible  <bruno@clisp.org>
13088
13089         * modules/fflush (Include): Mention <stdio.h>.
13090         * modules/strtoimax (Include): Mention <inttypes.h>.
13091         * modules/strtoumax (Include): Likewise.
13092
13093 2007-04-12  Eric Blake  <ebb9@byu.net>
13094
13095         * .cvsignore: New file.
13096         * .gitignore: Likewise.
13097
13098 2007-04-12  Bruno Haible  <bruno@clisp.org>
13099
13100         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
13101         not before, since $(LDADD) often contains libgnu.a.
13102         * modules/striconv-tests (test_striconv_LDADD): Likewise.
13103         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
13104         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
13105         Needed on Cygwin.
13106
13107 2007-04-12  Eric Blake  <ebb9@byu.net>
13108
13109         Work around glibc's failure to flush stdin on fclose.
13110         * lib/closein.c (close_stdin): Flush stdin before closing.
13111
13112         Work around glibc's failure to reset seekable stdin on exit.
13113         * modules/closein: New module.
13114         * lib/closein.c: New file.
13115         * lib/closein.h: Likewise.
13116         * m4/closein.m4: Likewise.
13117         * MODULES.html.sh (File stream based Input/Output): Document it.
13118
13119 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13120
13121         * gnulib-tool: Rename generated 'autobuild' script to
13122         'do-autobuild' in --create-megatestdir output.
13123
13124         * doc/gnulib.texi (Build robot for gnulib): Fix.
13125
13126 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13127
13128         * modules/sysexits (Depends-on): Add absolute-header.
13129
13130 2007-04-12  Eric Blake  <ebb9@byu.net>
13131
13132         No need to preserve errno on success.
13133         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
13134         Reported by Bruno Haible.
13135
13136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13137
13138         * MODULES.html.sh (Support for maintaining and releasing
13139         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
13140
13141 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13142
13143         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
13144
13145 2007-04-12  Simon Josefsson  <simon@josefsson.org>
13146
13147         * modules/autobuild: New module.
13148
13149         * m4/autobuild.m4: New file.
13150
13151 2007-04-11  Bruno Haible  <bruno@clisp.org>
13152
13153         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
13154         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
13155         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
13156         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
13157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
13164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13166         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
13167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13169         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
13170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
13173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
13176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
13179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
13180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
13181         Reported by Eric Blake.
13182
13183 2007-04-11  Bruno Haible  <bruno@clisp.org>
13184
13185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
13186
13187 2007-04-10  Bruno Haible  <bruno@clisp.org>
13188
13189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
13190         for NaN and Infinity. Needed on FreeBSD 6.1.
13191         * tests/test-vasnprintf-posix.c (test_function): Undo last change
13192         regarding results for "%010a" of Infinity and NaN.
13193         * tests/test-vasprintf-posix.c (test_function): Likewise.
13194         * tests/test-snprintf-posix.h (test_function): Likewise.
13195         * tests/test-sprintf-posix.h (test_function): Likewise.
13196         * tests/test-fprintf-posix.h (test_function): Likewise.
13197         * tests/test-printf-posix.h (test_function): Likewise.
13198         * tests/test-fprintf-posix.out: Likewise.
13199
13200 2007-04-10  Bruno Haible  <bruno@clisp.org>
13201
13202         * modules/locale-tests: New file.
13203         * tests/test-locale.c: New file.
13204
13205         * modules/locale: New file.
13206         * lib/locale_.h: New file.
13207         * m4/locale_h.m4: New file.
13208
13209 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
13210             Bruno Haible  <bruno@clisp.org>
13211
13212         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
13213         be determined, test for availability of the copysignf, copysign,
13214         copysignl functions.
13215         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
13216         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
13217         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
13218
13219 2007-04-09  Eric Blake  <ebb9@byu.net>
13220
13221         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
13222         * modules/stdio (Makefile.am): Support fflush.
13223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13224         * modules/fflush: New file.
13225         * lib/fflush.c: Likewise.
13226         * m4/fflush.m4: Likewise.
13227         * modules/fflush-tests: New test.
13228         * tests/test-fflush.c: Likewise.
13229         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
13230
13231 2007-04-06  Bruno Haible  <bruno@clisp.org>
13232
13233         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
13234         (VASNPRINTF): Use signbit for faster determination whether to print a
13235         minus sign.
13236         * modules/vasnprintf (Files): Remove lib/float+.h.
13237         * modules/fprintf-posix (Depends-on): Add signbit.
13238         * modules/snprintf-posix (Depends-on): Likewise.
13239         * modules/sprintf-posix (Depends-on): Likewise.
13240         * modules/vasnprintf-posix (Depends-on): Likewise.
13241         * modules/vasprintf-posix (Depends-on): Likewise.
13242         * modules/vfprintf-posix (Depends-on): Likewise.
13243         * modules/vsnprintf-posix (Depends-on): Likewise.
13244         * modules/vsprintf-posix (Depends-on): Likewise.
13245
13246 2007-04-06  Bruno Haible  <bruno@clisp.org>
13247
13248         * tests/test-frexp.c (main): Test also the sign bit of zero results.
13249         * tests/test-frexpl.c (main): Likewise.
13250         * tests/test-ldexpl.c (main): Likewise.
13251         * modules/frexp-tests (Depends-on): Add signbit.
13252         * modules/frexpl-tests (Depdends-on): Likewise.
13253         * modules/ldexpl-tests (Depdends-on): Likewise.
13254
13255 2007-04-06  Bruno Haible  <bruno@clisp.org>
13256
13257         * modules/signbit-tests: New file.
13258         * tests/test-signbit.c: New file.
13259
13260         * modules/signbit: New file.
13261         * lib/signbitf.c: New file.
13262         * lib/signbitd.c: New file.
13263         * lib/signbitl.c: New file.
13264         * m4/signbit.m4: New file.
13265         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
13266         (signbit): New macro.
13267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
13268         REPLACE_SIGNBIT.
13269         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
13270         REPLACE_FREXPL into math.h.
13271
13272 2007-04-06  Bruno Haible  <bruno@clisp.org>
13273
13274         * modules/isnanf-nolibm-tests: New file.
13275         * tests/test-isnanf.c: New file.
13276
13277         * modules/isnanf-nolibm: New file.
13278         * lib/isnanf.h: New file.
13279         * lib/isnanf.c: New file.
13280         * lib/isnan.c: Consider the USE_FLOAT macro.
13281         * m4/isnanf.m4: New file.
13282
13283 2007-04-06  Bruno Haible  <bruno@clisp.org>
13284
13285         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
13286         (Link): New section.
13287
13288         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
13289
13290 2007-04-06  Bruno Haible  <bruno@clisp.org>
13291
13292         Assume the 'long double' type.
13293         * m4/longdouble.m4: Remove file.
13294         * config/srclist.txt: Don't mention longdouble.m4.
13295         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
13296         * lib/float+.h: Likewise.
13297         * lib/frexp.c: Likewise.
13298         * lib/printf-args.h: Likewise.
13299         * lib/printf-args.c: Likewise.
13300         * lib/printf-frexp.c: Likewise.
13301         * lib/printf-parse.c: Likewise.
13302         * lib/vasnprintf.c: Likewise.
13303         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
13304         * m4/intl.m4: Likewise.
13305         * m4/isnanl.m4: Likewise.
13306         * m4/printf.m4: Likewise.
13307         * m4/printf-frexpl.m4: Likewise.
13308         * m4/vasnprintf.m4: Likewise.
13309         * modules/allocsa (Files): Remove m4/longdouble.m4.
13310         * modules/gettext (Files): Likewise.
13311         * modules/relocatable-prog-wrapper (Files): Likewise.
13312         * modules/vasnprintf (Files): Likewise.
13313         * modules/isnanl (Files): Likewise.
13314         (Include): Simplify.
13315         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
13316         (Include): Simplify.
13317         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
13318         (Include): Simplify.
13319         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
13320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13321         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
13322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13323         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13325         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
13326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13327         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
13328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13329         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
13330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
13331         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
13332         * tests/test-isnanl.c: Likewise.
13333         * tests/test-snprintf-posix.h: Likewise.
13334         * tests/test-sprintf-posix.h: Likewise.
13335         * tests/test-vasnprintf-posix.c: Likewise.
13336         * tests/test-vasnprintf-posix2.c: Likewise.
13337         * tests/test-vasprintf-posix.c: Likewise.
13338
13339 2007-04-06  Bruno Haible  <bruno@clisp.org>
13340
13341         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
13342         * lib/math_.h [__DECC]: Include the overridden include file through
13343         #include_next, outside the double-inclusion guard.
13344         * lib/stdio_.h [__DECC]: Likewise.
13345         * lib/stdlib_.h [__DECC]: Likewise.
13346         * lib/string_.h [__DECC]: Likewise.
13347         * lib/time_.h [__DECC]: Likewise.
13348         * lib/wchar_.h [__DECC]: Likewise.
13349         * lib/wctype_.h [__DECC]: Likewise.
13350         * lib/inttypes_.h [__DECC]: Likewise.
13351         Reported by Albert Chin <china@thewrittenword.com> in
13352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
13353
13354 2007-04-04  Eric Blake  <ebb9@byu.net>
13355
13356         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
13357         1.5.x.
13358
13359 2007-04-04  Bruno Haible  <bruno@clisp.org>
13360
13361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
13362         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
13363
13364 2007-04-04  Bruno Haible  <bruno@clisp.org>
13365
13366         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
13367         results for "%010a" of Infinity and NaN.
13368         * tests/test-vasprintf-posix.c (test_function): Likewise.
13369         * tests/test-snprintf-posix.h (test_function): Likewise.
13370         * tests/test-sprintf-posix.h (test_function): Likewise.
13371         * tests/test-fprintf-posix.h (test_function): Remove these tests.
13372         * tests/test-printf-posix.h (test_function): Likewise.
13373         * tests/test-fprintf-posix.out: Update.
13374         Needed for FreeBSD 6.1.
13375
13376 2007-04-04  Bruno Haible  <bruno@clisp.org>
13377
13378         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
13379         directly used by the gnulib modules nor by gnulib-tool.
13380
13381 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13382
13383         * DEPENDENCIES: Give overall description of version dependency
13384         desirability.  Use more-typical names for apps.
13385         Add shell, coreutils, diffutils, grep, tar, gzip.
13386
13387 2007-04-04  Simon Josefsson  <simon@josefsson.org>
13388
13389         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
13390
13391 2007-04-04  Karl Berry  <karl@gnu.org>
13392
13393         * MODULES.html.sh (func_module): missing '.
13394
13395 2007-04-03  Bruno Haible  <bruno@clisp.org>
13396
13397         * modules/argmatch-tests (Makefile.am): New variable
13398         test_argmatch_LDADD.
13399         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
13400         * modules/array-list-tests (Makefile.am): New variable
13401         test_array_list_LDADD.
13402         * modules/array-oset-tests (Makefile.am): New variable
13403         test_array_oset_LDADD.
13404         * modules/avltree-list-tests (Makefile.am): New variable
13405         test_avltree_list_LDADD.
13406         * modules/avltree-oset-tests (Makefile.am): New variable
13407         test_avltree_oset_LDADD.
13408         * modules/avltreehash-list-tests (Makefile.am): New variable
13409         test_avltreehash_list_LDADD.
13410         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
13411         test_canonicalize_lgpl_LDADD.
13412         * modules/carray-list-tests (Makefile.am): New variable
13413         test_carray_list_LDADD.
13414         * modules/dirname-tests (Makefile.am): New variable
13415         test_dirname_LDADD.
13416         * modules/linked-list-tests (Makefile.am): New variable
13417         test_linked_list_LDADD.
13418         * modules/linkedhash-list-tests (Makefile.am): New variable
13419         test_linkedhash_list_LDADD.
13420         * modules/rbtree-list-tests (Makefile.am): New variable
13421         test_rbtree_list_LDADD.
13422         * modules/rbtree-oset-tests (Makefile.am): New variable
13423         test_rbtree_oset_LDADD.
13424         * modules/rbtreehash-list-tests (Makefile.am): New variable
13425         test_rbtreehash_list_LDADD.
13426         * modules/xvasprintf-tests (Makefile.am): New variable
13427         test_xvasprintf_LDADD.
13428         Reported by Eric Blake.
13429
13430 2007-04-03  Eric Blake  <ebb9@byu.net>
13431
13432         * DEPENDENCIES: Weaken m4 requirements.
13433
13434 2007-04-03  Bruno Haible  <bruno@clisp.org>
13435
13436         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
13437         * modules/isnanl-tests (configure.ac): Likewise.
13438
13439 2007-04-03  Ben Pfaff  <blp@gnu.org>
13440
13441         * modules/iconv_open: Add $(srcdir)/ to source directory
13442         references in Makefile fragments that call gperf, to fix VPATH
13443         builds.
13444
13445 2007-04-03  Bruno Haible  <bruno@clisp.org>
13446
13447         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
13448         * lib/ldexpl.c: Undo last change.
13449
13450 2007-04-03  Bruno Haible  <bruno@clisp.org>
13451
13452         * modules/printf-frexpl (Depends-on): Undo last change.
13453         (Files): Add m4/ldexpl.m4.
13454
13455 2007-04-03  Bruno Haible  <bruno@clisp.org>
13456
13457         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
13458         * modules/isnanl (Link): New section.
13459
13460         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
13461         * modules/frexp (Link): New section.
13462
13463         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
13464         * modules/frexpl (Link): New section.
13465
13466         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
13467         * modules/ldexpl (Link): New section.
13468
13469 2007-04-03  Bruno Haible  <bruno@clisp.org>
13470
13471         * modules/TEMPLATE-EXTENDED: New file.
13472         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
13473
13474 2007-04-03  Bruno Haible  <bruno@clisp.org>
13475
13476         * DEPENDENCIES: New file.
13477         Suggested by Simon Josefsson.
13478
13479 2007-04-03  Bruno Haible  <bruno@clisp.org>
13480
13481         * doc/gnulib.texi: Escape @.
13482
13483 2007-04-03  James Youngman  <jay@gnu.org>
13484         and Paul Eggert  <eggert@cs.ucla.edu>
13485
13486         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
13487         birthtime on all systems that have birthtime, not just those which
13488         use st_birthtimensec rather than st_birthtim.  Putting zero in
13489         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
13490         that the birth time is not available for files on an NFS mount.
13491
13492 2007-04-03  Simon Josefsson  <simon@josefsson.org>
13493
13494         * modules/memxor: Move back from crypto/, suggested by Bruno.
13495         * modules/crypto/hmac-sha1: Fix memxor dependency.
13496
13497         * modules/crypto/gc: Moved from ../.
13498
13499 2007-04-02  Eric Blake  <ebb9@byu.net>
13500
13501         * lib/ldexpl.c (includes): Avoid libm.
13502
13503         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
13504
13505 2007-04-02  Bruno Haible  <bruno@clisp.org>
13506
13507         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
13508         on IRIX.
13509
13510 2007-04-02  Bruno Haible  <bruno@clisp.org>
13511
13512         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
13513         x86 or x86_64 platforms running MacOS X.
13514         Reported by Ryan Schmidt <@ryandesign.com>.
13515
13516 2007-04-02  Bruno Haible  <bruno@clisp.org>
13517
13518         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
13519         i386.
13520
13521 2007-04-01  Simon Josefsson  <simon@josefsson.org>
13522
13523         * modules/crypto/arcfour: Moved from ../.
13524         * modules/crypto/arcfour-tests: Moved from ../.
13525         * modules/crypto/arctwo: Moved from ../.
13526         * modules/crypto/arctwo-tests: Moved from ../.
13527         * modules/crypto/des: Moved from ../.
13528         * modules/crypto/des-tests: Moved from ../.
13529         * modules/crypto/gc-arcfour: Moved from ../.
13530         * modules/crypto/gc-arcfour-tests: Moved from ../.
13531         * modules/crypto/gc-arctwo: Moved from ../.
13532         * modules/crypto/gc-arctwo-tests: Moved from ../.
13533         * modules/crypto/gc-des: Moved from ../.
13534         * modules/crypto/gc-des-tests: Moved from ../.
13535         * modules/crypto/gc-hmac-md5: Moved from ../.
13536         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
13537         * modules/crypto/gc-hmac-sha1: Moved from ../.
13538         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
13539         * modules/crypto/gc-md2: Moved from ../.
13540         * modules/crypto/gc-md2-tests: Moved from ../.
13541         * modules/crypto/gc-md4: Moved from ../.
13542         * modules/crypto/gc-md4-tests: Moved from ../.
13543         * modules/crypto/gc-md5: Moved from ../.
13544         * modules/crypto/gc-md5-tests: Moved from ../.
13545         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
13546         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
13547         * modules/crypto/gc-random: Moved from ../.
13548         * modules/crypto/gc-rijndael: Moved from ../.
13549         * modules/crypto/gc-rijndael-tests: Moved from ../.
13550         * modules/crypto/gc-sha1: Moved from ../.
13551         * modules/crypto/gc-sha1-tests: Moved from ../.
13552         * modules/crypto/gc-tests: Moved from ../.
13553         * modules/crypto/hmac-md5: Moved from ../.
13554         * modules/crypto/hmac-md5-tests: Moved from ../.
13555         * modules/crypto/hmac-sha1: Moved from ../.
13556         * modules/crypto/hmac-sha1-tests: Moved from ../.
13557         * modules/crypto/md2: Moved from ../.
13558         * modules/crypto/md2-tests: Moved from ../.
13559         * modules/crypto/md4: Moved from ../.
13560         * modules/crypto/md4-tests: Moved from ../.
13561         * modules/crypto/md5: Moved from ../.
13562         * modules/crypto/md5-tests: Moved from ../.
13563         * modules/crypto/memxor: Moved from ../.
13564         * modules/crypto/rijndael: Moved from ../.
13565         * modules/crypto/rijndael-tests: Moved from ../.
13566         * modules/crypto/sha1: Moved from ../.
13567
13568 2007-03-30  James Youngman  <jay@gnu.org>
13569
13570         * tests/test-stat-time.c (prepare_test): use chmod() rather than
13571         rename() to change the ctime of a file (because ctime is unaffected
13572         by rename on jfs2 on AIX 5.1).
13573         (main): Start by doing cleanup, in case a previous run failed leaving
13574         test files behind.
13575
13576 2007-03-31  Bruno Haible  <bruno@clisp.org>
13577
13578         Support old proprietary implementations of iconv.
13579         * modules/iconv_open: New file.
13580         * lib/iconv_.h: New file.
13581         * m4/iconv_h.m4: New file.
13582         * lib/iconv_open.c: New file.
13583         * lib/iconv_open-aix.gperf: New file.
13584         * lib/iconv_open-hpux.gperf: New file.
13585         * lib/iconv_open-irix.gperf: New file.
13586         * lib/iconv_open-osf.gperf: New file.
13587         * m4/iconv_open.m4: New file.
13588         * modules/linebreak (Depends-on): Add iconv_open.
13589         * modules/striconv (Depends-on): Likewise.
13590         * modules/striconveh (Depends-on): Likewise.
13591         * modules/unicodeio (Depends-on): Likewise.
13592         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
13593         (iconv_t)(-1).
13594         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
13595         conversion if cd is (iconv_t)(-1).
13596         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
13597         is not possible.
13598
13599 2007-03-31  Bruno Haible  <bruno@clisp.org>
13600
13601         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13602         work on Solaris either. Protect also second use of "autodetect_jp".
13603
13604 2007-03-31  Bruno Haible  <bruno@clisp.org>
13605
13606         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
13607         the function is not present.
13608
13609 2007-03-31  Bruno Haible  <bruno@clisp.org>
13610
13611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
13612         the function is not present.
13613
13614 2007-03-31  Bruno Haible  <bruno@clisp.org>
13615
13616         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
13617         a bug in HP-UX iconv_open().
13618
13619 2007-03-31  Bruno Haible  <bruno@clisp.org>
13620
13621         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
13622         (Mathematics <math.h>): New section, add fpieee.
13623         (Input/output <stdio.h>): Add fseterr.
13624         (Mathematics <math.h>): New section, add printf-frexp.
13625         (Container data structures): Add sublist.
13626         (Core language properties): Add fpucw, inline.
13627         (Functions for greatest-width integer types <inttypes.h>): Add
13628         imaxabs, imaxdiv, inttypes.
13629         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
13630         isnanl-nolibm, ldexp.
13631         (Mathematics <math.h>): New section, add printf-frexpl.
13632         (Support for systems lacking POSIX:2001): Add fprintf-posix,
13633         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
13634         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
13635         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
13636         (Unicode string functions): Add unistr/u*-mbtoucr.
13637         (Java): Add javacomp-script, javaexec-script.
13638         (C#): Add csharpcomp-script, csharpexec-script.
13639         (Support for building libraries and executables): Add havelib,
13640         relocatable-*.
13641         (Support for maintaining and releasing projects): Renamed from
13642         'Support for maintaining and release projects'. Add announce-gen.
13643
13644 2007-03-31  Bruno Haible  <bruno@clisp.org>
13645
13646         * README: Talk primarily about git.
13647         (git and CVS): Renamed from CVS.
13648         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
13649         gnulib is available through git.
13650         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
13651
13652 2007-03-30  Bruno Haible  <bruno@clisp.org>
13653
13654         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
13655         * lib/poll_.h: Likewise.
13656         * lib/stat_.h: Likewise.
13657         * lib/sys_time_.h: Likewise.
13658         * lib/sysexit_.h: Likewise.
13659         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
13660         * lib/stdbool_.h: Likewise.
13661         * lib/byteswap_.h: Add double-inclusion guard.
13662
13663 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
13664
13665         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
13666
13667 2007-03-30  Karl Berry  <karl@gnu.org>
13668
13669         * config/srclist-update: double space after USA in the license
13670         substitution, since that's how it's usually (?) written.
13671
13672 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
13675         reported by Bruno Haible.
13676
13677 2007-03-29  Bruno Haible  <bruno@clisp.org>
13678
13679         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
13680         a bug in AIX iconv().
13681
13682 2007-03-29  Bruno Haible  <bruno@clisp.org>
13683
13684         * modules/ldexpl-tests: New file.
13685         * tests/test-ldexpl.c: New file.
13686
13687 2007-03-29  Bruno Haible  <bruno@clisp.org>
13688
13689         * lib/ldexpl.c: Include fpucw.h.
13690         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
13691         multiplication.
13692         * modules/ldexpl (Depends-on): Add fpucw.
13693
13694 2007-03-29  Bruno Haible  <bruno@clisp.org>
13695
13696         * modules/ldexpl: New file.
13697         * m4/ldexpl.m4: New file.
13698         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
13699         set.
13700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
13701         REPLACE_LDEXPL.
13702         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
13703         REPLACE_LDEXPL.
13704         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
13705         gl_FUNC_LDEXPL_WORKS.
13706         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
13707         * modules/mathl (Files): Remove lib/ldexpl.c.
13708         (Depends-on): Add ldexpl.
13709
13710 2007-03-29  Bruno Haible  <bruno@clisp.org>
13711
13712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
13713
13714 2007-03-29  Bruno Haible  <bruno@clisp.org>
13715
13716         * tests/test-striconveh.c (main): Don't assume that a direct conversion
13717         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
13718         and possibly also HP-UX.
13719         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
13720         work on AIX, IRIX, HP-UX, OSF/1.
13721         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
13722         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
13723         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
13724         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
13725         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
13726         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
13727
13728 2007-03-29  Bruno Haible  <bruno@clisp.org>
13729
13730         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
13731
13732 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13733
13734         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
13735         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
13736
13737 2007-03-29  Eric Blake  <ebb9@byu.net>
13738
13739         * lib/acl-internal.h: Remove redundant include.
13740         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
13741         Cygwin when a file is locked.
13742
13743 2007-03-29  Bruno Haible  <bruno@clisp.org>
13744
13745         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
13746         file.
13747         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
13748
13749 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13750
13751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
13752         try to remove a parent directory if the child couldn't be removed
13753         (except for the first rmdir, which could fail because the child
13754         doesn't exist).  Problem reported by Jeff Blaine in
13755         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
13756
13757 2007-03-28  Bruno Haible  <bruno@clisp.org>
13758
13759         * lib/striconveh.c (utf8conv_carefully): New function.
13760         (mem_cd_iconveh_internal): Invoke it.
13761
13762 2007-03-28  Bruno Haible  <bruno@clisp.org>
13763
13764         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
13765         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
13766         input.
13767         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
13768         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
13769         unistr/u8-uctomb.
13770
13771 2007-03-28  Bruno Haible  <bruno@clisp.org>
13772
13773         * modules/unistr/u8-mbtoucr: New file.
13774         * lib/unistr/u8-mbtoucr.c: New file.
13775         * modules/unistr/u16-mbtoucr: New file.
13776         * lib/unistr/u16-mbtoucr.c: New file.
13777         * modules/unistr/u16-mbtoucr: New file.
13778         * lib/unistr/u16-mbtoucr.c: New file.
13779         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
13780
13781 2007-03-27  Simon Josefsson  <simon@josefsson.org>
13782             Bruno Haible  <bruno@clisp.org>
13783
13784         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
13785         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
13786         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
13787
13788         * m4/stdio_h.m4: Add stubs for vasprintf too.
13789
13790         * modules/stdio: Support vasprintf in sed command.
13791
13792         * modules/vasprintf: Depend on stdio for prototypes.  Remove
13793         vasprintf.h.  Add stdio module indicator.
13794
13795         * lib/stdio_.h: Declare asprintf and vasprintf, based on
13796         vasprintf.h.
13797
13798         * lib/vasprintf.h: File removed.
13799
13800         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
13801         * lib/vasprintf.c: Ditto.
13802         * lib/xvasprintf.c: Ditto.
13803         * tests/test-vasprintf-posix.c: Ditto.
13804         * tests/test-vasprintf.c: Ditto.
13805
13806 2007-03-27  Bruno Haible  <bruno@clisp.org>
13807
13808         Make vasnprintf multithread-safe.
13809         * lib/vasnprintf.c (decimal_point_char): New function.
13810         (VASNPRINTF): Use it.
13811         Suggested by Simon Josefsson.
13812
13813 2007-03-27  Eric Blake  <ebb9@byu.net>
13814
13815         Support sub-second birthtime on cygwin.
13816         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
13817         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
13818         (get_stat_birthtime): Also work with st_birthtim.
13819
13820 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         * lib/stat-time.h (USE_BIRTHTIME): Remove.
13823         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
13824         (get_stat_birthtime_ns): Do not try to use "spare" fields.
13825         (get_stat_birthtime_ns): Simplify compile-time tests.
13826         (get_stat_birthtime): Change the API to look like
13827         get_stat_mtime etc., except return a negative tv_nsec on error.
13828         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
13829         Don't check for "spare" fields.
13830         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
13831         or for struct stat.st_birthtime, as these tests aren't used.
13832         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
13833
13834 2007-03-27  Bruno Haible  <bruno@clisp.org>
13835
13836         * lib/stat-time.h: Include <sys/stat.h>.
13837
13838 2007-03-27  James Youngman  <jay@gnu.org>
13839
13840         * lib/stat-time.h (get_stat_birthtime): New function for
13841           retrieving st_birthtime as provided by UFS2 (hence *BSD).
13842         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
13843           and its variants.
13844         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
13845         * modules/stat-time-test: New file.
13846         * tests/test-stat-time.c: New test, devised by Bruno Haible.
13847
13848 2007-03-26  Bruno Haible  <bruno@clisp.org>
13849
13850         Better support of signalling NaNs.
13851         * lib/atanl.c: Include isnanl.h.
13852         (atanl): Perform test for NaN at the beginning of the function and
13853         through a call to isnanl.
13854         * lib/cosl.c: Include isnanl.h.
13855         (cosl): Perform test for NaN at the beginning of the function and
13856         through a call to isnanl.
13857         * lib/ldexpl.c: Include isnanl.h.
13858         (ldexpl): Perform test for NaN through a call to isnanl.
13859         * lib/logl.c: Include isnanl.h.
13860         (logl): Perform test for NaN at the beginning of the function and
13861         through a call to isnanl.
13862         * lib/sinl.c: Include isnanl.h.
13863         (sinl): Perform test for NaN at the beginning of the function and
13864         through a call to isnanl.
13865         * lib/sqrtl.c: Include isnanl.h.
13866         (sqrtl): Perform test for NaN at the beginning of the function and
13867         through a call to isnanl.
13868         * lib/tanl.c: Include isnanl.h.
13869         (tanl): Perform test for NaN at the beginning of the function and
13870         through a call to isnanl.
13871         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
13872         * modules/mathl (Depends-on): Add isnanl.
13873
13874 2007-03-26  Eric Blake  <ebb9@byu.net>
13875
13876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
13877         regression in logic sense of previous patch.
13878
13879 2007-03-26  Bruno Haible  <bruno@clisp.org>
13880
13881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
13882         unportable shell command "if ! ...".
13883         Reported by Ralf Wildenhues.
13884
13885 2007-03-25  Bruno Haible  <bruno@clisp.org>
13886
13887         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
13888         <sysexits.h> file, and only add EX_CONFIG.
13889         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
13890         absolute file name and whether it is sufficient. Substitute also
13891         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
13892         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
13893         ABSOLUTE_SYSEXITS_H into sysexits.h.
13894
13895 2007-03-25  Bruno Haible  <bruno@clisp.org>
13896
13897         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
13898         hints is NULL.
13899
13900 2007-03-25  Bruno Haible  <bruno@clisp.org>
13901
13902         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
13903         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
13904
13905 2007-03-25  Bruno Haible  <bruno@clisp.org>
13906
13907         * lib/vasnprintf.c: Include langinfo.h.
13908         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
13909         multithread-safe.
13910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
13911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
13912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
13918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13919         Reported by Simon Josefsson.
13920
13921 2007-03-25  Bruno Haible  <bruno@clisp.org>
13922
13923         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
13924         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
13925         * modules/vasnprintf (Depends-on): Add stdint.
13926
13927 2007-03-25  Bruno Haible  <bruno@clisp.org>
13928
13929         * modules/fpieee: New file.
13930         * m4/fpieee.m4: New file.
13931         * modules/isnan-nolibm (Depends-on): Add fpieee.
13932         * modules/isnanl-nolibm (Depends-on): Add fpieee.
13933         * modules/isnanl (Depends-on): Add fpieee.
13934
13935 2007-03-25  Bruno Haible  <bruno@clisp.org>
13936
13937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
13938
13939 2007-03-25  Bruno Haible  <bruno@clisp.org>
13940
13941         Avoid test failures on IRIX 6.5.
13942         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
13943         (main): Use it.
13944         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
13945         macros.
13946         (main): Use them.
13947
13948 2007-03-25  Bruno Haible  <bruno@clisp.org>
13949
13950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
13951         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
13952         exists but doesn't work.
13953         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
13954         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
13955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
13956         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
13957
13958 2007-03-25  Bruno Haible  <bruno@clisp.org>
13959
13960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
13961         returns inf. Needed on IRIX 6.5.
13962
13963 2007-03-25  Bruno Haible  <bruno@clisp.org>
13964
13965         * tests/test-frexpl.c: Include isnanl-nolibm.h.
13966         (main): Use isnanl instead of x != x idiom.
13967         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
13968
13969         * tests/test-frexp.c: Include isnan.h.
13970         (main): Use isnan instead of x != x idiom.
13971         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
13972
13973 2007-03-25  Bruno Haible  <bruno@clisp.org>
13974
13975         * tests/test-frexp.c (NaN): New function/macro.
13976         (main): Use it instead of 0.0 / 0.0.
13977         * tests/test-isnan.c (NaN): New function/macro.
13978         (main): Use it instead of 0.0 / 0.0.
13979         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
13980         (test_function): Use it instead of 0.0 / 0.0.
13981         * tests/test-vasprintf-posix.c (NaN): New function/macro.
13982         (test_function): Use it instead of 0.0 / 0.0.
13983         * tests/test-snprintf-posix.h (NaN): New function/macro.
13984         (test_function): Use it instead of 0.0 / 0.0.
13985         * tests/test-sprintf-posix.h (NaN): New function/macro.
13986         (test_function): Use it instead of 0.0 / 0.0.
13987         * tests/test-fprintf-posix.h (NaN): New function/macro.
13988         (test_function): Use it instead of 0.0 / 0.0.
13989         * tests/test-printf-posix.h (NaN): New function/macro.
13990         (test_function): Use it instead of 0.0 / 0.0.
13991
13992         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
13993
13994 2007-03-25  Bruno Haible  <bruno@clisp.org>
13995
13996         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
13997
13998 2007-03-25  Bruno Haible  <bruno@clisp.org>
13999
14000         * lib/regexec.c (merge_state_with_log): Make static.
14001
14002 2007-03-25  Bruno Haible  <bruno@clisp.org>
14003
14004         * lib/trigl.c (kernel_rem_pio2): Make static.
14005
14006 2007-03-25  Bruno Haible  <bruno@clisp.org>
14007
14008         * lib/sincosl.c (sincosl_table): Make static.
14009
14010 2007-03-25  Bruno Haible  <bruno@clisp.org>
14011
14012         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
14013         if the compiler does not support C99.
14014
14015 2007-03-25  Bruno Haible  <bruno@clisp.org>
14016
14017         * modules/time (Makefile.am): Ensure all rule action lines start with a
14018         tab.
14019
14020 2007-03-24  Bruno Haible  <bruno@clisp.org>
14021
14022         * modules/tsearch-tests: New file.
14023         * tests/test-tsearch.sh: New file.
14024         * tests/test-tsearch.c: New file, mostly copied from glibc.
14025
14026         * modules/search-tests: New file.
14027         * tests/test-search.c: New file.
14028
14029         * modules/search: New file.
14030         * lib/search_.h: New file, incorporating lib/tsearch.h.
14031         * m4/search_h.m4: New file.
14032         * lib/tsearch.h: Remove file.
14033         * lib/tsearch.c: Include search.h instead of tsearch.h.
14034         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
14035         HAVE_TSEARCH.
14036         * modules/tsearch (Files): Remove lib/tsearch.h.
14037         (Depends-on): Add search.
14038         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
14039         (Include): Change tsearch.h into search.h.
14040
14041 2007-03-24  Bruno Haible  <bruno@clisp.org>
14042
14043         * modules/fpucw: New file.
14044         * lib/fpucw.h: New file.
14045         * lib/frexp.c: Include fpucw.h.
14046         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14047         (FUNC): Use them.
14048         * lib/printf-frexp.c: Include fpucw.h.
14049         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
14050         (FUNC): Use them.
14051         * lib/vasnprintf.c: Include fpucw.h.
14052         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
14053         'long double' calculations.
14054         * tests/test-frexpl.c: Include fpucw.h.
14055         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14056         * tests/test-printf-frexpl.c: Include fpucw.h.
14057         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
14058         * modules/frexpl (Depends-on): Add fpucw.
14059         * modules/printf-frexpl (Depends-on): Likewise.
14060         * modules/fprintf-posix (Depends-on): Likewise.
14061         * modules/snprintf-posix (Depends-on): Likewise.
14062         * modules/sprintf-posix (Depends-on): Likewise.
14063         * modules/vasnprintf-posix (Depends-on): Likewise.
14064         * modules/vasprintf-posix (Depends-on): Likewise.
14065         * modules/vfprintf-posix (Depends-on): Likewise.
14066         * modules/vsnprintf-posix (Depends-on): Likewise.
14067         * modules/vsprintf-posix (Depends-on): Likewise.
14068         * modules/frexpl-tests (Depends-on): Likewise.
14069         * modules/printf-frexpl-tests (Depends-on): Likewise.
14070
14071 2007-03-24  Bruno Haible  <bruno@clisp.org>
14072
14073         * lib/float+.h: New file.
14074         * lib/isnan.c: Include float+.h.
14075         (SIZE): New macro.
14076         (FUNC): Compare only SIZE bytes of the value.
14077         * lib/vasnprintf.c: Include float+.h.
14078         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
14079         SIZEOF_LDBL or SIZEOF_DBL bytes.
14080         * modules/isnan-nolibm (Files): Add lib/float+.h.
14081         * modules/isnanl-nolibm (Files): Add lib/float+.h.
14082         * modules/isnanl (Files): Add lib/float+.h.
14083         * modules/vasnprintf (Files): Add lib/float+.h.
14084
14085 2007-03-24  Bruno Haible  <bruno@clisp.org>
14086
14087         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
14088         include isnanl-nolibm.h.
14089
14090 2007-03-24  Bruno Haible  <bruno@clisp.org>
14091
14092         * tests/test-read-file.c (main): Don't produce spurious output for
14093         expected situations. Make the test fail if it encountered unexpected
14094         results.
14095
14096 2007-03-24  Bruno Haible  <bruno@clisp.org>
14097
14098         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
14099         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
14100
14101 2007-03-24  Bruno Haible  <bruno@clisp.org>
14102
14103         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
14104
14105 2007-03-24  Bruno Haible  <bruno@clisp.org>
14106
14107         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
14108         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
14109
14110         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
14111         * modules/utf8-ucs4: Turn into a symbolic link to module
14112         unistr/u8-mbtouc.
14113
14114         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
14115         utf8-ucs4-unsafe.
14116         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
14117         unistr/u8-mbtouc-unsafe.
14118
14119         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
14120         * modules/utf16-ucs4: Turn into a symbolic link to module
14121         unistr/u16-mbtouc.
14122
14123         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
14124         utf16-ucs4-unsafe.
14125         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
14126         unistr/u16-mbtouc-unsafe.
14127
14128         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
14129         * modules/ucs4-utf8: Turn into a symbolic link to module
14130         unistr/u8-ubtomb.
14131
14132         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
14133         * modules/ucs4-utf16: Turn into a symbolic link to module
14134         unistr/u16-ubtomb.
14135
14136 2007-03-24  Bruno Haible  <bruno@clisp.org>
14137
14138         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
14139         Enable the function only if HAVE_INLINE.
14140         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
14141         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14142         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
14143         Enable the function only if HAVE_INLINE.
14144         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
14145         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
14146         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
14147         Enable the function only if HAVE_INLINE.
14148         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
14149         Enable the function only if HAVE_INLINE.
14150         * modules/utf8-ucs4: Update.
14151         * modules/utf8-ucs4-unsafe: Update.
14152         * modules/utf16-ucs4: Update.
14153         * modules/utf16-ucs4-unsafe: Update.
14154         * modules/ucs4-utf8: Update.
14155         * modules/ucs4-utf16: Update.
14156
14157 2007-03-24  Bruno Haible  <bruno@clisp.org>
14158
14159         * lib/utf8-ucs4.h: Remove file.
14160         * lib/utf8-ucs4-unsafe.h: Remove file.
14161         * lib/utf16-ucs4.h: Remove file.
14162         * lib/utf16-ucs4-unsafe.h: Remove file.
14163         * lib/ucs4-utf8.h: Remove file.
14164         * lib/ucs4-utf16.h: Remove file.
14165         * lib/unistr.h: Include their previous contents.
14166         * m4/utf-ucs4.m4: Remove file.
14167         * m4/ucs4-utf.m4: Remove file.
14168         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
14169         (Depends-on): Add unistr/base.
14170         (configure.ac): Remove gl_UTF_UCS4.
14171         (Makefile.am): Update.
14172         (Include): Change to unistr.h.
14173         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
14174         (Depends-on): Add unistr/base.
14175         (configure.ac): Remove gl_UTF_UCS4.
14176         (Makefile.am): Update.
14177         (Include): Change to unistr.h.
14178         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
14179         (Depends-on): Add unistr/base.
14180         (configure.ac): Remove gl_UTF_UCS4.
14181         (Makefile.am): Update.
14182         (Include): Change to unistr.h.
14183         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
14184         (Depends-on): Add unistr/base.
14185         (configure.ac): Remove gl_UTF_UCS4.
14186         (Makefile.am): Update.
14187         (Include): Change to unistr.h.
14188         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
14189         (Depends-on): Add unistr/base.
14190         (configure.ac): Remove gl_UCS4_UTF.
14191         (Makefile.am): Update.
14192         (Include): Change to unistr.h.
14193         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
14194         (Depends-on): Add unistr/base.
14195         (configure.ac): Remove gl_UCS4_UTF.
14196         (Makefile.am): Update.
14197         (Include): Change to unistr.h.
14198         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
14199         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
14200         utf8-ucs4-unsafe.h.
14201         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
14202         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
14203         utf16-ucs4-unsafe.h.
14204         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
14205         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
14206         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
14207         * lib/unistr/u8-strchr.c: Likewise.
14208         * lib/unistr/u8-strrchr.c: Likewise.
14209         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
14210         * lib/unistr/u16-strchr.c: Likewise.
14211         * lib/unistr/u16-strrchr.c: Likewise.
14212         * lib/striconveh.c: Update.
14213         * lib/linebreak.c: Update.
14214
14215 2007-03-24  Bruno Haible  <bruno@clisp.org>
14216
14217         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
14218         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
14219
14220 2007-03-22  Bruno Haible  <bruno@clisp.org>
14221
14222         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
14223
14224 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14225
14226         * MODULES.html.sh (File system functions): New module write-any-file.
14227         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
14228         * m4/write-any-file.m4: New files.
14229
14230 2007-03-23  Eric Blake  <ebb9@byu.net>
14231
14232         * gnulib-tool: Rearrange space-tab sequences, since some editors
14233         like to eat them.
14234
14235 2007-03-23  Eric Blake  <ebb9@byu.net>
14236
14237         * lib/version-etc.c (version_etc_va): Update license wording to
14238         be more concise.  Recommended by Richard Stallman.
14239
14240 2007-03-22  Bruno Haible  <bruno@clisp.org>
14241
14242         * lib/poll.c (MSG_PEEK): New fallback definition.
14243
14244 2007-03-22  Bruno Haible  <bruno@clisp.org>
14245
14246         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
14247         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
14248         (main): Update.
14249         Fixes a compilation error on BeOS.
14250
14251 2007-03-22  Bruno Haible  <bruno@clisp.org>
14252
14253         * modules/frexpl-tests: New file.
14254         * tests/test-frexpl.c: New file.
14255
14256         * modules/frexpl: New file.
14257         * m4/frexpl.m4: New file.
14258         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
14259         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
14260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
14261         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
14262         (Depends-on): Add frexpl. Remove isnanl-nolibm.
14263         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
14264
14265 2007-03-22  Bruno Haible  <bruno@clisp.org>
14266
14267         * lib/frexpl.c: Share code with lib/frexp.c.
14268         * modules/mathl (Files): Add lib/frexp.c.
14269         (Depends-on): Add isnanl-nolibm.
14270
14271 2007-03-22  Bruno Haible  <bruno@clisp.org>
14272
14273         * modules/printf-frexp (Files): Add m4/frexp.m4.
14274         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
14275         only if the found frexp function actually works.
14276
14277 2007-03-22  Bruno Haible  <bruno@clisp.org>
14278
14279         * lib/frexp.c: Remove older implementation that uses divisions.
14280
14281 2007-03-21  Bruno Haible  <bruno@clisp.org>
14282
14283         * modules/frexp-tests: New file.
14284         * tests/test-frexp.c: New file.
14285
14286         * modules/frexp: New file.
14287         * lib/frexp.c: New file.
14288         * m4/frexp.m4: New file.
14289         * lib/math_.h (frexp): New declaration.
14290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
14291         REPLACE_FREXP.
14292         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
14293
14294 2007-03-21  Bruno Haible  <bruno@clisp.org>
14295
14296         * modules/isnanl-tests: New file.
14297         * tests/test-isnanl.c: New file.
14298
14299         * modules/isnanl: New file.
14300         * lib/isnanl.h: New file.
14301         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
14302         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
14303         gl_FUNC_ISNANL_WORKS.
14304         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
14305         New macros.
14306
14307 2007-03-21  Bruno Haible  <bruno@clisp.org>
14308
14309         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
14310         lib/isnanl.h.
14311         (Include): Update.
14312         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
14313         * lib/vasnprintf.c: Update.
14314         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
14315         tests/test-isnanl.h, remove tests/test-isnanl.c.
14316         (Makefile.am): Update.
14317         * tests/test-isnanl-nolibm.c: New file.
14318         * tests/test-isnanl.h: New file.
14319         * tests/test-isnanl.c: Remove file.
14320
14321 2007-03-21  Jim Meyering  <jim@meyering.net>
14322
14323         When trying to open ".", treat ESTALE like EACCES.
14324         * lib/savewd.c (savewd_save): Resort to forking not just upon
14325         failure with EACCES, but also when errno is ESTALE.
14326
14327 2007-03-20  Bruno Haible  <bruno@clisp.org>
14328
14329         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
14330         Needed on AIX 5.1. Reported by Matthew Woehlke.
14331
14332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14333
14334         Suggestions by Bruno Haible:
14335         * lib/acl-internal.h: Include "gettext.h" rather than rolling
14336         our own.
14337         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
14338         * modules/acl (Depends-on): Add gettext.
14339
14340 2007-03-19  Bruno Haible  <bruno@clisp.org>
14341
14342         * modules/iconvme: Remove file.
14343         * lib/iconvme.h: Remove file.
14344         * lib/iconvme.c: Remove file.
14345         * m4/iconvme.m4: Remove file.
14346
14347 2007-03-19  Bruno Haible  <bruno@clisp.org>
14348
14349         * doc/relocatable-maint.texi: Break long shell script line.
14350         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14351
14352 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
14355         handle file_has_acl.
14356         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
14357         * lib/acl.c: Move header inclusions and related macro defns into
14358         lib/acl-internal.h.
14359         (S_ISLNK): Remove defn, since that's now done for us.
14360         (file_has_acl): Move to lib/file-has-acl.c.
14361         Call acl_trivial if available.  This is the crucial part of the fix.
14362         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
14363         shared within the library.  Rewrite a bit, partly to make it compatible
14364         with the GNU coding style.
14365         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
14366         Remove unnecessary double-quotes.
14367         Don't test for acl_to_text; the build will catch that.
14368         Replace acl_entries if it doesn't exist and it is needed.
14369         Check for -lsec and acl_trivial (as used on Solaris 10).
14370         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
14371         lib/file-has-acl.c.
14372         (Depends-on): Add sys_stat, for S_ISLNK.
14373
14374 2007-03-19  Ben Pfaff  <blp@gnu.org>
14375
14376         * doc/gnulib.texi: Fix typos.
14377         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
14378
14379 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14380
14381         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
14382         If size is zero here, buf must be zero.
14383
14384 2007-03-19  Simon Josefsson  <simon@josefsson.org>
14385
14386         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
14387         <bruno@clisp.org>.
14388
14389 2007-03-18  Bruno Haible  <bruno@clisp.org>
14390
14391         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
14392         Suggested by Eric Blake.
14393
14394 2007-03-18  Ben Pfaff  <blp@gnu.org>
14395
14396         * doc/relocatable.texi: Recommend using as prefix a directory
14397         that does not exist and will never be created.  Based on
14398         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
14399         and others.
14400
14401 2007-03-17  Bruno Haible  <bruno@clisp.org>
14402
14403         * lib/fchownat.c: Include lchown.h.
14404
14405 2007-03-17  Bruno Haible  <bruno@clisp.org>
14406
14407         Fix endless loop when the given allocated size was > INT_MAX.
14408         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
14409         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
14410         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
14411         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
14412         * lib/sprintf.c (sprintf): Likewise.
14413
14414 2007-03-17  Bruno Haible  <bruno@clisp.org>
14415
14416         * tests/test-argp-2.sh (func_compare): Output a context diff.
14417
14418 2007-03-17  Bruno Haible  <bruno@clisp.org>
14419
14420         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
14421         locale's decimal-point character.
14422
14423 2007-03-17  Bruno Haible  <bruno@clisp.org>
14424
14425         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
14426         before comparing it. Needed because on some platforms (e.g. x86) a
14427         'long double' occupies less bytes than sizeof (long double).
14428
14429 2007-03-17  Bruno Haible  <bruno@clisp.org>
14430
14431         * tests/test-crc.c (main): Make printf statements 64-bit clean.
14432         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
14433         * tests/test-getaddrinfo.c (simple): Likewise.
14434         * tests/test-read-file.c (main): Likewise.
14435
14436 2007-03-17  Bruno Haible  <bruno@clisp.org>
14437
14438         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
14439
14440 2007-03-17  Bruno Haible  <bruno@clisp.org>
14441
14442         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
14443         unused variable.
14444
14445 2007-03-17  Bruno Haible  <bruno@clisp.org>
14446
14447         * tests/test-c-strcasecmp.c: Include c-strcase.h.
14448         * tests/test-c-strncasecmp.c: Likewise.
14449
14450 2007-03-17  Bruno Haible  <bruno@clisp.org>
14451
14452         * modules/stdlib (Depends-on): Add unistd.
14453         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
14454         Needed for MacOS X 10.3.
14455
14456 2007-03-17  Bruno Haible  <bruno@clisp.org>
14457
14458         * lib/unistr/u-strdup.h: Include <stdlib.h>.
14459
14460 2007-03-17  Bruno Haible  <bruno@clisp.org>
14461
14462         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
14463
14464 2007-03-17  Bruno Haible  <bruno@clisp.org>
14465
14466         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
14467         to reflect files copied from gnulib (with or without modifications).
14468         Suggested by Jim Meyering.
14469
14470 2007-03-17  Eric Blake  <ebb9@byu.net>
14471
14472         * NEWS: Document stdlib change from 2007-02-18.
14473
14474 2007-03-17  Jim Meyering  <jim@meyering.net>
14475
14476         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
14477         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
14478         someone uses a name containing shell meta-characters.
14479         Reported by Alfred M. Szmidt.
14480
14481         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
14482
14483 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14484
14485         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
14486         and copy gettext configuration files only if configure.ac contains
14487         a use of AM_GNU_GETTEXT_VERSION.
14488
14489 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
14490
14491         * build-aux/bootstrap (gnulib_name): New variable.
14492         (gnulib_tool_options): Use it.
14493
14494 2007-03-13  Simon Josefsson  <simon@josefsson.org>
14495
14496         * tests/test-des.c: Use new namespace.
14497
14498 2007-03-15  Bruno Haible  <bruno@clisp.org>
14499
14500         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
14501         Reported by James Youngman <jay@gnu.org>.
14502
14503 2007-03-15  Bruno Haible  <bruno@clisp.org>
14504
14505         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
14506         declared prototype. Needed with cc on OSF/1 5.1.
14507
14508 2007-03-15  Bruno Haible  <bruno@clisp.org>
14509
14510         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
14511         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
14512         (struct gl_list_implementation): Add dispose_fn argument to the
14513         'create_empty', 'create' methods.
14514         (struct gl_list_impl_base): Add field 'dispose_fn'.
14515         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
14516         argument.
14517         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
14518         dispose_fn argument.
14519         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
14520         dispose_fn on the dropped values.
14521         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
14522         dispose_fn argument.
14523         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
14524         dropped values.
14525         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
14526         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14527         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
14528         (gl_tree_remove_node): Call dispose_fn on the dropped value.
14529         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
14530         argument.
14531         (gl_tree_list_free): Call dispose_fn on the dropped values.
14532         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
14533         the dropped values.
14534         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
14535         Add dispose_fn argument.
14536         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
14537         Call dispose_fn on the dropped values.
14538         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
14539         Add dispose_fn argument.
14540         (gl_sublist_create): Initialize the 'dispose_fn' field.
14541         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
14542         * tests/test-array_list.c (main): Update.
14543         * tests/test-carray_list.c (main): Update.
14544         * tests/test-avltree_list.c (main): Update.
14545         * tests/test-rbtree_list.c (main): Update.
14546         * tests/test-avltreehash_list.c (main): Update.
14547         * tests/test-rbtreehash_list.c (main): Update.
14548         * tests/test-linked_list.c (main): Update.
14549         * tests/test-linkedhash_list.c (main): Update.
14550         * tests/test-array_oset.c (main): Update.
14551
14552 2007-03-15  Bruno Haible  <bruno@clisp.org>
14553
14554         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
14555         (gl_oset_create_empty): Add dispose_fn argument.
14556         (struct gl_oset_implementation): Add dispose_fn argument to
14557         'create_empty' method.
14558         (struct gl_oset_impl_base): Add dispose_fn field.
14559         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
14560         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
14561         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
14562         values.
14563         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
14564         (gl_tree_oset_free): Call dispose_fn on the dropped values.
14565         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14566         dropped value.
14567         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
14568         dropped value.
14569         * tests/test-array_oset.c (main): Update.
14570         * tests/test-avltree_oset.c (main): Update.
14571         * tests/test-rbtree_oset.c (main): Update.
14572         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
14573
14574 2007-03-13  Bruno Haible  <bruno@clisp.org>
14575
14576         * tests/test-stdbool.c (i): Update after last patch.
14577
14578 2007-03-12  Bruno Haible  <bruno@clisp.org>
14579
14580         * lib/quotearg.c: Include <wctype.h> early, before the definition of
14581         the iswprint macro. Needed on Solaris 2.5.1.
14582
14583 2007-03-12  Bruno Haible  <bruno@clisp.org>
14584
14585         * tests/test-printf-frexp.c (main): Declare x as volatile.
14586
14587 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14588
14589         * doc/gnulib.texi (Build robot for gnulib): New section.
14590
14591 2007-03-12  Jim Meyering  <jim@meyering.net>
14592
14593         * build-aux/bootstrap: New file.
14594         * build-aux/bootstrap.conf: New file, from coreutils.
14595
14596 2007-03-11  Bruno Haible  <bruno@clisp.org>
14597
14598         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
14599
14600 2007-03-12  Simon Josefsson  <simon@josefsson.org>
14601
14602         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
14603         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
14604         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
14605
14606 2007-03-11  Bruno Haible  <bruno@clisp.org>
14607
14608         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
14609         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
14610
14611 2007-03-11  Bruno Haible  <bruno@clisp.org>
14612
14613         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
14614         formula. Needed for SunPRO C 5.0.
14615
14616 2007-03-11  Bruno Haible  <bruno@clisp.org>
14617
14618         * modules/long-options (Depends-on): Add getopt.
14619
14620 2007-03-11  Bruno Haible  <bruno@clisp.org>
14621
14622         * modules/modechange (Depends-on): Add stdbool.
14623
14624 2007-03-11  Bruno Haible  <bruno@clisp.org>
14625
14626         * modules/i-ring (Depends-on): Add stdbool.
14627
14628 2007-03-11  Bruno Haible  <bruno@clisp.org>
14629
14630         * modules/gc-des (Depends-on): Add stdbool.
14631
14632 2007-03-11  Bruno Haible  <bruno@clisp.org>
14633
14634         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
14635
14636 2007-03-11  Bruno Haible  <bruno@clisp.org>
14637
14638         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
14639
14640 2007-03-11  Bruno Haible  <bruno@clisp.org>
14641
14642         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
14643
14644 2007-03-11  Bruno Haible  <bruno@clisp.org>
14645
14646         * lib/vasnprintf.c (sprintf): Undefine.
14647
14648 2007-03-11  Bruno Haible  <bruno@clisp.org>
14649
14650         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
14651         initializers in SunPRO C and Compaq C compilers.
14652
14653 2007-03-11  Bruno Haible  <bruno@clisp.org>
14654
14655         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
14656         decrementing code ANSI C compliant.
14657
14658 2007-03-11  Bruno Haible  <bruno@clisp.org>
14659
14660         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
14661         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
14662
14663 2007-03-11  Bruno Haible  <bruno@clisp.org>
14664
14665         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
14666         <stdbool.h> substitute doesn't pass.
14667
14668 2007-03-11  Bruno Haible  <bruno@clisp.org>
14669
14670         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
14671
14672 2007-03-11  Bruno Haible  <bruno@clisp.org>
14673
14674         * gnulib-tool (func_create_megatestdir): Create also an autobuild
14675         script, for submission to autobuild.josefsson.org.
14676
14677 2007-03-10  Bruno Haible  <bruno@clisp.org>
14678
14679         * modules/canonicalize-lgpl-tests: New file.
14680         * tests/test-canonicalize-lgpl.sh: New file.
14681         * tests/test-canonicalize-lgpl.c: New file.
14682
14683         * modules/c-strcase-tests: New file.
14684         * tests/test-c-strcase.sh: New file.
14685         * tests/test-c-strcasecmp.c: New file.
14686         * tests/test-c-strncasecmp.c: New file.
14687
14688         * modules/atexit-tests: New file.
14689         * tests/test-atexit.sh: New file.
14690         * tests/test-atexit.c: New file.
14691
14692 2007-03-10  Bruno Haible  <bruno@clisp.org>
14693
14694         * tests/test-binary-io.sh: Use temporary filenames that are not so
14695         likely to clash with those of other tests (in a parallel make).
14696         * tests/test-binary-io.c: Likewise.
14697
14698 2007-03-10  Bruno Haible  <bruno@clisp.org>
14699
14700         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
14701         fallback; use #error instead.
14702         Suggested by Simon Josefsson.
14703
14704 2007-03-10  Bruno Haible  <bruno@clisp.org>
14705
14706         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
14707         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
14708         first and the last.
14709
14710 2007-03-10  Bruno Haible  <bruno@clisp.org>
14711
14712         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
14713
14714 2007-03-10  Bruno Haible  <bruno@clisp.org>
14715
14716         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
14717         "make distcheck".
14718         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
14719         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
14720         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
14721
14722 2007-03-10  Bruno Haible  <bruno@clisp.org>
14723
14724         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
14725         variable.
14726         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
14727         variable.
14728
14729 2007-03-09  Eric Blake  <ebb9@byu.net>
14730         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
14731
14732         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
14733         types are not being provided by gnulib.
14734         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
14735         types are supported.
14736
14737 2007-03-10  Bruno Haible  <bruno@clisp.org>
14738
14739         * lib/stdio_.h (__attribute__): New macro.
14740         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
14741         vsprintf): Specify __attribute__ __format__ for GCC.
14742         Suggested by Eric Blake.
14743
14744 2007-03-09  Bruno Haible  <bruno@clisp.org>
14745
14746         * modules/printf-posix-tests: New file.
14747         * tests/test-printf-posix.sh: New file.
14748         * tests/test-printf-posix.c: New file.
14749
14750         * modules/printf-posix: New file.
14751         * lib/printf.c: New file.
14752         * m4/printf-posix-rpl.m4: New file.
14753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
14754         REPLACE_PRINTF.
14755         * lib/stdio_.h (printf): New declaration.
14756         (format, __format__, ____printf____, ____scanf____, ____strftime____,
14757         ____strfmon____): New macros.
14758         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
14759         REPLACE_PRINTF.
14760
14761 2007-03-09  Bruno Haible  <bruno@clisp.org>
14762
14763         * tests/test-vasnprintf-posix2.sh: New file.
14764         * tests/test-vasnprintf-posix2.c: New file.
14765         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
14766         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14767         (Makefile.am): Activate test-vasnprintf-posix2.sh.
14768
14769         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
14770         a locale dependent decimal point, rather than always '.'.
14771
14772 2007-03-09  Eric Blake  <ebb9@byu.net>
14773
14774         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
14775         spite of platforms like Tandem/NSK that define it to -1.
14776
14777 2007-03-08  Bruno Haible  <bruno@clisp.org>
14778
14779         * modules/vprintf-posix-tests: New file.
14780         * tests/test-vprintf-posix.sh: New file.
14781         * tests/test-vprintf-posix.c: New file.
14782         * tests/test-printf-posix.h: New file.
14783
14784         * modules/vprintf-posix: New file.
14785         * lib/vprintf.c: New file.
14786         * m4/vprintf-posix.m4: New file.
14787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
14788         REPLACE_VPRINTF.
14789         * lib/stdio_.h (vprintf): New declaration.
14790         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
14791         REPLACE_VPRINTF.
14792
14793 2007-03-08  Bruno Haible  <bruno@clisp.org>
14794
14795         * modules/fprintf-posix-tests: New file.
14796         * tests/test-fprintf-posix.sh: New file.
14797         * tests/test-fprintf-posix.c: New file.
14798
14799         * modules/fprintf-posix: New file.
14800         * lib/fprintf.c: New file.
14801         * m4/fprintf-posix.m4: New file.
14802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
14803         REPLACE_FPRINTF.
14804         * lib/stdio_.h (fprintf): New declaration.
14805         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
14806         REPLACE_FPRINTF.
14807
14808 2007-03-08  Bruno Haible  <bruno@clisp.org>
14809
14810         * modules/vfprintf-posix-tests: New file.
14811         * tests/test-vfprintf-posix.sh: New file.
14812         * tests/test-vfprintf-posix.c: New file.
14813         * tests/test-fprintf-posix.h: New file.
14814         * tests/test-fprintf-posix.out: New file.
14815
14816         * modules/vfprintf-posix: New file.
14817         * lib/vfprintf.c: New file.
14818         * m4/vfprintf-posix.m4: New file.
14819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
14820         REPLACE_VFPRINTF.
14821         * lib/stdio_.h (vfprintf): New declaration.
14822         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
14823         REPLACE_VFPRINTF.
14824
14825 2007-03-08  Bruno Haible  <bruno@clisp.org>
14826
14827         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
14828
14829 2007-03-08  Bruno Haible  <bruno@clisp.org>
14830
14831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
14832         instead of 'expr' invocations.
14833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14838         Suggested by Paul Eggert.
14839
14840 2007-03-08  Bruno Haible  <bruno@clisp.org>
14841
14842         * modules/fseterr-tests: New file.
14843         * tests/test-fseterr.c: New file.
14844
14845         * modules/fseterr: New file.
14846         * lib/fseterr.h: New file.
14847         * lib/fseterr.c: New file.
14848
14849 2007-03-08  Bruno Haible  <bruno@clisp.org>
14850
14851         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
14852         * lib/getopt_.h: Likewise.
14853         * lib/mbswidth.h: Likewise.
14854         * lib/setenv.h: Likewise.
14855         * lib/vasnprintf.h: Likewise.
14856         * lib/vasprintf.h: Likewise.
14857         * lib/verror.h: Likewise.
14858         * lib/xsetenv.h: Likewise.
14859         * lib/xvasprintf.h: Likewise.
14860
14861 2007-03-08  Jim Meyering  <jim@meyering.net>
14862
14863         * users.txt: Add parted.
14864
14865         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
14866
14867 2007-03-07  Bruno Haible  <bruno@clisp.org>
14868
14869         * m4/printf.m4: Make the shell script snippets copy&pastable.
14870
14871 2007-03-02  Bruno Haible  <bruno@clisp.org>
14872
14873         * lib/netinet_in_.h: New file.
14874         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
14875         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
14876         * modules/netinet_in (Files): Add lib/netinet_in_.h.
14877         (Depends-on): Add absolute-header.
14878         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
14879         into netinet/in.h.
14880
14881 2007-03-03  Bruno Haible  <bruno@clisp.org>
14882
14883         * lib/sys_select_.h: New file.
14884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
14885         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
14886         * modules/sys_select (Files): Add lib/sys_select_.h.
14887         (Depends-on): Add absolute-header.
14888         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
14889         into sys/select.h.
14890
14891 2007-03-02  Bruno Haible  <bruno@clisp.org>
14892
14893         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
14894         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
14895         values.
14896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
14897         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
14898         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
14899         * modules/sys_socket (Depends-on): Add absolute-header.
14900         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
14901         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
14902         (Include): Remove requirement of inclusion of <sys/types.h>.
14903
14904 2007-03-02  Bruno Haible  <bruno@clisp.org>
14905
14906         * lib/byteswap_.h (bswap_32): Fix formula.
14907
14908 2007-03-06  Bruno Haible  <bruno@clisp.org>
14909
14910         * modules/sprintf-posix-tests: New file.
14911         * tests/test-sprintf-posix.c: New file.
14912
14913         * modules/sprintf-posix: New file.
14914         * lib/sprintf.c: New file.
14915         * m4/sprintf-posix.m4: New file.
14916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
14917         REPLACE_SPRINTF.
14918         * lib/stdio_.h (sprintf): New declaration.
14919         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
14920         REPLACE_SPRINTF.
14921
14922 2007-03-06  Bruno Haible  <bruno@clisp.org>
14923
14924         * modules/vsprintf-posix-tests: New file.
14925         * tests/test-vsprintf-posix.c: New file.
14926         * tests/test-sprintf-posix.h: New file.
14927
14928         * modules/vsprintf-posix: New file.
14929         * lib/vsprintf.c: New file.
14930         * m4/vsprintf-posix.m4: New file.
14931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
14932         REPLACE_VSPRINTF.
14933         * lib/stdio_.h (vsprintf): New declaration.
14934         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
14935         REPLACE_VSPRINTF.
14936
14937 2007-03-06  Bruno Haible  <bruno@clisp.org>
14938
14939         * modules/vsnprintf (Depend-on): Remove minmax.
14940
14941 2007-03-06  Bruno Haible  <bruno@clisp.org>
14942
14943         * modules/snprintf-posix-tests: New file.
14944         * tests/test-snprintf-posix.c: New file.
14945
14946         * modules/snprintf-posix: New file.
14947         * m4/snprintf-posix.m4: New file.
14948         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
14949         gl_FUNC_SNPRINTF.
14950         (gl_FUNC_SNPRINTF): Invoke it.
14951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
14952         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
14953         is set.
14954         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
14955
14956 2007-03-06  Bruno Haible  <bruno@clisp.org>
14957
14958         * modules/vsnprintf-posix-tests: New file.
14959         * tests/test-vsnprintf-posix.c: New file.
14960         * tests/test-snprintf-posix.h: New file.
14961
14962         * modules/vsnprintf-posix: New file.
14963         * m4/vsnprintf-posix.m4: New file.
14964         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
14965         gl_FUNC_VSNPRINTF.
14966         (gl_FUNC_VSNPRINTF): Invoke it.
14967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
14968         * lib/stdio_.h (vsnprintf): Define as a replacement if
14969         REPLACE_VSNPRINTF is set.
14970         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
14971
14972 2007-03-06  Bruno Haible  <bruno@clisp.org>
14973
14974         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
14975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
14976
14977 2007-03-06  Bruno Haible  <bruno@clisp.org>
14978
14979         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
14980         (asinl): Declare also if HAVE_DECL_ASINL is set.
14981         (atanl): Declare also if HAVE_DECL_ATANL is set.
14982         (ceill): Declare also if HAVE_DECL_CEILL is set.
14983         (cosl): Declare also if HAVE_DECL_COSL is set.
14984         (expl): Declare also if HAVE_DECL_EXPL is set.
14985         (floorl): Declare also if HAVE_DECL_FLOORL is set.
14986         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
14987         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
14988         (logl): Declare also if HAVE_DECL_LOGL is set.
14989         (sinl): Declare also if HAVE_DECL_SINL is set.
14990         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
14991         (tanl): Declare also if HAVE_DECL_TANL is set.
14992         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
14993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
14994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
14995         declaration of frexpl, ldexpl.
14996         * modules/printf-frexpl (Depends-on): Add math.
14997         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
14998
14999 2007-03-05  Bruno Haible  <bruno@clisp.org>
15000
15001         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
15002         frexpl and ldexpl are declared.
15003         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
15004
15005 2007-03-05  Bruno Haible  <bruno@clisp.org>
15006
15007         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
15008         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
15009
15010 2007-03-05  Bruno Haible  <bruno@clisp.org>
15011
15012         * lib/stdio_.h: Include <stddef.h>.
15013
15014 2007-03-05  Bruno Haible  <bruno@clisp.org>
15015
15016         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
15017
15018 2007-03-05  Bruno Haible  <bruno@clisp.org>
15019
15020         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
15021         NetBSD 4, from Ralf Wildenhues.
15022
15023 2007-03-04  Bruno Haible  <bruno@clisp.org>
15024
15025         * lib/vasprintf.h: Update #if logic for the case when the functions
15026         exist but are overridden.
15027
15028 2007-03-04  Bruno Haible  <bruno@clisp.org>
15029
15030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
15031         implementations: glibc-2.4 and MacOS X 10.3.
15032         * tests/test-vasnprintf-posix.c (test_function): Test also the case
15033         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
15034         * tests/test-vasprintf-posix.c (test_function): Likewise.
15035
15036 2007-03-04  Bruno Haible  <bruno@clisp.org>
15037
15038         * modules/vasprintf-posix-tests: New file.
15039         * tests/test-vasprintf-posix.c: New file.
15040
15041         * modules/vasprintf-posix: New file.
15042         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
15043         defined.
15044         * m4/vasprintf-posix.m4: New file.
15045         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
15046         gl_FUNC_VASPRINTF.
15047         (gl_FUNC_VASPRINTF): Invoke it.
15048         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
15049         here.
15050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
15051
15052 2007-03-04  Bruno Haible  <bruno@clisp.org>
15053
15054         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
15055         REPLACE_GETTIMEOFDAY.
15056         * modules/sys_time (Makefile.am): Likewise.
15057         * m4/sys_time_h.m4: Likewise.
15058         * m4/gettimeofday.m4: Likewise.
15059
15060 2007-03-04  Bruno Haible  <bruno@clisp.org>
15061
15062         * modules/vasnprintf-posix-tests: New file.
15063         * tests/test-vasnprintf-posix.c: New file.
15064
15065         * modules/vasnprintf-posix: New file.
15066         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
15067         printf-frexpl.h.
15068         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
15069         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
15070         REPLACE_VASNPRINTF is defined.
15071         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
15072         gl_FUNC_VASNPRINTF.
15073         (gl_FUNC_VASNPRINTF): Invoke it.
15074         * m4/vasnprintf-posix.m4: New file.
15075         * m4/printf.m4: New file.
15076
15077 2007-03-04  Bruno Haible  <bruno@clisp.org>
15078
15079         Compile progreloc.c only if --enable-relocatable is specified.
15080         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
15081         if --enable-relocatable was specified.
15082         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
15083         lib_SOURCES.
15084
15085 2007-03-04  Jim Meyering  <jim@meyering.net>
15086
15087         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
15088         Use it consistently, rather than enumerating errno constants.
15089
15090 2007-03-04  Bruno Haible  <bruno@clisp.org>
15091
15092         * modules/xvasprintf-tests: New file.
15093         * tests/test-xvasprintf.c: New file.
15094
15095         * modules/vasprintf-tests: New file.
15096         * tests/test-vasprintf.c: New file.
15097
15098         * modules/vasnprintf-tests: New file.
15099         * tests/test-vasnprintf.c: New file.
15100
15101         * modules/vsnprintf-tests: New file.
15102         * tests/test-vsnprintf.c: New file.
15103
15104         * modules/snprintf-tests: New file.
15105         * tests/test-snprintf.c: New file.
15106
15107 2007-03-04  Bruno Haible  <bruno@clisp.org>
15108
15109         Compile relocatable.c only if --enable-relocatable is specified.
15110         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
15111         gl_RELOCATABLE_LIBRARY.
15112         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
15113         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
15114         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
15115         gl_RELOCATABLE_LIBRARY.
15116         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
15117         (Makefile.am): Remove lib_SOURCES.
15118         * modules/relocatable-lib-lgpl (configure.ac): Invoke
15119         gl_RELOCATABLE_LIBRARY.
15120         (Makefile.am): Remove lib_SOURCES.
15121         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
15122         always.
15123         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15124         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
15125
15126 2007-03-04  Bruno Haible  <bruno@clisp.org>
15127
15128         * modules/argmatch-tests: New file.
15129         * tests/test-argmatch.c: New file.
15130
15131         * tests/test-allocsa.c (main): Halve the number of loop runs.
15132
15133         * modules/alloca-opt-tests: New file.
15134         * tests/test-alloca-opt.c: New file.
15135
15136 2007-03-04  Jim Meyering  <jim@meyering.net>
15137
15138         Work around difference between Linux ACLs and Solaris 10 ZFS.
15139         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
15140         for EINVAL.
15141
15142 2007-03-03  Bruno Haible  <bruno@clisp.org>
15143
15144         * modules/relocatable-prog (Depends-on): Add back progreloc's
15145         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
15146
15147 2007-03-03  Bruno Haible  <bruno@clisp.org>
15148
15149         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
15150         * modules/relocatable-lib: New file.
15151
15152 2007-03-03  Bruno Haible  <bruno@clisp.org>
15153
15154         * modules/relocatable-prog: Renamed from modules/relocatable.
15155         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
15156
15157 2007-03-03  Bruno Haible  <bruno@clisp.org>
15158
15159         * modules/relocatable-script (Files): Add doc/relocatable.texi,
15160         m4/relocatable-lib.m4.
15161         (Depends-on): Remove 'relocatable'.
15162         (configure.ac): Add gl_RELOCATABLE_NOP.
15163
15164 2007-03-03  Bruno Haible  <bruno@clisp.org>
15165
15166         * modules/relocatable-prog-wrapper: New file.
15167         * modules/relocatable (Depends-on): Add it. Remove all other
15168         dependencies except progname.
15169         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
15170
15171         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
15172         (gl_FUNC_STRERROR): Nop.
15173         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
15174
15175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
15176         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
15177
15178         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
15179         (gl_FUNC_READLINK): Update.
15180
15181         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
15182
15183 2007-03-03  Bruno Haible  <bruno@clisp.org>
15184
15185         * lib/xreadlink.c: Include <unistd.h> unconditionally.
15186         * modules/xreadlink (Depends-on): Add unistd.
15187         * modules/xreadlink-with-size (Depends-on): Likewise.
15188
15189 2007-03-03  Bruno Haible  <bruno@clisp.org>
15190
15191         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
15192         extracted from gt_FUNC_SETENV.
15193         (gt_FUNC_SETENV): Remove macro.
15194         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
15195         remove gt_FUNC_SETENV.
15196
15197 2007-03-03  Bruno Haible  <bruno@clisp.org>
15198
15199         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
15200         ENABLE_RELOCATABLE here.
15201         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
15202
15203 2007-03-03  Bruno Haible  <bruno@clisp.org>
15204
15205         * modules/rbtreehash-list-tests (Depends-on): Add progname.
15206         * tests/test-rbtreehash_list.c: Include progname.h.
15207         (main): Call set_program_name.
15208
15209         * modules/rbtree-oset-tests (Depends-on): Add progname.
15210         * tests/test-rbtree_oset.c: Include progname.h.
15211         (main): Call set_program_name.
15212
15213         * modules/rbtree-list-tests (Depends-on): Add progname.
15214         * tests/test-rbtree_list.c: Include progname.h.
15215         (main): Call set_program_name.
15216
15217         * modules/linked-list-tests (Depends-on): Add progname.
15218         * tests/test-linked_list.c: Include progname.h.
15219         (main): Call set_program_name.
15220
15221 2007-03-03  Bruno Haible  <bruno@clisp.org>
15222
15223         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
15224         All uses of __restrict changed to _Restrict_.
15225         * lib/glob_.h (__restrict): Remove macro.
15226
15227 2007-03-02  Bruno Haible  <bruno@clisp.org>
15228
15229         * modules/gettext (configure.ac): Require gettext infrastructure
15230         from version 0.16.1.
15231
15232 2007-03-02  Bruno Haible  <bruno@clisp.org>
15233
15234         * modules/linkedhash-list-tests (Depends-on): Add progname.
15235         * tests/test-linkedhash_list.c: Include progname.h.
15236         (main): Call set_program_name.
15237
15238         * modules/carray-list-tests (Depends-on): Add progname.
15239         * tests/test-carray_list.c: Include progname.h.
15240         (main): Call set_program_name.
15241
15242         * modules/avltreehash-list-tests (Depends-on): Add progname.
15243         * tests/test-avltreehash_list.c: Include progname.h.
15244         (main): Call set_program_name.
15245
15246         * modules/avltree-oset-tests (Depends-on): Add progname.
15247         * tests/test-avltree_oset.c: Include progname.h.
15248         (main): Call set_program_name.
15249
15250         * modules/avltree-list-tests (Depends-on): Add progname.
15251         * tests/test-avltree_list.c: Include progname.h.
15252         (main): Call set_program_name.
15253
15254         * modules/array-oset-tests (Depends-on): Add progname.
15255         * tests/test-array_oset.c: Include progname.h.
15256         (main): Call set_program_name.
15257
15258         * modules/array-list-tests (Depends-on): Add progname.
15259         * tests/test-array_list.c: Include progname.h.
15260         (main): Call set_program_name.
15261
15262         * modules/argp-tests (Depends-on): Add progname.
15263         * tests/test-argp.c: Include argp.h first. Include progname.h.
15264         (main): Call set_program_name.
15265
15266 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
15267
15268         * doc/gnulib-tool.texi (Initial import): Reword description of
15269         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
15270         limited effect even if defined after the first system include.
15271
15272 2007-03-01  Bruno Haible  <bruno@clisp.org>
15273
15274         * build-aux/config.libpath: Update to libtool-1.5.22.
15275         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15276
15277 2007-03-01  Bruno Haible  <bruno@clisp.org>
15278
15279         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
15280         foo_CFLAGS.
15281         Reported by Ralf Wildenhues.
15282
15283 2007-03-01  Bruno Haible  <bruno@clisp.org>
15284
15285         * build-aux/install-reloc: Remove object files left over by some
15286         compilers.
15287         Reported by Ralf Wildenhues.
15288
15289 2007-03-01  Bruno Haible  <bruno@clisp.org>
15290
15291         * build-aux/install-reloc: Break long lines.
15292
15293 2007-03-01  Bruno Haible  <bruno@clisp.org>
15294
15295         * doc/relocatable.texi: Document that it may not work on OpenBSD.
15296         Reported by Ralf Wildenhues.
15297
15298 2007-03-01  Bruno Haible  <bruno@clisp.org>
15299
15300         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
15301         include ordering constraints.
15302
15303 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
15304
15305         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
15306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
15307         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
15308         as another example.
15309         * lib/time_.h: Fix misspelling.
15310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15311         Require gl_HEADER_TIME_H_DEFAULTS.
15312         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
15313         * m4/time_r.m4 (gl_TIME_R): Likewise.
15314         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
15315
15316 2007-03-01  Bruno Haible  <bruno@clisp.org>
15317
15318         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
15319         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15320
15321 2007-03-01  Jim Meyering  <jim@meyering.net>
15322
15323         * modules/xreadlink (Maintainer): Add my name.
15324         * modules/xreadlink-with-size (Depends-on): Alphabetize.
15325
15326 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
15327             Bruno Haible  <bruno@clisp.org>
15328
15329         * build-aux/install-reloc: Compile also c-ctype.c.
15330         * build-aux/relocatable.sh.in: New file.
15331         * doc/relocatable.texi: New file.
15332         * doc/relocatable-maint.texi: New file.
15333         * doc/gnulib.texi: Include relocatable-maint.texi.
15334         * lib/progreloc.c: Include unistd.h unconditionally.
15335         * lib/relocwrapper.c: Include unistd.h unconditionally.
15336         Include c-ctype.h.
15337         (add_dotbin): Use c_tolower.
15338         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
15339         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
15340         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
15341         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
15342         to m4/relocatable-lib.m4.
15343         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
15344         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
15345         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
15346         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
15347         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
15348         * modules/relocatable: New file.
15349         * modules/relocatable-lib: New file.
15350         * modules/relocatable-script: New file.
15351
15352 2007-02-28  Bruno Haible  <bruno@clisp.org>
15353
15354         Import --enable-relocatable infrastructure.
15355         * build-aux/config.libpath: New file, from GNU gettext.
15356         * build-aux/install-reloc: New file, from GNU gettext.
15357         * build-aux/reloc-ldflags: New file, from GNU gettext.
15358         * lib/relocatable.h: New file, from GNU gettext.
15359         * lib/relocatable.c: New file, from GNU gettext.
15360         * lib/relocwrapper.c: New file, from GNU gettext.
15361         * m4/relocatable.m4: New file, from GNU gettext.
15362
15363 2007-02-28  Bruno Haible  <bruno@clisp.org>
15364
15365         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
15366
15367         * modules/xreadlink: New file, from GNU gettext with modifications.
15368         * lib/xreadlink.c: New file, from GNU gettext.
15369         * lib/xreadlink.h: Add comments.
15370         (xreadlink): New declaration.
15371
15372         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
15373         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
15374         lib/xreadlink-with-size.c.
15375         (configure.ac): Remove gl_XREADLINK invocation.
15376         (Makefile.am): Augment lib_SOURCES.
15377         * m4/xreadlink.m4: Remove file.
15378         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
15379         (xreadlink_with_size): Renamed from xreadink.
15380         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
15381         * modules/canonicalize (Depends-on): Replace xreadlink with
15382         xreadlink-with-size.
15383         * lib/canonicalize.c (canonicalize_filename_mode): Update.
15384
15385 2007-02-25  Jim Meyering  <jim@meyering.net>
15386
15387         * build-aux/announce-gen: When complaining about excess arguments,
15388         list them.
15389
15390 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15391
15392         * README: Document signed integer overflow situation more
15393         accurately.
15394
15395 2007-02-25  Bruno Haible  <bruno@clisp.org>
15396
15397         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
15398         'a' or 'A' conversion.
15399
15400 2007-02-25  Bruno Haible  <bruno@clisp.org>
15401
15402         * modules/filename: Renamed from modules/pathname.
15403         (Files): Replace lib/pathname.h with lib/filename.h. Replace
15404         lib/concatpath.c with lib/concat-filename.c.
15405         (Makefile.am): Update.
15406         (Include): Replace pathname.h with filename.h.
15407         * lib/filename.h: Renamed from lib/pathname.h.
15408         (concatenated_filename): Renamed from concatenated_pathname.
15409         * lib/concat-filename.c: Renamed from lib/concatpath.c.
15410         (concatenated_filename): Renamed from concatenated_pathname.
15411         * lib/findprog.c: Include filename.h instead of pathname.h.
15412         (find_in_path): Update.
15413         * lib/javacomp.c: Include filename.h instead of pathname.h.
15414         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
15415         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
15416         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
15417         is_oldgcj_14_13_usable, is_javac_usable): Update.
15418         * lib/javaexec.c: Include filename.h instead of pathname.h.
15419         (execute_java_class): Update.
15420         * modules/findprog: Update.
15421         * modules/javacomp: Update.
15422         * modules/javaexec: Update.
15423         * MODULES.html.sh (File system functions): Add 'filename', remove
15424         'pathname'.
15425
15426 2007-02-25  Bruno Haible  <bruno@clisp.org>
15427
15428         * modules/printf-frexpl-tests: New file.
15429         * tests/test-printf-frexpl.c: New file.
15430
15431         * modules/printf-frexpl: New file.
15432         * lib/printf-frexpl.h: New file.
15433         * lib/printf-frexpl.c: New file.
15434         * m4/printf-frexpl.m4: New file.
15435
15436 2007-02-25  Bruno Haible  <bruno@clisp.org>
15437
15438         * modules/printf-frexp-tests: New file.
15439         * tests/test-printf-frexp.c: New file.
15440
15441         * modules/printf-frexp: New file.
15442         * lib/printf-frexp.h: New file.
15443         * lib/printf-frexp.c: New file.
15444         * m4/printf-frexp.m4: New file.
15445
15446 2007-02-25  Bruno Haible  <bruno@clisp.org>
15447
15448         Assume automake >= 1.10 for the tests.
15449         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
15450         * modules/arctwo-tests: Likewise.
15451         * modules/argp-tests: Likewise.
15452         * modules/avltree-list-tests: Likewise.
15453         * modules/avltree-oset-tests: Likewise.
15454         * modules/avltreehash-list-tests: Likewise.
15455         * modules/carray-list-tests: Likewise.
15456         * modules/crc-tests: Likewise.
15457         * modules/des-tests: Likewise.
15458         * modules/gc-arcfour-tests: Likewise.
15459         * modules/gc-arctwo-tests: Likewise.
15460         * modules/gc-des-tests: Likewise.
15461         * modules/gc-hmac-md5-tests: Likewise.
15462         * modules/gc-hmac-sha1-tests: Likewise.
15463         * modules/gc-md2-tests: Likewise.
15464         * modules/gc-md4-tests: Likewise.
15465         * modules/gc-md5-tests: Likewise.
15466         * modules/gc-pbkdf2-sha1-tests: Likewise.
15467         * modules/gc-rijndael-tests: Likewise.
15468         * modules/gc-sha1-tests: Likewise.
15469         * modules/gc-tests: Likewise.
15470         * modules/getaddrinfo-tests: Likewise.
15471         * modules/hmac-md5-tests: Likewise.
15472         * modules/hmac-sha1-tests: Likewise.
15473         * modules/linked-list-tests: Likewise.
15474         * modules/linkedhash-list-tests: Likewise.
15475         * modules/lock-tests: Likewise.
15476         * modules/md2-tests: Likewise.
15477         * modules/md4-tests: Likewise.
15478         * modules/md5-tests: Likewise.
15479         * modules/rbtree-list-tests: Likewise.
15480         * modules/rbtree-oset-tests: Likewise.
15481         * modules/rbtreehash-list-tests: Likewise.
15482         * modules/read-file-tests: Likewise.
15483         * modules/rijndael-tests: Likewise.
15484         * modules/stdint-tests: Likewise.
15485         * modules/tls-tests: Likewise.
15486
15487 2007-02-24  Bruno Haible  <bruno@clisp.org>
15488
15489         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
15490         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
15491         function; instead check whether isnan with a double argument links.
15492         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
15493         function; instead check whether isnan with a 'long double' argument
15494         links.
15495         Reported by Eric Blake <ebb9@byu.net>.
15496
15497 2007-02-24  Bruno Haible  <bruno@clisp.org>
15498
15499         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
15500         defined.
15501         * lib/isnanl.c: Remove all code. Just include isnan.c.
15502         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
15503
15504 2007-02-25  Jim Meyering  <jim@meyering.net>
15505
15506         Avoid conflicting types for 'unsetenv' on FreeBSD.
15507         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
15508         conflicting with FreeBSD's (5.0 and 6.1) function declaration
15509         in stdlib.h.
15510
15511 2007-02-24  Bruno Haible  <bruno@clisp.org>
15512
15513         * modules/isnanl-nolibm-tests: New file.
15514         * tests/test-isnanl.c: New file.
15515
15516         * modules/isnanl-nolibm: New file.
15517         * lib/isnanl.h: New file.
15518         * lib/isnanl.c: New file.
15519         * m4/isnanl.m4: New file.
15520
15521 2007-02-24  Bruno Haible  <bruno@clisp.org>
15522
15523         * modules/isnan-nolibm-tests: New file.
15524         * tests/test-isnan.c: New file.
15525
15526         * modules/isnan-nolibm: New file.
15527         * lib/isnan.h: New file.
15528         * lib/isnan.c: New file.
15529         * m4/isnan.m4: New file.
15530
15531 2007-02-24  Bruno Haible  <bruno@clisp.org>
15532
15533         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
15534         assume that an exponent fits in 20 bits.
15535
15536 2007-02-24  Jim Meyering  <jim@meyering.net>
15537
15538         * m4/regex.m4: Update the description of the configure-time option,
15539         --without-included-regex, to state accurately what the defaults are,
15540         and perhaps to give people an idea why using this option is risky.
15541
15542 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15543
15544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
15545         loops on small arguments.  This attempts to avoid the problem
15546         Bruno Haible reported for AIX 4.3.2 in
15547         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
15548
15549 2007-02-23  Bruno Haible  <bruno@clisp.org>
15550
15551         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
15552         Needed for help2man.
15553
15554 2007-02-23  Karl Berry  <karl@gnu.org>
15555
15556         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
15557         exists, foo.h should be cvs-ignored, not committed.
15558
15559 2007-02-23  Eric Blake  <ebb9@byu.net>
15560
15561         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
15562         * lib/stat-time.h (includes): Likewise.
15563         * lib/utimecmp.c (includes): Likewise.
15564         * lib/utimens.h (includes): Likewise.
15565         * lib/getdate.y (includes): Also include "timespec.h" for use
15566         internal to the module.
15567         * modules/utimens (Depends-on): Revert yesterday's patch.
15568         * modules/nanosleep (Depends-on): Add missing dependency.
15569
15570 2007-02-22  Bruno Haible  <bruno@clisp.org>
15571
15572         * lib/glob.c: Don't include getlogin_r.h.
15573
15574 2007-02-22  Jim Meyering  <jim@meyering.net>
15575
15576         * modules/utimens (Depends-on): Add timespec, required for
15577         utimens.h's inclusion of timespec.h.
15578
15579 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15580
15581         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
15582         long unreadable paths in GNU/Linux.  Problem reported by Andreas
15583         Schwab in
15584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
15585         I'll try to think of a better way to fix the Solaris problem.
15586
15587         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
15588         like glibc; on Solaris 10, it fails with errno == EINVAL.
15589         POSIX says the behavior is unspecified if the first argument is NULL,
15590         so play it safe and never pass NULL to the system getcwd.
15591
15592 2007-02-21  Jim Meyering  <jim@meyering.net>
15593
15594         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
15595         of gettimeofday.  It would conflict with the one now always
15596         provided via sys_time_.h.  Reported by Matthew Woehlke, as
15597         an IRIX 6.5 build failure.
15598
15599 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15600
15601         Minor fixups to port to Solaris 10 with Sun C 5.8.
15602         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
15603         * modules/getcwd (Depends-on): Add dirfd.
15604         * lib/putenv.c (putenv): #undef it.
15605         (rpl_putenv): New decl.
15606         (malloc, free): Include <stdlib.h> rather than prototyping separately.
15607
15608 2007-02-20  Bruno Haible  <bruno@clisp.org>
15609
15610         * modules/stdio-tests: New file.
15611         * tests/test-stdio.c: New file.
15612
15613         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
15614         (Depends-on): Add stdio.
15615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15616         (Include): Use <stdio.h> instead of vsnprintf.h.
15617         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15618         HAVE_DECL_VSNPRINTF.
15619         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
15620
15621         * modules/snprintf (Files): Remove lib/snprintf.h.
15622         (Depends-on): Add stdio.
15623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15624         (Include): Use <stdio.h> instead of snprintf.h.
15625         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
15626         HAVE_DECL_SNPRINTF.
15627         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
15628         * lib/getaddrinfo.c: Likewise.
15629
15630         * modules/stdio: New file.
15631         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
15632         * lib/snprintf.h: Remove file.
15633         * lib/vsnprintf.h: Remove file.
15634         * lib/.cppi-disable: Remove snprintf.h.
15635         * m4/stdio_h.m4: New file.
15636         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
15637
15638 2007-02-20  Jim Meyering  <jim@meyering.net>
15639
15640         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
15641         used by e.g., mingw.  From Bruno Haible.
15642
15643 2007-02-19  Bruno Haible  <bruno@clisp.org>
15644
15645         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
15646         warnings.
15647         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15648
15649 2007-02-19  Bruno Haible  <bruno@clisp.org>
15650
15651         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
15652         from mingw users.
15653
15654 2007-02-19  Bruno Haible  <bruno@clisp.org>
15655
15656         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
15657         warnings.
15658         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
15659
15660 2007-02-19  Jim Meyering  <jim@meyering.net>
15661
15662         Don't use FD after a successful "fdopendir (fd)".
15663         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
15664         Reset it by calling dirfd on the just-obtained DIR*.
15665
15666         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
15667         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
15668
15669 2007-02-18  Bruno Haible  <bruno@clisp.org>
15670
15671         * lib/readlink.c: Include <unistd.h>.
15672         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
15673         HAVE_READLINK.
15674         * modules/readlink (Depends-on): Add unistd.
15675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15676         (Include): Add <unistd.h>.
15677
15678         * lib/getlogin_r.h: Remove file.
15679         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
15680         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
15681         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
15682         HAVE_DECL_GETLOGIN_R.
15683         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
15684         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15685         (Include): Use <unistd.h> instead of getlogin_r.h.
15686
15687         * lib/getcwd.h: Remove file.
15688         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
15689         * lib/xgetcwd.c: Likewise.
15690         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
15691         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
15692         * modules/getcwd (Files): Remove lib/getcwd.h.
15693         (Depends-on): Add unistd.
15694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15695         (Include): Use <unistd.h> instad of getcwd.h.
15696
15697         * lib/ftruncate.c: Include <unistd.h> first.
15698         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
15699         Set HAVE_FTRUNCATE.
15700         * modules/ftruncate (Depends-on): Add unistd.
15701         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15702
15703         * lib/fchdir.c: Include <unistd.h> first.
15704         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
15705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
15706         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
15707         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15708         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
15709
15710         * lib/dup2.c: Include <unistd.h> first.
15711         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
15712         HAVE_DUP2.
15713         * modules/dup2 (Depends-on): Add unistd.
15714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15715
15716         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
15717         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
15718         REPLACE_CHOWN. Don't define chown as a macro here.
15719         * modules/chown (Depends-on): Add unistd.
15720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15721
15722         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
15723         Add definition for GL_LINK_WARNING.
15724         (chown, dup2): New declarations.
15725         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
15726         link warning.
15727         (ftruncate): New declaration.
15728         (getcwd): New declaration, taken from old getcwd.h.
15729         (getlogin_r): New declaration, taken from old getlogin_r.h.
15730         (readlink): New declaration.
15731         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
15732         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
15733         (gl_PREREQ_UNISTD): Remove macro.
15734         (gl_UNISTD_MODULE_INDICATOR): New macro.
15735         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
15736         many new variables. Don't set UNISTD_H.
15737         * modules/unistd (Description): Change.
15738         (Depends-on): Add link-warning.
15739         (configure.ac): Update.
15740         (Makefile.am): Create unistd.h always. Substitute many new variables
15741         into it.
15742
15743 2007-02-18  Bruno Haible  <bruno@clisp.org>
15744
15745         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
15746         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
15747         HAVE_GETSUBOPT.
15748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
15749         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
15750         * lib/getsubopt.h: Remove file.
15751         * modules/getsubopt (Files): Remove lib/getsubopt.h.
15752         (Depends-on): Add stdlib.
15753         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15754         (Includes): Use <stdlib.h> instead of getsubopt.h.
15755         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
15756         Set HAVE_GETSUBOPT.
15757         * lib/getsubopt.c: Don't include getsubopt.h.
15758
15759 2007-02-18  Bruno Haible  <bruno@clisp.org>
15760
15761         * modules/fchdir (Depends-on): Add dup2.
15762
15763 2007-02-18  Bruno Haible  <bruno@clisp.org>
15764
15765         * lib/stdlib_.h: Handle glibc's special invocation convention
15766         specially.
15767
15768 2007-02-18  Bruno Haible  <bruno@clisp.org>
15769
15770         * modules/stdlib-tests: New file.
15771         * tests/test-stdlib.c: New file.
15772
15773         * modules/mkstemp (Files): Remove lib/mkstemp.h.
15774         (Depends-on): Add stdlib.
15775         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15776         (Includes): Use <stdlib.h> instead of mkstemp.h.
15777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15778         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
15779         * lib/mkstemp.c: Don't include mkstemp.h.
15780         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
15781         * lib/stdlib--.h: Don't include mkstemp.h.
15782
15783         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
15784         (Depends-on): Add stdlib.
15785         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15786         (Includes): Use <stdlib.h> instead of mkdtemp.h.
15787         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
15788         HAVE_MKDTEMP.
15789         * lib/mkdtemp.c: Don't include mkdtemp.h.
15790         * lib/clean-temp.c: Don't include mkdtemp.h.
15791
15792         * modules/exit (Files): Remove lib/exit.h.
15793         (Depends-on): Add stdlib.
15794         (Makefile.am): Remove lib_SOURCES.
15795         (Include): Use <stdlib.h> instead of exit.h.
15796         * lib/argmatch.c: Don't include exit.h.
15797         * lib/execute.c: Likewise.
15798         * lib/pagealign_alloc.c: Likewise.
15799         * lib/pipe.c: Likewise.
15800         * lib/wait-process.c: Likewise.
15801         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
15802         * lib/exitfail.c: Likewise.
15803         * lib/savewd.c: Likewise.
15804         * lib/xsetenv.c: Likewise.
15805
15806         * modules/stdlib: New file.
15807         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
15808         and extra comments about mkstemp().
15809         * lib/exit.h: Remove file.
15810         * lib/mkdtemp.h: Remove file.
15811         * lib/mkstemp.h: Remove file.
15812         * m4/stdlib_h.m4: New file.
15813         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
15814
15815 2007-02-18  Bruno Haible  <bruno@clisp.org>
15816
15817         * modules/math-tests: New file.
15818         * tests/test-math.c: New file.
15819
15820         * modules/math: New file.
15821         * modules/mathl (Files): Remove lib/mathl.h.
15822         (Depends-on): Add math.
15823         (Makefile.am): Don't mention mathl.h.
15824         (Include): Use <math.h> instead of mathl.h.
15825         * lib/math_.h: New file.
15826         * lib/mathl.h: Remove file.
15827         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
15828         mathl.h.
15829         * lib/asinl.c: Likewise.
15830         * lib/atanl.c: Likewise.
15831         * lib/ceill.c: Likewise.
15832         * lib/cosl.c: Likewise.
15833         * lib/expl.c: Likewise.
15834         * lib/floorl.c: Likewise.
15835         * lib/frexpl.c: Likewise.
15836         * lib/ldexpl.c: Likewise.
15837         * lib/logl.c: Likewise.
15838         * lib/sincosl.c: Likewise.
15839         * lib/sinl.c: Likewise.
15840         * lib/sqrtl.c: Likewise.
15841         * lib/tanl.c: Likewise.
15842         * lib/trigl.c: Likewise.
15843         * m4/math_h.m4: New file.
15844         * MODULES.html.sh (Mathematics): Add math.
15845
15846 2007-02-17  Bruno Haible  <bruno@clisp.org>
15847
15848         * modules/wctype-tests: New file.
15849         * tests/test-wctype.c: New file.
15850
15851         * modules/wchar-tests: New file.
15852         * tests/test-wchar.c: New file.
15853
15854         * modules/unistd-tests: New file.
15855         * tests/test-unistd.c: New file.
15856
15857         * modules/time-tests: New file.
15858         * tests/test-time.c: New file.
15859
15860         * modules/sysexits-tests: New file.
15861         * tests/test-sysexits.c: New file.
15862
15863         * modules/sys_time-tests: New file.
15864         * tests/test-sys_time.c: New file.
15865
15866         * modules/sys_stat-tests: New file.
15867         * tests/test-sys_stat.c: New file.
15868
15869         * modules/sys_socket-tests: New file.
15870         * tests/test-sys_socket.c: New file.
15871
15872         * modules/sys_select-tests: New file.
15873         * tests/test-sys_select.c: New file.
15874
15875         * modules/string-tests: New file.
15876         * tests/test-string.c: New file.
15877
15878         * modules/stdbool-tests: New file.
15879         * tests/test-stdbool.c: New file.
15880
15881         * modules/netinet_in-tests: New file.
15882         * tests/test-netinet_in.c: New file.
15883
15884         * modules/inttypes-tests: New file.
15885         * tests/test-inttypes.c: New file.
15886
15887         * modules/fcntl-tests: New file.
15888         * tests/test-fcntl.c: New file.
15889
15890         * modules/byteswap-tests: New file.
15891         * tests/test-byteswap.c: New file.
15892
15893         * modules/arpa_inet-tests: New file.
15894         * tests/test-arpa_inet.c: New file.
15895
15896 2007-02-17  Bruno Haible  <bruno@clisp.org>
15897
15898         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
15899         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
15900         if the corresponding module is not enabled. Emit link warnings if
15901         the function is used nevertheless.
15902         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
15903         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
15904         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
15905         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
15906         * modules/inttypes (Depends-on): Add link-warning.
15907         (Makefile.am): Copy the contents of build-aux/link-warning.h into
15908         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
15909         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
15910         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
15911         * modules/imaxdiv (configure.ac): Likewise.
15912         * modules/strtoimax (configure.ac): Likewise.
15913         * modules/strtoumax (configure.ac): Likewise.
15914
15915 2007-02-17  Bruno Haible  <bruno@clisp.org>
15916
15917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
15918         gl_STRING_MODULE_INDICATOR_DEFAULTS.
15919         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
15920         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
15921
15922 2007-02-17  Bruno Haible  <bruno@clisp.org>
15923
15924         * modules/link-warning: New file.
15925         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
15926         * lib/string_.h (GL_LINK_WARNING): Remove definition.
15927         * modules/string (Depends-on): Add link-warning.
15928         (Makefile.am): Copy the contents of build-aux/link-warning.h into
15929         string.h.
15930         * MODULES.html.sh (Support for building libraries and executables): Add
15931         link-warning.
15932
15933 2007-02-17  Bruno Haible  <bruno@clisp.org>
15934
15935         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
15936         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
15937         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
15938         long lines.
15939
15940 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
15941             Bruno Haible  <bruno@clisp.org>
15942
15943         * modules/tmpfile: New file.
15944         * lib/tmpfile.c: New file.
15945         * m4/tmpfile.m4: New file.
15946         * MODULES.html.sh (func_all_modules): New section "Input/output".
15947
15948 2007-02-15  Bruno Haible  <bruno@clisp.org>
15949
15950         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
15951         (supports_delete_on_close): New function.
15952         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
15953
15954 2007-02-14  Bruno Haible  <bruno@clisp.org>
15955
15956         * modules/mbspcasecmp-tests: New file.
15957         * tests/test-mbspcasecmp.sh: New file.
15958         * tests/test-mbspcasecmp.c: New file.
15959
15960         New module mbspcasecmp.
15961         * modules/mbspcasecmp: New file.
15962         * lib/mbspcasecmp.c: New file.
15963         * lib/string_.h (strncasecmp): Change warning message.
15964         (mbspcasecmp): New declaration.
15965         * m4/mbspcasecmp.m4: New file.
15966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15967         GNULIB_MBSPCASECMP.
15968         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
15969         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
15970
15971 2007-02-14  Bruno Haible  <bruno@clisp.org>
15972
15973         * modules/mbsncasecmp-tests: New file.
15974         * tests/test-mbsncasecmp.sh: New file.
15975         * tests/test-mbsncasecmp.c: New file.
15976
15977         New module mbsncasecmp.
15978         * modules/mbsncasecmp: New file.
15979         * lib/mbsncasecmp.c: New file.
15980         * lib/string_.h (mbsncasecmp): New declaration.
15981         * m4/mbsncasecmp.m4: New file.
15982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
15983         GNULIB_MBSNCASECMP.
15984         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
15985         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
15986
15987 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15988
15989         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
15990         Verify that it doesn't overlap with our flags.
15991         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
15992         do not have the desired effect in multibyte locales; instead, use
15993         mbscasecmp.
15994         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
15995         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
15996         we don't require GNU fnmatch ourselves (if our users require it, they
15997         should do so explicitly).
15998
15999         Fix regex code so it doesn't rely on strcasecmp.
16000         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
16001         Otherwise, include gnulib's langinfo.h.
16002         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
16003         undesirable behavior in non-C locales.  Instead, rely on localecharset.
16004         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
16005         * modules/regex (FILES): Remove m4/codeset.m4.
16006         (Depends-on): Add localcharset.  Remove strcase.
16007
16008 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16009
16010         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
16011         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16012
16013 2007-02-13  Bruno Haible  <bruno@clisp.org>
16014
16015         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
16016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16017
16018 2007-02-12  Bruno Haible  <bruno@clisp.org>
16019
16020         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16021         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
16022         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
16023         time warning rather than a link error.
16024
16025 2007-02-12  Bruno Haible  <bruno@clisp.org>
16026
16027         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
16028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16029         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16030
16031 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16032
16033         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
16034         args, not 2.
16035
16036 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16037
16038         New module 'time', so that apps can include <time.h> as per
16039         POSIX and GNU instead of separate include files like time_r.h
16040         and timegm.h.  This implementation tries out a simpler approach
16041         for replacing decls in standard include files (as compared to
16042         the string module), somewhat as an experiment.
16043
16044         * config/srclist.txt: Comment out mktime.c for now.
16045         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
16046         since it doesn't apply any more.  Use generic wording instead.
16047         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
16048         'time'.
16049         * lib/time_.h, m4/time_h.m4, modules/time: New files.
16050         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
16051         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
16052         Don't include <sys/types.h>; no longer needed since we assume C89.
16053         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
16054         * lib/strftime.c: Likewise.
16055         * lib/time_r.c: Likewise.
16056         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
16057         * lib/nanosleep.c: Include <time.h> first, to check interface.
16058         * lib/strptime.c: Likewise.
16059         * lib/time_r.c: Likewise.
16060         * lib/timegm.c: Likewise.
16061         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
16062         needed.
16063         * lib/timegm.c: Don't include timegm.h; no longer needed.
16064         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
16065         time.h now handles any problems in that area.
16066         (struct timespec, nanosleep): Remove; time.h now arranges for these.
16067         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
16068         that time.h defines struct timespec.
16069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
16070         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
16071         handles that.
16072         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
16073         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
16074         needed.  Set REPLACE_LOCALTIME.
16075         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
16076         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
16077         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
16078         nanosleep; time_h.m4 now does that.  Don't require
16079         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
16080         module handles this now.
16081         * modules/getdate (Depends-on): Remove timespec.  Add time.
16082         * modules/nanosleep (Depends-on): Likewise.
16083         * modules/stat-time (Depends-on): Likewise.
16084         * modules/nanosleep (Include): Include time.h, not timespec.h.
16085         * modules/strptime (Files): Remove lib/strptime.h.
16086         (Depends-on): Add extensions, time.
16087         (Include): Include time.h, not strptime.h.
16088         * modules/time_r (Files): Remove lib/time_r.h.
16089         (Depends-on): Add time.
16090         (Include): Include time.h, not time_r.h.
16091         * modules/timegm: Likewise.
16092         * modules/timespec (Description): Now does timespec-related decls
16093         of our own, instead of struct timespec itself.
16094         (Depends-on): Add time; remove extensions.
16095         (Maintainer): Add self.
16096         * modules/utimecmp (Depends-on): Add time; remove timespec.
16097         * modules/utimens (Depends-on): Likewise.
16098         * modules/xnanosleep (Depends-on): Likewise.
16099
16100 2007-02-11  Bruno Haible  <bruno@clisp.org>
16101
16102         * lib/c-strstr.c: Include allocsa.h.
16103         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16104         * lib/c-strcasestr.c: Include allocsa.h.
16105         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16106         * lib/strcasestr.c: Include allocsa.h.
16107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
16108         * lib/mbsstr.c: Include allocsa.h.
16109         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16110         allocsa/freesa instead of malloc/free.
16111         * lib/mbscasestr.c: Include allocsa.h.
16112         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
16113         allocsa/freesa instead of malloc/free.
16114         * modules/c-strstr (Depends-on): Add allocsa.
16115         * modules/c-strcasestr (Depends-on): Likewise.
16116         * modules/strcasestr (Depends-on): Likewise.
16117         * modules/mbsstr (Depends-on): Likewise.
16118         * modules/mbscasestr (Depends-on): Likewise.
16119
16120 2007-02-11  Bruno Haible  <bruno@clisp.org>
16121
16122         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
16123
16124         * modules/mbsspn-tests: New file.
16125         * tests/test-mbsspn.sh: New file.
16126         * tests/test-mbsspn.c: New file.
16127
16128 2007-02-11  Bruno Haible  <bruno@clisp.org>
16129
16130         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
16131
16132         * modules/mbspbrk-tests: New file.
16133         * tests/test-mbspbrk.sh: New file.
16134         * tests/test-mbspbrk.c: New file.
16135
16136 2007-02-11  Bruno Haible  <bruno@clisp.org>
16137
16138         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
16139         unneeded cast.
16140
16141         * modules/mbscspn-tests: New file.
16142         * tests/test-mbscspn.sh: New file.
16143         * tests/test-mbscspn.c: New file.
16144
16145 2007-02-11  Bruno Haible  <bruno@clisp.org>
16146
16147         * modules/mbscasecmp-tests: New file.
16148         * tests/test-mbscasecmp.sh: New file.
16149         * tests/test-mbscasecmp.c: New file.
16150
16151 2007-02-11  Bruno Haible  <bruno@clisp.org>
16152
16153         Ensure O(n) worst-case complexity of mbscasestr.
16154         * lib/mbscasestr.c: Include stdbool.h.
16155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16156         functions.
16157         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
16158         the bookkeeping indicates that it's worth it.
16159         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
16160
16161         * modules/mbscasestr-tests: New file.
16162         * tests/test-mbscasestr1.c: New file.
16163         * tests/test-mbscasestr2.sh: New file.
16164         * tests/test-mbscasestr2.c: New file.
16165         * tests/test-mbscasestr3.sh: New file.
16166         * tests/test-mbscasestr3.c: New file.
16167         * tests/test-mbscasestr4.sh: New file.
16168         * tests/test-mbscasestr4.c: New file.
16169         * m4/locale-tr.m4: New file.
16170
16171 2007-02-11  Bruno Haible  <bruno@clisp.org>
16172
16173         Ensure O(n) worst-case complexity of mbsstr.
16174         * lib/mbsstr.c: Include stdbool.h.
16175         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
16176         functions.
16177         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
16178         bookkeeping indicates that it's worth it.
16179         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
16180
16181         * modules/mbsstr-tests: New file.
16182         * tests/test-mbsstr1.c: New file.
16183         * tests/test-mbsstr2.sh: New file.
16184         * tests/test-mbsstr2.c: New file.
16185         * tests/test-mbsstr3.sh: New file.
16186         * tests/test-mbsstr3.c: New file.
16187         * m4/locale-fr.m4: New file.
16188
16189 2007-02-11  Bruno Haible  <bruno@clisp.org>
16190
16191         * lib/mbsrchr.c (mbsrchr): Fix bug.
16192
16193         * modules/mbsrchr-tests: New file.
16194         * tests/test-mbsrchr.sh: New file.
16195         * tests/test-mbsrchr.c: New file.
16196
16197 2007-02-11  Bruno Haible  <bruno@clisp.org>
16198
16199         * lib/mbschr.c (mbschr): Fix bug.
16200
16201         * modules/mbschr-tests: New file.
16202         * tests/test-mbschr.sh: New file.
16203         * tests/test-mbschr.c: New file.
16204         * m4/locale-zh.m4: New file.
16205
16206 2007-02-11  Bruno Haible  <bruno@clisp.org>
16207
16208         Support for copying multibyte string iterators.
16209         * lib/mbiter.h: Include <string.h>.
16210         (mbiter_multi_copy): New function.
16211         (mbi_copy): New macro.
16212         * lib/mbuiter.h: Include <string.h>.
16213         (mbuiter_multi_copy): New function.
16214         (mbui_copy): New macro.
16215
16216 2007-02-11  Bruno Haible  <bruno@clisp.org>
16217
16218         New module mbslen.
16219         * modules/mbslen: New file.
16220         * lib/mbslen.c: New file.
16221         * lib/string_.h (mbslen): New declaration.
16222         * m4/mbslen.m4: New file.
16223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16224         GNULIB_MBSLEN.
16225         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
16226         * MODULES.html.sh (Internationalization functions): Add mbslen.
16227
16228 2007-02-11  Bruno Haible  <bruno@clisp.org>
16229
16230         Ensure O(n) worst-case complexity of strcasestr substitute.
16231         * lib/strcasestr.c: Include stdbool.h.
16232         (knuth_morris_pratt): New function.
16233         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16234         bookkeeping indicates that it's worth it.
16235         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
16236
16237         * modules/strcasestr-tests: New file.
16238         * tests/test-strcasestr.c: New file.
16239
16240 2007-02-11  Bruno Haible  <bruno@clisp.org>
16241
16242         Ensure O(n) worst-case complexity of c_strcasestr.
16243         * lib/c-strcasestr.c: Include stdbool.h, string.h.
16244         (knuth_morris_pratt): New function.
16245         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
16246         the bookkeeping indicates that it's worth it.
16247         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
16248
16249         * modules/c-strcasestr-tests: New file.
16250         * tests/test-c-strcasestr.c: New file.
16251
16252 2007-02-11  Bruno Haible  <bruno@clisp.org>
16253
16254         Ensure O(n) worst-case complexity of c_strstr.
16255         * lib/c-strstr.c: Include stdbool.h, string.h.
16256         (knuth_morris_pratt): New function.
16257         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
16258         bookkeeping indicates that it's worth it.
16259         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
16260
16261         * lib/c-strstr.c: Complete rewrite for maintainability.
16262
16263         * modules/c-strstr-tests: New file.
16264         * tests/test-c-strstr.c: New file.
16265
16266 2007-02-11  Bruno Haible  <bruno@clisp.org>
16267
16268         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
16269         5.2.1 and earlier, whereby \055 was treated just like the range
16270         delimiter '-'.
16271         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16272
16273 2007-02-08  Bruno Haible  <bruno@clisp.org>
16274
16275         * modules/regex (Depends-on): Add stdbool.
16276         Reported by Dalibor Topic <robilad@kaffe.org>.
16277
16278 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16279
16280         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
16281         Prefer returning from main to exiting from it.
16282         Remove unnecessary parens after sizeof.
16283
16284 2007-02-05  Bruno Haible  <bruno@clisp.org>
16285
16286         New module mbssep.
16287         * modules/mbssep: New file.
16288         * lib/mbssep.c: New file.
16289         * lib/string_.h (strsep): Add a conditional link warning.
16290         (mbssep): New declaration.
16291         * m4/mbssep.m4: New file.
16292         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16293         GNULIB_MBSSEP.
16294         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
16295         * MODULES.html.sh (Internationalization functions): Add mbssep.
16296
16297 2007-02-05  Bruno Haible  <bruno@clisp.org>
16298
16299         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
16300         Optimize search in case of 1 delimiter.
16301
16302 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16303
16304         * lib/acl.h: Include sys/types.h before sys/acl.h.
16305
16306 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
16307
16308         Merge upstream fix for glibc bugzilla #3957:
16309
16310         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
16311
16312         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
16313         bit for RE_HAT_LISTS_NOT_NEWLINE.
16314         (build_charclass_op): Remove bogus comment.
16315
16316 2007-02-05  Simon Josefsson  <simon@josefsson.org>
16317
16318         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
16319
16320 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16321
16322         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
16323         * lib/memmem.c [!defined _LIBC]: Include config.h.
16324
16325 2007-02-04  Bruno Haible  <bruno@clisp.org>
16326
16327         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
16328         warning message.
16329
16330 2007-02-04  Bruno Haible  <bruno@clisp.org>
16331
16332         New module mbstok_r.
16333         * modules/mbstok_r: New file.
16334         * lib/mbstok_r.c: New file.
16335         * lib/string_.h (strtok_r): Change argument names to match the
16336         comments. Add a conditional link warning.
16337         (mbstok_r): New declaration.
16338         * m4/mbstok_r.m4: New file.
16339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16340         GNULIB_MBSTOK_R.
16341         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
16342         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
16343
16344 2007-02-04  Bruno Haible  <bruno@clisp.org>
16345
16346         New module mbsspn.
16347         * modules/mbsspn: New file.
16348         * lib/mbsspn.c: New file.
16349         * lib/string_.h (strspn): Add a conditional link warning.
16350         (mbsspn): New declaration.
16351         * m4/mbsspn.m4: New file.
16352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16353         GNULIB_MBSSPN.
16354         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
16355         * MODULES.html.sh (Internationalization functions): Add mbsspn.
16356
16357 2007-02-04  Bruno Haible  <bruno@clisp.org>
16358
16359         New module mbspbrk.
16360         * modules/mbspbrk: New file.
16361         * lib/mbspbrk.c: New file.
16362         * lib/string_.h (strpbrk): Add a conditional link warning.
16363         (mbspbrk): New declaration.
16364         * m4/mbspbrk.m4: New file.
16365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16366         GNULIB_MBSPBRK.
16367         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
16368         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
16369
16370 2007-02-04  Bruno Haible  <bruno@clisp.org>
16371
16372         New module mbscspn.
16373         * modules/mbscspn: New file.
16374         * lib/mbscspn.c: New file.
16375         * lib/string_.h (strcspn): Add a conditional link warning.
16376         (mbscspn): New declaration.
16377         * m4/mbscspn.m4: New file.
16378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16379         GNULIB_MBSCSPN.
16380         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
16381         * MODULES.html.sh (Internationalization functions): Add mbscspn.
16382
16383 2007-02-04  Bruno Haible  <bruno@clisp.org>
16384
16385         New module mbscasestr, reduced goal of strcasestr.
16386         * modules/mbscasestr: New file.
16387         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
16388         (mbscasestr): Renamed from strcasestr.
16389         * lib/strcasestr.c: Don't include mbuiter.h.
16390         (strcasestr): Remove support for multibyte locales.
16391         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
16392         Change the conditional link warning.
16393         (mbscasestr): New declaration.
16394         * m4/mbscasestr.m4: New file.
16395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
16396         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
16397         REPLACE_STRCASESTR.
16398         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
16399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16400         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
16402         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
16403         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
16404         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
16405         (Depends-on): Remove mbuiter.
16406         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
16407
16408 2007-02-04  Bruno Haible  <bruno@clisp.org>
16409
16410         Simplify handling of strncasecmp.
16411         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
16412         the conditional link warning.
16413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16414         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
16415         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
16416         * modules/strcase (configure.ac): Don't invoke
16417         gl_STRING_MODULE_INDICATOR.
16418         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
16419
16420 2007-02-04  Bruno Haible  <bruno@clisp.org>
16421
16422         New module mbscasecmp, reduced goal of strcasecmp.
16423         * modules/mbscasecmp: New file.
16424         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
16425         (mbscasecmp): Renamed from strcasecmp.
16426         * lib/strcasecmp.c: Don't include mbuiter.h.
16427         (strcasecmp): Remove support for multibyte locales.
16428         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
16429         Change the conditional link warning.
16430         (mbscasecmp): New declaration.
16431         * m4/mbscasecmp.m4: New file.
16432         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
16433         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
16434         REPLACE_STRCASECMP.
16435         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
16436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16437         GNULIB_MBSCASECMP.
16438         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
16439         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
16440         * modules/strcase (Files): Remove m4/mbrtowc.m4.
16441         (Depends-on): Remove mbuiter.
16442         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
16443
16444 2007-02-04  Bruno Haible  <bruno@clisp.org>
16445
16446         New module mbsstr. Remove module strstr.
16447         * modules/mbsstr: New file.
16448         * modules/strstr: Remove file.
16449         * lib/mbsstr.c: Renamed from lib/strstr.c.
16450         (mbsstr): Renamed from strstr.
16451         * lib/string_.h (strstr): Remove declaration. Change the conditional
16452         link warning.
16453         (mbsstr): New declaration.
16454         * m4/mbsstr.m4: New file.
16455         * m4/strstr.m4: Remove file.
16456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16457         REPLACE_STRSTR.
16458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
16459         Don't initialize GNULIB_STRSTR.
16460         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
16461         substitute GNULIB_STRSTR and REPLACE_STRSTR.
16462         * MODULES.html.sh (Internationalization functions): Add mbsstr.
16463         (Support for systems lacking ANSI C 89): Remove strstr.
16464
16465 2007-02-04  Bruno Haible  <bruno@clisp.org>
16466
16467         New module mbsrchr.
16468         * modules/mbsrchr: New file.
16469         * lib/mbsrchr.c: New file.
16470         * lib/string_.h (strrchr): Add a conditional link warning.
16471         (mbsrchr): New declaration.
16472         * m4/mbsrchr.m4: New file.
16473         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16474         GNULIB_MBSRCHR.
16475         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
16476         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
16477
16478 2007-02-04  Bruno Haible  <bruno@clisp.org>
16479
16480         New module mbschr.
16481         * modules/mbschr: New file.
16482         * lib/mbschr.c: New file.
16483         * lib/string_.h (strchr): Add a conditional link warning.
16484         (mbschr): New declaration.
16485         * m4/mbschr.m4: New file.
16486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
16487         GNULIB_MBSCHR.
16488         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
16489         * MODULES.html.sh (Internationalization functions): Add mbschr.
16490
16491 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16492
16493         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
16494
16495         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
16496
16497 2007-02-04  Bruno Haible  <bruno@clisp.org>
16498
16499         New module description section 'configure.ac-early'.
16500         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
16501         (func_get_autoconf_early_snippet): New function.
16502         (func_import, func_create_testdir): Use it. Remove special cases for
16503         modules 'extensions' and 'lock'.
16504         * modules/extensions (configure.ac-early): Require
16505         gl_USE_SYSTEM_EXTENSIONS.
16506         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
16507
16508 2007-02-04  Bruno Haible  <bruno@clisp.org>
16509
16510         Make use of gcj-4.3's -fsource and -ftarget option.
16511         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
16512         and if so try the options -fsource and -ftarget.
16513         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
16514         source_version, ftarget_option, target_version arguments.
16515         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
16516         (is_envjavac_oldgcj_14_14_usable): Renamed from
16517         is_envjavac_gcj_14_14_usable.
16518         (is_envjavac_oldgcj_14_13_usable): Renamed from
16519         is_envjavac_gcj_14_13_usable.
16520         (is_gcj_present): Update.
16521         (is_gcj_43, is_gcj43_usable): New functions.
16522         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
16523         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
16524         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
16525         try the options -fsource and -ftarget.
16526
16527 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
16528
16529         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
16530         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
16531         larger value.
16532
16533 2007-02-03  Jim Meyering  <jim@meyering.net>
16534
16535         Give tools a better chance to allocate space for very large buffers.
16536         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
16537
16538         Make pwd and readlink work also when run with an unreadable parent dir
16539         on systems with openat support.
16540         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
16541         provided getcwd function, even when we have openat support.
16542         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
16543
16544 2007-02-02  Bruno Haible  <bruno@clisp.org>
16545
16546         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
16547         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
16548         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
16549         portability problems if one of these functions is only used on specific
16550         platforms.
16551         Reported by Paul Eggert.
16552
16553 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16554
16555         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
16556         is causing more trouble than it's curing.
16557         * lib/regex_internal.h (__mempcpy): Remove.
16558         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
16559         (and make the code a tad smaller to boot).
16560         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
16561
16562 2007-02-02  Jim Meyering  <jim@meyering.net>
16563
16564         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
16565         section, not in the Makefile.am: one.
16566
16567 2007-02-02  Eric Blake  <ebb9@byu.net>
16568
16569         * lib/strchrnul.c: Always include config.h first.
16570
16571         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
16572         gnulib strstr is not necessary here.
16573
16574 2007-02-02  Simon Josefsson  <simon@josefsson.org>
16575
16576         * m4/socklen.m4: Fix typo.
16577
16578 2007-02-02  Eric Blake  <ebb9@byu.net>
16579
16580         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
16581         * modules/netinet_in (Makefile.am): Likewise.
16582
16583 2007-02-01  Bruno Haible  <bruno@clisp.org>
16584
16585         * lib/string_.h (GL_LINK_WARNING): New macro.
16586         (strcasecmp, strstr, strcasestr): If provided by the system,
16587         conditionally define as a macro that leads to a warning instead of to
16588         an error.
16589         (strncasecmp): Conditionally define as a macro that leads to a warning.
16590
16591 2007-02-01  Karl Berry  <karl@gnu.org>
16592
16593         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
16594
16595 2007-02-01  Bruno Haible  <bruno@clisp.org>
16596
16597         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
16598         renamings.
16599
16600 2007-02-01  Eric Blake  <ebb9@byu.net>
16601
16602         * modules/regex (Depends-on): Revert dependence on mempcpy.
16603         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
16604         module's definition of mempcpy.
16605         Reported by Paul Eggert.
16606
16607 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
16608
16609         * lib/string_.h: If the gnulib module XYZ is not present, undefine
16610         the symbol XYZ before redefining it.  This fixes a problem with
16611         programs that don't use XYZ, when compiled on systems that define
16612         XYZ to something else.
16613
16614 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16615
16616         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
16617         occurs when "mkdir -m foo" creates a setgid directory that is (1)
16618         writeable to group or other and (2) is intended to have a special
16619         mode bit that is set or cleared.  In such a case, the directory
16620         should be neither group- nor other-writeable until the special
16621         mode bits are right.
16622
16623 2007-01-31  Eric Blake  <ebb9@byu.net>
16624
16625         * modules/mountlist (Depends-on): Add strstr.
16626
16627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
16628         bug.
16629         * modules/string (Makefile.am): Remove redundant replacement.
16630         * modules/regex (Depends-on): Add mempcpy.
16631
16632 2007-01-31  Bruno Haible  <bruno@clisp.org>
16633
16634         New module description field 'Link'.
16635         * gnulib-tool (func_usage): Document --extract-link-directive.
16636         (sed_extract_prog): Recognize 'Link' directive.
16637         (func_get_link_directive): New function.
16638         (func_import): Show summary of link directives.
16639         Handle --extract-link-directive option.
16640         * modules/acl (Link): New section.
16641         * modules/clock-time (Link): New section.
16642         * modules/euidaccess (Link): New section.
16643         * modules/gettext (Link): New section.
16644         * modules/iconv (Link): New section.
16645         * modules/lock (Link): New section.
16646         * modules/nanosleep (Link): New section.
16647         * modules/readline (Link): New section.
16648
16649 2007-01-27  Bruno Haible  <bruno@clisp.org>
16650
16651         Enforce the use of gnulib modules for unportable <string.h> functions.
16652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
16653         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
16654         (gl_HEADER_STRING_H_BODY): Require it.
16655         * lib/string_.h: If the gnulib module XYZ is not present, redefine
16656         the symbol XYZ to one that gives a link error.
16657         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
16658         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
16659         * modules/mempcpy (configure.ac): Likewise.
16660         * modules/memrchr (configure.ac): Likewise.
16661         * modules/stpcpy (configure.ac): Likewise.
16662         * modules/stpncpy (configure.ac): Likewise.
16663         * modules/strcase (configure.ac): Likewise.
16664         * modules/strcasestr (configure.ac): Likewise.
16665         * modules/strchrnul (configure.ac): Likewise.
16666         * modules/strdup (configure.ac): Likewise.
16667         * modules/strndup (configure.ac): Likewise.
16668         * modules/strnlen (configure.ac): Likewise.
16669         * modules/strpbrk (configure.ac): Likewise.
16670         * modules/strsep (configure.ac): Likewise.
16671         * modules/strstr (configure.ac): Likewise.
16672         * modules/strtok_r (configure.ac): Likewise.
16673
16674 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
16675
16676         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
16677
16678 2007-01-30  Jim Meyering  <jim@meyering.net>
16679
16680         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
16681
16682 2007-01-29  Bruno Haible  <bruno@clisp.org>
16683
16684         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
16685         * lib/execute.c: Likewise.
16686         * lib/pipe.c: Likewise.
16687         * lib/printf-args.h: Likewise.
16688         * lib/printf-args.c: Likewise.
16689         * lib/printf-parse.c: Likewise.
16690         * lib/vasnprintf.c: Likewise.
16691
16692 2007-01-29  Eric Blake  <ebb9@byu.net>
16693
16694         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
16695         declaration.
16696
16697 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16698
16699         * lib/strptime.h (strptime): Use 'restrict' for args where
16700         POSIX requires this.
16701         * lib/strptime.c (strptime): Likewise.
16702         Change license notice from LGPL to GPL, since gnulib-tool will
16703         change this as needed.
16704         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
16705         defined.
16706         Include "strptime.h" first, to check interface.
16707         Do not #undef _LIBC and _NL_CURRENT.
16708         Do not include <stdlib.h>; no longer needed.
16709         Include "time_r.h" and declare ptime_locale_status
16710         only if _LIBC is not defined.
16711         (__P): Remove unused macro.
16712         (match_string): Bring back glibc version, but use it only if _LIBC
16713         is defined.
16714         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
16715         Remove unnecessary assertion and abort() call.
16716         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
16717         * m4/strptime.m4: Fix serial number comment.
16718         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
16719         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
16720         (Depends-on): Add time_r.
16721
16722 2007-01-29  Bruno Haible  <bruno@clisp.org>
16723
16724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16725         strptime.
16726         * modules/strptime (Depends-on): Add stdbool.
16727         * lib/strptime.h: Include <time.h> always. Add comments.
16728
16729 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16730
16731         * modules/strptime: New file.
16732         * lib/strptime.h: New file.
16733         * lib/strptime.c: New file.
16734         * m4/strptime.m4: New file.
16735
16736 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16737
16738         * MODULES.html.sh: New module mpsort.
16739         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
16740
16741         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
16742         a circularity problem with HP-UX ia64 reported by Bob Proulx in
16743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
16744         All uses changed.
16745         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
16746         All uses changed.
16747         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
16748         to _Restrict_.
16749         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
16750         the parameter matches the prototype.
16751
16752 2007-01-28  Jim Meyering  <jim@meyering.net>
16753
16754         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
16755         sys/time.h here, reverting that part of the previous patch:
16756         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
16757
16758 2007-01-28  Bruno Haible  <bruno@clisp.org>
16759
16760         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
16761         value of $(SYS_TIME_H).
16762         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
16763         remove it conditionally, too. [added by Jim Meyering]
16764         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
16765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
16766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
16767         GETTIMEOFDAY_REPLACEMENT to 1.
16768
16769 2007-01-28  Bruno Haible  <bruno@clisp.org>
16770
16771         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
16772         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
16773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
16774         Set UNISTD_H instead of UNISTD_H2.
16775         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
16776
16777 2007-01-28  Bruno Haible  <bruno@clisp.org>
16778
16779         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
16780         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
16781
16782 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16783
16784         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
16785         (func_create_testdir): Ensure C locale for `grep' and `tr'
16786         character ranges.
16787         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
16788         ACLOCAL_AMFLAGS parsing state machine.
16789
16790 2007-01-27  Bruno Haible  <bruno@clisp.org>
16791
16792         * modules/unistr/base: Update.
16793
16794 2007-01-27  Bruno Haible  <bruno@clisp.org>
16795
16796         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
16797         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
16798         * modules/unistr/u32-mbtouc-unsafe: Renamed from
16799         modules/unistr/u32-mbtouc.
16800         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
16801         * lib/unistr.h: Update.
16802         * lib/linebreak.c: Update.
16803         * modules/unistr/u32-mbtouc: Renamed from
16804         modules/unistr/u32-mbtouc-safe.
16805         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
16806         * lib/unistr.h: Update.
16807         * lib/unistr/u32-to-u8.c: Update.
16808         * lib/unistr/u32-to-u16.c: Update.
16809
16810 2007-01-27  Bruno Haible  <bruno@clisp.org>
16811
16812         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
16813         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
16814         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
16815         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
16816         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
16817         * modules/unistr/u16-mbtouc-unsafe: Renamed from
16818         modules/unistr/u16-mbtouc.
16819         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
16820         * lib/unistr.h: Update.
16821         * lib/linebreak.c: Update.
16822         * modules/linebreak: Update.
16823         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
16824         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
16825         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
16826         * modules/unistr/u16-mbtouc: Renamed from
16827         modules/unistr/u16-mbtouc-safe.
16828         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
16829         * lib/unistr.h: Update.
16830         * lib/unistr/u16-to-u8.c: Update.
16831         * modules/unistr/u16-to-u8: Update.
16832         * lib/unistr/u16-to-u32.c: Update.
16833         * modules/unistr/u16-to-u32: Update.
16834
16835 2007-01-27  Bruno Haible  <bruno@clisp.org>
16836
16837         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
16838         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
16839         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
16840         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
16841         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
16842         * modules/unistr/u8-mbtouc-unsafe: Renamed from
16843         modules/unistr/u8-mbtouc.
16844         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
16845         * lib/unistr.h: Update.
16846         * lib/striconveh.c: Update.
16847         * modules/striconveh: Update.
16848         * lib/linebreak.c: Update.
16849         * modules/linebreak: Update.
16850         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
16851         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
16852         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
16853         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
16854         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
16855         * lib/unistr.h: Update.
16856         * lib/striconveh.c: Update.
16857         * modules/striconveh: Update.
16858         * lib/unistr/u8-to-u16.c: Update.
16859         * modules/unistr/u8-to-u16: Update.
16860         * lib/unistr/u8-to-u32.c: Update.
16861         * modules/unistr/u8-to-u32: Update.
16862
16863 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16864
16865         Sync from Libtool.
16866         * lib/argz.c: Do not include strings.h nor memory.h, include
16867         string.h unconditionally.  Patch by Simon Josefsson.
16868
16869 2007-01-27  Bruno Haible  <bruno@clisp.org>
16870
16871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
16872         from gl_HEADER_STRING_H_BODY.
16873         (gl_HEADER_STRING_H_BODY): Require it.
16874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
16875         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
16876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
16877         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
16878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16879         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
16880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
16882         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
16883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16884         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
16885         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
16886         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
16887         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16888         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16889
16890 2007-01-27  Bruno Haible  <bruno@clisp.org>
16891
16892         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
16893         check_PROGRAMS into noinst_PROGRAMS.
16894         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
16895         check_PROGRAMS in this case.
16896         (func_import): Set for_test to false.
16897         (func_create_testdir): Set for_test to true.
16898
16899 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16900             Bruno Haible  <bruno@clisp.org>
16901
16902         * modules/strcasestr (Files): Remove lib/strcasestr.h.
16903         (Depends-on): Add string.
16904         (Includes): Use <string.h> instead of strcasestr.h.
16905         * modules/string (Makefile.am): Also substitute the value of
16906         REPLACE_STRCASESTR.
16907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
16908         assume strcasestr is declared in <string.h> not <strings.h>. Also
16909         set REPLACE_STRCASESTR.
16910         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
16911         REPLACE_STRCASESTR.
16912         * lib/strcasestr.h: Remove file.
16913         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
16914         * lib/string_.h (strcasestr): New declaration.
16915
16916 2007-01-27  Bruno Haible  <bruno@clisp.org>
16917
16918         * lib/string_.h: Use 'extern'.
16919
16920 2007-01-27  Jim Meyering  <jim@meyering.net>
16921
16922         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
16923         of set-but-not-used local, "q".
16924
16925         * lib/mempcpy.c: Include <config.h> before <string.h>.
16926         This fixes a compilation error on HP-UX, due to the system's
16927         "restrict"-using mempcpy prototype.
16928
16929 2007-01-26  Bruno Haible  <bruno@clisp.org>
16930
16931         Small optimization.
16932         * lib/javacomp.c: Include c-strstr.h.
16933          (is_envjavac_gcj): Use c_strstr instead of strstr.
16934         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
16935
16936 2007-01-26  Bruno Haible  <bruno@clisp.org>
16937
16938         * MODULES.html.sh (Unicode string functions): Add the new modules.
16939
16940         * modules/uniconv/u32-strconv-to-locale: New file.
16941         * lib/uniconv/u32-strconv-to-locale.c: New file.
16942
16943         * modules/uniconv/u16-strconv-to-locale: New file.
16944         * lib/uniconv/u16-strconv-to-locale.c: New file.
16945
16946         * modules/uniconv/u8-strconv-to-locale: New file.
16947         * lib/uniconv/u8-strconv-to-locale.c: New file.
16948
16949         * modules/uniconv/u32-strconv-from-locale: New file.
16950         * lib/uniconv/u32-strconv-from-locale.c: New file.
16951
16952         * modules/uniconv/u16-strconv-from-locale: New file.
16953         * lib/uniconv/u16-strconv-from-locale.c: New file.
16954
16955         * modules/uniconv/u8-strconv-from-locale: New file.
16956         * lib/uniconv/u8-strconv-from-locale.c: New file.
16957
16958         * modules/uniconv/u32-strconv-to-enc: New file.
16959         * lib/uniconv/u32-strconv-to-enc.c: New file.
16960         * modules/uniconv/u32-strconv-to-enc-tests: New file.
16961         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
16962
16963         * modules/uniconv/u16-strconv-to-enc: New file.
16964         * lib/uniconv/u16-strconv-to-enc.c: New file.
16965         * lib/uniconv/u-strconv-to-enc.h: New file.
16966         * modules/uniconv/u16-strconv-to-enc-tests: New file.
16967         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
16968
16969         * modules/uniconv/u8-strconv-to-enc: New file.
16970         * lib/uniconv/u8-strconv-to-enc.c: New file.
16971         * modules/uniconv/u8-strconv-to-enc-tests: New file.
16972         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
16973
16974         * modules/uniconv/u32-strconv-from-enc: New file.
16975         * lib/uniconv/u32-strconv-from-enc.c: New file.
16976         * modules/uniconv/u32-strconv-from-enc-tests: New file.
16977         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
16978
16979         * modules/uniconv/u16-strconv-from-enc: New file.
16980         * lib/uniconv/u16-strconv-from-enc.c: New file.
16981         * modules/uniconv/u16-strconv-from-enc-tests: New file.
16982         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
16983
16984         * modules/uniconv/u8-strconv-from-enc: New file.
16985         * lib/uniconv/u8-strconv-from-enc.c: New file.
16986         * lib/uniconv/u-strconv-from-enc.h: New file.
16987         * modules/uniconv/u8-strconv-from-enc-tests: New file.
16988         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
16989
16990         * modules/uniconv/u32-conv-from-enc: New file.
16991         * lib/uniconv/u32-conv-from-enc.c: New file.
16992         * modules/uniconv/u32-conv-from-enc-tests: New file.
16993         * tests/uniconv/test-u32-conv-from-enc.c: New file.
16994
16995         * modules/uniconv/u16-conv-from-enc: New file.
16996         * lib/uniconv/u16-conv-from-enc.c: New file.
16997         * lib/uniconv/u-conv-from-enc.h: New file.
16998         * modules/uniconv/u16-conv-from-enc-tests: New file.
16999         * tests/uniconv/test-u16-conv-from-enc.c: New file.
17000
17001         * modules/uniconv/u8-conv-from-enc: New file.
17002         * lib/uniconv/u8-conv-from-enc.c: New file.
17003         * modules/uniconv/u8-conv-from-enc-tests: New file.
17004         * tests/uniconv/test-u8-conv-from-enc.c: New file.
17005
17006         * modules/uniconv/base: New file.
17007         * lib/uniconv.h: New file.
17008
17009 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17010
17011         * doc/gnulib-tool.texi (Initial import): Update to match current
17012         behavior with strdup module.
17013         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
17014         * lib/memmem.h: Remove; all uses removed.  This is now done
17015         by <string.h>.
17016         * lib/mempcpy.h: Likewise.
17017         * lib/memrchr.h: Likewise.
17018         * lib/stpcpy.h: Likewise.
17019         * lib/stpncpy.h: Likewise.
17020         * lib/strcase.h: Likewise.
17021         * lib/strchrnul.h: Likewise.
17022         * lib/strdup.h: Likewise.
17023         * lib/strndup.h: Likewise.
17024         * lib/strnlen.h: Likewise.
17025         * lib/strpbrk.h: Likewise.
17026         * lib/strsep.h: Likewise.
17027         * lib/strstr.h: Likewise.
17028         * lib/strtok_r.h: Likewise.
17029         * lib/string_.h: New file.
17030         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
17031         Rely on <string.h> instead.
17032         * lib/canon-host.c: Likewise.
17033         * lib/chdir-long.c: Likewise.
17034         * lib/concatpath.c: Likewise.
17035         * lib/exclude.c: Likewise.
17036         * lib/fchdir.c: Likewise.
17037         * lib/getaddrinfo.c: Likewise.
17038         * lib/getcwd.c: Likewise.
17039         * lib/getsubopt.c: Likewise.
17040         * lib/glob.c: Likewise.
17041         * lib/hard-locale.c: Likewise.
17042         * lib/iconvme.c: Likewise.
17043         * lib/javacomp.c: Likewise.
17044         * lib/mempcpy.c: Likewise.
17045         * lib/memrchr.c: Likewise.
17046         * lib/regex_internal.h: Likewise.
17047         * lib/stpncpy.c: Likewise.
17048         * lib/strcasecmp.c: Likewise.
17049         * lib/strchrnul.c: Likewise.
17050         * lib/strdup.c: Likewise.
17051         * lib/striconv.c: Likewise.
17052         * lib/striconveh.c: Likewise.
17053         * lib/striconveha.c: Likewise.
17054         * lib/strncasecmp.c: Likewise.
17055         * lib/strndup.c: Likewise.
17056         * lib/strnlen.c: Likewise.
17057         * lib/strsep.c: Likewise.
17058         * lib/strstr.c: Likewise.
17059         * lib/strtok_r.c: Likewise.
17060         * lib/userspec.c: Likewise.
17061         * lib/w32spawn.h: Likewise.
17062         * lib/xstrndup.c: Likewise.
17063         * lib/mountlist.c (strstr): Remove decl.
17064         * m4/string_h.m4: New file.
17065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
17066         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
17067         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
17068         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
17069         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
17070         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
17071         Set REPLACE_STRCASECMP if necessary.
17072         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
17073         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
17074         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
17075         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
17076         HAVE_DECL_STRDUP if necessary.
17077         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
17078         since gl_FUNC_STRNDUP does that now.
17079         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
17080         Check for decl here...
17081         (gl_PREREQ_STRNLEN): ... not here.
17082         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
17083         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
17084         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
17085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
17086         necessary.
17087         * modules/string: New file.
17088         * modules/memmem (Files): Remove special-purpose include file.
17089         (Depends-on): Add string.
17090         (Include): Include <string.h>, not the removed file.
17091         * modules/mempcpy: Likewise.
17092         * modules/memrchr: Likewise.
17093         * modules/stpcpy: Likewise.
17094         * modules/stpncpy: Likewise.
17095         * modules/strcase: Likewise.
17096         * modules/strchrnul: Likewise.
17097         * modules/strdup: Likewise.
17098         * modules/strndup: Likewise.
17099         * modules/strnlen: Likewise.
17100         * modules/strpbrk: Likewise.
17101         * modules/strsep: Likewise.
17102         * modules/strstr: Likewise.
17103         * modules/strtok_r: Likewise.
17104         * tests/test-dirname.c: Don't include "strdup.h", since
17105         <string.h> now suffices.
17106         * tests/test-memmem.c: Don't include "memmem.h", since
17107         <string.h> now suffices.
17108
17109 2007-01-25  Bruno Haible  <bruno@clisp.org>
17110
17111         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
17112         *resultp is 0.
17113
17114         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
17115         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
17116         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
17117         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
17118
17119         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
17120         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
17121         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
17122         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
17123         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
17124         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
17125
17126 2007-01-24  Bruno Haible  <bruno@clisp.org>
17127
17128         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
17129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
17130         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
17131         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
17132         gl_FUNC_FTS_CORE.
17133         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
17134         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
17135         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17136         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
17137         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
17138         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
17139         gl_FUNC_FCHOWNAT.
17140         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
17141         gl_FUNC_STRFTIME.
17142         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
17143         Reported by Ralf Wildenhues.
17144
17145 2007-01-24  Bruno Haible  <bruno@clisp.org>
17146
17147         Drop AC_REQUIRE calls that are redundant with the module dependencies.
17148         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
17149         gl_GETADDRINFO.
17150         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
17151         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
17152         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
17153
17154 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
17155
17156         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
17157         Don't use 'exit'; just return from 'main'.
17158         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
17159
17160         * lib/fnmatch_.h: Readjust white space and comments to match
17161         glibc, to avoid spurious diffs.
17162
17163 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17164
17165         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
17166         2004-12-01 change by Jakub Jelinek, since this code won't compile
17167         if !LIBC.  Problem reported by Bob Proulx.
17168
17169 2007-01-23  Bruno Haible  <bruno@clisp.org>
17170
17171         * lib/striconveh.c: Include c-strcaseeq.h.
17172         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
17173         * modules/striconveh (Depends-on): Add c-strcaseeq.
17174
17175 2007-01-23  Bruno Haible  <bruno@clisp.org>
17176
17177         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
17178
17179         * modules/c-strcaseeq: New file.
17180         * lib/c-strcaseeq.h: New file.
17181
17182         * modules/streq: New file.
17183         * lib/streq.h: New file.
17184
17185 2007-01-23  Bruno Haible  <bruno@clisp.org>
17186
17187         * modules/striconveha-tests: New file.
17188         * tests/test-striconveha.c: New file.
17189
17190         * lib/striconveha.h: Include <stdbool.h>.
17191         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
17192         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
17193         (mem_iconveha_notranslit): Renamed from mem_iconveha.
17194         (mem_iconveha): New function.
17195         (str_iconveha_notranslit): Renamed from str_iconveha.
17196         (str_iconveha): New function.
17197         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
17198         c-strcase.
17199
17200 2007-01-23  Bruno Haible  <bruno@clisp.org>
17201
17202         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
17203         encodings without forgiving before trying any encoding with handler.
17204         (str_iconveha): Try all encodings without forgiving before trying any
17205         encoding with handler.
17206
17207 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17208
17209         Import the following changes from libc.
17210
17211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17212
17213         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
17214
17215         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
17216
17217         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
17218         normal_bracket label.
17219
17220         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
17221
17222         [BZ #361]
17223         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
17224         to normal_bracket after fetching the next character.
17225
17226 2007-01-22  Bruno Haible  <bruno@clisp.org>
17227
17228         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
17229         argument.
17230         * lib/striconveh.c (iconv_carefully_1): New function.
17231         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
17232         argument.
17233         (str_cd_iconveh): Update.
17234         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
17235         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
17236         * tests/test-striconveh.c (MAGIC): New macro.
17237         (new_offsets): New function.
17238         (main): Test call with and without offsets.
17239
17240 2007-01-22  Bruno Haible  <bruno@clisp.org>
17241
17242         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
17243         * modules/sys_select (Makefile.am): Likewise.
17244         * modules/sys_socket (Makefile.am): Likewise.
17245         * modules/sys_time (Makefile.am): Likewise.
17246
17247 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17248
17249         * modules/gettimeofday (License): Change from GPL to LGPL, since
17250         gettimeofday is a library function.
17251
17252 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17253
17254         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
17255
17256 2007-01-21  Bruno Haible  <bruno@clisp.org>
17257
17258         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
17259
17260 2007-01-21  Bruno Haible  <bruno@clisp.org>
17261
17262         * modules/striconveha: New file.
17263         * lib/striconveha.h: New file.
17264         * lib/striconveha.c: New file.
17265         * MODULES.html.sh (Internationalization functions): Add striconveha.
17266         * lib/striconv.c (str_iconv): Optimize the case of an empty input
17267         string.
17268         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
17269
17270 2007-01-21  Bruno Haible  <bruno@clisp.org>
17271
17272         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
17273         * lib/striconveh.c (str_iconveh): Likewise.
17274
17275 2007-01-21  Bruno Haible  <bruno@clisp.org>
17276
17277         * lib/striconveh.h (mem_iconveh): New declaration.
17278         * lib/striconveh.c (mem_iconveh): New function.
17279         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
17280
17281 2007-01-21  Bruno Haible  <bruno@clisp.org>
17282
17283         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
17284
17285         * lib/striconveh.h (mem_cd_iconveh): Change specification.
17286         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
17287         original result buffer.
17288         (str_cd_iconveh): Update.
17289         * tests/test-striconveh.c (main): Update.
17290
17291         * lib/striconv.h (mem_cd_iconv): Change specification.
17292         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
17293         result buffer.
17294         (str_cd_iconv): Update.
17295         * tests/test-striconv.c (main): Update.
17296
17297 2007-01-21  Bruno Haible  <bruno@clisp.org>
17298
17299         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
17300
17301 2007-01-20  Jim Meyering  <jim@meyering.net>
17302
17303         * lib/userspec.c (parse_with_separator): If a user or group string
17304         starts with "+", skip the corresponding name-to-ID look-up, since
17305         such a look-up must fail: user and group names may not include "+".
17306
17307 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17308
17309         * lib/poll.c: Include sys/time.h and time.h unconditionally,
17310         since we now assume the sys_time module.
17311         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
17312         check for sys/time.h; no longer needed.
17313         * modules/poll (Depends-on): Depend on sys_time.
17314
17315 2007-01-18  Bruno Haible  <bruno@clisp.org>
17316
17317         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
17318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17319
17320         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
17321         gettimeofday.
17322
17323         * tests/test-gettimeofday.c: Include <time.h>.
17324         (dummy): Remove variable.
17325
17326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
17327         gl_HEADER_SYS_TIME_H.
17328         (gl_HEADER_SYS_TIME_H): New macro.
17329
17330         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
17331         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17332         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17333         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
17334         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
17336         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
17337         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17338         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
17339         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
17340         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17341
17342         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
17343         last change; it caused a compilation error when cross-compiling to
17344         Cygwin.
17345
17346 2007-01-18  Jim Meyering  <jim@meyering.net>
17347
17348         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
17349         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
17350         than the race-prone "test -d sys || mkdir sys".
17351         (configure.ac): Use AC_PROG_MKDIR_P.
17352         * modules/sys_select: Likewise.
17353         * modules/sys_socket: Likewise.
17354         * modules/sys_time: Likewise.
17355
17356 2007-01-18  Eric Blake  <ebb9@byu.net>
17357
17358         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
17359         replace gettimeofday.
17360         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
17361         name, to avoid infinite recursion.
17362
17363 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
17364
17365         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
17366         module sys_time.
17367         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
17368         assume timespec.h defines struct timeval.
17369         * lib/settime.c: Likewise.
17370         * lib/utimens.c: Likewise.
17371         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
17372         since we now assume the gettimeofday module.
17373         * lib/tempname.c (__gen_tempname): Likewise.
17374         * lib/gettimeofday.h: Remove.
17375         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
17376         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
17377         Include <time.h>, for 'time()'.
17378         (localtime_buffer_addr): Also use this workaround if
17379         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
17380         to simplify the uses.  All uses changed.
17381         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
17382         that #undef is inside {}, and 'const' follows type name consistently.
17383         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
17384         (gettimeofday): Do not use the maximum possible value for
17385         tv->tv_usec, since that might break usages other than ls.c.
17386         Instead, we'll leave ls.c alone.  This undoes today's patch
17387         by Bruno.  Add a compile-time warning for 1s-clock resolution;
17388         we've never observed the problem but might as well keep the
17389         canary.
17390         * lib/nanosleep.c: Include timespec.h first, for interface check.
17391         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
17392         now assume the sys_time module.
17393         * lib/tempname.c: Likewise.
17394         * lib/timespec.h: Likewise.
17395         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
17396         needed.
17397         * lib/strftime.c: Likewise.
17398         * lib/timespec.h: Likewise.
17399         * lib/posixtm.c: Include posixtm.h first, for interface check.
17400         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
17401         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
17402         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
17403         * lib/sys_time_.h: New file.
17404         * lib/timespec.h (struct timespec): Use long int, not long.
17405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
17406         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
17407         Remove obsolescent call to AC_HEADER_TIME.
17408         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
17411         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
17412         Likewise.
17413         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
17414         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
17415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
17416         into the sys_time module.  Check for gettimeofday just once.
17417         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
17418         for gettimeofday signature to just check the signature.  Merely
17419         compile it, since linking doesn't test signature.  Improve test for
17420         whether gettimeofday.o is actually needed.
17421         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
17422         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
17423         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
17424         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17425         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
17426         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
17427         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
17428         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
17429         than worrying about sys/time.h.
17430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
17431         Don't bother worrying about TIME_WITH_SYS_TIME.
17432         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17433         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
17434         * m4/sys_time_h.m4: New file.
17435         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
17436         Don't include sys/time.h.  Return from main rather than exiting.
17437         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
17438         all uses changed.
17439         * modules/gethrxtime (Depends-on): Add sys_time.
17440         * modules/gettime (Depends-on): Likewise.
17441         * modules/gettimeofday (Depends-on): Likewise.
17442         * modules/nanosleep (Depends-on): Likewise.
17443         * modules/settime (Depends-on): Likewise.
17444         * modules/tempname (Depends-on): Likewise.
17445         * modules/utimens (Depends-on): Likewise.
17446         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
17447         (Include:) Change back to <sys/time.h>.
17448         (Maintainer:) Add self.
17449         * modules/sys_time: New file.
17450         * modules/tempname (Depends-on): Add gettimeofday.
17451         * tests/test-gettimeofday.c: Include <sys/time.h>
17452         rather than gettimeofday.h.
17453
17454 2007-01-17  Bruno Haible  <bruno@clisp.org>
17455
17456         * gnulib-tool (func_get_license): Revert last patch. Instead, let
17457         the license default to GPL.
17458         (func_create_testdir): Don't complain if a module is LGPL and its
17459         tests module depends on GPLed modules.
17460
17461 2007-01-17  Bruno Haible  <bruno@clisp.org>
17462
17463         * lib/gettimeofday.c (gettimeofday): Add code for the case
17464         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
17465         maximum possible value for tv->tv_usec, rather than the minimum one.
17466
17467 2005-10-08  Martin Lambers  <marlam@marlam.de>
17468 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17469 2007-01-16  Bruno Haible  <bruno@clisp.org>
17470
17471         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
17472         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
17473         gl_FUNC_GETTIMEOFDAY.
17474         (Include): Add gettimeofday.h.
17475         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
17476         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
17477         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
17478         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
17479         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
17480         * lib/gettimeofday.h: New file.
17481         * lib/gettimeofday.c: Include <sys/timeb.h>.
17482         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
17483         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
17484         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
17485         fall back on time().
17486
17487         * tests/test-gettimeofday.c: New file.
17488         * modules/gettimeofday-tests: New file.
17489
17490 2007-01-16  Eric Blake  <ebb9@byu.net>
17491
17492         * modules/fnmatch (Depends-on): Depend on wchar.
17493         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
17494         * m4/fnmatch.m4: Likewise.
17495         * modules/mbchar (Makefile.am): Assume <wchar.h>.
17496         * m4/mbchar.m4: Likewise.
17497         * modules/mbswidth (Depends-on): Depend on wchar.
17498         * lib/mbswidth.c: Assume <wchar.h>.
17499         * m4/mbswidth.m4: Likewise.
17500         * modules/quotearg (Depends-on): Depend on wchar.
17501         * lib/quotearg.c: Assume <wchar.h>.
17502         * m4/quotearg.m4: Likewise.
17503         * modules/regex (Depends-on): Depend on wchar.
17504         * lib/regex_internal.h: Assume <wchar.h>.
17505         * m4/regex.m4: Likewise.
17506         * modules/stdint (Depends-on): Depend on wchar.
17507         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
17508         * m4/stdint.m4: Likewise.
17509         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
17510         * modules/strftime (Depends-on): Depend on wchar.
17511         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
17512         * modules/strtol (Depends-on): Depend on wchar.
17513         * lib/strtol.c: Assume <wchar.h>.
17514         * modules/wcwidth (Depends-on): Depend on wchar.
17515         * lib/wcwidth.h: Assume <wchar.h>.
17516         * m4/wcwidth.m4: Likewise.
17517
17518 2007-01-16  Bruno Haible  <bruno@clisp.org>
17519
17520         * modules/csharpexec-script: New, created from...
17521         * modules/csharpexec: ... this.
17522
17523 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
17524
17525         * modules/javaexec-script: New, created from...
17526         * modules/javaexec: ... this.
17527
17528 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17529
17530         * modules/poll (Dependencies): Add sys_select.
17531
17532 2007-01-15  Jim Meyering  <jim@meyering.net>
17533
17534         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
17535         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
17536         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
17537         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
17538
17539 2007-01-15  Bruno Haible  <bruno@clisp.org>
17540
17541         * modules/striconveh: New file.
17542         * lib/striconveh.h: New file.
17543         * lib/striconveh.c: New file.
17544         * MODULES.html.sh (Internationalization functions): Add striconveh.
17545
17546         * modules/striconveh-tests: New file.
17547         * tests/test-striconveh.c: New file.
17548
17549 2007-01-15  Bruno Haible  <bruno@clisp.org>
17550
17551         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
17552         not from GNU libiconv or GNU libc.
17553
17554 2007-01-15  Bruno Haible  <bruno@clisp.org>
17555
17556         * doc/gnulib-intro.texi (Copyright): Explain the different license
17557         terms for module descriptions, autoconf macros, tests, documentation.
17558
17559 2007-01-14  Bruno Haible  <bruno@clisp.org>
17560
17561         * modules/striconv-tests: New file.
17562         * tests/test-striconv.c: New file.
17563
17564 2007-01-14  Bruno Haible  <bruno@clisp.org>
17565
17566         * modules/iconv-tests: New file.
17567         * tests/test-iconv.c: New file.
17568
17569 2007-01-14  Bruno Haible  <bruno@clisp.org>
17570
17571         * gnulib-tool (func_get_license): For test modules, use the license of
17572         the main module.
17573
17574 2007-01-14  Bruno Haible  <bruno@clisp.org>
17575
17576         * modules/iconv (Include): Clarify that <iconv.h> can only be included
17577         if iconv is found to exist.
17578
17579 2007-01-14  Bruno Haible  <bruno@clisp.org>
17580
17581         * modules/c-ctype-tests: New file.
17582         * tests/test-c-ctype.c: New file.
17583
17584 2007-01-14  Bruno Haible  <bruno@clisp.org>
17585
17586         * modules/binary-io-tests: New file.
17587         * tests/test-binary-io.sh: New file.
17588         * tests/test-binary-io.c: New file.
17589
17590 2007-01-14  Bruno Haible  <bruno@clisp.org>
17591
17592         * modules/array-oset-tests: New file.
17593         * tests/test-array_oset.c: New file.
17594
17595 2007-01-14  Bruno Haible  <bruno@clisp.org>
17596
17597         * modules/array-list-tests: New file.
17598         * tests/test-array_list.c: New file.
17599
17600 2007-01-14  Bruno Haible  <bruno@clisp.org>
17601
17602         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
17603         and make.
17604         Reported by Simon Josefsson in
17605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
17606
17607 2007-01-14  Bruno Haible  <bruno@clisp.org>
17608
17609         * modules/allocsa-tests: New file.
17610         * tests/test-allocsa.c: New file.
17611
17612 2007-01-14  Bruno Haible  <bruno@clisp.org>
17613
17614         * modules/fchdir (Depends-on): Add absolute-header.
17615         * modules/unistd (Depends-on): Likewise.
17616
17617 2006-12-30  Bruno Haible  <bruno@clisp.org>
17618
17619         * modules/fchdir: New file.
17620         * modules/unistd (Files): Add lib/unistd_.h.
17621         (Makefile.am): Generate unistd.h from unistd_.h.
17622         * lib/fchdir.c: New file.
17623         * lib/dirent_.h: New file.
17624         * lib/unistd_.h: New file.
17625         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
17626         * m4/fchdir.m4: New file.
17627         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
17628         (gl_HEADER_UNISTD): Invoke it.
17629         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
17630         function.
17631         * lib/backupfile.c (opendir, closedir): Undefine.
17632         * lib/chown.c (open, close): Undefine.
17633         * lib/clean-temp.c (open, close): Undefine.
17634         * lib/copy-file.c (open, close): Undefine.
17635         * lib/execute.c (open, close): Undefine.
17636         * lib/fsusage.c (open, close): Undefine.
17637         * lib/gc-gnulib.c (open, close): Undefine.
17638         * lib/getcwd.c (opendir, closedir): Undefine.
17639         * lib/glob.c (opendir, closedir): Undefine.
17640         * lib/javacomp.c (open, close): Undefine.
17641         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
17642         * lib/openat-proc.c (open, close): Undefine.
17643         * lib/pagealign_alloc.c (open, close): Undefine.
17644         * lib/pipe.c (open, close): Undefine.
17645         * lib/progreloc.c (open, close): Undefine.
17646         * lib/savedir.c (opendir, closedir): Undefine.
17647         * lib/utime.c (open, close): Undefine.
17648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
17649
17650 2007-01-10  Bruno Haible  <bruno@clisp.org>
17651
17652         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
17653
17654 2007-01-12  Eric Blake  <ebb9@byu.net>
17655
17656         Provide a robust <wchar.h>.  Further simplifications are now
17657         possible in other modules, but not included here.
17658         * modules/wchar: New module.
17659         * m4/wchar.m4: New file.
17660         * lib/wchar_.h: Likewise.
17661         * modules/mbchar (Depends-on): Depend on wchar, as the first use
17662         of the new module.
17663         * MODULES.html.sh (Extended multibyte and wide character utilities):
17664         New section.
17665
17666 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17667
17668         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
17669         to a reasonable default for memory allocation.
17670         (xreadlink): Don't allocate a huge buffer, to work around a buggy
17671         file system that reports garbage st_size values for symlinks.
17672         Problem reported by Liyang Hu.
17673
17674 2007-01-11  Simon Josefsson  <simon@josefsson.org>
17675
17676         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
17677         Emacs .#* auto-save files).
17678
17679 2007-01-11  Bruno Haible  <bruno@clisp.org>
17680
17681         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
17682         directory.
17683
17684 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         Use @...@ consistently in lib/wctype_.h.
17687         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
17688         on it being set to 1 or 0.
17689         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
17690         go back to AC_SUBSTing it.
17691         * modules/wctype (Makefile.am): Undo previous change.
17692
17693 2007-01-10  Eric Blake  <ebb9@byu.net>
17694
17695         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
17696         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
17697         * modules/wctype (Makefile.am): Likewise.
17698         Reported by Chris McGuire.
17699
17700 2007-01-10  Jim Meyering  <jim@meyering.net>
17701
17702         fts.c: a small readability/maintainability improvement
17703         * lib/fts.c (fts_read): Make this code slightly more readable and
17704         maintainable by hoisting the "sp->fts_cur = p" assignments to
17705         immediately follow the statements that set P.  Derived from
17706         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
17707
17708 2007-01-10  Eric Blake  <ebb9@byu.net>
17709
17710         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
17711         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
17712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17714         Reported by Chris McGuire.
17715
17716 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17717
17718         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
17719         in sed script.
17720
17721 2007-01-09  Bruno Haible  <bruno@clisp.org>
17722
17723         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
17724         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
17725         variables.
17726         (func_module): Use them.
17727
17728 2007-01-09  Bruno Haible  <bruno@clisp.org>
17729
17730         * modules/unistr/base: New file.
17731         * lib/unistr.h: New file.
17732
17733         * modules/unistr/u8-to-u16: New file.
17734         * lib/unistr/u8-to-u16.c: New file.
17735
17736         * modules/unistr/u8-to-u32: New file.
17737         * lib/unistr/u8-to-u32.c: New file.
17738
17739         * modules/unistr/u16-to-u8: New file.
17740         * lib/unistr/u16-to-u8.c: New file.
17741
17742         * modules/unistr/u16-to-u32: New file.
17743         * lib/unistr/u16-to-u32.c: New file.
17744
17745         * modules/unistr/u32-to-u8: New file.
17746         * lib/unistr/u32-to-u8.c: New file.
17747
17748         * modules/unistr/u32-to-u16: New file.
17749         * lib/unistr/u32-to-u16.c: New file.
17750
17751         * modules/unistr/u8-check: New file.
17752         * modules/unistr/u16-check: New file.
17753         * modules/unistr/u32-check: New file.
17754         * lib/unistr/u8-check.c: New file.
17755         * lib/unistr/u16-check.c: New file.
17756         * lib/unistr/u32-check.c: New file.
17757
17758         * modules/unistr/u8-chr: New file.
17759         * modules/unistr/u16-chr: New file.
17760         * modules/unistr/u32-chr: New file.
17761         * lib/unistr/u8-chr.c: New file.
17762         * lib/unistr/u16-chr.c: New file.
17763         * lib/unistr/u32-chr.c: New file.
17764
17765         * modules/unistr/u8-cmp: New file.
17766         * modules/unistr/u16-cmp: New file.
17767         * modules/unistr/u32-cmp: New file.
17768         * lib/unistr/u8-cmp.c: New file.
17769         * lib/unistr/u16-cmp.c: New file.
17770         * lib/unistr/u32-cmp.c: New file.
17771
17772         * modules/unistr/u8-cpy: New file.
17773         * modules/unistr/u16-cpy: New file.
17774         * modules/unistr/u32-cpy: New file.
17775         * lib/unistr/u8-cpy.c: New file.
17776         * lib/unistr/u16-cpy.c: New file.
17777         * lib/unistr/u32-cpy.c: New file.
17778         * lib/unistr/u-cpy.h: New file.
17779
17780         * modules/unistr/u8-cpy-alloc: New file.
17781         * modules/unistr/u16-cpy-alloc: New file.
17782         * modules/unistr/u32-cpy-alloc: New file.
17783         * lib/unistr/u8-cpy-alloc.c: New file.
17784         * lib/unistr/u16-cpy-alloc.c: New file.
17785         * lib/unistr/u32-cpy-alloc.c: New file.
17786         * lib/unistr/u-cpy-alloc.h: New file.
17787
17788         * modules/unistr/u8-endswith: New file.
17789         * modules/unistr/u16-endswith: New file.
17790         * modules/unistr/u32-endswith: New file.
17791         * lib/unistr/u8-endswith.c: New file.
17792         * lib/unistr/u16-endswith.c: New file.
17793         * lib/unistr/u32-endswith.c: New file.
17794         * lib/unistr/u-endswith.h: New file.
17795
17796         * modules/unistr/u8-mblen: New file.
17797         * modules/unistr/u16-mblen: New file.
17798         * modules/unistr/u32-mblen: New file.
17799         * lib/unistr/u8-mblen.c: New file.
17800         * lib/unistr/u16-mblen.c: New file.
17801         * lib/unistr/u32-mblen.c: New file.
17802
17803         * modules/unistr/u8-mbtouc: New file.
17804         * modules/unistr/u16-mbtouc: New file.
17805         * modules/unistr/u32-mbtouc: New file.
17806         * lib/unistr/u8-mbtouc.c: New file.
17807         * lib/unistr/u16-mbtouc.c: New file.
17808         * lib/unistr/u32-mbtouc.c: New file.
17809
17810         * modules/unistr/u8-mbtouc-safe: New file.
17811         * modules/unistr/u16-mbtouc-safe: New file.
17812         * modules/unistr/u32-mbtouc-safe: New file.
17813         * lib/unistr/u8-mbtouc-safe.c: New file.
17814         * lib/unistr/u16-mbtouc-safe.c: New file.
17815         * lib/unistr/u32-mbtouc-safe.c: New file.
17816
17817         * modules/unistr/u8-move: New file.
17818         * modules/unistr/u16-move: New file.
17819         * modules/unistr/u32-move: New file.
17820         * lib/unistr/u8-move.c: New file.
17821         * lib/unistr/u16-move.c: New file.
17822         * lib/unistr/u32-move.c: New file.
17823         * lib/unistr/u-move.h: New file.
17824
17825         * modules/unistr/u8-next: New file.
17826         * modules/unistr/u16-next: New file.
17827         * modules/unistr/u32-next: New file.
17828         * lib/unistr/u8-next.c: New file.
17829         * lib/unistr/u16-next.c: New file.
17830         * lib/unistr/u32-next.c: New file.
17831
17832         * modules/unistr/u8-prev: New file.
17833         * modules/unistr/u16-prev: New file.
17834         * modules/unistr/u32-prev: New file.
17835         * lib/unistr/u8-prev.c: New file.
17836         * lib/unistr/u16-prev.c: New file.
17837         * lib/unistr/u32-prev.c: New file.
17838
17839         * modules/unistr/u8-set: New file.
17840         * modules/unistr/u16-set: New file.
17841         * modules/unistr/u32-set: New file.
17842         * lib/unistr/u8-set.c: New file.
17843         * lib/unistr/u16-set.c: New file.
17844         * lib/unistr/u32-set.c: New file.
17845         * lib/unistr/u-set.h: New file.
17846
17847         * modules/unistr/u8-startswith: New file.
17848         * modules/unistr/u16-startswith: New file.
17849         * modules/unistr/u32-startswith: New file.
17850         * lib/unistr/u8-startswith.c: New file.
17851         * lib/unistr/u16-startswith.c: New file.
17852         * lib/unistr/u32-startswith.c: New file.
17853         * lib/unistr/u-startswith.h: New file.
17854
17855         * modules/unistr/u8-stpcpy: New file.
17856         * modules/unistr/u16-stpcpy: New file.
17857         * modules/unistr/u32-stpcpy: New file.
17858         * lib/unistr/u8-stpcpy.c: New file.
17859         * lib/unistr/u16-stpcpy.c: New file.
17860         * lib/unistr/u32-stpcpy.c: New file.
17861         * lib/unistr/u-stpcpy.h: New file.
17862
17863         * modules/unistr/u8-stpncpy: New file.
17864         * modules/unistr/u16-stpncpy: New file.
17865         * modules/unistr/u32-stpncpy: New file.
17866         * lib/unistr/u8-stpncpy.c: New file.
17867         * lib/unistr/u16-stpncpy.c: New file.
17868         * lib/unistr/u32-stpncpy.c: New file.
17869         * lib/unistr/u-stpncpy.h: New file.
17870
17871         * modules/unistr/u8-strcat: New file.
17872         * modules/unistr/u16-strcat: New file.
17873         * modules/unistr/u32-strcat: New file.
17874         * lib/unistr/u8-strcat.c: New file.
17875         * lib/unistr/u16-strcat.c: New file.
17876         * lib/unistr/u32-strcat.c: New file.
17877         * lib/unistr/u-strcat.h: New file.
17878
17879         * modules/unistr/u8-strchr: New file.
17880         * modules/unistr/u16-strchr: New file.
17881         * modules/unistr/u32-strchr: New file.
17882         * lib/unistr/u8-strchr.c: New file.
17883         * lib/unistr/u16-strchr.c: New file.
17884         * lib/unistr/u32-strchr.c: New file.
17885
17886         * modules/unistr/u8-strcmp: New file.
17887         * modules/unistr/u16-strcmp: New file.
17888         * modules/unistr/u32-strcmp: New file.
17889         * lib/unistr/u8-strcmp.c: New file.
17890         * lib/unistr/u16-strcmp.c: New file.
17891         * lib/unistr/u32-strcmp.c: New file.
17892
17893         * modules/unistr/u8-strcpy: New file.
17894         * modules/unistr/u16-strcpy: New file.
17895         * modules/unistr/u32-strcpy: New file.
17896         * lib/unistr/u8-strcpy.c: New file.
17897         * lib/unistr/u16-strcpy.c: New file.
17898         * lib/unistr/u32-strcpy.c: New file.
17899         * lib/unistr/u-strcpy.h: New file.
17900
17901         * modules/unistr/u8-strcspn: New file.
17902         * modules/unistr/u16-strcspn: New file.
17903         * modules/unistr/u32-strcspn: New file.
17904         * lib/unistr/u8-strcspn.c: New file.
17905         * lib/unistr/u16-strcspn.c: New file.
17906         * lib/unistr/u32-strcspn.c: New file.
17907         * lib/unistr/u-strcspn.h: New file.
17908
17909         * modules/unistr/u8-strdup: New file.
17910         * modules/unistr/u16-strdup: New file.
17911         * modules/unistr/u32-strdup: New file.
17912         * lib/unistr/u8-strdup.c: New file.
17913         * lib/unistr/u16-strdup.c: New file.
17914         * lib/unistr/u32-strdup.c: New file.
17915         * lib/unistr/u-strdup.h: New file.
17916
17917         * modules/unistr/u8-strlen: New file.
17918         * modules/unistr/u16-strlen: New file.
17919         * modules/unistr/u32-strlen: New file.
17920         * lib/unistr/u8-strlen.c: New file.
17921         * lib/unistr/u16-strlen.c: New file.
17922         * lib/unistr/u32-strlen.c: New file.
17923         * lib/unistr/u-strlen.h: New file.
17924
17925         * modules/unistr/u8-strmblen: New file.
17926         * modules/unistr/u16-strmblen: New file.
17927         * modules/unistr/u32-strmblen: New file.
17928         * lib/unistr/u8-strmblen.c: New file.
17929         * lib/unistr/u16-strmblen.c: New file.
17930         * lib/unistr/u32-strmblen.c: New file.
17931
17932         * modules/unistr/u8-strmbtouc: New file.
17933         * modules/unistr/u16-strmbtouc: New file.
17934         * modules/unistr/u32-strmbtouc: New file.
17935         * lib/unistr/u8-strmbtouc.c: New file.
17936         * lib/unistr/u16-strmbtouc.c: New file.
17937         * lib/unistr/u32-strmbtouc.c: New file.
17938
17939         * modules/unistr/u8-strncat: New file.
17940         * modules/unistr/u16-strncat: New file.
17941         * modules/unistr/u32-strncat: New file.
17942         * lib/unistr/u8-strncat.c: New file.
17943         * lib/unistr/u16-strncat.c: New file.
17944         * lib/unistr/u32-strncat.c: New file.
17945         * lib/unistr/u-strncat.h: New file.
17946
17947         * modules/unistr/u8-strncmp: New file.
17948         * modules/unistr/u16-strncmp: New file.
17949         * modules/unistr/u32-strncmp: New file.
17950         * lib/unistr/u8-strncmp.c: New file.
17951         * lib/unistr/u16-strncmp.c: New file.
17952         * lib/unistr/u32-strncmp.c: New file.
17953
17954         * modules/unistr/u8-strncpy: New file.
17955         * modules/unistr/u16-strncpy: New file.
17956         * modules/unistr/u32-strncpy: New file.
17957         * lib/unistr/u8-strncpy.c: New file.
17958         * lib/unistr/u16-strncpy.c: New file.
17959         * lib/unistr/u32-strncpy.c: New file.
17960         * lib/unistr/u-strncpy.h: New file.
17961
17962         * modules/unistr/u8-strnlen: New file.
17963         * modules/unistr/u16-strnlen: New file.
17964         * modules/unistr/u32-strnlen: New file.
17965         * lib/unistr/u8-strnlen.c: New file.
17966         * lib/unistr/u16-strnlen.c: New file.
17967         * lib/unistr/u32-strnlen.c: New file.
17968         * lib/unistr/u-strnlen.h: New file.
17969
17970         * modules/unistr/u8-strpbrk: New file.
17971         * modules/unistr/u16-strpbrk: New file.
17972         * modules/unistr/u32-strpbrk: New file.
17973         * lib/unistr/u8-strpbrk.c: New file.
17974         * lib/unistr/u16-strpbrk.c: New file.
17975         * lib/unistr/u32-strpbrk.c: New file.
17976         * lib/unistr/u-strpbrk.h: New file.
17977
17978         * modules/unistr/u8-strrchr: New file.
17979         * modules/unistr/u16-strrchr: New file.
17980         * modules/unistr/u32-strrchr: New file.
17981         * lib/unistr/u8-strrchr.c: New file.
17982         * lib/unistr/u16-strrchr.c: New file.
17983         * lib/unistr/u32-strrchr.c: New file.
17984
17985         * modules/unistr/u8-strspn: New file.
17986         * modules/unistr/u16-strspn: New file.
17987         * modules/unistr/u32-strspn: New file.
17988         * lib/unistr/u8-strspn.c: New file.
17989         * lib/unistr/u16-strspn.c: New file.
17990         * lib/unistr/u32-strspn.c: New file.
17991         * lib/unistr/u-strspn.h: New file.
17992
17993         * modules/unistr/u8-strstr: New file.
17994         * modules/unistr/u16-strstr: New file.
17995         * modules/unistr/u32-strstr: New file.
17996         * lib/unistr/u8-strstr.c: New file.
17997         * lib/unistr/u16-strstr.c: New file.
17998         * lib/unistr/u32-strstr.c: New file.
17999         * lib/unistr/u-strstr.h: New file.
18000
18001         * modules/unistr/u8-strtok: New file.
18002         * modules/unistr/u16-strtok: New file.
18003         * modules/unistr/u32-strtok: New file.
18004         * lib/unistr/u8-strtok.c: New file.
18005         * lib/unistr/u16-strtok.c: New file.
18006         * lib/unistr/u32-strtok.c: New file.
18007         * lib/unistr/u-strtok.h: New file.
18008
18009         * modules/unistr/u8-uctomb: New file.
18010         * modules/unistr/u16-uctomb: New file.
18011         * modules/unistr/u32-uctomb: New file.
18012         * lib/unistr/u8-uctomb.c: New file.
18013         * lib/unistr/u16-uctomb.c: New file.
18014         * lib/unistr/u32-uctomb.c: New file.
18015
18016         * MODULES.html.sh (Unicode string functions): Add the new modules.
18017
18018 2007-01-08  Bruno Haible  <bruno@clisp.org>
18019
18020         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
18021         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
18022         subdirectories.
18023
18024 2007-01-08  Karl Berry  <karl@gnu.org>
18025
18026         * doc/error.texi: mention that main() fns must set program_name
18027         when progname is used.
18028
18029 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
18030
18031         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
18032         WCTYPE_H is empty, for the benefit of builds from non-distclean
18033         directories.  Problem reported by Eric Blake in
18034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
18035
18036 2007-01-08  Bruno Haible  <bruno@clisp.org>
18037
18038         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
18039         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
18040         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
18041         PROVIDE_CANONICALIZE_FILENAME_MODE.
18042         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
18043
18044 2007-01-08  Bruno Haible  <bruno@clisp.org>
18045
18046         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
18047         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
18048         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
18049         * lib/fts.c: Likewise.
18050         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
18051
18052 2006-12-25  Bruno Haible  <bruno@clisp.org>
18053
18054         * modules/utf8-ucs4-safe: New file.
18055         * lib/utf8-ucs4-safe.h: New file.
18056         * lib/unistr/utf8-ucs4-safe.c: New file.
18057
18058         * modules/utf16-ucs4-safe: New file.
18059         * lib/utf16-ucs4-safe.h: New file.
18060         * lib/unistr/utf16-ucs4-safe.c: New file.
18061
18062         * MODULES.html.sh (Unicode string functions): Add the new modules.
18063
18064 2007-01-08  Bruno Haible  <bruno@clisp.org>
18065
18066         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
18067         (Depends-on): Add unitypes.
18068         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18069         (u8_mbtouc_aux): Move out to separate file.
18070         (u8_mbtouc): Use ucs4_t, uint8_t types.
18071         * lib/unistr/utf8-ucs4.c: New file.
18072
18073         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
18074         (Depends-on): Add unitypes.
18075         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
18076         (u16_mbtouc_aux): Move out to separate file.
18077         (u16_mbtouc): Use ucs4_t, uint16_t types.
18078         * lib/unistr/utf16-ucs4.c: New file.
18079
18080         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
18081         (Depends-on): Add unitypes.
18082         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
18083         (u8_uctomb_aux): Move out to separate file.
18084         (u8_uctomb): Use ucs4_t, uint8_t types.
18085         * lib/unistr/ucs4-utf8.c: New file.
18086
18087         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
18088         (Depends-on): Add unitypes.
18089         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
18090         (u16_uctomb_aux): Move out to separate file.
18091         (u16_uctomb): Use ucs4_t, uint16_t types.
18092         * lib/unistr/ucs4-utf16.c: New file.
18093
18094 2006-12-25  Bruno Haible  <bruno@clisp.org>
18095
18096         * modules/unitypes: New file.
18097         * lib/unitypes.h: New file.
18098         * MODULES.html.sh (func_all_modules): New section "Unicode string
18099         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
18100         this section. Add unitypes.
18101
18102 2007-01-08  Bruno Haible  <bruno@clisp.org>
18103
18104         Avoid variable names that conflict with those from libtool.
18105         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
18106         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
18107         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
18108         library_names_spec to acl_library_names_spec, hardcode_* to
18109         acl_hardcode_*.
18110         Reported by Ralf Wildenhues.
18111
18112 2007-01-08  Bruno Haible  <bruno@clisp.org>
18113
18114         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
18115         definition.
18116         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
18117         definition.
18118         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
18119         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
18120         definition.
18121         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
18122         definition.
18123         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
18124         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
18125         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
18126         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
18127         definition.
18128         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
18129         definition.
18130         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
18131         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
18132         GC_USE_<algorithm>.
18133         * lib/gc-libgcrypt.c: Likewise.
18134         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
18135         * modules/gc-arctwo (configure.ac): Likewise.
18136         * modules/gc-des (configure.ac): Likewise.
18137         * modules/gc-hmac-md5 (configure.ac): Likewise.
18138         * modules/gc-hmac-sha1 (configure.ac): Likewise.
18139         * modules/gc-md2 (configure.ac): Likewise.
18140         * modules/gc-md4 (configure.ac): Likewise.
18141         * modules/gc-md5 (configure.ac): Likewise.
18142         * modules/gc-random (configure.ac): Likewise.
18143         * modules/gc-rijndael (configure.ac): Likewise.
18144         * modules/gc-sha1 (configure.ac): Likewise.
18145
18146 2007-01-08  Bruno Haible  <bruno@clisp.org>
18147
18148         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
18149         macro definition.
18150         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
18151         definition.
18152         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
18153         definition.
18154         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
18155         * modules/fcntl-safer (configure.ac): Likewise.
18156         * modules/fopen-safer (configure.ac): Likewise.
18157         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
18158         GNULIB_FWRITEERROR macro definition.
18159
18160 2007-01-08  Bruno Haible  <bruno@clisp.org>
18161
18162         * m4/gnulib-common.m4: New file.
18163         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
18164         (func_get_filelist): Add m4/gnulib-common.m4.
18165
18166 2007-01-08  Bruno Haible  <bruno@clisp.org>
18167
18168         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
18169         command.
18170
18171 2007-01-08  Jim Meyering  <jim@meyering.net>
18172
18173         Use a more robust test for a "can't happen" condition.
18174         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
18175         narrowed the st_size value.  Presuming the "can't happen" condition
18176         is true, that narrowing could conceivably convert an invalid st_size
18177         value into a valid one.  Instead, use a change based on Matthew
18178         Woehlke's original patch.
18179
18180         Slight readability improvement: use an assert-like macro
18181         in place of literal "abort ()" uses.
18182         * lib/fts.c (fts_assert): Define.
18183         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
18184         Use this macro instead of a bare 'abort'.
18185
18186 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
18187
18188         Don't worry about using IRIX 5.3's wctype.h broken definitions;
18189         simply work around them.
18190         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
18191         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
18192         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
18193         declaring.
18194         Don't bother to define as macros, since the standard doesn't require it.
18195         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
18196         longer worry about IRIX 5.3.
18197         (HAVE_WCTYPE_CTMP_BUG): Remove.
18198
18199 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18200
18201         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
18202         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
18203         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18204         Problems reported by Georg Schwarz for IRIX 5.3.
18205
18206         * gnulib-tool (autoconf_minversion): Take the maximum version number
18207         found, not the minimum.  Problem reported by James Youngman.
18208
18209 2007-01-03  Karl Berry  <karl@gnu.org>
18210
18211         * doc/error.texi: new file, explaining interaction with progname.
18212         * doc/gnulib.texi: include it.  Update copyright.
18213
18214 2007-01-03  Simon Josefsson  <simon@josefsson.org>
18215
18216         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
18217         AC_CANONICAL_HOST, to improve autobuild outputs.
18218
18219 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
18220             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18221
18222         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
18223         sockets, server sockets, and other file descriptors.  Count errors
18224         to compute the return value.  Reorder the code a bit to be easier
18225         to follow.  Don't set event bits that were not requested (except
18226         POLLERR and POLLHUP).
18227
18228 2007-01-01  Bruno Haible  <bruno@clisp.org>
18229
18230         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
18231
18232 2007-01-03  Jim Meyering  <jim@meyering.net>
18233
18234         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
18235
18236 2007-01-02  Bruno Haible  <bruno@clisp.org>
18237
18238         * modules/settime (Include): Require timespec.h.
18239         * modules/nanosleep (Include): Likewise.
18240
18241 2007-01-01  Bruno Haible  <bruno@clisp.org>
18242
18243         * gnulib-tool (func_emit_copyright_notice): Bump year.
18244         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
18245
18246 2007-01-01  Bruno Haible  <bruno@clisp.org>
18247
18248         Improve support for OpenBSD.
18249         * build-aux/config.rpath (libname_spec): Export.
18250         (library_names_spec): New variable. Export.
18251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
18252         library_names_spec from the config.rpath output. Locate shared library
18253         through the name pattern in library_names_spec.
18254
18255 2007-01-01  Eric Blake  <ebb9@byu.net>
18256
18257         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
18258
18259 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18260
18261         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
18262         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
18263         assume the C locale, and avoid an "eval" that could cause trouble.
18264         Problem with SORT reported by Bob Proulx.
18265
18266         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
18267         Define.  Trivial patch from Henning Nielsen Lund, originally
18268         sent to bug-grep@gnu.org today.
18269
18270 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18271
18272         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
18273         struct stat.  Problem reported by Henning Nielsen Lund.
18274         * lib/acl.c: Include acl.h first, to check interface.  Don't
18275         bother to include sys/types.h and sys/stat.h again.
18276
18277 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18278
18279         Import the following change from libc; problem reported by
18280         Sven Verdoolaege.
18281
18282         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
18283
18284         [BZ #1373]
18285         * lib/argp.h: Remove __NTH for __argp_usage inline function.
18286
18287 2006-12-28  Jim Meyering  <jim@meyering.net>
18288
18289         * build-aux/announce-gen: Do not assume that the package
18290         builds any of tar.gz, tar.bz2, and .xdelta files.
18291         Suggestion from Simon Josefsson.
18292
18293 2006-12-28  Simon Josefsson  <simon@josefsson.org>
18294
18295         * modules/announce-gen: New file.
18296
18297 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18298
18299         * lib/mbchar.h: Just include <wctype.h>; the wctype module
18300         handles its gotchas now.
18301         * lib/mbswidth.c: Likewise.
18302         * lib/wcwidth.h: Likewise.
18303         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
18304         and iswcntrl; the wctype module does this stuff now.
18305         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18307         * modules/mbchar (Depends-on): Add wctype.
18308         * modules/mbswidth (Depends-on): Likewise.
18309         * modules/wcwidth (Depends-on): Likewise.
18310
18311 2006-12-27  Eric Blake  <ebb9@byu.net>
18312
18313         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
18314         module uses more than what <wctype.h> is required to provide.
18315
18316 2006-12-26  Eric Blake  <ebb9@byu.net>
18317
18318         * gnulib-tool (sed_extract_prog): Avoid space-tab.
18319
18320 2006-12-26  Eric Blake  <ebb9@byu.net>
18321
18322         * modules/absolute-header: New module.
18323         * modules/fcntl (Depends-on): Depend on it.
18324         * modules/inttypes (Depends-on): Likewise.
18325         * modules/stdint (Depends-on): Likewise.
18326         * modules/sys_stat (Depends-on): Likewise.
18327         * modules/wctype (Depends-on): Likewise.
18328         * MODULES.html.sh (Support for building libraries and
18329         executables): Document it.
18330
18331 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18332
18333         * gnulib-tool (SED): Remove, undoing previous change.
18334         The problem was that it broke coreutils on Solaris, because
18335         "sed --posix" leaked into a makefile.
18336         (sed): New alias, if 'alias' and GNU sed.
18337
18338 2006-12-24  Jim Meyering  <jim@meyering.net>
18339
18340         Work around an fchownat bug in glibc-2.4:
18341         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
18342         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
18343         in spite of the -P option.
18344         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
18345         New macros.
18346         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
18347         * modules/openat (Files): Add lib/fchownat.c.
18348         * lib/openat.c (fchownat): Don't define here.  Move to...
18349         * lib/fchownat.c: ...this new file.
18350
18351 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18352
18353         Fix bug reported by Bruno Haible in
18354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
18355         where quotearg.c didn't compile on Mac OS X 10.2 because it
18356         lacks <wchar.h> and wint_t.
18357         * lib/wctype_.h (__wctype_wint_t): New type.
18358         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
18359         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
18360         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
18361         Arg is now of type __wctype_wint_t, not wint_t.
18362         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
18363         substitute HAVE_WINT_T.
18364         * modules/wctype (Files): Add m4/wint_t.m4.
18365         (wctype.h): Substitute HAVE_WINT_T.
18366
18367 2006-12-23  Bruno Haible  <bruno@clisp.org>
18368
18369         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
18370
18371 2006-12-23  Bruno Haible  <bruno@clisp.org>
18372
18373         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
18374         S_ISLNK.
18375         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
18376         mingw.
18377
18378 2006-12-22  Bruno Haible  <bruno@clisp.org>
18379
18380         * lib/copy-file.c: Include acl.h.
18381         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
18382         Close the file descriptors only after being done with copy_acl.
18383         * modules/copy-file (Depends-on): Add acl.
18384
18385 2006-12-22  Bruno Haible  <bruno@clisp.org>
18386
18387         * gnulib-tool (SED): New variable.
18388         Use $SED instead of sed everywhere.
18389
18390 2006-12-22  Bruno Haible  <bruno@clisp.org>
18391
18392         * modules/no-c++: New file.
18393         * m4/no-c++.m4: New file.
18394         * MODULES.html.sh (Support for building libraries and executables):
18395         Add no-c++.
18396
18397 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18398
18399         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18400         Include <limits.h>, and use its INT_MAX to rewrite the
18401         j loop so that it does not overflow 'int'.  Problem reported by
18402         Ralf Wildenhues in
18403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
18404         Play it safe by shifting left by 1 rather than multiplying by 2,
18405         as GCC is less likely to optimize this away when the value
18406         is signed (when it assumes overflow leads to undefined behavior).
18407         Also, don't assume time_t uses two's complement.
18408
18409 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18410
18411         * MODULES.html.sh: New module wctype.
18412         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
18413         * lib/fnmatch.c: Don't bother to include <wchar.h> before
18414         <wctype.h>, since the new wctype module should fix this.
18415         * lib/quotearg.c: Include <wctype.h> unconditionally, since
18416         the wctype module should arrange for it.
18417         * lib/regex_internal.h: Likewise.
18418         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
18419         since the wctype module should handle this now.
18420         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
18421         * modules/fnmatch (Depends-on): Add wctype.
18422         * modules/quotearg (Depends-on): Likewise.
18423         * modules/regex (Depends-on): Likewise.
18424
18425 2006-12-19  Bruno Haible  <bruno@clisp.org>
18426
18427         * lib/strdup.h [C++]: Wrap definitions in extern "C".
18428         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
18429
18430 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18431
18432         * modules/savewd (Depends-on): Fix dependency on fcntl.
18433
18434 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18435
18436         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
18437         conforms to C99, rather than relying on the user's environment
18438         setting of STDINT_H.
18439
18440 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18441         and Eric Blake  <ebb9@byu.net>
18442
18443         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
18444         This is more consistent with the other defines here.
18445         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
18446         Port to z/OS.  Problem reported by Paul Gilmartin.
18447         Change local vars to use gl_ prefix rather than ac_.
18448         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
18449         with other defines.
18450         * modules/double-slash-root: New module.
18451         * modules/dirname (Files): Remove m4/double-slash-root.m4.
18452         (Depends-on): Add double-slash-root.
18453         * MODULES.html.sh (File system functions): Mention new module.
18454
18455 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
18456
18457         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
18458         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
18459         This is for the benefit of gzip, which doesn't do i18n.
18460
18461 2006-12-12  Jim Meyering  <jim@meyering.net>
18462
18463         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
18464         Reported by Andreas Schwab <schwab@suse.de>.
18465
18466 2006-12-12  Bruno Haible  <bruno@clisp.org>
18467
18468         Merge these changes.
18469         2006-09-05  Bruno Haible  <bruno@clisp.org>
18470         * lib/iconvme.c (iconv_string): No need to save and restore errno when
18471         iconv_alloc succeeded.
18472         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
18473         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
18474         test for " && dest " at the end - dest is always != NULL there. Call
18475         iconv with 4xNULL arguments initially, to reset the state. Call iconv
18476         with 2xNULL arguments, also to flush the state storage. Handle the
18477         IRIX iconv behaviour. Realloc the final result, to throw away unused
18478         memory.
18479
18480 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18481
18482         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
18483         and fchmodat unconditionally, since glibc 2.4 has them.
18484         Problem reported by Arkadiusz Miskiewicz.
18485
18486 2006-12-10  Bruno Haible  <bruno@clisp.org>
18487
18488         * gnulib-tool (func_import): Show the include files only for those
18489         modules that are copied and specified.
18490         Reported by Karl Berry.
18491
18492 2006-12-08  Jim Meyering  <jim@meyering.net>
18493
18494         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
18495         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
18496
18497         * build-aux/announce-gen: Add two new options, both optional:
18498         --bootstrap-tools=TOOL_LIST
18499               a comma-separated list of tools, e.g.,
18500               autoconf,automake,bison,gnulib
18501         --gnulib-snapshot-date=DATE
18502               if gnulib is in the bootstrap tool list,
18503               then report this as the snapshot date.
18504               If not specified, use the current date/time.
18505               If you specify a date here, be sure it's UTC.
18506
18507 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18508
18509         * tests/test-argp-2.sh: Fix test to match actual output.
18510         (func_compare): Fix sed script to be portable.
18511
18512 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18513
18514         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
18515         workaround for this case.  It is not autoconfigured now; offhand
18516         it's hard to see how to autoconfigure it.
18517
18518 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
18519
18520         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
18521         a directory that is about to be chowned.  Such a directory's
18522         initial file permissions should permit the owner only and this
18523         should not be changed until after the chown, since the group and
18524         other bits would be incorrect if they granted permission before
18525         the chown.
18526
18527         Fix porting problem for iswctype reported by Georg Schwarz in:
18528         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
18529         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
18530         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
18531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
18532         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18533
18534 2006-12-03  Jim Meyering  <jim@meyering.net>
18535
18536         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
18537         p->fts_statp may not yet be defined.
18538         (fts_read): Instead, set it in the caller, once p->fts_statp is
18539         sure to be defined, and corresponds to a top-level directory.
18540         This bug made du -x fail.  Here's the coreutils test case:
18541         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
18542         Reported by Mike Frysinger.
18543
18544 2006-12-01  Jim Meyering  <jim@meyering.net>
18545
18546         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
18547         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
18548         Reported by Simon Josefsson.
18549
18550 2006-11-30  Jim Meyering  <jim@meyering.net>
18551
18552         * m4/warning.m4: Use the all-permissive copyright notice
18553         recommended by RMS (rather than LGPL).
18554         * m4/vararrays.m4: Likewise.
18555         * m4/flexmember.m4: Likewise.
18556
18557 2006-11-29  Bruno Haible  <bruno@clisp.org>
18558
18559         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18560         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
18561         using +=.
18562         Reported by Simon Josefsson <simon@josefsson.org>.
18563
18564 2006-11-28  James Youngman <jay@gnu.org>
18565
18566         * README: Advise users that they might find the bug-gnulib@gnu.org
18567         and autotools-announce@gnu.org mailing lists useful.
18568
18569 2006-11-28  Bruno Haible  <bruno@clisp.org>
18570
18571         * m4/ptrdiff_max.m4: Remove file.
18572
18573 2006-11-21  Bruno Haible  <bruno@clisp.org>
18574
18575         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
18576         _AC_COMPUTE_INT.
18577         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18578         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
18579         _AC_COMPUTE_INT.
18580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18581         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
18582         _AC_COMPUTE_INT.
18583         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18584
18585 2006-11-28  Jim Meyering  <jim@meyering.net>
18586
18587         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
18588         warning from "gcc -Wshadow" about shadowing the builtin.
18589
18590 2006-11-27  Bruno Haible  <bruno@clisp.org>
18591
18592         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
18593         _AC_COMPUTE_INT.
18594         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
18595
18596 2006-11-27  Bruno Haible  <bruno@clisp.org>
18597             Paul Eggert  <eggert@cs.ucla.edu>
18598
18599         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
18600
18601 2006-11-26  Bruno Haible  <bruno@clisp.org>
18602
18603         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18604         noinst_LTLIBRARIES.
18605
18606 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18607             Bruno Haible  <bruno@clisp.org>
18608
18609         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
18610         if compiling with "gcc -ansi".
18611
18612 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
18613
18614         Fix some incompatibilities with gcc -ansi -pedantic.
18615         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
18616         if compiling pedantically with GCC, unless it's C99 or later.
18617         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
18618         it mishandles gcc -ansi -pedantic as well.
18619         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
18620         if gcc -pedantic.
18621         * lib/regexec.c (check_node_accept_bytes): Don't use auto
18622         initializers for struct if -pedantic, unless it's C99 or later.
18623
18624 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
18625
18626         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
18627         Don't close an fd more than once. Identical atimes indicate
18628         success, not failure.
18629
18630 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
18631
18632         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
18633
18634 2006-11-23  Jim Meyering  <jim@meyering.net>
18635
18636         * build-aux/announce-gen: New file.  From coreutils.
18637
18638 2006-11-22  Jim Meyering  <jim@meyering.net>
18639
18640         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
18641         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
18642         (fts_read): Use a temporary to narrow the overused st_size member
18643         before using it in a switch statement.  Reported by Matthew Woehlke.
18644
18645         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
18646         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
18647
18648 2006-11-20  Bruno Haible  <bruno@clisp.org>
18649
18650         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
18651         changequote instead of pairs of brackets.
18652         Reported by Andreas Schwab <schwab@suse.de>.
18653
18654 2006-11-21  Jim Meyering  <jim@meyering.net>
18655
18656         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
18657         so as to remain compatible with older compilers.
18658         Patch from Michael Deutschmann.
18659
18660 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18661
18662         * MODULES.html.sh (File system functions): Add openat.
18663
18664         * lib/openat.h (rpl_fstatat): New macro, if
18665         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
18666         (fstatat): Define to rpl_fstatat under the same conditions,
18667         unless COMPILING_FSTATAT.
18668         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
18669         seems to have the bug.
18670         * lib/fstatat.c: New file.
18671         * modules/openat (Files): Add it.
18672
18673 2006-11-20  Bruno Haible  <bruno@clisp.org>
18674
18675         * Makefile: New file.
18676
18677 2006-11-20  Jim Meyering  <jim@meyering.net>
18678
18679         The beginnings of syntax-related checks for gnulib.
18680         * lib/Makefile: New file.
18681         * lib/t-idcache: New script.  Ensure that the two halves of
18682         idcache.c stay in sync.
18683
18684         * lib/idcache.c: Adjust comments in user- and group- portions to
18685         be more accurate, and to be consistent with one another.
18686
18687 2006-11-20  Jim Meyering  <jim@meyering.net>
18688
18689         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
18690         continue using the flexible array member (thus, this module performs
18691         half as many malloc calls), with the addition that...
18692         (getgroup, getuser): Consistently record a non-match via an empty
18693         "name" string, and map an empty string match to a NULL return value.
18694         * modules/idcache (Depends-on): Re-add flexmember.
18695
18696         * lib/idcache.c (getuser): Remove all uses of the register keyword.
18697         (getuidbyname, getgroup, getgidbyname): Likewise.
18698
18699         Use cleaner syntax: NULL rather than 0.
18700         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
18701
18702 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
18705         It mishandled the case where the group was missing.
18706         Problem reported by Greg Schafer.
18707         * modules/idcache: Likewise.
18708
18709 2006-11-18  Jim Meyering  <jim@meyering.net>
18710
18711         * check-module (%exempt_header): Add exception for some
18712         conditionally-included headers.
18713
18714         * modules/i-ring (Depends-on): Add verify.
18715         (License): Change to LGPL.
18716
18717 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
18718
18719         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
18720         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
18721         and inttostr.h.  Use snprintf rather than uinttostr, so that
18722         LGPLed code doesn't depend on GPLed.
18723
18724 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         * modules/inline (License): Change from GPL to LGPL.
18727
18728 2006-11-17  Jim Meyering  <jim@meyering.net>
18729
18730         * modules/d-type (License): Switch to LGPL.
18731
18732 2006-11-15  Bruno Haible  <bruno@clisp.org>
18733
18734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
18735
18736 2006-11-15  Eric Blake  <ebb9@byu.net>
18737
18738         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
18739         the module dependency.
18740
18741 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18742             Bruno Haible  <bruno@clisp.org>
18743
18744         * gnulib-tool (func_create_testdir): Add license consistency check.
18745
18746 2006-11-15  Eric Blake  <ebb9@byu.net>
18747
18748         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
18749         random "(cached)" in configure output.
18750
18751 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18752
18753         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
18754         test for conforming inttypes.h is both announced and cached.
18755
18756         * MODULES.html.sh (seen_modules, seen_files): New variables.
18757         (func_module): Rewrite to use a few less gnulib-tool and sed
18758         invocations.  Avoid a couple of quadratic algorithms for ...
18759         (missed_modules, missed_files): ... these, with ...
18760         (func_append, func_tmpdir): ... these new functions, from
18761         gnulib-tool.  Analogously, install traps for cleanup.
18762
18763         * tests/test-gc.c (main): Remove unused variables.
18764         * tests/test-read-file.c: Include stdlib.h, for 'free'.
18765
18766 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
18767
18768         * modules/inttostr (License): Change to LGPL.
18769
18770 2006-11-14  Eric Blake  <ebb9@byu.net>
18771
18772         * modules/tempname (License): Change to LGPL.
18773
18774 2006-11-14  Eric Blake  <ebb9@byu.net>
18775
18776         * doc/functions.texi (Function Portability): *printf functions on
18777         Cygwin now understand all POSIX size specifiers.
18778
18779 2006-11-14  Bruno Haible  <bruno@clisp.org>
18780
18781         * modules/c-ctype (License): Change to LGPL.
18782
18783 2006-11-12  Bruno Haible  <bruno@clisp.org>
18784
18785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18786         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
18787         for GNOME libraries, for which the include files are installed in
18788         subdirectories of $prefix/include.
18789
18790 2006-11-12  Bruno Haible  <bruno@clisp.org>
18791
18792         * m4/lib-link.m4: Require at least autoconf-2.54.
18793         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
18794         name to underscores for the --with option.
18795
18796 2006-11-13  Bruno Haible  <bruno@clisp.org>
18797
18798         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
18799         the tests directory.
18800         Reported by Ralf Wildenhues.
18801
18802 2006-11-13  Bruno Haible  <bruno@clisp.org>
18803
18804         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
18805         (func_emit_initmacro_end): Undo the override here.
18806         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
18807         Works around the famous automake error in coreutils.
18808
18809 2006-11-13  Eric Blake  <ebb9@byu.net>
18810
18811         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
18812         element, not its node.
18813
18814 2006-11-12  Bruno Haible  <bruno@clisp.org>
18815
18816         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
18817         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
18818
18819 2006-11-12  Bruno Haible  <bruno@clisp.org>
18820
18821         * gnulib-tool: New option --local-symlink.
18822         (func_usage): Document it.
18823         (lsymbolic): New variable.
18824         (func_import, func_create_testdir): If --symlink was not specified,
18825         test whether --local-symlink was specified and the file comes from
18826         the local_gnulib_dir.
18827
18828 2006-11-12  Bruno Haible  <bruno@clisp.org>
18829
18830         * gnulib-tool (func_ln): New function.
18831         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
18832
18833 2006-11-12  Bruno Haible  <bruno@clisp.org>
18834
18835         Finish support for source files in subdirectories.
18836         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
18837         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
18838         AUTOMAKE_OPTIONS.
18839         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
18840
18841 2006-11-12  Bruno Haible  <bruno@clisp.org>
18842
18843         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18844         EXTRA_lib_SOURCES augmentation.
18845         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
18846
18847 2006-11-12  Jim Meyering  <jim@meyering.net>
18848
18849         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
18850         file descriptors.  This also averts a failure on systems with
18851         native openat support when a traversed directory lacks "x" access.
18852         * lib/fts_.h: Include "i-ring.h"
18853         (struct FTS) [fts_fd_ring]: New member.
18854         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
18855         (FCHDIR): Add parentheses.
18856         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
18857         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
18858         When descending, rather than simply closing the previous
18859         fts_cwd_fd value, push that file descriptor onto the ring.
18860         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
18861         (fts_open): Initialize the new fd_ring member.
18862         (fts_close): Clear the ring.
18863         (fts_safe_changedir): When possible, use our new fd_ring to skip
18864         the diropen and fstat and dev/ino comparison that would normally
18865         accompany a virtual `chdir ("..")'.
18866
18867         * modules/fts (Depends-on): Add i-ring.
18868         * modules/i-ring: New module.
18869         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
18870         * m4/i-ring.m4: New file.
18871
18872 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18873
18874         * gnulib-tool (func_create_testdir): Fix replacement of
18875         `build-aux' in configure.ac.  Run autotools in gltests
18876         subdirectory.
18877         (func_create_testdir, func_create_megatestdir, test): There is
18878         no need for '--force' in most autotool invocations in a new
18879         tree.  Actually fail the whole test if any of the tools, or the
18880         configure or make stages fail.
18881
18882         Sync from Automake.
18883         * build-aux/gnupload: Revert last change.  Add pointer to upload
18884         instructions of the GNU Maintenance Instructions.
18885         Suggestion by Karl Berry.
18886
18887 2006-11-10  Jim Meyering  <jim@meyering.net>
18888
18889         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
18890
18891 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
18894         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
18895         (bind_textdomain_codeset) [! ENABLE_NLS]:
18896         Evaluate all the arguments.  That way, callers get compatible behavior
18897         if the arguments have side effects.  Also, it avoids some GCC
18898         diagnostics in some cases; Joel E. Denny reported problems when Bison
18899         was configured with --enable-gcc-warnigs.
18900
18901 2006-11-10  Jim Meyering  <jim@meyering.net>
18902
18903         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
18904         relevant options in CFLAGS (like -O, -fno-inline) are taken into
18905         account.
18906
18907 2006-11-10  Jim Meyering  <jim@meyering.net>
18908
18909         * modules/inline: New file/module.
18910         * modules/xalloc (Files): Remove m4/inline.m4.
18911         (Depends-on): Add inline, instead.
18912         * modules/oset: Likewise.
18913         * modules/list: Likewise.
18914
18915 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18916
18917         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
18918         Problem reported by Matthew Woehlke.
18919
18920 2006-11-09  Bruno Haible  <bruno@clisp.org>
18921
18922         * lib/tempname.c (gen_tempname): Remove variant that invokes
18923         __gen_tempname.
18924         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
18925         __gen_tempname.
18926
18927 2006-11-08  Bruno Haible  <bruno@clisp.org>
18928
18929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
18930         to 'yes' instead of 'cross-compiling'.
18931
18932 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18933
18934         * lib/quotearg.h (quotearg_free): New decl.
18935         * lib/quotearg.c (quotearg_free): New function.
18936         (slot0, nslots, slotvec0, slotvec):
18937         Now file-scope so that quotearg_free can get at them.
18938
18939 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18940
18941         Sync from Automake.
18942         * build-aux/gnupload: Add missing 'gnu' to example URL.
18943         Report by Karl Berry.
18944
18945 2006-11-08  Bruno Haible  <bruno@clisp.org>
18946
18947         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
18948         Suggested by Paul Eggert.
18949
18950 2006-11-08  Jim Meyering  <jim@meyering.net>
18951
18952         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
18953         It's already included if !_LIBC.
18954         (fts_safe_changedir): Add a comment.
18955
18956 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18957
18958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
18959         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
18960         Matthew Woehlke.
18961
18962         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
18963         definitions up, to avoid colliding with change below.
18964         (static_inline) [HAVE_INLINE]: New macro.
18965         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18966         Provide extern decls when !HAVE_INLINE.  Do not define unless
18967         static_inline is defined, either by us or by xmalloc.c.  Use
18968         static_inline rather than static inline.
18969         (XCALLOC): Optimize sizeof(T) = 1 case.
18970         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
18971
18972 2006-11-07  Bruno Haible  <bruno@clisp.org>
18973
18974         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
18975         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
18976         AC_C_INLINE.
18977         * modules/xalloc (Files): Add m4/inline.m4.
18978
18979 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18980
18981         * README: Fix typo.
18982         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
18983         (Miscellanous Notes): ...from this.
18984
18985 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18986
18987         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
18988         Mention that offsetof should be used instead of sizeof.
18989         From Bruno Haible.
18990
18991 2006-11-07  Bruno Haible  <bruno@clisp.org>
18992
18993         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
18994
18995 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
18998         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
18999         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19000         (gl_tree_add_before, gl_tree_add_after):
19001         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
19002         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
19003         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
19004         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
19005         (gl_linked_add_after, gl_linked_add_at): Likewise.
19006         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
19007         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
19008         (gl_tree_add_before, gl_tree_add_after): Likewise.
19009         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
19010         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
19011         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
19012
19013 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19014
19015         * lib/gl_oset.h: Use C comment style, not C++ comment style.
19016
19017 2006-11-06  Bruno Haible  <bruno@clisp.org>
19018
19019         * m4/inline.m4: New file.
19020         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
19021         * modules/list (Files): Add m4/inline.m4.
19022         * modules/oset (Files): Likewise.
19023
19024 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
19025
19026         * lib/idcache.c: Include <stddef.h>, for offsetof.
19027         (struct userid.name): Change from char * to a flexible array member.
19028         All uses changed.
19029         * modules/idcache (Depends-on): Add flexmember.
19030
19031         * MODULES.html.sh (Core language properties): New module flexmember.
19032         * modules/flexmember, m4/flexmember.m4: New files.
19033
19034         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
19035         inline functions that are identical with the old xnmalloc_inline,
19036         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
19037         that we can avoid some unnecessary integer multiplications and
19038         divisions in the common case where the element size is known at
19039         compile time.
19040         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
19041         needed.
19042         (xnboundedmalloc): Remove.
19043         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
19044         arguments, for consistency with rest of this header.
19045         (xcharalloc): Rewrite using XNMALLOC.
19046         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
19047         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
19048         versions have been moved to lib/xalloc.h and renamed to be the
19049         non-*_inline versions.
19050         (xmalloc, xrealloc): Implement without reference to the xnmalloc
19051         and xnrealloc functions, since those functions are now inline and
19052         now call us.
19053         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
19054         renaming described above.
19055         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
19056         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
19057         captures the dependency in AC_C_INLINE.
19058
19059         New module canonicalize-lgpl, proposed by Charles Wilson in
19060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
19061         with a few small changes afterwards.
19062         * MODULES.html.sh (File system functions): New module
19063         canonicalize-lgpl.
19064         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
19065         and canonicalize_file_name.
19066         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
19067         * modules/canonicalize-lgpl: New files.
19068
19069 2006-11-05  Bruno Haible  <bruno@clisp.org>
19070
19071         * gnulib-tool (func_import, func_create_testdir): Create directories
19072         also for files in subdirectories of lib/.
19073
19074 2006-11-05  Bruno Haible  <bruno@clisp.org>
19075
19076         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
19077         ANSI C compliant.
19078
19079 2006-11-03  Bruno Haible  <bruno@clisp.org>
19080
19081         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
19082         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
19083         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
19084         (xnboundedmalloc): New inline function.
19085         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
19086         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
19087         xmalloc.
19088         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
19089         xmalloc.
19090         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
19091         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
19092         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
19093         xmalloc.
19094         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19095         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
19096         xmalloc.
19097         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
19098         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19099         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
19100         xmalloc.
19101         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
19102         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
19103         gl_tree_add_after): Use XMALLOC instead of xmalloc.
19104         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
19105         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
19106         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
19107         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
19108
19109 2006-11-03  Bruno Haible  <bruno@clisp.org>
19110
19111         * lib/c-ctype.h [C++]: Define functions without name mangling.
19112         * lib/fwriteerror.h [C++]: Likewise.
19113         * lib/gcd.h [C++]: Likewise.
19114         * lib/linebreak.h [C++]: Likewise.
19115
19116 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19117
19118         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
19119         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
19120         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
19121         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19122         Check for functions and headers just once.
19123         Check for declaration of canonicalize_file_name.
19124         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
19125
19126 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19127
19128         * gnulib-tool (func_import): Fix typo in actioncmd.
19129
19130 2006-11-02  Bruno Haible  <bruno@clisp.org>
19131
19132         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
19133         newline sequence in the Makefile.am snippet as a space, like "make"
19134         does.
19135         Reported by Roger Persson <perrog@gmail.com>.
19136
19137 2006-11-01  Bruno Haible  <bruno@clisp.org>
19138
19139         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
19140         already declared in <string.h>.
19141         * lib/strcase.h (strncasecmp): Don't declare it if yes.
19142
19143 2006-11-01  Bruno Haible  <bruno@clisp.org>
19144
19145         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
19146         * lib/strcase.h: Include <string.h>.
19147         (strcasecmp): Define to rpl_strcasecmp here.
19148
19149 2006-11-01  Bruno Haible  <bruno@clisp.org>
19150
19151         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
19152
19153 2006-11-01  Eric Blake  <ebb9@byu.net>
19154
19155         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
19156
19157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
19158
19159 2006-10-29  Bruno Haible  <bruno@clisp.org>
19160
19161         Make it compile in C++ mode.
19162         * lib/full-write.c (full_rw): Add a cast.
19163
19164 2006-11-01  Bruno Haible  <bruno@clisp.org>
19165
19166         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
19167         be POSIX compliant.
19168         Reported by Roger Persson <perrog@gmail.com>.
19169
19170 2006-11-01  Eric Blake  <ebb9@byu.net>
19171
19172         * lib/getopt_.h: Fix comments.
19173
19174 2006-10-31  Eric Blake  <ebb9@byu.net>
19175
19176         * modules/tmpdir (Depends-on): Add sys_stat.
19177         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
19178         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
19179         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
19180         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
19181         tempname.
19182
19183 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
19184
19185         Avoid some C++ diagnostics reported by Bruno Haible.
19186         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
19187         xmalloc.
19188         (quotearg_alloc): Use xcharalloc rather than xmalloc.
19189         (struct slotvec): Move to top level.
19190         (quotearg_n_options): Rewrite to avoid xmalloc.
19191         * lib/xalloc.h (xcharalloc): New function.
19192         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
19193         [defined __cplusplus]: Add function template that provides result
19194         type propagation.  This part of the change is from Bruno Haible.
19195
19196 2006-10-29  Bruno Haible  <bruno@clisp.org>
19197
19198         Make it compile in C++ mode.
19199         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
19200         * lib/strnlen1.c (strnlen1): Cast memchr result.
19201         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
19202         * lib/clean-temp.c (string_equals, string_hash): Add casts.
19203         (create_temp_dir): Rename local variable 'template'.
19204         (compile_csharp_using_sscli): Add cast.
19205         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
19206         * lib/findprog.c (find_in_path): Likewise.
19207         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
19208         * lib/wait-process.c (register_slave_subprocess): Likewise.
19209
19210 2006-10-22  Bruno Haible  <bruno@clisp.org>
19211
19212         * modules/tsearch: New file.
19213         * lib/tsearch.h: New file.
19214         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
19215         * m4/tsearch.m4: New file.
19216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
19217
19218 2006-10-29  Eric Blake  <ebb9@byu.net>
19219
19220         * lib/arcfour.c: Assume config.h.
19221         * lib/arctwo.c: Likewise.
19222         * lib/base64.c: Likewise.
19223         * lib/check-version.c: Likewise.
19224         * lib/crc.c: Likewise.
19225         * lib/des.c: Likewise.
19226         * lib/gc-gnulib.c: Likewise.
19227         * lib/gc-libgcrypt.c: Likewise.
19228         * lib/gc-pbkdf2-sha1.c: Likewise.
19229         * lib/getaddrinfo.c: Likewise.
19230         * lib/getdelim.c: Likewise.
19231         * lib/getline.c: Likewise.
19232         * lib/hmac-md5.c: Likewise.
19233         * lib/hmac-sha1.c: Likewise.
19234         * lib/iconvme.c: Likewise.
19235         * lib/md2.c: Likewise.
19236         * lib/md4.c: Likewise.
19237         * lib/memxor.c: Likewise.
19238         * lib/read-file.c: Likewise.
19239         * lib/readline.c: Likewise.
19240         * lib/rijndael-alg-fst.c: Likewise.
19241         * lib/rijndael-api-fst.c: Likewise.
19242         * lib/xgetdomainname.c: Likewise.
19243
19244 2006-10-28  Eric Blake  <ebb9@byu.net>
19245
19246         * lib/xstrndup.c: Assume config.h.
19247
19248 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19249
19250         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
19251         stat-macros.h is now for our own macros, whereas stat_h is for
19252         macros in the <sys/stat.h> name space.
19253         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
19254         (STAT_MACROS_H): Remove.
19255         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
19256         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
19257         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
19258         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
19259         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
19260         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
19261         Move these macros to ...
19262         * lib/stat_.h: here.  Don't include stat-macros.h.
19263         * lib/canonicalize.c: Don't include stat-macros.h.
19264         * lib/chown.c: Likewise.
19265         * lib/euidaccess.c: Likewise.
19266         * lib/file-type.c: Likewise.
19267         * lib/filemode.c: Likewise.
19268         * lib/glob.c: Likewise.
19269         * lib/isapipe.c: Likewise.
19270         * lib/lchown.c: Likewise.
19271         * lib/lstat.c: Likewise.
19272         * lib/mkdir-p.c: Likewise.
19273         * lib/rmdir.c: Likewise.
19274         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
19275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
19276         unless mkdir isn't declared, to speed up 'configure'.
19277         Always create sys/stat.h, since it's unlikely any real sys/stat.h
19278         would define all the S_* symbols.
19279         * modules/canonicalize (Depends-on):
19280         Depend on sys_stat, not stat-macros.
19281         * modules/chown: Likewise.
19282         * modules/euidaccess: Likewise.
19283         * modules/filemode: Likewise.
19284         * modules/file-type: Likewise.
19285         * modules/glob: Likewise.
19286         * modules/isapipe: Likewise.
19287         * modules/lchown: Likewise.
19288         * modules/lstat: Likewise.
19289         * modules/mkancesdirs: Likewise.
19290         * modules/rmdir: Likewise.
19291         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
19292         * modules/modechange: Likewise.
19293         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
19294         (configure.ac): Remove gl_STAT_MACROS.
19295         * modules/sys_stat (Depends-on): Remove stat-macros.
19296
19297 2006-10-27  Bruno Haible  <bruno@clisp.org>
19298
19299         * m4/signed.m4: Remove file.
19300         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
19301         invocation.
19302         * modules/vasnprintf (Files): Remove m4/signed.m4.
19303
19304 2006-10-27  Bruno Haible  <bruno@clisp.org>
19305
19306         Update to GNU gettext 0.16.
19307         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
19308         m4/inttypes-h.m4, m4/signed.m4.
19309         * m4/gettext.m4: Update to GNU gettext 0.16.
19310         * m4/intl.m4: New file, from GNU gettext.
19311         * m4/intldir.m4: New file, from GNU gettext.
19312         * config/srclist.txt: Update
19313
19314 2006-10-27  Eric Blake  <ebb9@byu.net>
19315
19316         * MODULES.html.sh: Document tempname.
19317         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
19318         dependencies.
19319         (Files): Move lib/tempname.c...
19320         * modules/tempname: ...to this new module.
19321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
19322         (gl_PREREQ_TEMPNAME): Move...
19323         * m4/tempname.m4: ...to this new file.
19324         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
19325         * modules/sys_stat (Depends-on): Add stat-macros.
19326         * lib/stat_.h (includes): Pick up stat macros.
19327         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
19328         if stat macros are broken.
19329         * lib/tempname.c (includes): No need to include "stat-macros.h".
19330         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
19331         (direxists, __path_search) [!_LIBC]: Don't compile these in
19332         gnulib; the tmpdir module covers that.
19333         * lib/tempname.h: New file.
19334
19335 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19336
19337         * COPYING: Explain how gnulib-tool converts licence headers.
19338         Almost all wording by Eric Blake.
19339
19340 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19341
19342         * lib/mbchar.h (is_basic_table): Make read-only.
19343         * lib/mbchar.c (is_basic_table): Likewise.
19344         Reported by John Darrington.
19345
19346 2006-10-25  Bruno Haible  <bruno@clisp.org>
19347
19348         * lib/progname.h (set_program_name): Undefine before defining.
19349
19350 2006-10-25  Bruno Haible  <bruno@clisp.org>
19351
19352         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
19353         false for non-gcc C++ compilers.
19354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19355
19356 2006-10-24  Bruno Haible  <bruno@clisp.org>
19357
19358         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
19359         iconv implementations like Irix iconv.
19360
19361 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19362
19363         * modules/vararrays: New file.
19364         * m4/vararrays.m4: New file, taken from diffutils.
19365         * MODULES.html.sh: New module vararrays.
19366
19367 2006-10-24  Karl Berry  <karl@gnu.org>
19368
19369         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
19370         Don't call GNU Unix.
19371
19372 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19373
19374         * users.txt: Add Libtool.
19375
19376         Sync from Libtool:
19377
19378         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19379
19380         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
19381         to gnulib's policy of including config.h unconditionally.
19382
19383 2006-10-24  Bruno Haible  <bruno@clisp.org>
19384
19385         * modules/wcwidth (Files): Add m4/wint_t.m4.
19386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
19387         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
19388
19389 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19390
19391         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
19392         to pacify GCC with some -W flags enabled.  Problem reported by
19393         Bruno Haible.
19394
19395 2006-10-24  Jim Meyering  <jim@meyering.net>
19396
19397         * MODULES.html.sh: Remove uinttostr.  It's not a module.
19398         Reported by Karl Berry.
19399
19400 2006-10-23  Bruno Haible  <bruno@clisp.org>
19401
19402         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
19403
19404 2006-10-24  Bruno Haible  <bruno@clisp.org>
19405
19406         * lib/gl_list.h: Use C comment style, not C++ comment style.
19407
19408 2006-10-23  Eric Blake  <ebb9@byu.net>
19409
19410         * lib/getaddrinfo.c (includes): Add missing include.
19411
19412 2006-10-23  Bruno Haible  <bruno@clisp.org>
19413             Paul Eggert  <eggert@cs.ucla.edu>
19414
19415         Ability to rename obstack_free.
19416         * lib/obstack.h (__obstack_free): New macro. Declare instead of
19417         obstack_free.
19418         (obstack_free): Invoke the __obstack_free macro.
19419         * lib/obstack.c (obstack_free): Use __obstack_free macro.
19420
19421 2006-10-23  Bruno Haible  <bruno@clisp.org>
19422             Paul Eggert  <eggert@cs.ucla.edu>
19423
19424         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
19425         __argc, __argv from the declaration. (They are defined as macros on
19426         mingw.)
19427
19428 2006-10-22  Bruno Haible  <bruno@clisp.org>
19429
19430         * doc/gnulib-intro.texi: New file.
19431         * doc/gnulib.texi: Include it.
19432
19433 2006-10-21  Bruno Haible  <bruno@clisp.org>
19434
19435         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
19436         "Introduction", "Miscellanous Notes", "Particular Modules".
19437
19438 2006-10-21  Bruno Haible  <bruno@clisp.org>
19439
19440         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19441         Change mostlyclean-local rule to avoid sh syntax error from bash
19442         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
19443
19444 2006-10-23  Jim Meyering  <jim@meyering.net>
19445
19446         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
19447         in place of snprintf.
19448
19449         * modules/inttostr (Files): Add lib/uinttostr.c.
19450         * lib/uinttostr.c (inttostr): New file/function.
19451         * lib/inttostr.h (uinttostr): Declare.
19452         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
19453         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19454         Add uinttostr.
19455         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
19456
19457 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19458
19459         * lib/canonicalize.c (ELOOP): Define if not already defined.
19460         Problem reported by Bruno Haible in
19461         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
19462
19463 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
19464
19465         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
19466         Problem reported by Perry Smith and Ville Laurikari.
19467
19468         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
19469         uses.
19470
19471 2006-10-19  Bruno Haible  <bruno@clisp.org>
19472
19473         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
19474         for mingw.
19475
19476 2006-10-19  Bruno Haible  <bruno@clisp.org>
19477
19478         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
19479         Needed for mingw.
19480
19481 2006-10-19  Bruno Haible  <bruno@clisp.org>
19482
19483         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
19484
19485 2006-10-19  Bruno Haible  <bruno@clisp.org>
19486
19487         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
19488         it.
19489
19490 2006-10-19  Bruno Haible  <bruno@clisp.org>
19491
19492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
19493         invocation.
19494
19495 2006-10-19  Bruno Haible  <bruno@clisp.org>
19496
19497         * gnulib-tool (func_create_testdir): Don't include ftruncate and
19498         mountlist by default.
19499
19500 2006-10-16  Bruno Haible  <bruno@clisp.org>
19501
19502         * lib/c-strstr.c: Include c-strstr.h.
19503
19504 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
19505
19506         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
19507         in a slash.
19508
19509 2006-10-18  Bruno Haible  <bruno@clisp.org>
19510
19511         * lib/lock.h [C++]: Wrap definitions in extern "C".
19512
19513 2006-10-18  Bruno Haible  <bruno@clisp.org>
19514
19515         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
19516         gl_LIBOBJS list.
19517
19518 2006-10-18  Bruno Haible  <bruno@clisp.org>
19519
19520         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
19521
19522 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
19523
19524         * lib/xstrtol.h: Include gettext.h.
19525         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
19526         Problem reported by Eric Blake.
19527         * modules/xstrtol (Depends-on): Add gettext-h.
19528
19529 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
19530
19531         * lib/strftime.c (advance): New macro.
19532         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
19533         incomplete type, so you can't add 0 to it.  Problem and patch
19534         reported by Eelco Dolstra for dietlibc.
19535
19536 2006-10-18  Jim Meyering  <jim@meyering.net>
19537
19538         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
19539         type for a local, and rename it: s/up/user_proc/.
19540
19541 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19542
19543         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
19544         READ_UTMP_USER_PROCESS.
19545         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
19546
19547 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19548
19549         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
19550         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
19551
19552 2006-10-17  Eric Blake  <ebb9@byu.net>
19553
19554         * lib/sigprocmask.c (sigprocmask): Fix typo.
19555
19556         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
19557
19558         * modules/clean-temp (Makefile.am): Don't add to make output...
19559         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
19560         config.h.
19561
19562 2006-10-17  Bruno Haible  <bruno@clisp.org>
19563
19564         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
19565         differently if DEFAULT_TEXT_DOMAIN is set.
19566
19567 2006-10-16  Bruno Haible  <bruno@clisp.org>
19568
19569         * lib/clean-temp.c: Include fwriteerror.h.
19570
19571 2006-10-16  Bruno Haible  <bruno@clisp.org>
19572
19573         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
19574
19575 2006-10-16  Bruno Haible  <bruno@clisp.org>
19576
19577         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
19578         * lib/sigprocmask.h: Include <sys/types.h>.
19579         (sigset_t): Use the system's definition if present.
19580
19581 2006-10-17  Eric Blake  <ebb9@byu.net>
19582
19583         * lib/xvasprintf.c (includes): Assume config.h.
19584         * lib/xasprintf.c (includes): Likewise.
19585
19586 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19587
19588         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
19589         at least as wide as intmax_t.
19590
19591 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
19592
19593         (Imported from Automake.)
19594         * build-aux/gnupload: Update to version 1.1 of directive file.
19595
19596 2006-10-16  Eric Blake  <ebb9@byu.net>
19597
19598         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
19599         match Automake 1.10a.
19600
19601 2006-10-14  Bruno Haible  <bruno@clisp.org>
19602
19603         * modules/sigprocmask: New file.
19604         * lib/sigprocmask.h: New file.
19605         * lib/sigprocmask.c: New file.
19606         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
19607         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
19608         request sigprocmask.o.
19609         (gl_PREREQ_SIGPROCMASK): New macro.
19610         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
19611         (Depends-on): Add sigprocmask.
19612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
19613         gt_SIGNALBLOCKING. Test for 'raise' only once.
19614         * lib/fatal-signal.c: Include sigprocmask.h.
19615         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
19616         unblock_fatal_signals): Define always.
19617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19618         sigprocmask.
19619
19620 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19621
19622         Sync from Automake.
19623         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
19624         which incorrectly sets the mode of an existing destination
19625         directory.  In some cases the unpatched install-sh could do the
19626         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
19627         system.  We hope this is rare in practice, but it's clearly worth
19628         fixing.  Problem reported by Alex Unleashed in
19629         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
19630         Also, don't bother to check for -m bugs unless we're using -m;
19631         suggested by Stepan Kasal.
19632
19633 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19634
19635         Sync from Automake.
19636         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
19637         `-c' flag, so they appear at the same position as in %FASTDEP%
19638         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
19639         which ignores unknown options only after the first non-option.
19640         Bug report against M4 by Nelson H. F. Beebe.
19641
19642 2006-10-13  Jim Meyering  <jim@meyering.net>
19643
19644         Fix a bug in yesterday's change.
19645         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
19646         p->fts_statp->st_dev would be used uninitialized.
19647         Ensures that we always call fts_stat on the very first entry.
19648         Miklos Szeredi reported that find -xdev stopped working.
19649
19650 2006-10-12  Bruno Haible  <bruno@clisp.org>
19651
19652         * gnulib-tool (func_get_automake_snippet): Append an automatically
19653         computed EXTRA_DIST augmentation.
19654         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
19655         * modules/alloca-opt (Makefile.am): Likewise.
19656         * modules/allocsa (Makefile.am): Likewise.
19657         * modules/arcfour (Makefile.am): Likewise.
19658         * modules/arctwo (Makefile.am): Likewise.
19659         * modules/argmatch (Makefile.am): Likewise.
19660         * modules/argz (Makefile.am): Likewise.
19661         * modules/atexit (Makefile.am): Likewise.
19662         * modules/backupfile (Makefile.am): Likewise.
19663         * modules/byteswap (Makefile.am): Likewise.
19664         * modules/c-strtod (Makefile.am): Likewise.
19665         * modules/c-strtold (Makefile.am): Likewise.
19666         * modules/calloc (Makefile.am): Likewise.
19667         * modules/canon-host (Makefile.am): Likewise.
19668         * modules/canonicalize (Makefile.am): Likewise.
19669         * modules/chdir-long (Makefile.am): Likewise.
19670         * modules/chdir-safer (Makefile.am): Likewise.
19671         * modules/check-version (Makefile.am): Likewise.
19672         * modules/chown (Makefile.am): Likewise.
19673         * modules/cloexec (Makefile.am): Likewise.
19674         * modules/close-stream (Makefile.am): Likewise.
19675         * modules/closeout (Makefile.am): Likewise.
19676         * modules/crc (Makefile.am): Likewise.
19677         * modules/csharpexec (Makefile.am): Likewise.
19678         * modules/cycle-check (Makefile.am): Likewise.
19679         * modules/des (Makefile.am): Likewise.
19680         * modules/dev-ino (Makefile.am): Likewise.
19681         * modules/dirfd (Makefile.am): Likewise.
19682         * modules/dirname (Makefile.am): Likewise.
19683         * modules/dup2 (Makefile.am): Likewise.
19684         * modules/eealloc (Makefile.am): Likewise.
19685         * modules/error (Makefile.am): Likewise.
19686         * modules/euidaccess (Makefile.am): Likewise.
19687         * modules/exclude (Makefile.am): Likewise.
19688         * modules/exitfail (Makefile.am): Likewise.
19689         * modules/fcntl-safer (Makefile.am): Likewise.
19690         * modules/fcntl (Makefile.am): Likewise.
19691         * modules/file-type (Makefile.am): Likewise.
19692         * modules/fileblocks (Makefile.am): Likewise.
19693         * modules/filemode (Makefile.am): Likewise.
19694         * modules/filenamecat (Makefile.am): Likewise.
19695         * modules/fnmatch (Makefile.am): Likewise.
19696         * modules/fopen-safer (Makefile.am): Likewise.
19697         * modules/fpending (Makefile.am): Likewise.
19698         * modules/fprintftime (Makefile.am): Likewise.
19699         * modules/free (Makefile.am): Likewise.
19700         * modules/fsusage (Makefile.am): Likewise.
19701         * modules/ftruncate (Makefile.am): Likewise.
19702         * modules/fts (Makefile.am): Likewise.
19703         * modules/gc-arcfour (Makefile.am): Likewise.
19704         * modules/gc-des (Makefile.am): Likewise.
19705         * modules/gc-hmac-md5 (Makefile.am): Likewise.
19706         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
19707         * modules/gc-md4 (Makefile.am): Likewise.
19708         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19709         * modules/gc-sha1 (Makefile.am): Likewise.
19710         * modules/gc (Makefile.am): Likewise.
19711         * modules/getaddrinfo (Makefile.am): Likewise.
19712         * modules/getcwd (Makefile.am): Likewise.
19713         * modules/getdelim (Makefile.am): Likewise.
19714         * modules/getdomainname (Makefile.am): Likewise.
19715         * modules/getgroups (Makefile.am): Likewise.
19716         * modules/gethostname (Makefile.am): Likewise.
19717         * modules/gethrxtime (Makefile.am): Likewise.
19718         * modules/getline (Makefile.am): Likewise.
19719         * modules/getloadavg (Makefile.am): Likewise.
19720         * modules/getlogin_r (Makefile.am): Likewise.
19721         * modules/getndelim2 (Makefile.am): Likewise.
19722         * modules/getopt (Makefile.am): Likewise.
19723         * modules/getpagesize (Makefile.am): Likewise.
19724         * modules/getpass-gnu (Makefile.am): Likewise.
19725         * modules/getpass (Makefile.am): Likewise.
19726         * modules/getsubopt (Makefile.am): Likewise.
19727         * modules/gettime (Makefile.am): Likewise.
19728         * modules/gettimeofday (Makefile.am): Likewise.
19729         * modules/getugroups (Makefile.am): Likewise.
19730         * modules/getusershell (Makefile.am): Likewise.
19731         * modules/glob (Makefile.am): Likewise.
19732         * modules/group-member (Makefile.am): Likewise.
19733         * modules/hard-locale (Makefile.am): Likewise.
19734         * modules/hash (Makefile.am): Likewise.
19735         * modules/hmac-md5 (Makefile.am): Likewise.
19736         * modules/hmac-sha1 (Makefile.am): Likewise.
19737         * modules/human (Makefile.am): Likewise.
19738         * modules/idcache (Makefile.am): Likewise.
19739         * modules/imaxabs (Makefile.am): Likewise.
19740         * modules/imaxdiv (Makefile.am): Likewise.
19741         * modules/inet_ntop (Makefile.am): Likewise.
19742         * modules/inet_pton (Makefile.am): Likewise.
19743         * modules/intprops (Makefile.am): Likewise.
19744         * modules/inttostr (Makefile.am): Likewise.
19745         * modules/inttypes (Makefile.am): Likewise.
19746         * modules/isapipe (Makefile.am): Likewise.
19747         * modules/javaversion (Makefile.am): Likewise.
19748         * modules/lchmod (Makefile.am): Likewise.
19749         * modules/lchown (Makefile.am): Likewise.
19750         * modules/localcharset (Makefile.am): Likewise.
19751         * modules/long-options (Makefile.am): Likewise.
19752         * modules/lstat (Makefile.am): Likewise.
19753         * modules/malloc (Makefile.am): Likewise.
19754         * modules/mathl (Makefile.am): Likewise.
19755         * modules/mbchar (Makefile.am): Likewise.
19756         * modules/md2 (Makefile.am): Likewise.
19757         * modules/md4 (Makefile.am): Likewise.
19758         * modules/md5 (Makefile.am): Likewise.
19759         * modules/memcasecmp (Makefile.am): Likewise.
19760         * modules/memchr (Makefile.am): Likewise.
19761         * modules/memcmp (Makefile.am): Likewise.
19762         * modules/memcoll (Makefile.am): Likewise.
19763         * modules/memcpy (Makefile.am): Likewise.
19764         * modules/memmem (Makefile.am): Likewise.
19765         * modules/memmove (Makefile.am): Likewise.
19766         * modules/mempcpy (Makefile.am): Likewise.
19767         * modules/memrchr (Makefile.am): Likewise.
19768         * modules/memset (Makefile.am): Likewise.
19769         * modules/memxor (Makefile.am): Likewise.
19770         * modules/mkancesdirs (Makefile.am): Likewise.
19771         * modules/mkdir-p (Makefile.am): Likewise.
19772         * modules/mkdir (Makefile.am): Likewise.
19773         * modules/mkdtemp (Makefile.am): Likewise.
19774         * modules/mkstemp (Makefile.am): Likewise.
19775         * modules/mktime (Makefile.am): Likewise.
19776         * modules/modechange (Makefile.am): Likewise.
19777         * modules/mountlist (Makefile.am): Likewise.
19778         * modules/nanosleep (Makefile.am): Likewise.
19779         * modules/obstack (Makefile.am): Likewise.
19780         * modules/openat (Makefile.am): Likewise.
19781         * modules/pagealign_alloc (Makefile.am): Likewise.
19782         * modules/pathmax (Makefile.am): Likewise.
19783         * modules/physmem (Makefile.am): Likewise.
19784         * modules/poll (Makefile.am): Likewise.
19785         * modules/posixtm (Makefile.am): Likewise.
19786         * modules/posixver (Makefile.am): Likewise.
19787         * modules/putenv (Makefile.am): Likewise.
19788         * modules/quote (Makefile.am): Likewise.
19789         * modules/quotearg (Makefile.am): Likewise.
19790         * modules/raise (Makefile.am): Likewise.
19791         * modules/read-file (Makefile.am): Likewise.
19792         * modules/readline (Makefile.am): Likewise.
19793         * modules/readlink (Makefile.am): Likewise.
19794         * modules/readtokens (Makefile.am): Likewise.
19795         * modules/readutmp (Makefile.am): Likewise.
19796         * modules/realloc (Makefile.am): Likewise.
19797         * modules/regex (Makefile.am): Likewise.
19798         * modules/rename-dest-slash (Makefile.am): Likewise.
19799         * modules/rename (Makefile.am): Likewise.
19800         * modules/rijndael (Makefile.am): Likewise.
19801         * modules/rmdir (Makefile.am): Likewise.
19802         * modules/rpmatch (Makefile.am): Likewise.
19803         * modules/safe-read (Makefile.am): Likewise.
19804         * modules/safe-write (Makefile.am): Likewise.
19805         * modules/same-inode (Makefile.am): Likewise.
19806         * modules/same (Makefile.am): Likewise.
19807         * modules/save-cwd (Makefile.am): Likewise.
19808         * modules/savedir (Makefile.am): Likewise.
19809         * modules/setenv (Makefile.am): Likewise.
19810         * modules/settime (Makefile.am): Likewise.
19811         * modules/sha1 (Makefile.am): Likewise.
19812         * modules/sig2str (Makefile.am): Likewise.
19813         * modules/snprintf (Makefile.am): Likewise.
19814         * modules/stat-macros (Makefile.am): Likewise.
19815         * modules/stat-time (Makefile.am): Likewise.
19816         * modules/stdbool (Makefile.am): Likewise.
19817         * modules/stdint (Makefile.am): Likewise.
19818         * modules/stdlib-safer (Makefile.am): Likewise.
19819         * modules/stpcpy (Makefile.am): Likewise.
19820         * modules/stpncpy (Makefile.am): Likewise.
19821         * modules/strcase (Makefile.am): Likewise.
19822         * modules/strcasestr (Makefile.am): Likewise.
19823         * modules/strchrnul (Makefile.am): Likewise.
19824         * modules/strcspn (Makefile.am): Likewise.
19825         * modules/strdup (Makefile.am): Likewise.
19826         * modules/strerror (Makefile.am): Likewise.
19827         * modules/strftime (Makefile.am): Likewise.
19828         * modules/strndup (Makefile.am): Likewise.
19829         * modules/strnlen (Makefile.am): Likewise.
19830         * modules/strpbrk (Makefile.am): Likewise.
19831         * modules/strsep (Makefile.am): Likewise.
19832         * modules/strstr (Makefile.am): Likewise.
19833         * modules/strtod (Makefile.am): Likewise.
19834         * modules/strtoimax (Makefile.am): Likewise.
19835         * modules/strtok_r (Makefile.am): Likewise.
19836         * modules/strtol (Makefile.am): Likewise.
19837         * modules/strtoll (Makefile.am): Likewise.
19838         * modules/strtoul (Makefile.am): Likewise.
19839         * modules/strtoull (Makefile.am): Likewise.
19840         * modules/strtoumax (Makefile.am): Likewise.
19841         * modules/strverscmp (Makefile.am): Likewise.
19842         * modules/sys_socket (Makefile.am): Likewise.
19843         * modules/sys_stat (Makefile.am): Likewise.
19844         * modules/sysexits (Makefile.am): Likewise.
19845         * modules/time_r (Makefile.am): Likewise.
19846         * modules/timegm (Makefile.am): Likewise.
19847         * modules/timespec (Makefile.am): Likewise.
19848         * modules/tmpfile-safer (Makefile.am): Likewise.
19849         * modules/trim (Makefile.am): Likewise.
19850         * modules/unistd-safer (Makefile.am): Likewise.
19851         * modules/unlinkdir (Makefile.am): Likewise.
19852         * modules/unlocked-io (Makefile.am): Likewise.
19853         * modules/userspec (Makefile.am): Likewise.
19854         * modules/utime (Makefile.am): Likewise.
19855         * modules/utimecmp (Makefile.am): Likewise.
19856         * modules/utimens (Makefile.am): Likewise.
19857         * modules/vasnprintf (Makefile.am): Likewise.
19858         * modules/vasprintf (Makefile.am): Likewise.
19859         * modules/vsnprintf (Makefile.am): Likewise.
19860         * modules/xalloc (Makefile.am): Likewise.
19861         * modules/xgetcwd (Makefile.am): Likewise.
19862         * modules/xnanosleep (Makefile.am): Likewise.
19863         * modules/xreadlink (Makefile.am): Likewise.
19864         * modules/xstrtod (Makefile.am): Likewise.
19865         * modules/xstrtol (Makefile.am): Likewise.
19866         * modules/xstrtold (Makefile.am): Likewise.
19867         * modules/yesno (Makefile.am): Likewise.
19868         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
19869
19870 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19871
19872         * modules/error (Makefile.am): Distribute files through
19873         EXTRA_DIST, not lib_SOURCES.
19874
19875 2006-10-12  Eric Blake  <ebb9@byu.net>
19876
19877         * modules/error (Makefile.am): Distribute files in /lib.
19878         * modules/obstack (Makefile.am): Likewise.
19879
19880 2006-10-12  Bruno Haible  <bruno@clisp.org>
19881
19882         * modules/acl (Makefile.am): Distribute all files in lib/ through
19883         EXTRA_DIST.
19884         * modules/arcfour (Makefile.am): Likewise.
19885         * modules/arctwo (Makefile.am): Likewise.
19886         * modules/argmatch (Makefile.am): Likewise.
19887         * modules/argz (Makefile.am): Likewise.
19888         * modules/atexit (Makefile.am): Likewise.
19889         * modules/backupfile (Makefile.am): Likewise.
19890         * modules/c-strtod (Makefile.am): Likewise.
19891         * modules/c-strtold (Makefile.am): Likewise.
19892         * modules/calloc (Makefile.am): Likewise.
19893         * modules/canon-host (Makefile.am): Likewise.
19894         * modules/canonicalize (Makefile.am): Likewise.
19895         * modules/chdir-long (Makefile.am): Likewise.
19896         * modules/chdir-safer (Makefile.am): Likewise.
19897         * modules/check-version (Makefile.am): Likewise.
19898         * modules/chown (Makefile.am): Likewise.
19899         * modules/cloexec (Makefile.am): Likewise.
19900         * modules/close-stream (Makefile.am): Likewise.
19901         * modules/closeout (Makefile.am): Likewise.
19902         * modules/crc (Makefile.am): Likewise.
19903         * modules/cycle-check (Makefile.am): Likewise.
19904         * modules/des (Makefile.am): Likewise.
19905         * modules/dirfd (Makefile.am): Likewise.
19906         * modules/dirname (Makefile.am): Likewise.
19907         * modules/dup2 (Makefile.am): Likewise.
19908         * modules/euidaccess (Makefile.am): Likewise.
19909         * modules/exclude (Makefile.am): Likewise.
19910         * modules/exitfail (Makefile.am): Likewise.
19911         * modules/fcntl-safer (Makefile.am): Likewise.
19912         * modules/file-type (Makefile.am): Likewise.
19913         * modules/fileblocks (Makefile.am): Likewise.
19914         * modules/filemode (Makefile.am): Likewise.
19915         * modules/filenamecat (Makefile.am): Likewise.
19916         * modules/fnmatch (Makefile.am): Likewise.
19917         * modules/fopen-safer (Makefile.am): Likewise.
19918         * modules/fpending (Makefile.am): Likewise.
19919         * modules/fprintftime (Makefile.am): Likewise.
19920         * modules/free (Makefile.am): Likewise.
19921         * modules/fsusage (Makefile.am): Likewise.
19922         * modules/ftruncate (Makefile.am): Likewise.
19923         * modules/fts (Makefile.am): Likewise.
19924         * modules/gc (Makefile.am): Likewise.
19925         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
19926         * modules/getaddrinfo (Makefile.am): Likewise.
19927         * modules/getcwd (Makefile.am): Likewise.
19928         * modules/getdelim (Makefile.am): Likewise.
19929         * modules/getdomainname (Makefile.am): Likewise.
19930         * modules/getgroups (Makefile.am): Likewise.
19931         * modules/gethostname (Makefile.am): Likewise.
19932         * modules/gethrxtime (Makefile.am): Likewise.
19933         * modules/getline (Makefile.am): Likewise.
19934         * modules/getloadavg (Makefile.am): Likewise.
19935         * modules/getlogin_r (Makefile.am): Likewise.
19936         * modules/getopt (Makefile.am): Likewise.
19937         * modules/getpass (Makefile.am): Likewise.
19938         * modules/getpass-gnu (Makefile.am): Likewise.
19939         * modules/getsubopt (Makefile.am): Likewise.
19940         * modules/gettime (Makefile.am): Likewise.
19941         * modules/gettimeofday (Makefile.am): Likewise.
19942         * modules/getugroups (Makefile.am): Likewise.
19943         * modules/getusershell (Makefile.am): Likewise.
19944         * modules/glob (Makefile.am): Likewise.
19945         * modules/group-member (Makefile.am): Likewise.
19946         * modules/hard-locale (Makefile.am): Likewise.
19947         * modules/hash (Makefile.am): Likewise.
19948         * modules/hmac-md5 (Makefile.am): Likewise.
19949         * modules/hmac-sha1 (Makefile.am): Likewise.
19950         * modules/human (Makefile.am): Likewise.
19951         * modules/idcache (Makefile.am): Likewise.
19952         * modules/imaxabs (Makefile.am): Likewise.
19953         * modules/imaxdiv (Makefile.am): Likewise.
19954         * modules/inet_ntop (Makefile.am): Likewise.
19955         * modules/inet_pton (Makefile.am): Likewise.
19956         * modules/inttostr (Makefile.am): Likewise.
19957         * modules/isapipe (Makefile.am): Likewise.
19958         * modules/lchown (Makefile.am): Likewise.
19959         * modules/long-options (Makefile.am): Likewise.
19960         * modules/lstat (Makefile.am): Likewise.
19961         * modules/malloc (Makefile.am): Likewise.
19962         * modules/mathl (Makefile.am): Likewise.
19963         * modules/mbchar (Makefile.am): Likewise.
19964         * modules/md2 (Makefile.am): Likewise.
19965         * modules/md4 (Makefile.am): Likewise.
19966         * modules/md5 (Makefile.am): Likewise.
19967         * modules/memcasecmp (Makefile.am): Likewise.
19968         * modules/memchr (Makefile.am): Likewise.
19969         * modules/memcmp (Makefile.am): Likewise.
19970         * modules/memcoll (Makefile.am): Likewise.
19971         * modules/memcpy (Makefile.am): Likewise.
19972         * modules/memmem (Makefile.am): Likewise.
19973         * modules/memmove (Makefile.am): Likewise.
19974         * modules/mempcpy (Makefile.am): Likewise.
19975         * modules/memrchr (Makefile.am): Likewise.
19976         * modules/memset (Makefile.am): Likewise.
19977         * modules/memxor (Makefile.am): Likewise.
19978         * modules/mkancesdirs (Makefile.am): Likewise.
19979         * modules/mkdir (Makefile.am): Likewise.
19980         * modules/mkdir-p (Makefile.am): Likewise.
19981         * modules/mkdtemp (Makefile.am): Likewise.
19982         * modules/mkstemp (Makefile.am): Likewise.
19983         * modules/mktime (Makefile.am): Likewise.
19984         * modules/modechange (Makefile.am): Likewise.
19985         * modules/mountlist (Makefile.am): Likewise.
19986         * modules/nanosleep (Makefile.am): Likewise.
19987         * modules/openat (Makefile.am): Likewise.
19988         * modules/pagealign_alloc (Makefile.am): Likewise.
19989         * modules/physmem (Makefile.am): Likewise.
19990         * modules/poll (Makefile.am): Likewise.
19991         * modules/posixtm (Makefile.am): Likewise.
19992         * modules/posixver (Makefile.am): Likewise.
19993         * modules/putenv (Makefile.am): Likewise.
19994         * modules/quote (Makefile.am): Likewise.
19995         * modules/quotearg (Makefile.am): Likewise.
19996         * modules/raise (Makefile.am): Likewise.
19997         * modules/read-file (Makefile.am): Likewise.
19998         * modules/readline (Makefile.am): Likewise.
19999         * modules/readlink (Makefile.am): Likewise.
20000         * modules/readtokens (Makefile.am): Likewise.
20001         * modules/readutmp (Makefile.am): Likewise.
20002         * modules/realloc (Makefile.am): Likewise.
20003         * modules/regex (Makefile.am): Likewise.
20004         * modules/rename (Makefile.am): Likewise.
20005         * modules/rename-dest-slash (Makefile.am): Likewise.
20006         * modules/rijndael (Makefile.am): Likewise.
20007         * modules/rmdir (Makefile.am): Likewise.
20008         * modules/rpmatch (Makefile.am): Likewise.
20009         * modules/safe-read (Makefile.am): Likewise.
20010         * modules/safe-write (Makefile.am): Likewise.
20011         * modules/same (Makefile.am): Likewise.
20012         * modules/save-cwd (Makefile.am): Likewise.
20013         * modules/savedir (Makefile.am): Likewise.
20014         * modules/setenv (Makefile.am): Likewise.
20015         * modules/settime (Makefile.am): Likewise.
20016         * modules/sha1 (Makefile.am): Likewise.
20017         * modules/sig2str (Makefile.am): Likewise.
20018         * modules/snprintf (Makefile.am): Likewise.
20019         * modules/stdlib-safer (Makefile.am): Likewise.
20020         * modules/stpcpy (Makefile.am): Likewise.
20021         * modules/stpncpy (Makefile.am): Likewise.
20022         * modules/strcase (Makefile.am): Likewise.
20023         * modules/strcasestr (Makefile.am): Likewise.
20024         * modules/strchrnul (Makefile.am): Likewise.
20025         * modules/strcspn (Makefile.am): Likewise.
20026         * modules/strdup (Makefile.am): Likewise.
20027         * modules/strerror (Makefile.am): Likewise.
20028         * modules/strftime (Makefile.am): Likewise.
20029         * modules/strndup (Makefile.am): Likewise.
20030         * modules/strnlen (Makefile.am): Likewise.
20031         * modules/strpbrk (Makefile.am): Likewise.
20032         * modules/strsep (Makefile.am): Likewise.
20033         * modules/strstr (Makefile.am): Likewise.
20034         * modules/strtod (Makefile.am): Likewise.
20035         * modules/strtoimax (Makefile.am): Likewise.
20036         * modules/strtok_r (Makefile.am): Likewise.
20037         * modules/strtol (Makefile.am): Likewise.
20038         * modules/strtoll (Makefile.am): Likewise.
20039         * modules/strtoul (Makefile.am): Likewise.
20040         * modules/strtoull (Makefile.am): Likewise.
20041         * modules/strtoumax (Makefile.am): Likewise.
20042         * modules/strverscmp (Makefile.am): Likewise.
20043         * modules/time_r (Makefile.am): Likewise.
20044         * modules/timegm (Makefile.am): Likewise.
20045         * modules/tmpfile-safer (Makefile.am): Likewise.
20046         * modules/unistd-safer (Makefile.am): Likewise.
20047         * modules/unlinkdir (Makefile.am): Likewise.
20048         * modules/userspec (Makefile.am): Likewise.
20049         * modules/utime (Makefile.am): Likewise.
20050         * modules/utimecmp (Makefile.am): Likewise.
20051         * modules/utimens (Makefile.am): Likewise.
20052         * modules/vasnprintf (Makefile.am): Likewise.
20053         * modules/vasprintf (Makefile.am): Likewise.
20054         * modules/vsnprintf (Makefile.am): Likewise.
20055         * modules/xalloc (Makefile.am): Likewise.
20056         * modules/xgetcwd (Makefile.am): Likewise.
20057         * modules/xnanosleep (Makefile.am): Likewise.
20058         * modules/xreadlink (Makefile.am): Likewise.
20059         * modules/xstrtod (Makefile.am): Likewise.
20060         * modules/xstrtol (Makefile.am): Likewise.
20061         * modules/xstrtold (Makefile.am): Likewise.
20062         * modules/yesno (Makefile.am): Likewise.
20063
20064 2006-10-12  Jim Meyering  <jim@meyering.net>
20065
20066         * m4/getloadavg.m4: Revert the change below.
20067
20068         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
20069         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
20070         fail with a symlink, which is what coreutils' ./bootstrap now
20071         creates by default.
20072
20073 2006-10-12  Bruno Haible  <bruno@clisp.org>
20074
20075         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
20076         mingw.
20077         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
20078         MSVC and mingw explicitly.
20079
20080 2006-10-11  Simon Josefsson  <jas@extundo.com>
20081             Bruno Haible  <bruno@clisp.org>
20082
20083         Add support for multiple gnulib-tool invocations in the scope of a
20084         single configure.ac file.
20085         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
20086         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
20087         with the same contents as the _LIBADD variable.
20088         (func_emit_initmacro_start, func_emit_initmacro_end,
20089         func_emit_initmacro_done): New functions.
20090         (func_import, func_create_testdir): Invoke them. Allow the identifiers
20091         gl_LIBOBJS and gl_LTLIBOBJS.
20092
20093 2006-10-11  Bruno Haible  <bruno@clisp.org>
20094
20095         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
20096         (func_create_testdir): Don't create po/Makefile.am, don't invoke
20097         autoreconf. Instead, invoke autopoint explicitly but move back the
20098         *.m4 files from gnulib.
20099
20100 2006-10-11  Bruno Haible  <bruno@clisp.org>
20101
20102         * gnulib-tool (func_usage): Make module names after --create-testdir
20103         optional.
20104         (func_create_testdir): If no module was specified, use nearly all
20105         modules.
20106
20107 2006-10-12  Jim Meyering  <jim@meyering.net>
20108
20109         Big performance improvement for fts-based tools that use FTS_NOSTAT.
20110         Avoid spurious inode-mismatch problems on non-POSIX file systems.
20111         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
20112         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
20113         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
20114         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
20115         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
20116         (fts_set_stat_required): New function.
20117         (fts_open): Defer the calls to fts_stat, if possible or requested.
20118         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
20119         into fts_stat itself.
20120         (fts_read): Perform any required (deferred) fts_stat call.
20121         (fts_build): Likewise, for the directory we're about to open and read.
20122         In the readdir loop, carefully decide whether each entry will require
20123         an eventual call to fts_stat, using dirent.d_type info if available.
20124         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
20125         a command line argument into this function.  Update all callers.
20126         Map a return value of FTS_DOT to FTS_D for a command line argument.
20127         * modules/fts (Depends-on): Add d-type.  Alphabetize.
20128         Thanks to Miklos Szeredi for his tenacity and for the initial
20129         bug report about "find" failing on a FUSE-based file system.
20130
20131         * lib/fts.c (fts_open): Use consistent indentation.
20132
20133 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
20136         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
20137         reported by Jim Meyering.  All uses of cache variables renamed
20138         to match Autoconf's.
20139         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
20140         the other one.
20141
20142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
20143         Fix misspelling in diagnostic.
20144
20145 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20146
20147         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
20148         defined.  Problem reported by Matthew Woehlke.
20149
20150         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
20151         Add support for Tandem NonStop R series.
20152         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
20153         Use new macro.
20154
20155         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
20156         (has_trailing_slash): Omit size arg; all callers changed.
20157         Omit 'inline', since it doesn't help performance and we'd
20158         need to configure it.
20159         Don't count //, ///, etc. as having a trailing slash.
20160         As a side effect, this removes a C99ism reported by Matthew Woehlke.
20161         (rpl_rename_dest_slash): On failure, use rename's errno rather
20162         than (in some cases) an incorrect or junk errno.
20163         Simplify code by removing need to compute length; this does
20164         cause it to make two passes instead of one over the file name,
20165         but it's worth it.
20166
20167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
20168         change, since Autoconf's version may no longer be appropriate now
20169         that we are using CVS Autoconf's version.  Add support for Tandem.
20170
20171 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20172             Bruno Haible  <bruno@clisp.org>
20173
20174         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
20175         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
20176         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
20177         gl_AC_TYPE_LONG_LONG.
20178
20179         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
20180         instead of HAVE_LONG_LONG.
20181         * lib/printf-args.c (printf_fetchargs): Likewise.
20182         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20183         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20184         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
20185         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
20186         gl_AC_TYPE_LONG_LONG.
20187
20188 2006-10-11  Bruno Haible  <bruno@clisp.org>
20189
20190         * m4/longlong.m4: Add comments.
20191         * m4/ulonglong.m4: Likewise.
20192
20193 2006-10-10  Bruno Haible  <bruno@clisp.org>
20194
20195         Make it possible to #define stpcpy, strdup to aliases.
20196         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
20197         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
20198
20199 2006-10-10  Bruno Haible  <bruno@clisp.org>
20200
20201         Make it possible to #define gcd to an alias.
20202         * lib/gcd.c: Include config.h.
20203
20204 2006-10-10  Bruno Haible  <bruno@clisp.org>
20205
20206         Make it possible to #define c_isascii to an alias.
20207         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
20208         defined. Undefine the macros before defining them, to avoid gcc
20209         warnings.
20210         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
20211         define NO_C_CTYPE_MACROS early.
20212
20213 2006-10-10  Bruno Haible  <bruno@clisp.org>
20214
20215         Make it possible to #define set_program_name to an alias.
20216         * lib/progname.c: Don't undefine set_program_name; instead, undefine
20217         ENABLE_RELOCATABLE early.
20218
20219 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20220
20221         Port to Tandem NSK OSS, which has 64-bit signed int but at most
20222         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
20223         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
20224         More generally, don't assume that 64-bit signed int is available
20225         if unsigned int is, and vice versa.
20226         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
20227         unsigned symbols, not on their signed counterparts.
20228         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
20229         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
20230         (UINT64_C, UINTMAX_C):
20231         Likewise.
20232         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
20233         unsigned counterparts.
20234         (Have_long_long, Unsigned): New macros.
20235         (Int): Renamed from INT.
20236         (strtoimax): Use the new macros.
20237         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
20238         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
20239         * modules/inttypes (inttypes.h): Substitute
20240         HAVE_UNSIGNED_LONG_LONG_INT.
20241         * modules/stdint (stdint.h): Likewise.
20242         (Files): Add m4/ulonglong.m4.
20243
20244 2006-10-10  Bruno Haible  <bruno@clisp.org>
20245
20246         Fix a gcc -Wshadow warning.
20247         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
20248         to 'bucket'.
20249         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
20250         gl_linked_indexof_from_to): Likewise.
20251         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
20252         Likewise.
20253         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
20254         Likewise.
20255         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
20256         Reported by Eric Blake.
20257
20258 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
20259
20260         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
20261         for NetBSD.  Problem reported by Bruno Haible.
20262
20263 2006-10-09  Jim Meyering  <jim@meyering.net>
20264
20265         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
20266         Patch from Bruno Haible.
20267
20268 2006-10-09  Jim Meyering  <jim@meyering.net>
20269
20270         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
20271         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
20272         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
20273
20274 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         Don't include <config.h> twice; this doesn't work in some cases,
20277         e.g., when config.h has "#define intmax_t long long int" and
20278         we include <config.h>, <inttypes.h>, <config.h> in that order.
20279         Problem reported by Matthew Woehlke in:
20280         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
20281         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
20282         * lib/fts-cycle.c: Don't include config.h.
20283         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
20284         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
20285         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
20286         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
20287         inttypes.h.
20288         * lib/xstrtoumax.c: Likewise.
20289         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
20290         __strtol and the like, so that this module is more like its siblings.
20291         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
20292         Remove; no longer needed now that we assume gnulib inttypes.h.
20293
20294 2006-10-08  Bruno Haible  <bruno@clisp.org>
20295
20296         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
20297         option.
20298
20299 2006-10-07  Jim Meyering  <jim@meyering.net>
20300
20301         * modules/inttypes (inttypes.h): Revert what seems to have been
20302         an inadvertent part of today's change: use "|", not "/" in the
20303         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
20304
20305 2006-10-07  Bruno Haible  <bruno@clisp.org>
20306
20307         * modules/sublist: New file.
20308
20309 2006-10-07  Bruno Haible  <bruno@clisp.org>
20310
20311         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
20312         * modules/argz (argz.h): Likewise.
20313         * modules/arpa_inet (arpa/inet.h): Likewise.
20314         * modules/byteswap (byteswap.h): Likewise.
20315         * modules/configmake (configmake.h): Likewise.
20316         * modules/fcntl (fcntl.h): Likewise.
20317         * modules/fnmatch (fnmatch.h): Likewise.
20318         * modules/getopt (getopt.h): Likewise.
20319         * modules/glob (glob.h): Likewise.
20320         * modules/inttypes (inttypes.h): Likewise.
20321         * modules/netinet_in (netinet/in.h): Likewise.
20322         * modules/poll (poll.h): Likewise.
20323         * modules/stdbool (stdbool.h): Likewise.
20324         * modules/stdint (stdint.h): Likewise.
20325         * modules/sys_select (sys/select.h): Likewise.
20326         * modules/sys_socket (sys/socket.h): Likewise.
20327         * modules/sys_stat (sys/stat.h): Likewise.
20328         * modules/sysexits (sysexits.h): Likewise.
20329         * modules/unistd (unistd.h): Likewise.
20330         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20331         Add a "DO NOT EDIT" comment to the generated file.
20332         (func_import): Likewise for gnulib-comp.m4.
20333
20334 2006-10-07  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/gl_sublist.h: New file.
20337         * lib/gl_sublist.c: New file.
20338
20339 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
20340
20341         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
20342         name (relative to the original working directory) and the file
20343         name component (relative to the temporary working directory).  All
20344         callers changed.
20345         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
20346         * lib/mkdir-p.c (make_dir_parents): Likewise.
20347         * lib/mkdir-p.h (make_dir_parents): Likewise.
20348
20349 2006-10-06  Eric Blake  <ebb9@byu.net>
20350
20351         Define several macros for use by the clean-temp module.
20352         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
20353         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
20354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
20355
20356         * lib/clean-temp.h (close_stream_temp): New declaration.
20357         * lib/clean-temp.c (includes): Pull in headers according to what
20358         other modules are in use.
20359         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
20360
20361 2006-10-06  Bruno Haible  <bruno@clisp.org>
20362
20363         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
20364         instead of fopen, fwriteerror.
20365
20366 2006-10-06  Bruno Haible  <bruno@clisp.org>
20367
20368         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
20369         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
20370         int.
20371         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
20372         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
20373         Return an error indicator.
20374         Suggested by Eric Blake.
20375
20376 2006-10-06  Bruno Haible  <bruno@clisp.org>
20377
20378         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
20379         Reported by Eric Blake.
20380
20381 2006-10-06  Bruno Haible  <bruno@clisp.org>
20382
20383         * modules/closeout (Description): Mention stderr too.
20384
20385 2006-10-06  Bruno Haible  <bruno@clisp.org>
20386         and Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         * lib/closeout.c (close_stdout): Also close stderr.
20389         * lib/closeout.h: Update comment.
20390
20391 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20392
20393         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
20394         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
20395         * lib/dirchownmod.c: Include lchown.h.
20396         * lib/lchown.c: Don't include files that lchown.h now includes.
20397         Don't declare chown, since lchown.h now does that.
20398         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
20399         (lchown): Define to rpl_chown if lchown is declared but
20400         does not exist.  Declare using a prototype if lchown is not
20401         declared.  Add a copyright notice.
20402         * lib/mkstemp.h: Include <unistd.h>.
20403         * lib/openat.c: Include lchown.h.
20404
20405         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
20406         we now test for that separately.
20407         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
20408         rather than O_NOFOLLOW, when testing whether it's possible to
20409         avoid a race condition reliably.
20410         * lib/savewd.c (savewd_chdir): Likewise.
20411
20412         Remove macros that are no longer needed now that stdint.h is
20413         reliable.
20414         * lib/fsusage.c (UINTMAX_MAX): Remove.
20415         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
20416         * lib/utimecmp.c (SIZE_MAX): Remove.
20417
20418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
20419
20420         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
20421         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
20422         O_NOATIME works.
20423
20424 2006-10-05  Bruno Haible  <bruno@clisp.org>
20425
20426         * lib/gl_list.h (gl_sortedlist_search_from_to,
20427         gl_sortedlist_indexof_from_to): New declarations.
20428         (gl_list_implementation): New fields sortedlist_search_from_to,
20429         sortedlist_indexof_from_to.
20430         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
20431         inline functions.
20432         * lib/gl_list.c (gl_sortedlist_search_from_to,
20433         gl_sortedlist_indexof_from_to): New functions.
20434         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
20435         function.
20436         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
20437         (gl_array_sortedlist_search_from_to): New function.
20438         (gl_array_list_implementation): Update.
20439         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
20440         function.
20441         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
20442         (gl_carray_sortedlist_search_from_to): New function.
20443         (gl_carray_list_implementation): Update.
20444         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
20445         gl_linked_sortedlist_indexof_from_to): New functions.
20446         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20447         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20448         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
20449         gl_tree_sortedlist_indexof_from_to): New functions.
20450         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20451         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20452         Update.
20453         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20454         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
20455         Update.
20456
20457 2006-10-05  Bruno Haible  <bruno@clisp.org>
20458
20459         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
20460         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
20461         (struct gl_list_implementation): Add fields search_from_to,
20462         indexof_from_to. Remove fields search, indexof.
20463         (gl_list_search): Use the search_from_to method.
20464         (gl_list_search_from, gl_list_search_from_to): New functions.
20465         (gl_list_indexof): Use the indexof_from_to method.
20466         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20467         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
20468         (gl_list_search_from, gl_list_search_from_to): New functions.
20469         (gl_list_indexof): Use the indexof_from_to method.
20470         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
20471         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
20472         gl_array_indexof. Add start_index, end_index arguments.
20473         (gl_array_search_from_to): Renamed from gl_array_search. Add
20474         start_index, end_index arguments.
20475         (gl_array_remove, gl_array_list_implementation): Update.
20476         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
20477         gl_carray_indexof. Add start_index, end_index arguments.
20478         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
20479         start_index, end_index arguments.
20480         (gl_carray_remove, gl_carray_list_implementation): Update.
20481         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
20482         gl_linked_search. Add start_index, end_index arguments.
20483         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
20484         start_index, end_index arguments.
20485         (gl_linked_remove): Update.
20486         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20487         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20488         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
20489         field to 'size_t'.
20490         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
20491         gl_tree_search. Add start_index, end_index arguments.
20492         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20493         start_index, end_index arguments.
20494         (gl_tree_remove): Update.
20495         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20496         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20497         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
20498         function.
20499         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
20500         gl_tree_search. Add start_index, end_index arguments.
20501         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
20502         start_index, end_index arguments.
20503         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20504         Update.
20505         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20506
20507 2006-10-05  Bruno Haible  <bruno@clisp.org>
20508
20509         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
20510
20511         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
20512         fwriteerror_temp): New declarations.
20513         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
20514         (descriptors): New variable.
20515         (cleanup): First, close the descriptors.
20516         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
20517         fclose_temp, fwriteerror_temp): New functions.
20518
20519 2006-10-04  Jim Meyering  <jim@meyering.net>
20520
20521         * lib/fts.c (fts_open): Tiny comment change.
20522
20523 2006-10-04  Bruno Haible  <bruno@clisp.org>
20524
20525         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
20526         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
20527         gl_LOCK_BODY.
20528         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
20529         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
20530         gl_LOCK_EARLY_BODY.
20531         (gl_LOCK): Require gl_LOCK_BODY.
20532
20533 2006-10-04  Bruno Haible  <bruno@clisp.org>
20534
20535         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
20536         (gl_oset_search_atleast): New declaration.
20537         (struct gl_oset_implementation): Add field 'search_atleast'.
20538         (gl_oset_search_atleast): New inline function.
20539         * lib/gl_oset.c (gl_oset_search_atleast): New function.
20540         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
20541         (gl_array_oset_implementation): Update.
20542         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
20543         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
20544         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
20545
20546 2006-10-04  Bruno Haible  <bruno@clisp.org>
20547
20548         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
20549
20550 2006-10-03  Bruno Haible  <bruno@clisp.org>
20551
20552         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
20553         from gl_avltreehash_list_implementation.
20554
20555 2006-10-03  Bruno Haible  <bruno@clisp.org>
20556
20557         * lib/gl_oset.c (gl_oset_add): Fix return type.
20558
20559 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
20560
20561         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
20562
20563 2006-10-02  Eric Blake  <ebb9@byu.net>
20564
20565         * modules/strnlen (Depends-on): Add extensions.
20566
20567 2006-10-02  Eric Blake  <ebb9@byu.net>
20568
20569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
20570         definition in 2.60+.
20571
20572 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
20573
20574         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
20575         checks.
20576
20577 2006-10-02  Bruno Haible  <bruno@clisp.org>
20578
20579         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
20580         to the AUTOMAKE_OPTIONS.
20581         Reported by Jim Meyering.
20582
20583 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20584
20585         Work around bug in Solaris 10 /proc file system:
20586         /proc/self/fd/NNN/.. isn't the parent directory of
20587         the directory whose file descriptor is NNN.  This needs to
20588         be worked around at run time, not compile time, since a
20589         program might be built on Solaris 8, where things work, and
20590         run on Solaris 10.
20591         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
20592         to use the following interface instead:
20593         (OPENAT_BUFFER_SIZE): New macro.
20594         (openat_proc_name): New function.
20595         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
20596         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
20597         Likewise.
20598         * lib/openat-proc.c: New file.
20599         * modules/openat (Files): Add lib/openat-proc.c.
20600         (Depends-on): Add same-inode, stdbool.
20601         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
20602
20603 2006-09-29  Bruno Haible  <bruno@clisp.org>
20604
20605         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
20606         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
20607         argument. Set stdout_closed before testing for ferror, not after.
20608         (fwriteerror, fwriteerror_no_ebadf): New functions.
20609
20610 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20611
20612         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
20613
20614 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
20615
20616         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
20617         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
20618
20619 2006-09-28  Jim Meyering  <jim@meyering.net>
20620
20621         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
20622         Include <unistd.h>.
20623
20624 2006-09-28  Bruno Haible  <bruno@clisp.org>
20625
20626         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
20627         * modules/linkedhash-list (Depends-on): Likewise.
20628         * modules/rbtreehash-list (Depends-on): Likewise.
20629
20630 2006-09-28  Bruno Haible  <bruno@clisp.org>
20631
20632         * lib/strndup.h: Simplify the redefinition of strndup.
20633         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
20634         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
20635
20636 2006-09-28  Bruno Haible  <bruno@clisp.org>
20637
20638         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
20639         * lib/gl_linkedhash_list.c: Likewise.
20640         * lib/gl_rbtreehash_list.c: Likewise.
20641
20642 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
20643
20644         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
20645         getaddrinfo.
20646
20647         * lib/__fpending.h: Don't include <stdio_ext.h> unless
20648         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
20649         it causes <stdio_ext.h> to cause a compile-time error.
20650         Problem reported by Nelson H. F. Beebe.
20651         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
20652         of HAVE_DECL___PENDING.
20653
20654         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
20655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
20656         declaration.
20657
20658 2006-09-27  Jim Meyering  <jim@meyering.net>
20659
20660         This file could end up with a definition for a function
20661         named __strndup, rather than rpl_strndup on a system with
20662         incomplete weak_alias support.
20663         * lib/strndup.c (strndup): Rename from __strndup.
20664         Remove #defines that used to map __strndup to strndup.
20665         Don't use K&R prototypes.
20666         Remove LIBC-related code, since this file is not sync'd with glibc.
20667         * lib/strndup.h: Revamp, accordingly.
20668         * m4/strndup.m4: Modernize.
20669
20670 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20671
20672         * modules/savewd (Depends-on): Add 'raise'.
20673         * lib/savewd.c: Include <signal.h>, for 'raise'.
20674
20675 2006-09-26  Jim Meyering  <jim@meyering.net>
20676
20677         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
20678         when we detect Darwin 8.7.0's acl_get_file bug.
20679         Rearrange to perform the new (below) run-test while $LIBS
20680         contains any acl-related library.  Set USE_ACL at the end.
20681         (gl_ACL_GET_FILE): New function.
20682
20683 2006-09-26  Eric Blake  <ebb9@byu.net>
20684
20685         * lib/verror.c: Include <config.h> unconditionally.
20686
20687 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20688
20689         * modules/clock-time (Maintainer): Add self.
20690         * modules/getlogin_r (Depends-on): Add extensions.
20691
20692 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20693
20694         * modules/clock-time: New module.
20695         * modules/nanosleep (Depends-on): Add clock-time.
20696         * modules/gethrxtime (Depends-on): Likewise.
20697         * modules/gettime (Depends-on): Likewise.
20698         * modules/settime (Depends-on): Likewise.
20699
20700         * modules/fts-lgpl: Depend on openat.
20701         * modules/mkancesdirs: Depend on savewd.
20702         * modules/mkdir-p: Likewise.
20703
20704 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20705
20706         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
20707
20708         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
20709         `gl_have_arbitrary_file_name_length_limit' to
20710         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
20711         actually works between configure runs.
20712
20713 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20714             Bruno Haible  <bruno@clisp.org>
20715
20716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
20717
20718 2006-09-25  Jim Meyering  <jim@meyering.net>
20719
20720         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
20721         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
20722
20723 2006-09-25  Eric Blake  <ebb9@byu.net>
20724
20725         * gnulib-tool (func_import, func_create_testdir): Fix typos in
20726         exec's in 2006-09-18 patch when shuffling fds.
20727
20728 2006-09-25  Bruno Haible  <bruno@clisp.org>
20729
20730         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
20731         Reported by Jim Meyering.
20732
20733 2006-09-24  Jim Meyering  <jim@meyering.net>
20734
20735         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
20736         compare a pointer against a literal "0".  That caused failures with
20737         at least HP-UX's hpcc.
20738
20739 2006-09-22  Simon Josefsson  <jas@extundo.com>
20740
20741         * modules/gc-sha1:
20742         * modules/gc-md4:
20743         * modules/gc-hmac-sha1:
20744         * modules/gc-hmac-md5:
20745         * modules/gc-des:
20746         * modules/gc-arcfour: Distribute more files.
20747
20748 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20749
20750         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
20751         (gl_linked_iterator_from_to): Initialize struct completely.
20752         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
20753         (gl_tree_iterator_from_to): Likewise
20754         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
20755         * lib/gl_array_list.c [lint] (gl_array_iterator)
20756         (gl_array_iterator_from_to): Likewise.
20757         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
20758         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
20759         (gl_carray_iterator_from_to): Likewise.
20760
20761         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
20762         * lib/md4.c (md4_process_block): Remove unused variable.
20763         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
20764         parentheses for clarity.
20765
20766 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20767
20768         * modules/bison-i18n (Depends-on): Add gettext.
20769
20770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20771
20772         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
20773         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
20774         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
20775         also add missing comma that caused broken test.
20776         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
20777         stdlib.h, for `abort'.
20778         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
20779         variables.
20780         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
20781         include unistd.h if present, for `rmdir'.
20782         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
20783         variables.
20784         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
20785         in the process include standard headers for prototypes.
20786         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
20787         gets declared on GNU/Linux.
20788         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
20789         unistd.h, for `rmdir'.
20790         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
20791
20792         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
20793         always true.
20794         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
20795
20796         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
20797
20798 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20799
20800         * gnulib-tool (func_version): Create output all at once.  This
20801         may help avoid triggering unnecessary SIGPIPEs, and at any
20802         rate it doesn't hurt.
20803
20804 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20805             Bruno Haible  <bruno@clisp.org>
20806
20807         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
20808         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20809         * m4/signed.m4 (bh_C_SIGNED): Likewise.
20810
20811         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
20812         (gl_FUNC_VASPRINTF): Invoke it.
20813
20814 2006-09-22  Bruno Haible  <bruno@clisp.org>
20815
20816         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
20817         getloadavg.c as first argument.
20818
20819 2006-09-22  Bruno Haible  <bruno@clisp.org>
20820
20821         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
20822         at the beginning of the gl_INIT macro.
20823         * modules/getloadavg (configure.ac): Pass $gl_source_base to
20824         gl_GETLOADAVG.
20825
20826 2006-09-22  Bruno Haible  <bruno@clisp.org>
20827
20828         * gnulib-tool (func_create_megatestdir): Don't include the config-h
20829         module.
20830         Suggested by Ralf Wildenhues.
20831
20832 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20833
20834         Import this patch from libc:
20835
20836         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
20837
20838         * lib/regex_internal.c (re_string_reconstruct): Handle
20839         offset < pstr->valid_raw_len && pstr->offsets_needed case.
20840         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
20841         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
20842         re_string_context_at.
20843
20844         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
20845         now requires it.
20846         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
20847         gl_REGEX now does it for us.
20848         (gl_REGEX): Add test taken from
20849         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
20850
20851         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
20852         Check that large offsets work.  Modernize Autoconf usages.
20853         Prefer "yes" to mean a good thing rather than a bad.
20854         Don't put "#define mkstemp" in config.h, as this might interfere
20855         with standard system headers that "#define mkstemp mkstemp64".
20856
20857         * modules/mkstemp (Depends-on): Add extensions, so that
20858         mkstemp is visible on some platforms.
20859         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
20860         (Include): Change to "mkstemp.h" from <stdlib.h>.
20861         (Files): Add mkstemp.h.
20862
20863         * lib/mkstemp.h: New file, since some standard headers
20864         #define mkstemp.
20865         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
20866         Include "mkstemp.h".
20867         Make the _LIBC code resemble glibc original more,
20868         e.g., use K&R style.
20869         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
20870         (mkstemp): Remove, since mkstemp.h does this for us.
20871         * lib/stdlib--.h: Include mkstemp.h.
20872
20873         Import this patch from libc:
20874
20875         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20876
20877         * lib/tempname.c (__gen_tempname): Change attempts_min
20878         into a macro.  Use preprocessor to decide how to initialize
20879         attempts [Coverity CID 67].
20880
20881 2006-09-20  Bruno Haible  <bruno@clisp.org>
20882
20883         * lib/mkdtemp.c: Import from libc.
20884         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
20885                 * sysdeps/posix/tempname.c (__gen_tempname): Change
20886                 attempts_min into a macro.  Use preprocessor to decide how to
20887                 initialize attempts [Coverity CID 67].
20888         2001-11-27  Paul Eggert  <eggert@twinsun.com>
20889                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
20890                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
20891
20892 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20893
20894         * gnulib-tool (func_exit): New function, to allow to pass the
20895         exit status portably through the trap.  Use everywhere.
20896         (--help, --version): Signal a write error.
20897         (trap): catch SIGPIPE, for write errors.
20898         Exit at the end of the trap, with the correct exit status.
20899
20900 2006-09-19  Karl Berry  <karl@gnu.org>
20901
20902         * doc/gnulib.texi: note about the license texinfo files.
20903
20904 2006-09-19  Eric Blake  <ebb9@byu.net>
20905
20906         * gnulib-tool: Avoid space-tab.
20907
20908 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
20909
20910         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
20911         that prevented coreutils 6.1 from building.  Problem reported
20912         by Petter Reinholdtsen.
20913
20914 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
20915
20916         * gnulib-tool (avoidlist): Fix typo that broke options like
20917         --avoid=lock that are used by coreutils bootstrap.
20918
20919 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
20920
20921         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
20922         more systematically.
20923
20924 2006-09-18  Jim Meyering  <jim@meyering.net>
20925
20926         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
20927
20928 2006-09-18  Bruno Haible  <bruno@clisp.org>
20929
20930         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
20931
20932 2006-09-18  Bruno Haible  <bruno@clisp.org>
20933
20934         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
20935         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
20936         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
20937         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
20938         * m4/gettext.m4: Require autoconf >= 2.52.
20939         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
20940         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
20941         of gl_cv_header_inttypes_h.
20942
20943 2006-09-18  Bruno Haible  <bruno@clisp.org>
20944
20945         * lib/javaversion.c: Include configmake.h.
20946
20947 2006-09-18  Bruno Haible  <bruno@clisp.org>
20948
20949         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
20950         avoid that the while loops be executed in a subshell.
20951
20952 2006-09-18  Bruno Haible  <bruno@clisp.org>
20953
20954         * MODULES.html.sh (func_module): Break long lines.
20955         Suggested by Bruce Korb <bkorb@gnu.org>.
20956
20957 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20958
20959         Speed up by a factor of 1.12.
20960         * gnulib-tool (nl): New variable.
20961         (func_import): Rewrite include directive extraction to only read each
20962         directive once.
20963
20964 2006-09-17  Bruno Haible  <bruno@clisp.org>
20965
20966         * modules/javaversion (Makefile.am): Remove DEFS setting.
20967         (Depends-on): Add configmake, for PKGDATADIR definition.
20968
20969 2006-09-17  Bruno Haible  <bruno@clisp.org>
20970
20971         * gnulib-tool (func_create_testdir): Rewrite all files at once.
20972
20973 2006-09-17  Bruno Haible  <bruno@clisp.org>
20974
20975         * gnulib-tool (func_append): New function, stolen from libtool.m4.
20976         (func_modules_transitive_closure, func_modules_add_dummy,
20977         func_modules_to_filelist, func_import, func_create_testdir,
20978         func_create_megatestdir, ...): Use it wherever possible.
20979         Suggested by Ralf Wildenhues.
20980
20981 2006-09-16  Karl Berry  <karl@gnu.org>
20982
20983         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
20984         to avoid sectioning errors.
20985         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
20986         [ifinfo]: blank line after @center-ed titles.
20987         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
20988         Spell FSF address consistently with others.
20989         (These changes approved by rms.)
20990
20991 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20992
20993         Speed up by a factor of 1.61.
20994         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
20995         already checked module names again.
20996
20997 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20998
20999         Speed up by a factor of 1.13.
21000         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
21001         for new_files, and the input to func_add_or_update.
21002
21003 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21004
21005         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
21006         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
21007
21008 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21009
21010         * modules/mkancesdirs (Depends-on): Add fcntl.
21011         * modules/savewd: New file.
21012         * MODULES.html.sh (File system functions): Add savewd.
21013
21014         * modules/configmake (Makefile.am): Add support for the
21015         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
21016
21017 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21018
21019         * m4/savewd.m4: New file.
21020
21021 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21022
21023         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
21024         (dirchownmod): New arg FD.  All callers changed.
21025         Use FD rather than opening the directory ourself, as opening is
21026         now the caller's responsibility.
21027         * lib/dirchownmod.h: Likewise.
21028         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
21029         hosts that require <sys/types.h> before <sys/stat.h>.  Include
21030         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
21031         (test_dir): Remove.
21032         (mkancesdirs): Return length of prefix of FILE that has already
21033         been made, or -2 if there is a child doing the work.  Redo
21034         algorithm so that it is O(N) rather than O(N**2).  Optimize away
21035         ".", and treat ".." specially since it might stray back into
21036         already-created areas.  Use a subprocess if necessary.  New arg
21037         WD; all users changed.  MAKE_DIR function should now return 1
21038         if it creates a directory that is not readable.  Return -2 if
21039         a child process is spun off.
21040         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
21041         Adjust signature to match code.
21042         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
21043         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
21044         all users changed.
21045         * lib/savewd.c, lib/savewd.h: New files.
21046
21047 2006-09-15  Jim Meyering  <jim@meyering.net>
21048
21049         * modules/rename-dest-slash: New module.
21050         * MODULES.html.sh (posix_compat): Add it here.
21051
21052         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
21053
21054 2006-09-15  Jim Meyering  <jim@meyering.net>
21055
21056         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
21057         file.
21058
21059         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
21060
21061 2006-09-15  Jim Meyering  <jim@meyering.net>
21062
21063         * lib/rename-dest-slash.c (has_trailing_slash): Use
21064         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
21065         (rpl_rename_dest_slash): Perform the cheaper trailing slash
21066         test before testing whether SRC is a directory.
21067         Suggestions from Bruno Haible.
21068
21069         Avoid a warning about an unused variable.
21070         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
21071         into the #ifdef block where it's used.
21072
21073         * lib/rename-dest-slash.c: New file.
21074
21075 2006-09-14  Bruno Haible  <bruno@clisp.org>
21076
21077         * lib/allocsa.c: Include <config.h> unconditionally.
21078         * lib/asnprintf.c: Likewise.
21079         * lib/asprintf.c: Likewise.
21080         * lib/c-strcasecmp.c: Likewise.
21081         * lib/c-strcasestr.c: Likewise.
21082         * lib/c-strncasecmp.c: Likewise.
21083         * lib/c-strstr.c: Likewise.
21084         * lib/classpath.c: Likewise.
21085         * lib/clean-temp.c: Likewise.
21086         * lib/concatpath.c: Likewise.
21087         * lib/copy-file.c: Likewise.
21088         * lib/csharpcomp.c: Likewise.
21089         * lib/csharpexec.c: Likewise.
21090         * lib/execute.c: Likewise.
21091         * lib/fatal-signal.c: Likewise.
21092         * lib/findprog.c: Likewise.
21093         * lib/fwriteerror.c: Likewise.
21094         * lib/gl_array_list.c: Likewise.
21095         * lib/gl_array_oset.c: Likewise.
21096         * lib/gl_avltree_list.c: Likewise.
21097         * lib/gl_avltree_oset.c: Likewise.
21098         * lib/gl_avltreehash_list.c: Likewise.
21099         * lib/gl_carray_list.c: Likewise.
21100         * lib/gl_linked_list.c: Likewise.
21101         * lib/gl_linkedhash_list.c: Likewise.
21102         * lib/gl_list.c: Likewise.
21103         * lib/gl_oset.c: Likewise.
21104         * lib/gl_rbtree_list.c: Likewise.
21105         * lib/gl_rbtree_oset.c: Likewise.
21106         * lib/gl_rbtreehash_list.c: Likewise.
21107         * lib/imaxabs.c: Likewise.
21108         * lib/imaxdiv.c: Likewise.
21109         * lib/javacomp.c: Likewise.
21110         * lib/javaexec.c: Likewise.
21111         * lib/javaversion.c: Likewise.
21112         * lib/linebreak.c: Likewise.
21113         * lib/localcharset.c: Likewise.
21114         * lib/lock.c: Likewise.
21115         * lib/mbchar.c: Likewise.
21116         * lib/mbswidth.c: Likewise.
21117         * lib/mkdtemp.c: Likewise.
21118         * lib/pipe.c: Likewise.
21119         * lib/printf-args.c: Likewise.
21120         * lib/printf-parse.c: Likewise.
21121         * lib/progname.c: Likewise.
21122         * lib/progreloc.c: Likewise.
21123         * lib/readlink.c: Likewise.
21124         * lib/sh-quote.c: Likewise.
21125         * lib/stpcpy.c: Likewise.
21126         * lib/stpncpy.c: Likewise.
21127         * lib/strcasecmp.c: Likewise.
21128         * lib/strcasestr.c: Likewise.
21129         * lib/strcspn.c: Likewise.
21130         * lib/striconv.c: Likewise.
21131         * lib/strncasecmp.c: Likewise.
21132         * lib/strnlen1.c: Likewise.
21133         * lib/strstr.c: Likewise.
21134         * lib/strtok_r.c: Likewise.
21135         * lib/tls.c: Likewise.
21136         * lib/tmpdir.c: Likewise.
21137         * lib/unicodeio.c: Likewise.
21138         * lib/unsetenv.c: Likewise.
21139         * lib/vasnprintf.c: Likewise.
21140         * lib/vasprintf.c: Likewise.
21141         * lib/wait-process.c: Likewise.
21142         * lib/xallocsa.c: Likewise.
21143         * lib/xsetenv.c: Likewise.
21144         * lib/xstriconv.c: Likewise.
21145
21146 2006-09-13  Simon Josefsson  <jas@extundo.com>
21147
21148         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
21149         that internally, suggested by Ralf Wildenhues
21150         <Ralf.Wildenhues@gmx.de>.
21151
21152 2006-09-13  Simon Josefsson  <jas@extundo.com>
21153
21154         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
21155         @LIBOBJS@.
21156         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21157
21158 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21159
21160         * lib/_fpending.c: Include <config.h> unconditionally, since we no
21161         longer worry about uses that don't define HAVE_CONFIG_H.
21162         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
21163         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
21164         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
21165         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
21166         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
21167         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
21168         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
21169         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
21170         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
21171         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
21172         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
21173         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
21174         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
21175         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
21176         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
21177         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
21178         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
21179         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
21180         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
21181         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
21182         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
21183         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
21184         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
21185         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
21186         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
21187         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
21188         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
21189         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
21190         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
21191         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
21192         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
21193         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
21194         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
21195         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
21196         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
21197         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
21198         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
21199         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
21200         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
21201         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
21202         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
21203         Likewise.
21204
21205 2006-09-13  Eric Blake  <ebb9@byu.net>
21206
21207         * lib/getopt.c: Fix typo in last commit.
21208
21209 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
21210
21211         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
21212         dgettext.
21213
21214 2006-09-12  Jim Meyering  <jim@meyering.net>
21215
21216         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
21217         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
21218         Reported by Nelson H. F. Beebe.
21219
21220 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21221
21222         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
21223         program_invocation_name and program_invocation_short_name are
21224         initialized.
21225         * lib/argp-namefrob.h: Move declarations of program_invocation_name
21226         and program_invocation_short_name to argp.h, so they are visible
21227         to user programs.
21228         * lib/argp.h: Likewise
21229
21230 2006-09-10  Bruno Haible  <bruno@clisp.org>
21231
21232         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
21233         m4/inttypes_h.m4, m4/uintmax_t.m4.
21234
21235 2006-09-10  Bruno Haible  <bruno@clisp.org>
21236
21237         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
21238         gl_AC_TYPE_UINTMAX_T.
21239
21240 2006-09-10  Bruno Haible  <bruno@clisp.org>
21241
21242         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
21243
21244 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
21245
21246         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
21247         convention.  Text proposed by Bruno Haible.
21248         (struct argp_option): Document the use of N_() wrappers.
21249
21250         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
21251         '\v', and translate the two parts separately, instead of feeding
21252         the whole string to gettext.  This allows to exclude
21253         '\v' from the strings visible to the translator by writing doc
21254         strings as N_("..") "\v" N_("..").
21255
21256 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
21257
21258         * config/srclist.txt: Undo latest change; the bug was fixed.
21259
21260 2006-09-09  Bruno Haible  <bruno@clisp.org>
21261
21262         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
21263         assignments if building a library without libtool.
21264         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
21265         in func_emit_lib_Makefile_am.
21266         (func_import): When building a static library libfoo.a, arrange to
21267         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
21268         (func_create_testdir): Likewise.
21269         * modules/gc (configure.ac, Makefile.am): If building statically,
21270         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
21271         * modules/iconvme (configure.ac, Makefile.am): Likewise.
21272         * modules/striconv (configure.ac, Makefile.am): Likewise.
21273         Based on a suggestion by Ralf Wildenhues.
21274
21275 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21276
21277         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21278         Check for unistd.h too, since Autoconf doesn't assume POSIX.
21279         Also:
21280
21281         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21282         Add year_2050_test to catch glibc bug 2821
21283         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21284
21285         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21286         Prefer #ifdef to #if.
21287
21288         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
21289         Return from 'main' instead of calling 'exit'.
21290
21291 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21292
21293         * lib/mktime.c (guess_time_tm): Fix bug where mktime
21294         returned the maximum time_t value rather than (time_t) -1.
21295         Problem originally reported by William Bardwell
21296         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
21297
21298         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21299         Moved to here ...
21300         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
21301         ... from here.
21302
21303 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
21304
21305         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
21306         2821 is fixed.
21307
21308 2006-09-08  Jim Meyering  <jim@meyering.net>
21309
21310         Don't make generated files read-only.  That would bother too many
21311         people.  However, do retain the ability to work when targets are
21312         read-only: remove the destination and temporary files before writing
21313         them (when generated via sed or echo), or by using the -f option for
21314         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
21315         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21316         * modules/byteswap, modules/configmake, modules/fcntl:
21317         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21318         * modules/localcharset, modules/netinet_in, modules/poll:
21319         * modules/stdbool, modules/stdint, modules/sys_select:
21320         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21321
21322 2006-09-08  Jim Meyering  <jim@meyering.net>
21323
21324         Avoid new build failure on FreeBSD 6.0.
21325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
21326         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
21327         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
21328
21329 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21330
21331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
21332
21333 2006-09-07  Jim Meyering  <jim@meyering.net>
21334
21335         Fix global typo in last change: use chmod u-w, not chmod u-x.
21336         Spotted by Paul Eggert and Bruce Korb.
21337         * modules/alloca-opt, modules/argz, modules/arpa_inet:
21338         * modules/byteswap, modules/configmake, modules/fcntl:
21339         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
21340         * modules/localcharset, modules/netinet_in, modules/poll:
21341         * modules/stdbool, modules/stdint, modules/sys_select:
21342         * modules/sys_socket, modules/sys_stat, modules/sysexits:
21343
21344 2006-09-06  Jim Meyering  <jim@meyering.net>
21345
21346         Make generated files be read-only.
21347         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
21348         Ensure that each generated file is now read-only.
21349         * modules/argz: Likewise.
21350         * modules/arpa_inet: Likewise.
21351         * modules/byteswap: Likewise.
21352         * modules/configmake: Likewise.
21353         * modules/fcntl: Likewise.
21354         * modules/fnmatch: Likewise.
21355         * modules/getopt: Likewise.
21356         * modules/glob: Likewise.
21357         * modules/inttypes: Likewise.
21358         * modules/netinet_in: Likewise.
21359         * modules/poll: Likewise.
21360         * modules/stdbool: Likewise.
21361         * modules/stdint: Likewise.
21362         * modules/sys_select: Likewise.
21363         * modules/sys_socket: Likewise.
21364         * modules/sys_stat: Likewise.
21365         * modules/sysexits: Likewise.
21366         * modules/localcharset: Same as above, but continue using temporary
21367         file named "t-$@" (why different?) rather than the "$@-t" used
21368         everywhere else.
21369
21370         * modules/sysexits (Makefile.am): Replace literal occurrences
21371         of "sysexit.h" more readable, and more consistent, "$@".
21372
21373 2006-09-06  Bruno Haible  <bruno@clisp.org>
21374
21375         * modules/striconv: New file.
21376         * modules/xstriconv: New file.
21377         * MODULES.html.sh (Internationalization functions): Add striconv,
21378         xstriconv.
21379
21380 2006-09-06  Bruno Haible  <bruno@clisp.org>
21381
21382         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
21383         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
21384         not using libtool correctly.
21385
21386 2006-09-06  Bruno Haible  <bruno@clisp.org>
21387
21388         * lib/striconv.h: New file.
21389         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
21390         iconvstring.c.
21391         * lib/xstriconv.h: New file.
21392         * lib/xstriconv.c: New file.
21393
21394 2006-09-06  Bruno Haible  <bruno@clisp.org>
21395
21396         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21397         lib_..._LDFLAGS.
21398
21399 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21400
21401         * lib/argz_.h: Sync from Libtool.
21402
21403         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
21404                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21405
21406         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
21407
21408 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21409
21410         * modules/trim: New file.
21411
21412 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
21413
21414         * lib/trim.h: New file.
21415         * lib/trim.c: New file.
21416
21417 2006-09-05  Bruno Haible  <bruno@clisp.org>
21418
21419         * MODULES.html.sh (String handling): Add trim.
21420
21421 2006-09-04  Karl Berry  <karl@gnu.org>
21422
21423         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
21424         until next release.
21425
21426 2006-09-03  Bruno Haible  <bruno@clisp.org>
21427
21428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
21429         correctly.
21430
21431 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21432
21433         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
21434         not gl_GETLOADAVG.  Omit unneeded semicolons.
21435         Problems reported by Ralf Wildenhues in
21436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21437         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
21438         at the end, which is the usual gnulib style.
21439
21440         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
21441         of doing all the work ourselves.
21442         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
21443         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
21444
21445 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21446
21447         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
21448         Problem reported by Ralf Wildenhues in
21449         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
21450
21451         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
21452         HAVE_STRUCT_STATFS_F_FSTYPENAME.
21453
21454 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21455
21456         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
21457         yesterday's patch by changing test -n to test -z.
21458
21459 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21460
21461         * modules/getloadavg (Files): Add m4/getloadavg.m4.
21462         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
21463         the former is now obsolescent.
21464
21465         * modules/chdir-long (Depends-on): Add fcntl.
21466
21467 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21468
21469         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
21470         obsolescent, and programs should use gnulib instead.
21471         * m4/getloadavg.m4: New file, with contents taken from Autoconf
21472         but with prefixes changed.
21473
21474 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21475
21476         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
21477         or stdbool.h, because they might not exist while configuring.
21478
21479         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
21480         Don't include unistd.h or limits.h; not needed, since chdir-long.h
21481         does that for us.
21482         (O_DIRECTORY): Remove.
21483
21484 2006-08-31  Eric Blake  <ebb9@byu.net>
21485
21486         * gnulib-tool: Don't let emacs change spaces to TAB.
21487
21488 2006-08-31  Bruno Haible  <bruno@clisp.org>
21489
21490         * gnulib-tool: When calling func_import more than once, do it in a
21491         subshell.
21492         Reported by Eric Blake <ebb9@byu.net>.
21493
21494 2006-08-31  Bruno Haible  <bruno@clisp.org>
21495
21496         * gnulib-tool (nl): Remove variable.
21497         (sed_transform_lib_file): Use more robust test for config-h module.
21498         (func_import): Fix typo in 2006-08-25 patch.
21499
21500 2006-08-31  Bruno Haible  <bruno@clisp.org>
21501
21502         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
21503         specified, augment Makefile.am variables instead of assigning them.
21504
21505 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21506
21507         Work around a bug in both the Linux and SunOS 64-bit kernels:
21508         nanosleep mishandles sleeps for longer than 2**31 seconds.
21509         Problem reported by Frank v Waveren in
21510         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
21512         Check for nanosleep bug.
21513         (LIB_NANOSLEEP): Append clock_gettime library if needed.
21514
21515 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21516
21517         Work around a bug in both the Linux and SunOS 64-bit kernels:
21518         nanosleep mishandles sleeps for longer than 2**31 seconds.
21519         Problem reported by Frank v Waveren in
21520         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
21521         * lib/nanosleep.c (BILLION): New constant.
21522         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
21523         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
21524         implementation.
21525
21526 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21527
21528         * modules/nanosleep (Depends-on): Add gettime.
21529
21530 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
21531         and Simon Josefsson  <jas@extundo.com>
21532         and Oskar Liljeblad  <oskar@osk.mine.nu>
21533
21534         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
21535         * gnulib-tool (func_import): New license type 'unmodifiable license
21536         text'.
21537         * modules/fdl: Use it.  Longer description.
21538         * module/gpl, module/lgpl: New files.
21539
21540 2006-08-30  Jim Meyering  <jim@meyering.net>
21541
21542         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
21543         shadowing the parameter.
21544
21545 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21546
21547         Sync from Libtool:
21548
21549         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21550
21551         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
21552         sharing with gnulib.  Report by Eric Blake.
21553
21554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21555
21556         * modules/isapipe: New file.
21557         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
21558
21559 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21560
21561         * modules/configmake (Makefile.am): Add a comment, and omit
21562         the CONFIGMAKE_ prefix from generated macro names.  Suggested
21563         by Bruno Haible.
21564
21565 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         * m4/isapipe.m4: New file.
21568
21569 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21570
21571         * lib/isapipe.c, lib/isapipe.h: New files.
21572
21573 2006-08-29  Jim Meyering  <jim@meyering.net>
21574
21575         * modules/configmake (Makefile.am): Make configmake.h depend on
21576         Makefile.  Otherwise, a stale configmake.h could hang around.
21577
21578 2006-08-29  Eric Blake  <ebb9@byu.net>
21579
21580         * lib/error.c (error_at_line, print_errno_message): Match libc, after
21581         resolution of upstream bug 3044.
21582
21583 2006-08-29  Bruno Haible  <bruno@clisp.org>
21584
21585         * modules/localcharset (Depends-on): Add configmake.
21586         (Makefile.am): Remove setting of LIBDIR through DEFS.
21587
21588 2006-08-29  Bruno Haible  <bruno@clisp.org>
21589
21590         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
21591         defined.
21592
21593 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21594
21595         * modules/fcntl: New file.
21596         * modules/chdir-safer (Depends-on): Add fcntl.
21597         * modules/fts: Likewise.
21598         * modules/mkdir-p: Likewise.
21599
21600         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
21601         This undoes the most recent change, since we're now addressing the
21602         problem in a different way.
21603
21604         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
21605         into output, since the output might be called Makefile.am even
21606         if $makefile_name is something different.
21607         (func_import): Use $makefile_am rather than
21608         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
21609         empty.
21610
21611         * modules/inttypes (Files): Add m4/inttypes-h.m4.
21612
21613 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21614
21615         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
21616         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
21617         recent change to stdint.m4, since we're now addressing the problem in a
21618         different way.
21619
21620 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21621
21622         * m4/fcntl_h.m4: New file.
21623
21624 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         * lib/fcntl_.h: New file.
21627         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
21628         the fcntl module.
21629         * lib/dirchownmod.c: Likewise.
21630         * lib/fts.c: Likewise.
21631
21632         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
21633         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
21634         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
21635         just before including <inttypes.h>, to avoid circular inclusion.
21636
21637 2006-08-28  Jim Meyering  <jim@meyering.net>
21638
21639         * doc/visibility.texi: Actually read and correct the grammar of the
21640         sentence affected by yesterday's change.
21641
21642 2006-08-28  Eric Blake  <ebb9@byu.net>
21643
21644         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
21645         needs wrapper.
21646
21647 2006-08-28  Eric Blake  <ebb9@byu.net>
21648
21649         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
21650
21651 2006-08-28  Eric Blake  <ebb9@byu.net>
21652
21653         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
21654
21655 2006-08-28  Bruno Haible  <bruno@clisp.org>
21656
21657         * modules/c-strstr: New file, from GNU gettext.
21658         * MODULES.html.sh (String handling): Add c-strstr.
21659
21660 2006-08-28  Bruno Haible  <bruno@clisp.org>
21661
21662         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
21663         macros.
21664         Reported by Eric Blake.
21665
21666 2006-08-28  Bruno Haible  <bruno@clisp.org>
21667
21668         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
21669         (VASNPRINTF): Return a string of length > INT_MAX without failing.
21670         * lib/vasprintf.c: Include errno.h, limits.h.
21671         (EOVERFLOW): New fallback definition.
21672         (vasprintf): Test here whether the string length is > INT_MAX.
21673         * lib/vsnprintf.c: Include errno.h, limits.h.
21674         (EOVERFLOW): New fallback definition.
21675         (vsnprintf): Fix bug when generated string was too long for the buffer.
21676         Test here whether the string length is > INT_MAX.
21677
21678 2006-08-28  Bruno Haible  <bruno@clisp.org>
21679
21680         * lib/inttypes_.h (SCNX*): Remove definitions.
21681         Reported by Eric Blake.
21682
21683 2006-08-28  Bruno Haible  <bruno@clisp.org>
21684
21685         * lib/c-strstr.h: New file, from GNU gettext.
21686         * lib/c-strstr.c: New file, from GNU gettext.
21687
21688 2006-08-28  Bruno Haible  <bruno@clisp.org>
21689
21690         * gnulib-tool: Reorder some statements.
21691
21692 2006-08-28  Bruno Haible  <bruno@clisp.org>
21693
21694         * gnulib-tool: New option --makefile-name.
21695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
21696         $makefile_name.
21697         (func_import): Write $makefile_name to the cache file, and read it from
21698         there unless explicitly specified. Use $makefile_name as file name
21699         instead of Makefile.am. Adjust the recommendations accordingly.
21700
21701 2006-08-28  Bruno Haible  <bruno@clisp.org>
21702
21703         * gnulib-tool (func_verify_module): Check against misapplying patch.
21704
21705 2006-08-28  Bruno Haible  <bruno@clisp.org>
21706
21707         * gnulib-tool (func_relativize, func_relconcat): New functions.
21708         Give an error if --local-dir is given with --update.
21709         Remove trailing slashes from $local_gnulib_dir.
21710         (func_import): Store the relativized $local_gnulib_dir in
21711         gnulib-cache.m4, and read it from there if not specified explicitly.
21712
21713 2006-08-28  Bruno Haible  <bruno@clisp.org>
21714
21715         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
21716         is the current directory. Respect also $local_gnulib_dir.
21717
21718 2006-08-28  Bruno Haible  <bruno@clisp.org>
21719             Simon Josefsson  <jas@extundo.com>
21720
21721         BeOS portability.
21722         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
21723
21724 2006-08-27  Jim Meyering  <jim@meyering.net>
21725
21726         * doc/visibility.texi: Remove duplicate word: "pointer".
21727
21728 2006-08-26  Bruno Haible  <bruno@clisp.org>
21729
21730         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
21731         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
21732         (Makefile.am): Create inttypes.h from inttypes_.h.
21733         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
21734
21735         * modules/imaxabs: New file.
21736
21737         * modules/imaxdiv: New file.
21738
21739 2006-08-26  Bruno Haible  <bruno@clisp.org>
21740
21741         * m4/inttypes.m4: New file.
21742         * m4/_inttypes_h.m4: Remove file.
21743         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
21744         PRI_MACROS_BROKEN.
21745         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
21746
21747         * m4/imaxabs.m4: New file.
21748
21749         * m4/imaxdiv.m4: New file.
21750
21751 2006-08-26  Bruno Haible  <bruno@clisp.org>
21752
21753         * lib/inttypes_.h: New file.
21754         * lib/inttypes.h: Remove file.
21755         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
21756
21757         * lib/imaxabs.c: New file.
21758
21759         * lib/imaxdiv.c: New file.
21760
21761 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21762
21763         New config-h module, so that "make" output needn't be cluttered
21764         by -DHAVE_CONFIG_H.
21765         * MODULES.html.sh (Support for building libraries and executables):
21766         Add config-h.
21767         * modules/config-h: New file.
21768         * gnulib-tool (nl, sed_transform_lib_file): New vars.
21769         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
21770         the config-h module is used.
21771
21772         New configmake module, so that "make" output needn't be cluttered
21773         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
21774         * MODULES.html.sh (Support for building libraries and executables):
21775         Add configmake.
21776         * modules/configmake: New file.
21777
21778 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21779
21780         * m4/config-h.m4: New file.
21781
21782 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21783
21784         * config/srclist.txt: Add elisp-comp.
21785
21786 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21787
21788         * MODULES.html.sh (Support for building libraries and executables):
21789         Add elisp-comp.
21790         * build-aux/elisp-comp: New file.
21791         * modules/elisp-comp: New file.
21792
21793 2006-08-24  Bruno Haible  <bruno@clisp.org>
21794
21795         * gnulib-tool (func_create_testdir): Use non-default values of
21796         sourcebase and m4base.
21797
21798 2006-08-24  Bruno Haible  <bruno@clisp.org>
21799
21800         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
21801         HTML structure.
21802
21803 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21804
21805         * modules/openat (Depends-on): Add lchown.
21806
21807 2006-08-23  Bruno Haible  <bruno@clisp.org>
21808
21809         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
21810         of gl_LOCK_EARLY instead of gl_LOCK.
21811
21812 2006-08-23  Bruno Haible  <bruno@clisp.org>
21813
21814         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
21815         on OSF/1 to no.
21816         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
21817
21818 2006-08-23  Bruno Haible  <bruno@clisp.org>
21819
21820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
21821         as unusable.
21822
21823         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
21824         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
21825         (gl_LOCK): New macro.
21826
21827 2006-08-22  Simon Josefsson  <jas@extundo.com>
21828
21829         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
21830         to md5 module.
21831
21832 2006-08-22  Simon Josefsson  <jas@extundo.com>
21833
21834         * MODULES.html.sh: Add "Support for maintaining and release
21835         projects".
21836
21837         * build-aux/gnupload: New file, from coreutils.
21838
21839 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21840
21841         Avoid the need for AC_LIBSOURCES in m4 macros.
21842         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
21843         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
21844         * modules/check-version (EXTRA_DIST): Add check-version.h.
21845         * modules/crc (EXTRA_DIST): Add crc.h.
21846         * modules/des (EXTRA_DIST): Add des.h.
21847         * modules/gc (EXTRA_DIST): Add gc.h.
21848         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
21849         * modules/getline (EXTRA_DIST): Add getline.h.
21850         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
21851         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
21852         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
21853         * modules/md2 (EXTRA_DIST): Add md2.h.
21854         * modules/md4 (EXTRA_DIST): Add md4.h.
21855         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
21856         * modules/read-file (EXTRA_DIST): Add read-file.h.
21857         * modules/readline (EXTRA_DIST): Add readline.h.
21858         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
21859         rijndael-api-fst.h.
21860
21861 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21862
21863         * m4/rijndael.m4 (gl_ARCFOUR):
21864         * m4/arctwo.m4 (gl_ARCTWO):
21865         * m4/check-version.m4 (gl_CHECK_VERSION):
21866         * m4/crc.m4 (gl_CRC):
21867         * m4/des.m4 (gl_DES):
21868         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
21869         * m4/gc.m4 (gl_GC):
21870         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
21871         * m4/getline.m4 (gl_FUNC_GETLINE):
21872         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
21873         * m4/hmac-md5.m4 (gl_HMAC_MD5):
21874         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
21875         * m4/md2.m4 (gl_MD2):
21876         * m4/md4.m4 (gl_MD4):
21877         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
21878         * m4/read-file.m4 (gl_FUNC_READ_FILE):
21879         * m4/readline.m4 (gl_FUNC_READLINE):
21880         * m4/rijndael.m4 (gl_RIJNDAEL):
21881         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
21882         to get the necessary .h files and whatnot.
21883
21884 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21885
21886         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
21887         gnulib rather than the other way around.
21888         * config/srclistvars.sh (COREUTILS): Remove.
21889
21890 2006-08-22  Jim Meyering  <jim@meyering.net>
21891
21892         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
21893
21894         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
21895
21896 2006-08-22  Eric Blake  <ebb9@byu.net>
21897
21898         * modules/regexprops-generic: New file.
21899         * MODULES.html.sh (Support for building documentation): List it.
21900
21901 2006-08-22  Eric Blake  <ebb9@byu.net>
21902
21903         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
21904         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21905         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
21906         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21907
21908 2006-08-22  Bruno Haible  <bruno@clisp.org>
21909
21910         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
21911         and lib_LTLIBRARIES like the other lib_* variables.
21912
21913 2006-08-22  Bruno Haible  <bruno@clisp.org>
21914
21915         * build-aux/x-to-1.in: New file, from GNU gettext.
21916
21917 2006-08-22  Bruno Haible  <bruno@clisp.org>
21918
21919         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
21920         <utmpx.h> exists.
21921
21922 2006-08-22  Bruno Haible  <bruno@clisp.org>
21923
21924         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
21925         <utmpx.h> exists.
21926
21927 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21928
21929         BeOS portability.
21930         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
21931         exist.
21932         Problem reported by Bruno Haible.
21933
21934 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21935
21936         Avoid the need for AC_LIBSOURCES in m4 macros.
21937         * modules/acl (EXTRA_DIST): Add acl.h.
21938         * modules/argmatch (Files): Add m4/argmatch.m4.
21939         (configure.ac): Add gl_ARGMATCH.
21940         (EXTRA_DIST): Renamed from lib_SOURCES, for
21941         consistency with the other modules.  Remove argmatch.c.
21942         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
21943         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
21944         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
21945         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
21946         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
21947         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
21948         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
21949         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
21950         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
21951         * modules/closeout (EXTRA_DIST): Add closeout.h.
21952         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
21953         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
21954         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
21955         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
21956         dirname.h; remove basename.c and stripslash.c.
21957         * modules/exclude (EXTRA_DIST): Add exclude.h.
21958         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
21959         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
21960         * modules/file-type (EXTRA_DIST): Add file-type.h.
21961         * modules/filemode (EXTRA_DIST): Add filemode.h.
21962         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
21963         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
21964         * modules/fpending (EXTRA_DIST): Add __fpending.h.
21965         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
21966         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
21967         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
21968         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
21969         * modules/getdate (EXTRA_DIST): Add getdate.c.
21970         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
21971         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
21972         * modules/getpass (EXTRA_DIST): Add getpass.h.
21973         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
21974         * modules/group-member (EXTRA_DIST): Add group-member.h.
21975         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
21976         * modules/hash (EXTRA_DIST): Add hash.h.
21977         * modules/human (EXTRA_DIST): Add human.h.
21978         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
21979         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
21980         * modules/lchown (EXTRA_DIST): Add lchown.h.
21981         * modules/long-options (EXTRA_DIST): Add long-options.h.
21982         * modules/lstat (EXTRA_DIST): Add lstat.h.
21983         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
21984         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
21985         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
21986         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
21987         * modules/memxor (EXTRA_DIST): Add memxor.h.
21988         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
21989         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
21990         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
21991         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
21992         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
21993         * modules/physmem (EXTRA_DIST): Add physmem.h.
21994         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
21995         * modules/posixver (EXTRA_DIST): Add posixver.h.
21996         * modules/quote (EXTRA_DIST): Add quote.h.
21997         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
21998         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
21999         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
22000         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
22001         regex_internal.h regexec.c.
22002         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
22003         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
22004         * modules/same (EXTRA_DIST): Add same.h.
22005         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
22006         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
22007         * modules/savedir (EXTRA_DIST): Add savedir.h.
22008         * modules/sha1 (EXTRA_DIST): Add sha1.h.
22009         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
22010         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
22011         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
22012         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
22013         * modules/strdup (EXTRA_DIST): Add strdup.h.
22014         * modules/strftime (EXTRA_DIST): Add strftime.h.
22015         * modules/strndup (EXTRA_DIST): Add strndup.h.
22016         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
22017         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
22018         * modules/time_r (EXTRA_DIST): Add time_r.h.
22019         * modules/timespec (EXTRA_DIST): Add timespec.h.
22020         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
22021         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
22022         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
22023         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
22024         * modules/userspec (EXTRA_DIST): Add userspec.h.
22025         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
22026         * modules/utimens (EXTRA_DIST): Add utimens.h.
22027         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
22028         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
22029         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
22030         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
22031         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
22032         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
22033         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
22034         * modules/yesno (EXTRA_DIST): Add yesno.h.
22035
22036 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22037
22038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
22039
22040         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
22041         * m4/dev-ino.m4, same-inode.m4: Remove.
22042
22043         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
22044         * m4/acl.m4 (AC_FUNC_ACL):
22045         * m4/backupfile.m4 (gl_BACKUPFILE):
22046         * m4/c-strtod.m4 (gl_C99_STRTOLD):
22047         * m4/canon-host.m4 (gl_CANON_HOST):
22048         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22049         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
22050         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
22051         * m4/cloexec.m4 (gl_CLOEXEC):
22052         * m4/close-stream.m4 (gl_CLOSE_STREAM):
22053         * m4/closeout.m4 (gl_CLOSEOUT):
22054         * m4/dirfd.m4 (gl_FUNC_DIRFD):
22055         * m4/dirname.m4 (gl_DIRNAME):
22056         * m4/exclude.m4 (gl_EXCLUDE):
22057         * m4/exitfail.m4 (gl_EXITFAIL):
22058         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
22059         * m4/file-type.m4 (gl_FILE_TYPE):
22060         * m4/filemode.m4 (gl_FILEMODE):
22061         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
22062         * m4/fpending.m4 (gl_FUNC_FPENDING):
22063         * m4/fprintftime.m4 (gl_FPRINTFTIME):
22064         * m4/fts.m4 (gl_FUNC_FTS):
22065         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
22066         * m4/getdate.m4 (gl_GETDATE):
22067         * m4/gethrxtime.m4 (gl_GETHRXTIME):
22068         * m4/getpagesize.m4 (gl_GETPAGESIZE):
22069         * m4/getpass.m4 (gl_FUNC_GETPASS):
22070         * m4/gettime.m4 (gl_GETTIME):
22071         * m4/getugroups.m4 (gl_GETUGROUPS):
22072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
22073         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
22074         * m4/hard-locale.m4 (gl_HARD_LOCALE):
22075         * m4/hash.m4 (gl_HASH):
22076         * m4/idcache.m4 (gl_IDCACHE):
22077         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
22078         * m4/lchown.m4 (gl_FUNC_LCHOWN):
22079         * m4/long-options.m4 (gl_LONG_OPTIONS):
22080         * m4/lstat.m4 (gl_FUNC_LSTAT):
22081         * m4/md5.m4 (gl_MD5):
22082         * m4/memcasecmp.m4 (gl_MEMCASECMP):
22083         * m4/memcoll.m4 (gl_MEMCOLL):
22084         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
22085         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
22086         * m4/memxor.m4 (gl_MEMXOR):
22087         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
22088         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
22089         * m4/modechange.m4 (gl_MODECHANGE):
22090         * m4/mountlist.m4 (gl_MOUNTLIST):
22091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22092         * m4/openat.m4 (gl_FUNC_OPENAT):
22093         * m4/pathmax.m4 (gl_PATHMAX):
22094         * m4/physmem.m4 (gl_PHYSMEM):
22095         * m4/posixtm.m4 (gl_POSIXTM):
22096         * m4/posixver.m4 (gl_POSIXVER):
22097         * m4/quote.m4 (gl_QUOTE):
22098         * m4/quotearg.m4 (gl_QUOTEARG):
22099         * m4/readtokens.m4 (gl_READTOKENS):
22100         * m4/readutmp.m4 (gl_READUTMP):
22101         * m4/regex.m4 (gl_REGEX):
22102         * m4/safe-read.m4 (gl_SAFE_READ):
22103         * m4/safe-write.m4 (gl_SAFE_WRITE):
22104         * m4/same.m4 (gl_SAME):
22105         * m4/save-cwd.m4 (gl_SAVE_CWD):
22106         * m4/savedir.m4 (gl_SAVEDIR):
22107         * m4/settime.m4 (gl_SETTIME):
22108         * m4/sha1.m4 (gl_SHA1):
22109         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
22110         * m4/stat-macros.m4 (gl_STAT_MACROS):
22111         * m4/stat-time.m4 (gl_STAT_TIME):
22112         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
22113         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
22114         * m4/strdup.m4 (gl_FUNC_STRDUP):
22115         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
22116         * m4/strndup.m4 (gl_FUNC_STRNDUP):
22117         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
22118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
22119         * m4/time_r.m4 (gl_TIME_R):
22120         * m4/timespec.m4 (gl_TIMESPEC):
22121         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
22122         * m4/unlinkdir.m4 (gl_UNLINKDIR):
22123         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
22124         * m4/userspec.m4 (gl_USERSPEC):
22125         * m4/utimecmp.m4 (gl_UTIMECMP):
22126         * m4/utimens.m4 (gl_UTIMENS):
22127         * m4/xalloc.m4 (gl_XALLOC):
22128         * m4/xgetcwd.m4 (gl_XGETCWD):
22129         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
22130         * m4/xreadlink.m4 (gl_XREADLINK):
22131         * m4/xstrtod.m4 (gl_XSTRTOD):
22132         * m4/yesno.m4 (gl_YESNO):
22133         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
22134         to get the necessary .h files and whatnot.
22135
22136 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
22137             Bruno Haible  <bruno@clisp.org>
22138
22139         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
22140         /bin/sh understanding of '!' conditional negation.
22141
22142 2006-08-21  Jim Meyering  <jim@meyering.net>
22143
22144         * modules/openat (Depends-on): Really alphabetize.
22145
22146         * modules/acl (Depends-on): Add error and quote.
22147
22148         * check-module (find_included_lib_files): Add at-func.c to the
22149         ok-to-include-more-than-once white list.
22150
22151         * modules/openat (Depends-on): Add lstat.  Alphabetize.
22152
22153 2006-08-21  Bruno Haible  <bruno@clisp.org>
22154
22155         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22156         Emit a pkgdata_DATA variable only if some snippets add contents to it.
22157         Reported by Martin Lambers <marlam@marlam.de>.
22158
22159 2006-08-21  Bruno Haible  <bruno@clisp.org>
22160
22161         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
22162         specify an installation location, don't emit a noinst_LIBRARIES or
22163         noinst_LTLIBRARIES assignment.
22164
22165 2006-08-21  Bruno Haible  <bruno@clisp.org>
22166
22167         BeOS portability.
22168         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
22169         BeOS has mbrtowc() but no <wctype.h>.
22170
22171 2006-08-21  Bruno Haible  <bruno@clisp.org>
22172
22173         BeOS portability.
22174         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
22175         exist.
22176
22177 2006-08-21  Bruno Haible  <bruno@clisp.org>
22178
22179         BeOS portability.
22180         * lib/mbchar.h: Include <wctype.h> only if it exists.
22181
22182 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22183
22184         Remove files that are no longer needed by their respective modules.
22185         * m4/obstack.m4: Remove.
22186         * m4/strerror_r.m4: Remove.
22187         * m4/uint32_t.m4: Remove.
22188         * m4/uintptr_t.m4: Remove.
22189         * m4/ullong_max.m4: Remove.
22190         * m4/xstrtoimax.m4: Remove.
22191         * m4/xstrtoumax.m4: Remove.
22192
22193         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
22194         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
22195         dependencies now capture this.
22196
22197         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
22198         Do not use AC_LIBSOURCES, since gnulib modules now do this.
22199         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
22200         * m4/human.m4 (gl_HUMAN): Likewise.
22201         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
22202         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
22203
22204         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
22205
22206         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
22207         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
22208         stdint.
22209         * m4/human.m4 (gl_HUMAN): Likewise.
22210         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
22211         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
22212         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22214         * m4/xstrtol (gl_XSTRTOL): Likewise.
22215
22216         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
22217         AC_TYPE_LONG_LONG_INT.
22218         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
22219         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
22220         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
22221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
22222
22223         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
22224         on stdbool.
22225
22226         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
22227         (gl_PREREQ_XSTRTOUL): Remove.
22228
22229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
22230
22231         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
22232         mode.
22233
22234 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22235
22236         Add and change modules to make it easier for coreutils to use
22237         gnulib-tool.
22238         * modules/backupfile (Files): Remove m4/d-ino.m4.
22239         (Depends-on): Add d-ino.
22240         * modules/cycle-check (Depends-on): Add stdint.
22241         (lib_SOURCES): Add cycle-check.h.
22242         * modules/d-ino: New module.
22243         * modules/d-type: New module.
22244         * modules/error (Files): Remove m4/strerror_r.m4.
22245         * modules/filemode (Files): Add m4/st_dm_mode.m4.
22246         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
22247         m4/inttypes_h.m4, m4/uintmax_t.m4.
22248         (Depends-on): Add stdint.
22249         (lib_SOURCES): Add fsusage.h.
22250         * modules/getcwd (Files): Remove d-ino.m4.
22251         (Depends-on): Add d-ino.
22252         * modules/getndelim2 (Depends-on): Add stdint.
22253         * modules/glob (Files): Remove m4/d-type.m4.
22254         (Depends-on): Add d-type.
22255         * modules/host-os: New module.
22256         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
22257         m4/inttypes_h.m4, m4/uintmax_t.m4.
22258         * Depends-on: Add stdint.
22259         (lib_SOURCES): Add human.h.
22260         * modules/inttostr (Files): Remove m4/intmax_t.m4,
22261         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
22262         m4/uintmax_t.m4, m4/ulonglong.m4.
22263         (Depends-on): Add stdint.
22264         (EXTRA_DIST): Add inttostr.h.
22265         * modules/lchmod: New module.
22266         * modules/link-follow: New module.
22267         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
22268         (Depends-on): Add lchmod.
22269         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
22270         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
22271         (Depends-on): Add stdint.
22272         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
22273         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
22274         (Depends-on): Add stdint.
22275         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
22276         * modules/perl: New module.
22277         * modules/regex (Depends-on): Add stdint.
22278         * modules/rmdir-errno: New module.
22279         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22280         m4/intmax_t.m4.
22281         (Depends-on): Add stdint.
22282         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
22283         m4/uintmax_t.m4.
22284         (Depends-on): Add stdint.
22285         * modules/unlink-busy: New module.
22286         * modules/utimecmp (Depends-on): Add stdint.
22287         * modules/uptime: New module.
22288         * modules/winsz-ioctl: New module.
22289         * modules/winsz-termios: New module.
22290         * modules/xnanosleep (Depends-on): Add nanosleep.
22291         * modules/ullong_max: Remove.
22292         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
22293         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
22294         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
22295         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
22296         (Depends-on): Add inttypes.
22297         (lib_SOURCES): Add xstrtol.h.
22298         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
22299         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
22300         * MODULES.html.sh: Move 'assert' into the assert section.
22301         Move 'dummy' into the linking section.
22302         Remove ullong_max.
22303         Add section for compatibility checks for POSIX:2001 functions,
22304         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
22305         winsz-ioctl, and winsz-termios into it.
22306         Add lchmod.
22307         Add top-level Misc section and put host-os, perl, and uptime
22308         into it.
22309
22310 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22311
22312         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
22313         now assume the stdint module.  Do not include inttypes.h.
22314         * lib/fsusage.h: Likewise.
22315         * lib/getndelim2.c: Likewise.
22316         * lib/human.h: Likewise.
22317         * lib/inttostr.h: Likewise.
22318         * lib/obstack.c: Likewise.
22319         * lib/regex_internal.h: Likewise.
22320         * lib/tempname.c: Likewise.
22321         * lib/utimecmp.c: Likewise.
22322         * lib/xstrtol.h: Likewise.
22323
22324         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
22325
22326         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
22327         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
22328         * lib/xtime.h: Likewise.
22329
22330 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22331
22332         * modules/openat (Files): Add lib/fchmodat.c.
22333         Fixes problem reported by Jay Youngman.
22334
22335 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22336
22337         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
22338         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
22339
22340 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
22341             Bruno Haible  <bruno@clisp.org>
22342
22343         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
22344         and is a script that invokes bison. Tighten the code. Add comments.
22345
22346 2006-08-18  Jim Meyering  <jim@meyering.net>
22347
22348         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
22349         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
22350         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
22351         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
22352
22353 2006-08-18  Bruno Haible  <bruno@clisp.org>
22354
22355         * modules/bison-i18n: New file.
22356         * MODULES.html.sh (Internationalization functions): Add it.
22357
22358 2006-08-18  Bruno Haible  <bruno@clisp.org>
22359
22360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
22361         sys/statvfs.h. When getmntinfo was found, check its declaration and
22362         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
22363
22364 2006-08-18  Bruno Haible  <bruno@clisp.org>
22365
22366         * m4/bison-i18n.m4: New file, from bison.
22367
22368 2006-08-18  Bruno Haible  <bruno@clisp.org>
22369
22370         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
22371         (ME_DUMMY): Treat "kernfs" as a dummy.
22372         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
22373
22374 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22375
22376         Update from coreutils.
22377
22378         2006-08-15  Jim Meyering  <jim@meyering.net>
22379
22380         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
22381
22382         2006-01-17  Jim Meyering  <jim@meyering.net>
22383
22384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
22385
22386         2006-01-11  Jim Meyering  <jim@meyering.net>
22387
22388         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
22389         Check for the lchmod function.
22390
22391 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22392
22393         Update from coreutils.
22394
22395         * lib/__fpending.h: Add copyright notice.
22396         * lib/fprintftime.h: Likewise.
22397         * lib/savedir.c: Use (C) in copyright notice.
22398         * lib/savedir.h: Likewise.
22399
22400         2006-08-15  Jim Meyering  <jim@meyering.net>
22401
22402         * lib/at-func.c: New file, with the logic of all emulated at-functions.
22403         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
22404         in support of the EXPECTED_ERRNO macro.
22405         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
22406         definitions.  Instead, define the appropriate symbols and include
22407         "at-func.c".
22408         * lib/mkdirat.c (mkdirat): Likewise.
22409         * lib/fchmodat.c (fchmodat): Likewise.
22410         (ENOSYS): Remove definition.
22411         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
22412         it.  Don't include "unistd--.h" -- it wasn't ever used.
22413
22414         2006-01-17  Jim Meyering  <jim@meyering.net>
22415
22416         Rewrite fts.c not to change the current working directory,
22417         by using openat, fstatat, fdopendir, etc..
22418
22419         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
22420         (HAVE_OPENAT_SUPPORT): Define.
22421         [_LIBC] (fchdir): Don't undef or define; no longer used.
22422         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
22423         Now, this `function' always succeeds, and consumes its file descriptor
22424         parameter -- so callers must not close such FDs.  Update callers.
22425         (diropen_fd, opendirat, cwd_advance_fd): New functions.
22426         (diropen): Add parameter, SP.  Adjust all callers.
22427         Implement using diropen_fd, rather than open.
22428         (fts_open): Initialize new member, fts_cwd_fd.
22429         Remove fts_rft-setting code.
22430         (fts_close): Close fts_cwd_fd, if necessary.
22431         (__opendir2): Define in terms of opendir or opendirat,
22432         depending on whether the FST_NOCHDIR flag is set.
22433         (fts_build): Since fts_safe_changedir consumes its FD, and since
22434         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
22435         and close the dup'd file descriptor upon failure.
22436         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
22437         (fts_safe_changedir): Tweak semantics to reflect that this function
22438         now calls cwd_advance_fd and hence consumes its FD argument.
22439         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
22440         [struct FTS] (fts_rft): Remove now-unused member.
22441         [struct FTS] (fts_cycle.state): Improve comment.
22442
22443         * lib/openat.c (openat_needs_fchdir): New function.
22444         * lib/openat.h (openat_needs_fchdir): Declare it.
22445
22446 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22447
22448         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
22449         Problem and fix reported by Pádraig Brady in
22450         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
22451
22452 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22453
22454         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
22455
22456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22457
22458         * lib/memcoll.c (memcoll): Optimize for the common case where the
22459         arguments are bytewise equal.
22460
22461 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22462
22463         * doc/regexprops-generic.texi: Add a copyright notice.
22464
22465 2006-08-15  Bruno Haible  <bruno@clisp.org>
22466
22467         * modules/tmpdir (License): Change to LGPL.
22468
22469 2006-08-15  Bruno Haible  <bruno@clisp.org>
22470
22471         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
22472         module.
22473
22474 2006-08-14  Simon Josefsson  <jas@extundo.com>
22475
22476         * config/srclist.txt: Add gnupload.
22477
22478 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22479
22480         Change copyright notice from LGPL 2 to GPL 2, since that's the
22481         standard form used in the gnulib repository.
22482         * tests/test-lock.c: Likewise.
22483         * tests/test-stdint.c: Likewise.
22484         * tests/test-tls.c: Likewise.
22485
22486         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
22487         prelude-manager.  User shorter URLs for GNU projects, without '?'.
22488         Add copyright notice.
22489
22490         * check-module: Add copyright notice.  Output a copyright
22491         notice if "--version" is specified.
22492         * modules/COPYING: New file.
22493         * tests/test-getaddrinfo.c: Add copyright notice.
22494         * tests/test-verify.c: Likewise.
22495
22496 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22497
22498         Change copyright notice from LGPL 2 to GPL 2, since that's the
22499         standard form used in the gnulib repository.
22500         * lib/lock.c: LGPL -> GPL.
22501         * lib/lock.h: Likewise.
22502         * lib/strnlen1.c: Likewise.
22503         * lib/strnlen1.h: Likewise.
22504         * lib/tls.c: Likewise.
22505         * lib/tls.h: Likewise.
22506         * lib/tmpdir.c: Likewise.
22507
22508         * lib/TODO: Remove; this belongs only in coreutils.
22509
22510 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22511
22512         Add copyright notices to long-enough files that lack them, since
22513         otherwise the files aren't clearly free.  Use the same notice that
22514         getdate.texi already uses.
22515         * doc/alloca-opt.texi: Add copyright notice.
22516         * doc/alloca.texi: Likewise.
22517         * doc/ctime.texi: Likewise.
22518         * doc/functions.texi: Likewise.
22519         * doc/gcd.texi: Likewise.
22520         * doc/gnulib-tool.texi: Likewise.
22521         * doc/inet_ntoa.texi: Likewise.
22522         * doc/visibility.texi: Likewise.
22523
22524         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
22525         * doc/quote.texi: Add copyright notice.
22526
22527         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
22528         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
22529         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
22530         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
22531         is now obsolete, and give a pointer to the Sun list.
22532         Add copyright notice.
22533
22534 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22535
22536         * config/srclistvars.sh: Add copyright notice.
22537
22538 2006-08-14  Eric Blake  <ebb9@byu.net>
22539
22540         Import the following change from libc:
22541
22542         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
22543
22544         Upstream bug 2997.
22545         * lib/misc/error.c: Add space between program name and message if file
22546         name is missing.
22547
22548 2006-08-12  Karl Berry  <karl@gnu.org>
22549
22550         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
22551         remove, these originate in gnulib now.
22552
22553 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22554
22555         * doc/Makefile (standards.info standards.html standards.dvi):
22556         Also depend on make-stds.texi.
22557
22558 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
22559
22560         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
22561         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
22562
22563         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
22564         in wchar_t.  Problem reported by Eric Blake.
22565
22566         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
22567         LEN is smaller than SIZE.  Suggested by Bruno Haible.
22568         Also, help the compiler to keep LEN in a register.
22569
22570 2006-08-11  Eric Blake  <ebb9@byu.net>
22571
22572         * users.txt: Sort.  Add tar.
22573
22574 2006-08-11  Bruno Haible  <bruno@clisp.org>
22575
22576         * users.txt: New file.
22577
22578 2006-08-11  Bruno Haible  <bruno@clisp.org>
22579
22580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
22581         before <wchar.h>. Needed for OSF/1 and BSD/OS.
22582
22583 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22584
22585         * modules/snprintf (Depends-on): Remove minmax.
22586         (Maintainer): Add self and Bruno.
22587
22588 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22589
22590         * lib/.cppi-disable: Add snprintf.h, socket_.h.
22591         * lib/snprintf.c: Include <errno.h> and <limits.h>.
22592         (EOVERFLOW): Define if the system does not.
22593         Do not include "minmax.h"; it wasn't used.
22594         (snprintf): Don't assume size_t promotes to an unsigned type.
22595         Fix bug when generated string was too long for the buffer: the
22596         buffer's contents are supposed to be the initial prefix of the
22597         output.  Don't assume vasnprintf returns EOVERFLOW if the size
22598         exceeds INT_MAX; do the check ourselves.
22599
22600         Import the following changes from libc:
22601
22602         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
22603
22604         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
22605         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
22606         set wc to the byte which couldn't be converted.
22607         (re_string_reconstruct): Don't clear valid_raw_len before calling
22608         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
22609         tip_context using re_string_context_at.
22610
22611         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
22612
22613         * lib/posix/regex.h: g++ still cannot handled [restrict].
22614
22615         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
22616
22617         * lib/posix/regex.h: Remove special handling for VMS.
22618
22619 2006-08-10  Jim Meyering  <jim@meyering.net>
22620
22621         * modules/same-inode: New module.
22622         * modules/dev-ino: New module.
22623         * modules/cycle-check: Depend on these modules, rather than simply
22624         including their .h files.
22625         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
22626         required via m4/cycle-check.m4.
22627         * modules/same: Depend on new same-inode module, rather than
22628         including same-inode.h.
22629         * modules/chdir-safer: New file.
22630
22631         * modules/chown (Depends-on): Add stat-macros.
22632
22633 2006-08-10  Jim Meyering  <jim@meyering.net>
22634
22635         * m4/cycle-check.m4: New file.
22636         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
22637         * m4/dev-ino.m4, m4/same-inode.m4: New files.
22638
22639 2006-08-10  Eric Blake  <ebb9@byu.net>
22640
22641         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
22642         in from original proposal.
22643
22644 2006-08-10  Eric Blake  <ebb9@byu.net>
22645         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22646
22647         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
22648         namespace.
22649
22650 2006-08-10  Bruno Haible  <bruno@clisp.org>
22651
22652         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
22653         as well.
22654
22655 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22656
22657         Sync from coreutils.
22658
22659         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
22660
22661         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
22662         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
22663
22664 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22665
22666         * modules/restrict: Remove; no longer needed now that we assume
22667         Autoconf 2.59 or later.
22668         * MODULES.html.sh: Remove 'restrict'.
22669         * modules/argp (Depends-on): Remove 'restrict'.
22670         * modules/base64 (Depends-on): Likewise.
22671         * modules/gc (Depends-on): Likewise.
22672         * modules/getaddrinfo (Depends-on): Likewise.
22673         * modules/glob (Depends-on): Likewise.
22674         * modules/inet_ntop (Depends-on): Likewise.
22675         * modules/inet_pton (Depends-on): Likewise.
22676         * modules/memxor (Depends-on): Likewise.
22677         * modules/regex (Depends-on): Likewise.
22678         * modules/strtok_r (Depends-on): Likewise.
22679         * modules/time_r (Depends-on): Likewise.
22680
22681 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22682
22683         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
22684         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
22685         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22686         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
22687         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22688         * m4/memxor.m4 (gl_MEMXOR): Likewise.
22689         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
22690         gl_C_RESTRICT replaced by AC_C_RESTRICT.
22691
22692         Merge from coreutils.
22693         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
22694         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
22695         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22696         * m4/time_r.m4 (gl_TIME_R): Likewise.
22697
22698 2006-08-09  Karl Berry  <karl@gnu.org>
22699
22700         * config/srclist.txt: no more gettext-tools, per Bruno.
22701
22702 2006-08-08  Eric Blake  <ebb9@byu.net>
22703
22704         * modules/verror: New module.
22705         * MODULES.html.sh: Document it.
22706
22707 2006-08-08  Eric Blake  <ebb9@byu.net>
22708
22709         * lib/verror.h, lib/verror.c: New files.
22710
22711 2006-08-08  Eric Blake  <ebb9@byu.net>
22712
22713         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
22714         verror_at_line output complies with GNU Coding Standards even when
22715         file is NULL.
22716
22717 2006-08-07  Bruno Haible  <bruno@clisp.org>
22718
22719         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
22720         versions of AIX.
22721         Reported by Ralf Wildenhues.
22722
22723 2006-08-07  Bruno Haible  <bruno@clisp.org>
22724
22725         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
22726         in an AC_DEFUN. Needed so that the autoconf snippets can use
22727         AC_REQUIRE.
22728
22729 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22730
22731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22732         Initialize pkgdata_DATA.
22733         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
22734         overriding it.
22735
22736 2006-08-06  Eric Blake  <ebb9@byu.net>
22737
22738         * lib/error.h: Fold in some upstream changes from glibc.
22739         * lib/error.c: Likewise.
22740
22741 2006-08-04  Bruno Haible  <bruno@clisp.org>
22742
22743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22744         Make the mostlyclean-local rule depend on mostlyclean-generic.
22745         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
22746
22747 2006-07-31  Bruno Haible  <bruno@clisp.org>
22748
22749         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
22750         <stdlib.h>, <string.h>.
22751
22752 2006-07-30  Bruno Haible  <bruno@clisp.org>
22753
22754         * modules/readlink (License): Change to LGPL.
22755
22756 2006-07-30  Bruno Haible  <bruno@clisp.org>
22757
22758         * modules/javaversion (Makefile.am): Distribute javaversion.java and
22759         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
22760         set PKGDATADIR to point to it.
22761
22762 2006-07-30  Bruno Haible  <bruno@clisp.org>
22763
22764         * modules/csharpexec (configure.ac): Comment out macro invocation.
22765         * modules/javaexec (configure.ac): Likewise.
22766         * modules/javacomp-script (configure.ac): Likewise.
22767
22768         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
22769
22770 2006-07-30  Bruno Haible  <bruno@clisp.org>
22771
22772         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
22773         linked-list.
22774
22775 2006-07-30  Bruno Haible  <bruno@clisp.org>
22776
22777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
22778
22779 2006-07-30  Bruno Haible  <bruno@clisp.org>
22780
22781         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22782         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
22783         get removed.
22784
22785 2006-07-29  Bruno Haible  <bruno@clisp.org>
22786
22787         Make it possible for gnulib-tool to work with locally modified or
22788         augmented gnulib repositories.
22789         * gnulib-tool (func_usage): Document --local-dir option.
22790         (local_gnulib_dir): New variable.
22791         Handle --local-dir option.
22792         (func_lookup_file): New function.
22793         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
22794         (func_get_description, func_get_filelist, func_get_description,
22795         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
22796         func_get_automake_snippet, func_get_include_directive,
22797         func_get_license, func_get_maintainer): Use func_lookup_file.
22798         (func_import, func_create_testdir): Use func_lookup_file.
22799
22800 2006-07-29  Bruno Haible  <bruno@clisp.org>
22801
22802         * modules/setenv (Depends-on): Add unistd.
22803
22804 2006-07-29  Bruno Haible  <bruno@clisp.org>
22805
22806         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
22807
22808 2006-07-29  Bruno Haible  <bruno@clisp.org>
22809
22810         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
22811
22812 2006-07-29  Bruno Haible  <bruno@clisp.org>
22813
22814         * gnulib-tool (import, update): If there is no Makefile.am, look at
22815         aclocal.m4, instead of bailing out.
22816
22817 2006-07-29  Bruno Haible  <bruno@clisp.org>
22818
22819         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
22820         Categorize the options by when they are useful.
22821
22822 2006-07-29  Bruno Haible  <bruno@clisp.org>
22823
22824         * gnulib-tool (func_usage): Document option --no-libtool.
22825         Handle option --no-libtool.
22826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
22827         for changed semantics of $libtool variable.
22828         (func_import): Likewise. If libtool is not used, show this through
22829         an option --no-libtool.
22830         (func_create_testdir): Update.
22831
22832 2006-07-29  Bruno Haible  <bruno@clisp.org>
22833
22834         * gnulib-tool (func_import): Extend error message about missing
22835         --doc-base.
22836
22837 2006-07-29  Bruno Haible  <bruno@clisp.org>
22838
22839         * gnulib-tool (func_import): Don't create the $docbase directory if
22840         there is no file to store there.
22841
22842 2006-07-29  Bruno Haible  <bruno@clisp.org>
22843
22844         * gnulib-tool (autoconf_minversion): If a --dir option is given and
22845         relevant, look for configure.ac there, not in the current directory.
22846         Also use a simple search for AC_PREREQ, not "autoconf --trace".
22847
22848 2006-07-29  Bruno Haible  <bruno@clisp.org>
22849
22850         * gnulib-tool (SORT): New variable.
22851         (func_usage): Undocument --assume-autoconf option.
22852         Remove --assume-autoconf option handling.
22853         (autoconf_minversion): Determine from the contents of configure.ac.
22854         (func_import): Remove autoconf_minversion handling.
22855         Suggested by Eric Blake.
22856
22857 2006-07-29  Bruno Haible  <bruno@clisp.org>
22858
22859         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
22860
22861 2006-07-29  Bruno Haible  <bruno@clisp.org>
22862
22863         * config/srclist.txt (*setenv.[ch]): Remove rules.
22864
22865 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22866
22867         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
22868
22869 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22870
22871         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
22872         arpa/inet.h.
22873
22874 2006-07-28  Simon Josefsson  <jas@extundo.com>
22875
22876         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
22877         * modules/inet_pton (Depends-on): Likewise.
22878
22879 2006-07-28  Simon Josefsson  <jas@extundo.com>
22880
22881         * m4/netinet_in_h.m4: New file.
22882
22883 2006-07-28  Simon Josefsson  <jas@extundo.com>
22884
22885         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
22886         #include's.
22887
22888 2006-07-28  Simon Josefsson  <jas@extundo.com>
22889
22890         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
22891         #include's.
22892
22893 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
22894
22895         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
22896         setgid on directories only if they set these bits.
22897         * lib/modechange.h: Remove obsolete comment about masks.
22898
22899 2006-07-28  Eric Blake  <ebb9@byu.net>
22900
22901         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
22902         macro expansion.
22903
22904 2006-07-28  Bruno Haible  <bruno@clisp.org>
22905
22906         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
22907
22908 2006-07-28  Bruno Haible  <bruno@clisp.org>
22909
22910         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
22911
22912 2006-07-28  Bruno Haible  <bruno@clisp.org>
22913
22914         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22915         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
22916         Define fallbacks.
22917         Avoids link error on FreeBSD 4.x.
22918         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22919
22920         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
22921         encoding.
22922         * lib/mbswidth.c (iswcntrl): Likewise.
22923
22924 2006-07-27  Bruno Haible  <bruno@clisp.org>
22925
22926         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
22927         test.
22928
22929 2006-07-27  Bruno Haible  <bruno@clisp.org>
22930
22931         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
22932         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
22933         defined.
22934
22935 2006-07-26  Eric Blake  <ebb9@byu.net>
22936
22937         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
22938
22939 2006-07-26  Eric Blake  <ebb9@byu.net>
22940
22941         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
22942         like mingw that lack mkstemp.
22943         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
22944         avoid compilation warning on mingw.
22945
22946 2006-07-26  Bruno Haible  <bruno@clisp.org>
22947
22948         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
22949         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
22950         INT_FAST*_MIN, INTPTR_MIN.
22951
22952 2006-07-25  Bruno Haible  <bruno@clisp.org>
22953
22954         * modules/version-etc (Depends-on): Add stdarg.
22955
22956 2006-07-25  Bruno Haible  <bruno@clisp.org>
22957
22958         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
22959         complex commands.
22960
22961 2006-07-25  Bruno Haible  <bruno@clisp.org>
22962
22963         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
22964         defined in <stdarg.h> or config.h.
22965
22966 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22967
22968         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
22969         (gl_STDIO_SAFER): Remove.
22970
22971 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22972
22973         * MODULES.html.sh (File stream based Input/Output):
22974         Add fopen-safer, tmpfile-safer; remove stdio-safer.
22975         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
22976         * modules/fopen-safer, modules/tmpfile-safer: New files.
22977         * modules/stdio-safer: Remove.
22978
22979 2006-07-24  Bruno Haible  <bruno@clisp.org>
22980
22981         * modules/tmpdir: New file.
22982         * MODULES.html.sh (File system functions): Add it.
22983
22984 2006-07-24  Bruno Haible  <bruno@clisp.org>
22985
22986         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
22987         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
22988
22989 2006-07-24  Bruno Haible  <bruno@clisp.org>
22990
22991         * modules/clean-temp: New file.
22992
22993 2006-07-24  Bruno Haible  <bruno@clisp.org>
22994
22995         * m4/tmpdir.m4: New file, from GNU gettext.
22996
22997 2006-07-24  Bruno Haible  <bruno@clisp.org>
22998
22999         * lib/tmpdir.h: New file, from GNU gettext.
23000         * lib/tmpdir.c: New file, from GNU gettext.
23001
23002 2006-07-24  Bruno Haible  <bruno@clisp.org>
23003
23004         * lib/clean-temp.h: New file, from GNU gettext.
23005         * lib/clean-temp.c: New file, from GNU gettext.
23006
23007 2006-07-23  Eric Blake  <ebb9@byu.net>
23008
23009         * modules/stdio-safer (Files): Add tmpfile-safer.c.
23010         (Depends-on): Add binary-io.
23011
23012 2006-07-23  Eric Blake  <ebb9@byu.net>
23013
23014         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
23015
23016 2006-07-23  Eric Blake  <ebb9@byu.net>
23017
23018         * lib/tmpfile-safer.c: New file.
23019         * lib/stdio-safer.h (fopen_safer): Add prototype.
23020         * lib/stdio--.h (tmpfile): Make safer.
23021
23022 2006-07-23  Bruno Haible  <bruno@clisp.org>
23023
23024         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
23025         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
23026         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
23027         gl_linked_remove_at): Use it.
23028
23029 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23030         and Simon Josefsson <jas@extundo.com>
23031
23032         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
23033
23034         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
23035
23036 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23037
23038         * modules/close-stream: New file.
23039         * modules/closeout (Description): Make it clear that it exits
23040         with a diagnostic on error.
23041         (Depends-on): Add close-stream.  Remove fpending, stdbool.
23042         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
23043
23044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23045
23046         * m4/close-stream.m4: New file.
23047
23048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23049
23050         * lib/close-stream.c, lib/close-stream.h: New files.
23051
23052 2006-07-22  Bruno Haible  <bruno@clisp.org>
23053
23054         Merge from GNU gettext 0.15.
23055
23056         2006-05-01  Bruno Haible  <bruno@clisp.org>
23057
23058                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
23059
23060         2006-07-22  Bruno Haible  <bruno@clisp.org>
23061
23062                 * modules/javaversion: New file.
23063                 * MODULES.html.sh (Java): Add javaversion.
23064
23065         2006-03-12  Bruno Haible  <bruno@clisp.org>
23066
23067                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
23068
23069         2005-12-04  Bruno Haible  <bruno@clisp.org>
23070
23071                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
23072                 (untested).
23073
23074         2006-06-21  Bruno Haible  <bruno@clisp.org>
23075
23076                 Avoid warnings from recent versions of mcs.
23077                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
23078                 -o, -L, -r any more. Use options documented since mcs-1.0
23079                 instead. Similarly for -g.
23080
23081         2005-12-04  Bruno Haible  <bruno@clisp.org>
23082
23083                 * build-aux/csharpcomp.sh.in: Suffix for resources is
23084                 .resources, not .resource.
23085
23086         2005-07-09  Bruno Haible  <bruno@clisp.org>
23087
23088                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
23089                 add a .dll suffix.
23090                 Reported by Mark Junker <mjscod@gmx.de>.
23091
23092         2006-07-22  Bruno Haible  <bruno@clisp.org>
23093
23094                 * modules/gettext: Upgrade to gettext-0.15.
23095                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
23096                 m4/visibility.m4.
23097                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
23098
23099 2006-07-22  Bruno Haible  <bruno@clisp.org>
23100
23101         Merge from GNU gettext 0.15.
23102
23103         2006-03-25  Bruno Haible  <bruno@clisp.org>
23104
23105                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
23106
23107         2006-07-21  Bruno Haible  <bruno@clisp.org>
23108
23109                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
23110                 "1.1".
23111
23112         2006-05-09  Bruno Haible  <bruno@clisp.org>
23113
23114                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
23115                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
23116                 for the conftestver execution.
23117
23118         2006-05-01  Bruno Haible  <bruno@clisp.org>
23119
23120                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
23121                 optional target-version argument. Verify that the compiler
23122                 groks source of the specified source-version, or add -source
23123                 option as necessary. Verify that the compiler produces
23124                 bytecode in the specified target-version, or add -target and
23125                 -source options as necessary. Make the result of the test
23126                 available as variable CONF_JAVAC. Also log error output in
23127                 config.log.
23128
23129         2006-03-11  Bruno Haible  <bruno@clisp.org>
23130
23131                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
23132
23133         2006-05-09  Bruno Haible  <bruno@clisp.org>
23134
23135                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
23136                 CLASSPATH_SEPARATOR to a semicolon.
23137
23138         2006-03-12  Bruno Haible  <bruno@clisp.org>
23139
23140                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
23141                 available as variable CONF_JAVA, for subsequent autoconf
23142                 tests. Also log error output in config.log.
23143
23144         2006-07-19  Bruno Haible  <bruno@clisp.org>
23145
23146                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
23147                 that getline works on glibc2 systems. Needed to avoid trouble
23148                 in relocatable.c.
23149                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
23150
23151         2005-12-04  Bruno Haible  <bruno@clisp.org>
23152
23153                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
23154                 launcher (untested).
23155
23156         2005-12-04  Bruno Haible  <bruno@clisp.org>
23157
23158                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
23159
23160         2006-07-22  Bruno Haible  <bruno@clisp.org>
23161
23162                 * gettext.m4: Update from GNU gettext-0.15.
23163                 * nls.m4: Likewise.
23164                 * po.m4: Likewise.
23165                 * inttypes-pri.m4: Likewise.
23166                 * inttypes-h.m4: Renamed from inttypes.m4.
23167                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
23168
23169 2006-07-22  Bruno Haible  <bruno@clisp.org>
23170
23171         Merge from GNU gettext 0.15.
23172
23173         2005-07-05  Bruno Haible  <bruno@clisp.org>
23174
23175                 * printf-args.c (printf_fetchargs): Work around broken
23176                 definition of wint_t on mingw.
23177
23178         2005-02-12  Bruno Haible  <bruno@clisp.org>
23179
23180                 * xallocsa.h: Add extern "C" for C++.
23181
23182         2006-05-17  Bruno Haible  <bruno@clisp.org>
23183
23184                 Cygwin portability.
23185                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
23186
23187         2006-04-30  Bruno Haible  <bruno@clisp.org>
23188
23189                 * progreloc.c: Include <mach-o/dyld.h> if available.
23190                 (find_executable): Use _NSGetExecutablePath when possible.
23191
23192         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
23193
23194                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
23195                 function.
23196
23197         2005-12-29  Bruno Haible  <bruno@clisp.org>
23198
23199                 * progreloc.c (set_program_name_and_installdir): Fix
23200                 compilation error.
23201
23202         2005-12-04  Bruno Haible  <bruno@clisp.org>
23203
23204                 Cygwin portability.
23205                 * progreloc.c: Include <windows.h> also on Cygwin.
23206                 (find_executable): Add support for Cygwin.
23207                 (set_program_name_and_installdir): Handle also platforms with
23208                 nonempty EXEEXT.
23209
23210         2006-07-11  Bruno Haible  <bruno@clisp.org>
23211
23212                 * javacomp.c: Fix a comment.
23213                 Reported by Jim Meyering.
23214
23215         2006-04-30  Bruno Haible  <bruno@clisp.org>
23216
23217                 * javacomp.h (compile_java_class): Add source_version,
23218                 target_version arguments.
23219                 * javacomp.c: Rewritten to choose only a compiler that
23220                 respects the specified source_version and target_version.
23221
23222         2006-06-27  Bruno Haible  <bruno@clisp.org>
23223
23224                 Assume correct S_ISDIR macro.
23225                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
23226
23227         2006-07-22  Bruno Haible  <bruno@clisp.org>
23228
23229                 * javaversion.h: New file, from GNU gettext.
23230                 * javaversion.c: New file, from GNU gettext.
23231                 * javaversion.java: New file, from GNU gettext.
23232                 * javaversion.class: New file, from GNU gettext.
23233
23234         2006-05-17  Bruno Haible  <bruno@clisp.org>
23235
23236                 Cygwin portability.
23237                 * javaexec.c (execute_java_class): Test for jview program
23238                 also on Cygwin.
23239
23240         2006-04-09  Bruno Haible  <bruno@clisp.org>
23241
23242                 * fatal-signal.c: Don't include string.h.
23243                 (at_fatal_signal): Use a copying loop instead of memcpy.
23244
23245         2005-12-04  Bruno Haible  <bruno@clisp.org>
23246
23247                 * csharpexec.c: Add support for 'clix' launcher (untested).
23248                 (execute_csharp_using_sscli): New function.
23249                 (execute_csharp_program): Call it.
23250
23251         2006-06-21  Bruno Haible  <bruno@clisp.org>
23252
23253                 Avoid warnings from recent versions of mcs.
23254                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
23255                 -o, -L, -r any more. Use options documented since mcs-1.0
23256                 instead. Similarly for -g.
23257
23258         2005-07-09  Bruno Haible  <bruno@clisp.org>
23259
23260                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
23261                 add a .dll suffix.
23262                 Reported by Mark Junker <mjscod@gmx.de>.
23263
23264         2006-06-17  Bruno Haible  <bruno@clisp.org>
23265
23266                 * config.charset: Update for NetBSD 3.0.
23267
23268         2006-05-17  Bruno Haible  <bruno@clisp.org>
23269
23270                 Cygwin portability.
23271                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
23272
23273         2006-05-16  Bruno Haible  <bruno@clisp.org>
23274
23275                 * localcharset.c [CYGWIN]: Include <windows.h>.
23276                 (get_charset_aliases): For Cygwin, return the same CPxxx
23277                 aliases list as under WIN32.
23278                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
23279                 the environment variables. Fall back to GetACP().
23280
23281         2006-04-05  Bruno Haible  <bruno@clisp.org>
23282
23283                 * config.charset: Update Juan Manuel Guerrero's address.
23284
23285         2005-02-12  Bruno Haible  <bruno@clisp.org>
23286
23287                 * allocsa.h: Add extern "C" for C++.
23288
23289         2005-02-10  Bruno Haible  <bruno@clisp.org>
23290
23291                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
23292                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
23293
23294         2006-07-22  Bruno Haible  <bruno@clisp.org>
23295
23296                 * gettext.h: Update to GNU gettext-0.15.
23297
23298 2006-07-22  Bruno Haible  <bruno@clisp.org>
23299
23300         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
23301         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
23302         lib-prefix.m4, longdouble.m4, ssize_t.m4.
23303
23304 2006-07-21  Eric Blake  <ebb9@byu.net>
23305
23306         * modules/stdlib-safer: New file.
23307         * MODULES.html.sh (File stream based Input/Output): Add
23308         stdlib-safer.
23309
23310 2006-07-21  Eric Blake  <ebb9@byu.net>
23311
23312         * lib/stdlib-safer.h: New file from coreutils, required by
23313         stdlib--.h.
23314
23315 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
23316
23317         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
23318
23319 2006-07-20  Bruno Haible  <bruno@clisp.org>
23320
23321         * gnulib-tool: Recognize new option --assume-autoconf.
23322         (autoconf_minversion): New variable.
23323         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
23324
23325 2006-07-20  Bruno Haible  <bruno@clisp.org>
23326
23327         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
23328
23329 2006-07-19  Derek R. Price  <derek@ximbiot.com>
23330
23331         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
23332         Reindent and repaginate.
23333
23334 2006-07-19  Derek Price  <derek@ximbiot.com>
23335
23336         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
23337         Correct grammar.
23338
23339 2006-07-17  Bruno Haible  <bruno@clisp.org>
23340
23341         * modules/list: New file.
23342         * modules/array-list: New file.
23343         * modules/carray-list, modules/carray-list-tests: New files.
23344         * modules/linked-list, modules/linked-list-tests: New files.
23345         * modules/avltree-list, modules/avltree-list-tests: New files.
23346         * modules/rbtree-list, modules/rbtree-list-tests: New files.
23347         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
23348         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
23349         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
23350         * modules/oset: New file.
23351         * modules/array-oset: New file.
23352         * modules/avltree-oset, modules/avltree-oset-tests: New files.
23353         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
23354         * tests/test-carray_list.c: New file.
23355         * tests/test-linked_list.c: New file.
23356         * tests/test-avltree_list.c: New file.
23357         * tests/test-rbtree_list.c: New file.
23358         * tests/test-linkedhash_list.c: New file.
23359         * tests/test-avltreehash_list.c: New file.
23360         * tests/test-rbtreehash_list.c: New file.
23361         * tests/test-avltree_oset.c: New file.
23362         * tests/test-rbtree_oset.c: New file.
23363         * MODULES.html.sh (Container data structures): New section.
23364
23365 2006-07-17  Bruno Haible  <bruno@clisp.org>
23366
23367         * m4/gl_list.m4: New file.
23368
23369 2006-07-17  Bruno Haible  <bruno@clisp.org>
23370
23371         * lib/gl_list.h: New file.
23372         * lib/gl_list.c: New file.
23373         * lib/gl_array_list.h: New file.
23374         * lib/gl_array_list.c: New file.
23375         * lib/gl_carray_list.h: New file.
23376         * lib/gl_carray_list.c: New file.
23377         * lib/gl_linked_list.h: New file.
23378         * lib/gl_linked_list.c: New file.
23379         * lib/gl_anylinked_list1.h: New file.
23380         * lib/gl_anylinked_list2.h: New file.
23381         * lib/gl_avltree_list.h: New file.
23382         * lib/gl_avltree_list.c: New file.
23383         * lib/gl_anyavltree_list1.h: New file.
23384         * lib/gl_anyavltree_list2.h: New file.
23385         * lib/gl_rbtree_list.h: New file.
23386         * lib/gl_rbtree_list.c: New file.
23387         * lib/gl_anyrbtree_list1.h: New file.
23388         * lib/gl_anyrbtree_list2.h: New file.
23389         * lib/gl_anytree_list1.h: New file.
23390         * lib/gl_anytree_list2.h: New file.
23391         * lib/gl_linkedhash_list.h: New file.
23392         * lib/gl_linkedhash_list.c: New file.
23393         * lib/gl_anyhash_list1.h: New file.
23394         * lib/gl_anyhash_list2.h: New file.
23395         * lib/gl_avltreehash_list.h: New file.
23396         * lib/gl_avltreehash_list.c: New file.
23397         * lib/gl_rbtreehash_list.h: New file.
23398         * lib/gl_rbtreehash_list.c: New file.
23399         * lib/gl_anytreehash_list1.h: New file.
23400         * lib/gl_anytreehash_list2.h: New file.
23401
23402         * lib/gl_oset.h: New file.
23403         * lib/gl_oset.c: New file.
23404         * lib/gl_array_oset.h: New file.
23405         * lib/gl_array_oset.c: New file.
23406         * lib/gl_avltree_oset.h: New file.
23407         * lib/gl_avltree_oset.c: New file.
23408         * lib/gl_rbtree_oset.h: New file.
23409         * lib/gl_rbtree_oset.c: New file.
23410         * lib/gl_anytree_oset.h: New file.
23411
23412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23413
23414         * m4/mkancesdirs.m4: New file.
23415         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
23416         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
23417         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
23418         it.
23419
23420 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23421
23422         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
23423         * lib/mkancesdirs.h: New files.
23424         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
23425         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
23426         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
23427         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
23428         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
23429         callers changed.  Revamp internals significantly, by not
23430         attempting to create directories that are temporarily more
23431         permissive than the final results.  Do not attempt to use
23432         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
23433         This removes some race conditions, fixes some bugs, and simplifies
23434         things.  Use new dirchownmod function to do owner and mode changes.
23435         * lib/mkdir-p.h: Likewise.
23436         * lib/modechange.c (octal_to_mode): New function.
23437         (struct mode_change): New member mentioned.
23438         (make_node_op_equals): New arg mentioned.  All callers changed.
23439         (mode_compile): Keep track of which mode bits the user has explicitly
23440         mentioned.
23441         (mode_adjust): New arg DIR, so that we implement the X op correctly.
23442         New arg PMODE_BITS, to keep track of which mode bits the user
23443         mentioned; it treats S_ISUID and S_ISGID speciall.
23444         All callers changed.
23445         * lib/modechange.h: Likewise.
23446
23447 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23448
23449         * MODULES.html.sh: Add mkancestors.
23450         * modules/mkancesdirs: New module.
23451         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
23452         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
23453         The chdir-safer and afs files are now orphans; I'll remove them
23454         unless someone speaks up.
23455         Add lib/dirchownmod.c, lib/dirchownmod.h.
23456         (Depends-on): Remove alloca, chown, save-cwd, dirname.
23457         Add lchown, mkancesdirs.
23458         (Maintainer): Add self.
23459
23460 2006-07-15  Karl Berry  <karl@gnu.org>
23461
23462         * gnulib-tool: help message wording/arrangement.
23463
23464 2006-07-14  Simon Josefsson  <jas@extundo.com>
23465
23466         * doc/gnulib.texi (Libtool and Windows): New section.
23467
23468 2006-07-12  Simon Josefsson  <jas@extundo.com>
23469
23470         * modules/gendocs (License): Fix license, approved by Karl.
23471
23472 2006-07-12  Eric Blake  <ebb9@byu.net>
23473
23474         * MODULES.html.sh: Add gendocs.
23475
23476 2006-07-11  Eric Blake  <ebb9@byu.net>
23477
23478         * modules/fdl: New module, to install doc/fdl.texi.
23479         * MODULES.html.sh: Add new section for documentation modules.
23480         * gnulib-tool: Avoid space-tab.
23481         (--doc-base): New option, to manage files from doc.
23482
23483 2006-07-11  Eric Blake  <ebb9@byu.net>
23484
23485         * m4/absolute-header.m4: Fix comments to match recent change.
23486
23487 2006-07-11  Eric Blake  <ebb9@byu.net>
23488
23489         * gnulib-tool: List --doc-base before --tests-base.
23490
23491 2006-07-11  Derek R. Price  <derek@ximbiot.com>
23492
23493         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
23494
23495 2006-07-11  Bruno Haible  <bruno@clisp.org>
23496
23497         * README: Mention where to put documentation.
23498
23499 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23500
23501         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
23502
23503 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23504
23505         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
23506         to stdint.m4.
23507
23508 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
23511         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
23512         "no/such/file/stdint.h" when there is no such file, so that
23513         the resulting C code can be parsed by dodgy compilers.
23514         Problems reported by Bob Proulx.
23515
23516 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23517
23518         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
23519         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23520         macros into the GNU _D_EXACT_NAMLEN.
23521         * lib/savedir.c:  Likewise.
23522         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
23523
23524 2006-07-10  Derek R. Price  <derek@ximbiot.com>
23525         and Paul Eggert  <eggert@cs.ucla.edu>
23526
23527         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
23528         * m4/savedir.m4:
23529         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
23530         macros into the GNU _D_EXACT_NAMLEN.
23531
23532 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23533
23534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
23535         around the absolute name, to work around a problem with the HP-UX
23536         11.23 native C compiler, reported by Bob Proulx.
23537
23538 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23539
23540         * doc/maintain.texi, make-stds.texi: Sync from
23541         <http://savannah.gnu.org/projects/gnustandards>.
23542
23543 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23544
23545         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
23546
23547 2006-07-09  Jim Meyering  <jim@meyering.net>
23548
23549         * m4/glob.m4: Remove a doubled word in a comment.
23550
23551 2006-07-09  Jim Meyering  <jim@meyering.net>
23552
23553         * lib/argp-pv.c: Remove a doubled word in a comment.
23554         * lib/check-version.c (check_version): Likewise.
23555         * lib/javacomp.c (compile_java_class): Likewise.
23556
23557 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23558
23559         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
23560         for the benefit of people using Autoconf 2.60.  If you want to
23561         support older Autoconf versions you can copy m4/onceonly_2_57.m4
23562         (or m4/onceonly.m4, if pre-2.57) manually.
23563
23564 2006-07-08  Jim Meyering  <jim@meyering.net>
23565
23566         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
23567         comment.
23568         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
23569         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
23570         comment.
23571
23572 2006-07-08  Jim Meyering  <jim@meyering.net>
23573
23574         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
23575
23576 2006-07-07  Simon Josefsson  <jas@extundo.com>
23577
23578         * tests/test-crc.c: Change expected crc value, the test vector
23579         were probably computed using the old broken crc.c?
23580
23581 2006-07-06  Simon Josefsson  <jas@extundo.com>
23582
23583         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
23584         now the canonical place for the M4 file).
23585
23586         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
23587         from the sys_socket dependency now.
23588
23589         * modules/inet_pton (Files): Ditto.
23590
23591         * modules/inet_ntop (Files): Ditto.
23592
23593 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23594
23595         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
23596         not gl_PREREQ_GETUSERSHELL.
23597
23598 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23599
23600         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
23601         with only one argument, for Autoconf 2.60.
23602         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
23603         expand to nothing, so add a shell command to avoid syntax error.
23604         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23605
23606 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23607
23608         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
23609
23610 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23611
23612         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
23613         no longer needed.  Check for isblank decl.
23614         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
23615         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
23616         of existence.
23617
23618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23619
23620         * lib/getloadavg.c: Use __VMS, not VMS.
23621         * lib/getopt.c: Likewise.
23622         * lib/getpagesize.h: Likewise.
23623         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
23624         and probably does not work.
23625
23626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23627
23628         * lib/.cppi-disable: Add wcwidth.
23629         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
23630         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
23631         (ISGRAPH): Remove.  All uses changed to isgraph.
23632         (FOLD) [!defined _LIBC]: Remove special case.
23633         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
23634         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
23635         HAVE_ISBLANK.
23636         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
23637         case.
23638
23639 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
23640
23641         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
23642         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
23643         brackets.  Other minor changes to suppress some compiler
23644         warnings.
23645
23646 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23647         and Paul Eggert  <eggert@cs.ucla.edu>
23648
23649         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
23650         of invoking obsolescent AC_HEADER_DIRENT macro.
23651         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23652         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23653         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23655         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
23656         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23657         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
23658         * m4/readdir.m4: Remove; no longer needed.
23659
23660 2006-07-06  Derek R. Price  <derek@ximbiot.com>
23661         and Paul Eggert  <eggert@cs.ucla.edu>
23662
23663         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
23664         Don't worry about this obsolete case any more.
23665         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
23666         directories.
23667         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
23668         worry about this obsolete case any more.
23669         * lib/fts.c: Likewise.
23670         * lib/getcwd.c: Likewise.
23671         * lib/glob.h: Likewise.
23672         * lib/savedir.c: Likewise.
23673
23674 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23675
23676         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
23677         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
23678         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
23679         needed.
23680         All uses removed.
23681         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23682         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23683         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
23684         needed.
23685         * m4/getdate.m4 (gl_GETDATE): Likewise.
23686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23687         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23688         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23690         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
23691         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23692         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
23693         needed.
23694
23695 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23696
23697         * lib/memcasecmp.c: Include <limits.h>.
23698         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
23699         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
23700         Don't assume isdigit succeeds only on '0' through '9'.
23701
23702 2006-07-05  Eric Blake  <ebb9@byu.net>
23703
23704         * modules/getaddrinfo (Depends-on): Add snprintf.
23705
23706 2006-07-05  Eric Blake  <ebb9@byu.net>
23707
23708         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
23709         to avoid 'header present but could not be compiled' on cygwin.
23710
23711 2006-07-05  Eric Blake  <ebb9@byu.net>
23712
23713         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
23714         missing from netdb.h.
23715         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
23716
23717 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23718
23719         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
23720         no longer needed.
23721         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
23722         * m4/getdate.m4 (gl_GETDATE): Likewise.
23723         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
23724         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
23725         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23726         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
23727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
23728
23729 2006-07-05  Derek R. Price  <derek@ximbiot.com>
23730
23731         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
23732         All uses of is_space replaced by isspace.
23733         * lib/exit.h: Don't talk about STDC_HEADERS.
23734         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
23735         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
23736         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
23737         replaced by isprint etc.
23738         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
23739         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23740         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
23741         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
23742         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
23743         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
23744
23745 2006-07-05  Bruno Haible  <bruno@clisp.org>
23746
23747         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
23748         the function exists, before testing against AIX.
23749         Reported by Martin Lambers <marlam@marlam.de>.
23750
23751 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23752
23753         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
23754         From Mark D. Baushke.
23755
23756 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
23757
23758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
23759         to the absolute name, not just one, to bypass Sun C 5.8's
23760         "warning: #include of /usr/include/... may be non-portable".
23761
23762 2006-07-04  Eric Blake  <ebb9@byu.net>
23763
23764         * modules/dirname-tests: New test module.
23765         * tests/test-dirname.c: New file, replacing dirname.c
23766         TEST_DIRNAME section that was recently deleted.
23767
23768 2006-07-04  Bruno Haible  <bruno@clisp.org>
23769
23770         Assume ANSI C header files and <ctype.h> functions.
23771         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
23772         (mbsnwidth): Use isprint, iscntrl instead.
23773
23774 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         Merge from coreutils.
23777         * MODULES.html.sh: Add xstrtold.
23778         * modules/xstrtold: New file.
23779         * modules/cycle-check (Files): Add lib/same-inode.h.
23780         * modules/dirname (Files): Add m4/double-slash-root.m4.
23781         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
23782         * modules/mkdir-p (Files): Add lib/same-inode.h.
23783         * modules/same (Files): Add lib/same-inode.h.
23784
23785 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23786
23787         * m4/absolute-header.m4: Renamed from full-header-path.m4.
23788         This is to keep the terminology clean; POSIX talks about
23789         "absolute pathnames", not "full pathnames", but the GNU
23790         Coding Standards say to use "path" for something else;
23791         so use "absolute" to keep both sides happy.
23792         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
23793         Set gl_absolute_header, not gl_full_header_path.
23794         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
23795         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
23796         All uses changed.
23797
23798         Merge from coreutils.
23799
23800         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23801
23802         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
23803         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
23804         want to require the building of c-strtod.o.
23805         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
23806         needs -lm directly.
23807         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
23808
23809         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
23810
23811         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
23812         --as-needed option if available.  Problem reported by Albert Chin in
23813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
23814         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
23815         cc merely issues a bunch of annoying warnings for --as-needed
23816         (this problem was reported by Bob Proulx).  Also, try linking with
23817         -lm to detect a bug in binutils 2.16 (this problem was reported
23818         by Ralf Wildenhues).
23819
23820         2006-06-18  Jim Meyering  <jim@meyering.net>
23821
23822         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
23823         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
23824         macro.
23825         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
23826         also check for glibc-2.4's abort-inducing bug.
23827
23828         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
23829         Low-probability clean-up should be to use rmdir to get rid of
23830         the just-created directory, not unlink.
23831
23832         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
23833         configure fail, and request a bug report to inform us about it.
23834         Add a comment that, barring reports to the contrary, in 2007 we'll
23835         assume ftruncate is universally available.
23836
23837         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23838
23839         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
23840
23841         2006-03-12  Jim Meyering  <jim@meyering.net>
23842
23843         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
23844         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
23845         * m4/same.m4 (gl_SAME): Likewise.
23846         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
23847
23848         2006-03-11  Eric Blake  <ebb9@byu.net>
23849
23850         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
23851         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
23852         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
23853         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
23854
23855 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23856
23857         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
23858         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
23859         reported by Mark D. Baushke, one in
23860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
23861
23862         Merge from coreutils.
23863
23864         * lib/.cppi-disable: Add stdint_.h.
23865         * lib/.cvsignore: Add stdint.h.
23866
23867         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
23868
23869         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
23870         both double and long double versions.
23871         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
23872         * lib/xstrtold.c: New file.
23873         * lib/xstrtod.h (xstrtold): New decl.
23874
23875         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
23876
23877         * lib/filemode.c (setst): Remove.
23878         (strmode): Rewrite to avoid setst.  This makes the code shorter,
23879         (arguably) clearer, and the generated code is a bit smaller on my
23880         Debian GNU/Linux stable x86 host.
23881
23882         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23883
23884         * lib/filemode.c: Include "filemode.h" first, to test the interface.
23885         Assume that filemode.h includes sys/types.h and sys/stat.h.
23886         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
23887         (ftypelet): Reorder to put common cases first, for efficiency.
23888         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
23889         to do 'M'.
23890         (strmode): Renamed from mode_string, and now stores 12 bytes instead
23891         of 10, for compatibility with FreeBSD.  All callers changed.
23892         (filemodestring): Now stores 12 bytes instead of 10, and sets file
23893         types that can't be deduced solely from st_mode.  First arg is now a
23894         const pointer.
23895         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
23896         (strmode): Renamed from mode_string.
23897         (filemodestring): New decl.
23898         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
23899         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
23900         needed.
23901         (S_ISPORT, S_ISWHT): New macros, if not already defined.
23902
23903         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23904
23905         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
23906         fsusage.h now does that.  Include fsusage.h first, to test interface.
23907         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
23908         at most one method (the old code could have generated decls that
23909         didn't conform to C89, not that this was ever exercised).
23910         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
23911
23912         2006-03-19  Jim Meyering  <jim@meyering.net>
23913
23914         Work even in a chroot where d_ino values for entries in "/"
23915         don't match the stat.st_ino values for the same names.
23916         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
23917         number, iterate through all entries again, using lstat instead.
23918         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
23919         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
23920
23921         * lib/getcwd.c (__getcwd): Clarify a comment.
23922         Use memcpy in place of a call to strcpy.
23923
23924         2006-03-12  Jim Meyering  <jim@meyering.net>
23925
23926         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
23927         matches that of the current directory (which we're about to chdir ".."
23928         out of), then save the dev-ino of the parent, instead.
23929
23930         * lib/same-inode.h (SAME_INODE): New file/macro.
23931         * lib/chdir-safer.c (SAME_INODE): Remove definition.
23932         Include "same-inode.h", instead.
23933         * lib/same.c: Likewise.
23934         * lib/cycle-check.h: Include "same-inode.h".
23935         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
23936         * lib/cycle-check.c (SAME_INODE): Remove definition.
23937         * lib/root-dev-ino.h: Include "same-inode.h".
23938
23939         2006-03-11  Eric Blake  <ebb9@byu.net>
23940
23941         * lib/same.c (same_name): s/base_name/last_component/
23942         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
23943         * lib/filenamecat.c (file_name_concat): Likewise.
23944
23945         2006-03-11  Eric Blake  <ebb9@byu.net>,
23946                     Paul Eggert  <eggert@cs.ucla.edu>
23947
23948         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
23949         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
23950         drive prefix.
23951         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
23952         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
23953         (last_component): New method.
23954         * lib/dirname.c (dir_len): Determine when drive letters need a
23955         subsequent slash.  Preserve // when it is special.
23956         (dir_name): Don't append dot when drive letter is absolute.
23957         [TEST_DIRNAME]: Move into a full-blown gnulib test.
23958         * lib/basename.c (base_name): New semantics - malloc the result.
23959         Preserve // when it is special.  Preserve relative files that look
23960         like drive letters.
23961         (base_len): Preserve // when it is special.
23962         (last_component): New method, similar to old base_name semantics.
23963         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
23964         base_name.  Strip redundant slashes from ///.
23965
23966 2006-07-03  Jim Meyering  <jim@meyering.net>
23967
23968         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
23969         macro is used before the first cycle_check call.
23970
23971 2006-07-03  Eric Blake  <ebb9@byu.net>
23972
23973         * modules/dirname (Depends-on): Add xstrndup.
23974
23975 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
23976
23977         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
23978         test cases, so that config.log is a bit easier to follow.
23979
23980 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
23981
23982         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
23983         both are 64 bits, since this seems to be the tradition, and this
23984         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
23985         we ever run into a host that prefers long long to long in this
23986         case, we'll need another configure-time test.  Problem reported by
23987         Jim Meyering.
23988
23989 2006-07-02  Eric Blake  <ebb9@byu.net>
23990
23991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
23992
23993 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23994
23995         * modules/inttypes (Depends-on): No longer depends on stdint.
23996         * modules/stdint (Description): Say more about assumptions.
23997         Say that the fast types might differ.  Say macros are used.
23998         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
23999         (Makefile.am): Revise list of substituted symbols to match
24000         new stdint.m4.
24001         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
24002         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
24003         * tests/test-stdint.c (verify_same_types)
24004         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
24005         the code conforms to C99/C89.
24006         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
24007         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
24008
24009 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24010
24011         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
24012         but fix a bug, by requiring at least 64 bits.
24013         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24014         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
24015         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
24016         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
24017
24018         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
24019         changes.  Make 2.59 a prerequisite.  Check and substitute for
24020         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
24021         inttypes.h.  Do not use special include files; just use the
24022         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
24023         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
24024         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
24025         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
24026         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
24027         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
24028         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
24029         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
24030         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
24031         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
24032         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
24033         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
24034         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
24035         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
24036         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
24037         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
24038         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
24039         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
24040         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
24041         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
24042         WINT_MAX.  Check for C99 conformance more strictly, by detecting
24043         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
24044         not check for things that C99 does not require, e.g., int8_t.  If
24045         a test isn't needed unless <stdint.h> isn't working, and is
24046         unlikely to be needed for any other reason, then don't do it
24047         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
24048         size_t, since we assume C89 freestanding at least.  Do not check
24049         for sig_atomic_t, wchar_t, or wint_t, since the code now does
24050         the right thing even if the types are not defined.  Instead use:
24051         (gl_STDINT_TYPE_PROPERTIES): New macro.
24052         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
24053         testing whether <sys/types.h> clashes, as Autoconf does this for
24054         us now.  All uses removed.
24055         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
24056         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
24057         (gl_CHECK_TYPE_SAME):
24058         Remove; no longer needed.
24059         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
24060         exists, since we'll return 0 anyway in that case.
24061         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
24062
24063 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
24064
24065         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
24066         possible collision with system files.
24067         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
24068         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
24069         WCHAR_MIN and WCHAR_MAX in this case.
24070         (<stddef.h>): Do not include; no longer needed.
24071         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
24072         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
24073         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
24074         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
24075         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
24076         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
24077         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
24078         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
24079         !defined(__c99))]: Include in this case too, since it's harmless
24080         now.
24081         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
24082         dangerous to do so.
24083         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
24084         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
24085         (_STDINT_MIN, _STDINT_MAX): New macros.
24086         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
24087         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
24088         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
24089         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
24090         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
24091         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
24092         macros, not typedefs; this simplifies things quite a bit.
24093         Use long int for all types narrower than int64_t.
24094         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
24095         Define in terms of long long int or int64_t or long int,
24096         not int64_t or int32_t.  This saves some compile-time testing.
24097         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
24098         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
24099         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
24100         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
24101         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
24102         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
24103         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
24104         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
24105         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
24106         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
24107         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24108         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24109         undef any previous version and define our own version, for
24110         simplicity and consistency with the new macros for types.
24111         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
24112         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
24113         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
24114         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
24115         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
24116         @WINT_T_SUFFIX@ to keep things simple here.
24117         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
24118         Simplify by assuming typical 8/16/32/64 host, since we're
24119         already doing that elsewhere anyway.
24120         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
24121         and assume long long int is 64 bits if available.  This
24122         speeds up 'configure'.
24123
24124 2006-07-01  Eric Blake  <ebb9@byu.net>
24125
24126         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
24127         Reported by Andreas Buening.
24128
24129 2006-07-01  Eric Blake  <ebb9@byu.net>
24130
24131         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
24132
24133 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
24134
24135         * lib/getaddrinfo.c: fixed typo
24136
24137 2006-06-29  Jim Meyering  <jim@meyering.net>
24138
24139         * modules/strftime (Maintainer): Add my name, since with the
24140         FPRINTFTIME changes strftime.c has forked from glibc.
24141
24142 2006-06-29  Eric Blake  <ebb9@byu.net>
24143
24144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
24145
24146 2006-06-29  Eric Blake  <ebb9@byu.net>
24147
24148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
24149
24150 2006-06-29  Eric Blake  <ebb9@byu.net>
24151
24152         * lib/stat_.h: New file.
24153
24154 2006-06-29  Eric Blake  <ebb9@byu.net>
24155
24156         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
24157         unused static function.
24158
24159 2006-06-29  Eric Blake  <ebb9@byu.net>
24160
24161         * doc/functions.texi (Function Portability): Document missing lstat
24162         on mingw.
24163
24164 2006-06-29  Eric Blake  <ebb9@byu.net>
24165
24166         * MODULES.html.sh: Add sys_stat.
24167         * modules/sys_stat: New module.
24168         * modules/mkstemp (Depends-on): Add sys_stat.
24169
24170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24171
24172         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
24173
24174 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24175
24176         * m4/c-bs-a.m4: Removed.
24177
24178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
24179
24180         * lib/strftime.c: Assume strftime() exists.
24181
24182 2006-06-29  Derek Price  <derek@ximbiot.com>
24183
24184         * modules/c-bs-a: Removed - \a is C89.
24185         * MODULES.html.sh: Remove c-bs-a.
24186
24187 2006-06-29  Bruno Haible  <bruno@clisp.org>
24188
24189         * modules/wcwidth (License): Change to LGPL.
24190
24191 2006-06-28  Simon Josefsson  <jas@extundo.com>
24192
24193         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
24194         on _WIN32.
24195
24196         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
24197         getnameinfo.
24198
24199 2006-06-28  Simon Josefsson  <jas@extundo.com>
24200
24201         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
24202
24203 2006-06-28  Simon Josefsson  <jas@extundo.com>
24204
24205         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
24206         functions there.  It will succeed on Windows XP, but on Windows
24207         2000 and (presumably) earlier, it will fail, and use the internal
24208         re-implementation.
24209         (use_win32_p): New function.
24210         (getaddrinfo): Use strtoul on servname, to support numeric ports.
24211         Support AI_NUMERICSERV to disable getservbyname.
24212         (getnameinfo): New function, only supports
24213         NI_NUMERICHOST|NI_NUMERICSERV for now.
24214
24215         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
24216         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
24217         getnameinfo.
24218
24219 2006-06-28  Eric Blake  <ebb9@byu.net>
24220
24221         * modules/wcwidth: New file.
24222         * modules/mbchar (Depends-on): Add wcwidth.
24223         * modules/mbswidth (Depends-on): Add wcwidth.
24224         * MODULES.html.sh: Add wcwidth.
24225
24226 2006-06-28  Eric Blake  <ebb9@byu.net>
24227
24228         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
24229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
24230
24231 2006-06-28  Eric Blake  <ebb9@byu.net>
24232
24233         * lib/xvasprintf.h: Fix comments.
24234
24235 2006-06-28  Eric Blake  <ebb9@byu.net>
24236
24237         * lib/mbchar.h (wcwidth): Include wcwidth.h.
24238         * lib/mbswidth.c (wcwidth): Move from here...
24239         * lib/wcwidth.h: ...to this new file.
24240
24241 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24242
24243         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
24244
24245         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
24246         it's obsolete.
24247         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
24248
24249 2006-06-28  Derek R. Price  <derek@ximbiot.com>
24250
24251         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
24252         Autoconf 2.60 says this stuff was obsolete.
24253
24254 2006-06-28  Bruno Haible  <bruno@clisp.org>
24255
24256         * modules/wcwidth (Files): Add m4/wchar_t.m4.
24257
24258 2006-06-28  Bruno Haible  <bruno@clisp.org>
24259
24260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
24261         gt_TYPE_WCHAR_T.
24262
24263 2006-06-28  Bruno Haible  <bruno@clisp.org>
24264
24265         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
24266         declaration for wcwidth.
24267         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
24268
24269 2006-06-28  Bruno Haible  <bruno@clisp.org>
24270
24271         * lib/mkdtemp.c [MINGW]: Include <io.h>.
24272         (mkdir): Define using _mkdir.
24273
24274 2006-06-28  Bruno Haible  <bruno@clisp.org>
24275
24276         * lib/getaddrinfo.h: Fix POSIX URL.
24277         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
24278         _WIN32.
24279         (use_win32_p): Make static.
24280         (getaddrinfo): Reject service name if it is empty or does not consist
24281         solely of decimal digits, or if its value is > 65535.
24282         (getnameinfo): Remove useless casts.
24283
24284 2006-06-27  Simon Josefsson  <jas@extundo.com>
24285
24286         * modules/sys_select: New file, suggested by Bruno Haible, Paul
24287         Eggert and Martin Lambers.
24288
24289 2006-06-27  Simon Josefsson  <jas@extundo.com>
24290
24291         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
24292         Eggert and Martin Lambers.
24293
24294 2006-06-27  Bruno Haible  <bruno@clisp.org>
24295
24296         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
24297         result to 0, not to empty.
24298         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
24299
24300 2006-06-27  Bruno Haible  <bruno@clisp.org>
24301
24302         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
24303
24304 2006-06-26  Simon Josefsson  <jas@extundo.com>
24305
24306         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
24307         present.
24308
24309 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
24310
24311         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
24312         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
24313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
24314
24315 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
24316
24317         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
24318
24319 2006-06-26  Bruno Haible  <bruno@clisp.org>
24320
24321         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
24322
24323 2006-06-26  Bruno Haible  <bruno@clisp.org>
24324
24325         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
24326
24327 2006-06-26  Bruno Haible  <bruno@clisp.org>
24328
24329         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
24330         SGI C compiler in pre-C99 mode.
24331         Suggested by Mark D. Baushke and Larry Jones.
24332
24333 2006-06-26  Bruno Haible  <bruno@clisp.org>
24334
24335         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
24336         WCHAR_MAX.
24337         Reported by Mark D. Baushke and Larry Jones.
24338
24339 2006-06-26  Bruno Haible  <bruno@clisp.org>
24340
24341         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
24342         in pre-C99 mode.
24343         Suggested by Mark D. Baushke and Larry Jones.
24344
24345 2006-06-23  Simon Josefsson  <jas@extundo.com>
24346             Bruno Haible  <bruno@clisp.org>
24347
24348         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
24349         Emit mostlyclean-local rule.
24350         (func_emit_tests_Makefile_am): Likewise.
24351         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
24352
24353 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
24354
24355         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
24356
24357 2006-06-23  Bruno Haible  <bruno@clisp.org>
24358
24359         * tests/test-stdint.c: Update to match ISO C 99 Technical
24360         Corrigendum 1.
24361
24362 2006-06-23  Bruno Haible  <bruno@clisp.org>
24363
24364         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
24365
24366 2006-06-23  Bruno Haible  <bruno@clisp.org>
24367
24368         * lib/stdint_.h: Treat IRIX like OpenBSD.
24369
24370 2006-06-23  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
24373         ISO C 99 Technical Corrigendum 1.
24374
24375 2006-06-22  Simon Josefsson  <jas@extundo.com>
24376
24377         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
24378         MinGW.
24379
24380 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
24381
24382         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
24383         needed.  Some compiler complained about some of them.  Problem reported
24384         by Larry Jones in
24385         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
24386
24387 2006-06-21  Simon Josefsson  <jas@extundo.com>
24388
24389         * tests/test-getaddrinfo.c: New file.
24390
24391         * modules/getaddrinfo-tests: New file.
24392
24393         * MODULES.html.sh: Add inet_pton.
24394
24395         * modules/inet_pton: New file.
24396
24397 2006-06-21  Simon Josefsson  <jas@extundo.com>
24398
24399         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
24400         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
24401         of using the (limited) gnulib implementation on Windows XP.
24402
24403         * m4/inet_pton.m4: New file.
24404
24405 2006-06-21  Simon Josefsson  <jas@extundo.com>
24406
24407         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
24408         variable.
24409
24410         * lib/socket_.h: Don't define WINVER.
24411
24412         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
24413         slightly modified to work in gnulib.
24414
24415 2006-06-21  Simon Josefsson  <jas@extundo.com>
24416
24417         * doc/gnulib.texi (Windows sockets): Add.
24418
24419 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24420
24421         * lib/read-file.c (fread_file): Start with buffer allocation of
24422         0 bytes rather than 1 byte; this simplifies the code.
24423         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
24424         code to free buffer and save/restore errno.
24425         (internal_read_file): Remove unused local.
24426
24427 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24428
24429         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
24430         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
24431         Problem reported by Denis Excoffier in
24432         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
24433
24434 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24435
24436         * modules/sys_socket, modules/socklen: Include sys/types since
24437         FreeBSD 4.x's sys/socket.h needs it.
24438
24439 2006-06-19  Simon Josefsson  <jas@extundo.com>
24440
24441         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
24442
24443 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
24444
24445         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
24446
24447 2006-06-19  Bruno Haible  <bruno@clisp.org>
24448
24449         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
24450         and FULL_PATH_INTTYPES_H in angle brackets.
24451         Reported by Mark D. Baushke <mdb@gnu.org>.
24452
24453 2006-06-17  Eric Blake  <ebb9@byu.net>
24454
24455         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
24456         errno.
24457
24458 2006-06-17  Bruno Haible  <bruno@clisp.org>
24459
24460         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
24461         <sys/inttypes.h>.
24462
24463 2006-06-17  Bruno Haible  <bruno@clisp.org>
24464
24465         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
24466         whether errno is declared. Assume <errno.h> declares errno.
24467
24468 2006-06-17  Bruno Haible  <bruno@clisp.org>
24469
24470         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
24471
24472 2006-06-17  Bruno Haible  <bruno@clisp.org>
24473
24474         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
24475         problem on Solaris 2.5.1.
24476
24477 2006-06-16  Eric Blake  <ebb9@byu.net>
24478
24479         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
24480         * lib/unicodeio.c [!defined errno]: Likewise.
24481         * lib/strtol.c [!defined errno]: Likewise.
24482         * lib/strtod.c [!defined errno]: Likewise.
24483
24484 2006-06-15  Eric Blake  <ebb9@byu.net>
24485
24486         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
24487
24488 2006-06-15  Eric Blake  <ebb9@byu.net>
24489
24490         * config/srclist.txt (ssize_t.m4): Lose sync.
24491
24492 2006-06-15  Bruno Haible  <bruno@clisp.org>
24493
24494         * modules/stdint (Files): Include m4/full-header-path.m4,
24495         m4/size_max.m4, m4/wchar_t.m4.
24496         (Makefile.am): Many more substitutions.
24497         * modules/stdint-tests: New file.
24498         * tests/test-stdint.c: New file.
24499
24500 2006-06-15  Bruno Haible  <bruno@clisp.org>
24501
24502         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
24503         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
24504         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
24505         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
24506         gl_CHECK_TYPE_SAME): New macros.
24507
24508 2006-06-15  Bruno Haible  <bruno@clisp.org>
24509
24510         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
24511
24512 2006-06-15  Bruno Haible  <bruno@clisp.org>
24513
24514         * lib/stdint_.h: Rewritten to be fully auto-configured.
24515         Fixes bug on HP-UX/IA64.
24516
24517 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24518
24519         * lib/getdate.y (__attribute__): Don't define if already defined.
24520         Problem reported by Larry Jones.
24521         * lib/utimens.c (__attribute__): Likewise.
24522
24523 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
24524
24525         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
24526         reported by Andreas Schwab.
24527
24528 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24529             Bruno Haible  <bruno@clisp.org>
24530
24531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
24532         check for the declaration of strnlen and a run test that exposes the
24533         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
24534         rpl_strndup.
24535
24536 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24537             Bruno Haible  <bruno@clisp.org>
24538
24539         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
24540
24541 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24542
24543         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
24544         compile test, for Tru64 4.0D.
24545
24546 2006-05-28  Karl Berry  <karl@gnu.org>
24547
24548         * config/srclist.txt (printf-args.c): lose sync.
24549
24550 2006-05-26  Martin Lambers  <marlam@marlam.de>
24551
24552         * lib/getpass.c: Updates the test for the native W32 API, and adds
24553         missing includes, thus fixing compilation warnings.
24554
24555 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
24556
24557         * lib/exclude.c (exclude_fnmatch): New function.
24558         (excluded_file_name): Call exclude_fnmatch.
24559         * lib/exclude.h (excluded_file_name): New prototype
24560
24561 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
24562
24563         * lib/tempname.c (small_open, large_open): New macros.
24564         (__open, __open64) [!_LIBC]: Remove.
24565         (__gen_tempname): Use small_open and large_open instead of __open
24566         and __open64.  This fixes a portability bug on HP-UX 11.11i
24567         reported by Simon Wing-Tang in
24568         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
24569
24570 2006-05-24  Bruno Haible  <bruno@clisp.org>
24571
24572         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
24573         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
24574         Reported by Thorsten Maerz <torte@netztorte.de> via
24575         Aaron Stone <aaron@serendipity.cx>.
24576
24577 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
24580         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
24581         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
24582         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
24583         not really conditional on the cache.
24584         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
24585
24586 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24587
24588         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
24589         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
24590         (my_usleep): Don't mishandle maximum value.
24591
24592 2006-05-19  Jim Meyering  <jim@meyering.net>
24593
24594         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
24595
24596 2006-05-17  Bruno Haible  <bruno@clisp.org>
24597
24598         Cygwin portability.
24599         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
24600
24601 2006-05-17  Bruno Haible  <bruno@clisp.org>
24602
24603         * lib/stdint_.h: Fix recognition of Cygwin.
24604
24605 2006-05-15  Bruno Haible  <bruno@clisp.org>
24606
24607         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
24608         on libtool patch by Ralf Wildenhues.
24609
24610 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24611
24612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
24613         test for C99 conformance; (bool) 0.5 is an integer constant
24614         expression, but (bool) -0.5 is not.  Problem reported by Fedor
24615         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
24616
24617 2006-05-11  Simon Josefsson  <jas@extundo.com>
24618
24619         * m4/xvasprintf.m4: Fix obvious typo.
24620
24621 2006-05-11  Jim Meyering  <jim@meyering.net>
24622
24623         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
24624         James Lemley.
24625
24626 2006-05-10  Simon Josefsson  <jas@extundo.com>
24627
24628         * lib/md4.c: Typo fix, update copyright years.
24629         (K1, K2): Don't use L because it turn computations into 64-bit on
24630         64-bit platforms.
24631
24632 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24633
24634         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
24635         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
24636         unwanted sign propagation, e.g., on hosts with 64-bit int.
24637         There still are some problems with reeelly weird theoretical hosts
24638         (e.g., 33-bit int) but it's not worth worrying about now.
24639         * lib/sha1.c (rol): Likewise.
24640         (K1, K2, K3, K4): Remove unnecessary L suffix.
24641
24642 2006-05-10  Bruno Haible  <bruno@clisp.org>
24643
24644         * lib/des.c: Cast to avoid warnings.
24645
24646 2006-05-09  Bruno Haible  <bruno@clisp.org>
24647
24648         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
24649         (Depends-on): Depend also on xsize, stdarg.
24650         (configure.ac): Add gl_XVASPRINTF.
24651
24652 2006-05-09  Bruno Haible  <bruno@clisp.org>
24653
24654         * m4/xvasprintf.m4: New file.
24655
24656 2006-05-09  Bruno Haible  <bruno@clisp.org>
24657
24658         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
24659         (EOVERFLOW): Define fallback value.
24660         (xstrcat): New function.
24661         (xvasprintf): Recognize the special case of a string concatenation.
24662
24663 2006-05-08  Eric Blake  <ebb9@byu.net>
24664
24665         * gnulib-tool (func_version): Base copyright year on CVS date.
24666         (func_emit_copyright_notice): New function.
24667         (func_emit_lib_Makefile_am): Use it.
24668         (func_emit_tests_Makefile_am): Likewise.
24669         (func_import): Likewise.
24670
24671 2006-05-08  Bruno Haible  <bruno@clisp.org>
24672
24673         * modules/stdarg: New file.
24674         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
24675
24676 2006-05-08  Bruno Haible  <bruno@clisp.org>
24677
24678         * m4/stdarg.m4: New file, from GNU gettext.
24679
24680 2006-05-08  Bruno Haible  <bruno@clisp.org>
24681
24682         * config/srclist.txt (build-aux/config.rpath): different from latest
24683         release.
24684
24685 2006-05-08  Bruno Haible  <bruno@clisp.org>
24686
24687         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
24688
24689 2006-05-05  Jim Meyering  <jim@meyering.net>
24690
24691         * m4/warning.m4: New file, derived from bison's file by the same name.
24692
24693 2006-05-03  Bruno Haible  <bruno@clisp.org>
24694
24695         * lib/stdint_.h: Shorter URL.
24696         * lib/inttypes.h: Likewise.
24697
24698 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24699
24700         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
24701
24702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24703
24704         * lib/verify.h: Document the internals better.  Most of this change
24705         was written by Bruno Haible.
24706
24707 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * doc/verify.texi: New file, partly based on a proposal by
24710         Bruno Haible.
24711
24712 2006-05-02  Bruno Haible  <bruno@clisp.org>
24713
24714         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
24715         test from here...
24716         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
24717
24718 2006-04-29  Bruno Haible  <bruno@clisp.org>
24719
24720         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
24721         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
24722
24723 2006-04-29  Bruno Haible  <bruno@clisp.org>
24724
24725         * gnulib-tool: Make --update option actually work.
24726
24727 2006-04-29  Bruno Haible  <bruno@clisp.org>
24728
24729         * doc/gcd.texi: New file.
24730         * doc/gnulib.texi: Include it.
24731
24732 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24733
24734         * lib/getdate.y (get_date): When adding relative date, start with the
24735         initial time, not with the result of the first mktime call.
24736
24737 2006-04-25  Bruno Haible  <bruno@clisp.org>
24738
24739         * gnulib-tool (func_import): Output the include directives in three
24740         blocks, sorted separately.
24741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24742
24743 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24744
24745         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
24746         to define main with arguments, for C++.  Reported by Eric Blake.
24747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
24748         Prefer 'int main ()' to 'int main (void)', for C++.
24749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
24751         for 'main', for C99 and C++.
24752
24753 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
24756         Don't assume that exit status -1 is valid.
24757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24758         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24759         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24760         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
24761         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
24762         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
24763         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
24764         functions can be used without declaring them, or that you can
24765         exit with status -1.
24766         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24767
24768 2006-04-24  Karl Berry  <karl@gnu.org>
24769
24770         * config/srclist.txt (longdouble.m4): sync lost.
24771
24772 2006-04-24  Eric Blake  <ebb9@byu.net>
24773
24774         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
24775
24776 2006-04-24  Bruno Haible  <bruno@clisp.org>
24777
24778         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
24779         poll() implementation in AIX.
24780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24781
24782 2006-04-24  Bruno Haible  <bruno@clisp.org>
24783
24784         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
24785         assigned exactly once.
24786
24787 2006-04-23  Claudio Fontana  <claudio@gnu.org>
24788             Bruno Haible  <bruno@clisp.org>
24789
24790         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
24791         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
24792         for AM_CPPFLAGS.
24793
24794 2006-04-23  Bruno Haible  <bruno@clisp.org>
24795
24796         * modules/copy-file: Depend on unistd.
24797         * modules/execute: Likewise.
24798         * modules/fatal-signal: Likewise.
24799         * modules/findprog: Likewise.
24800         * modules/mkdtemp : Likewise.
24801         * modules/pipe: Likewise.
24802         * modules/wait-process: Likewise.
24803
24804 2006-04-23  Bruno Haible  <bruno@clisp.org>
24805
24806         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
24807         condition was already detected.
24808         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24809
24810 2006-04-23  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/copy-file.c: Include <unistd.h> unconditionally.
24813         * lib/execute.c: Likewise.
24814         * lib/fatal-signal.c: Likewise.
24815         * lib/findprog.c: Likewise.
24816         * lib/mkdtemp.c: Likewise.
24817         * lib/pipe.h: Likewise.
24818         * lib/pipe.c: Likewise.
24819         * lib/wait-process.h: Likewise.
24820
24821 2006-04-23  Bruno Haible  <bruno@clisp.org>
24822
24823         * gnulib-tool (func_usage): Fix --import description. Document
24824         --update.
24825         (func_import): Create temporary file in a temporary directory, if
24826         --dry-run is specified. Silence errors from 'grep' when there are no
24827         m4 files in $m4dir.
24828         (func_create_testdir): Silence errors from 'grep' when there are no
24829         m4 files in $m4dir.
24830         Reported by Karl Berry <karl@freefriends.org>.
24831
24832 2006-04-20  Bruno Haible  <bruno@clisp.org>
24833
24834         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
24835         one argument, so that the code will be portable to Autoconf 2.60.
24836         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
24837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24838         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
24839
24840 2006-04-19  Derek Price  <derek@ximbiot.com>
24841             Eric Blake  <ebb9@byu.net>
24842
24843         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
24844         rather than "/full/path.h".  Update comment to match.  Shorten &
24845         generalize m4_translit call via AS_TR_CPP.
24846
24847 2006-04-19  Derek Price  <derek@ximbiot.com>
24848             Eric Blake  <ebb9@byu.net>
24849
24850         * lib/inttypes.h: Correct grammar in comment.
24851
24852 2006-04-18  Derek Price  <derek@ximbiot.com>
24853             Paul Eggert  <eggert@cs.ucla.edu>
24854
24855         * modules/inttypes: New file.
24856         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
24857
24858 2006-04-18  Derek Price  <derek@ximbiot.com>
24859             Paul Eggert  <eggert@cs.ucla.edu>
24860
24861         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
24862         New files.
24863
24864 2006-04-18  Derek Price  <derek@ximbiot.com>
24865             Paul Eggert  <eggert@cs.ucla.edu>
24866
24867         * lib/inttypes.h: New file.
24868         * lib/strtoimax.c: Assume <inttypes.h>.
24869
24870 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
24871
24872         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
24873         isn't mounted.  Problem reported by Kir Kolyshkin.
24874
24875 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24876
24877         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
24878         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
24879         Derek R. Price.
24880         * lib/regex.h (RE_DUP_MAX): Update comment to match current
24881         implementation.
24882
24883 2006-04-12  Eric Blake  <ebb9@byu.net>
24884
24885         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
24886         is now done automatically by the corresponding Autoconf macro.
24887
24888 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24889
24890         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
24891         time_r.h.
24892
24893 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
24894
24895         Merge regex changes from libc, removing some of our
24896         POSIX-conformance changes that were rejected and redoing them in a
24897         less-intrusive way.
24898
24899         * lib/regcomp.c (re_compile_internal, init_dfa):
24900         Length arg is now size_t, not Idx.  All uses changed.
24901         (peek_token): Forward decl now says internal_function.
24902         (__re_error_msgid, __re_error_msgid_idx):
24903         Now static rather than extern with attribute_hidden.
24904         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
24905         For some reason libc prefers K&R style defns for external functions.
24906         (regerror) [!defined _LIBC]: Likewise.
24907         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
24908         (seek_collating_symbol_entry, lookup_collation_sequence_value):
24909         (build_range_exp, build_collating_symbol):
24910         Use K&R-style defn.
24911         (re_compile_fastmap): Use '\0' to memset, not 0.
24912         (utf8_sb_map): Make the calculations more obvious.
24913         (init_dfa, parse_bracket_exp, build_charclass_op):
24914         Call calloc and cast result, as glibc does.
24915         (init_word_char, fetch_token, peek_token, peek_token_bracket):
24916         (build_range_exp, build_collating_symbol):
24917         Now internal functions.
24918
24919         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
24920
24921         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
24922         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
24923         Don't depend on VMS; depend on __VMS instead, for POSIX
24924         namespace cleanness.
24925         (regoff_t): Define to ssize_t, not long int.
24926
24927         Remove the REG_ macros named below.  Instead, make the old names
24928         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
24929         __USE_GNU_REGEX.
24930         (REG_BACKSLASH_ESCAPE_IN_LISTS):
24931         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
24932         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
24933         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
24934         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
24935         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
24936         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
24937         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
24938         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
24939         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
24940         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
24941         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
24942         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
24943         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
24944         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
24945         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
24946         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
24947         (REG_NREGS):
24948         Remove.  All uses replaced by the old RE_* names.
24949         (RE_BACKSLASH_ESCAPE_IN_LISTS):
24950         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
24951         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
24952         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
24953         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
24954         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
24955         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
24956         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
24957         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
24958         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
24959         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
24960         Don't bother having these macros be independent of each others'
24961         values, since they no longer exist in the POSIX name space.
24962
24963         Rename the following member names back to their old names,
24964         unless !__USE_GNU_REGEX.  All uses changed back.
24965         (buffer): Renamed from re_buffer.
24966         (allocated): Renamed from re_allocated.
24967         (used): Renamed from re_used.
24968         (syntax): Renamed from re_syntax.
24969         (fastmap): Renamed from re_fastmap.
24970         (translate): Renamed from re_translate.
24971         (can_be_null): Renamed from re_can_be_null.
24972         (regs_allocated): Renamed from re_regs_allocated.
24973         (fastmap_accurate): Renamed from re_fastmap_accurate.
24974         (no_sub): Renamed from re_no_sub.
24975         (not_bol): Renamed from re_not_bol.
24976         (not_eol): Renamed from re_not_eol.
24977         (newline_anchor): Renamed from re_newline_anchor.
24978         (num_regs): Renamed from rm_num_regs.
24979         (start): Renamed from rm_start.
24980         (end): Renamed from rm_end.
24981
24982         (free_state): Move up a bit.
24983
24984         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
24985         #define to be empty.
24986         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
24987         when that is what is intended.
24988         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
24989         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
24990         (MAX): New macro.
24991         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
24992         All uses changed back to re_malloc, etc.  It's now the caller's
24993         responsibility to check for overflow; all callers changed.
24994         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
24995         (re_x2nrealloc): Remove.
24996         (free_state): Remove decl.
24997
24998         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
24999         (re_set_registers, re_exec):
25000         Use K&R-style defn.
25001
25002         2006-01-31  Roland McGrath  <roland@redhat.com>
25003
25004         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
25005         Reported by Mike Frysinger <vapier@gentoo.org>.
25006
25007         2006-01-15  Andreas Jaeger  <aj@suse.de>
25008
25009         [BZ #1950]
25010         * lib/regex_internal.c (re_string_reconstruct): Adjust for
25011         build_wcs_upper_buffer change.
25012         (build_wcs_upper_buffer): Change return type.
25013
25014         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
25015
25016         * lib/regex_internal.h: Include <stdint.h> if available.
25017
25018         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
25019
25020         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
25021
25022         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25023
25024         * lib/regcomp.c: Adjust for changed secondary hash function.
25025
25026         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
25027
25028         * lib/regex.h: Pretty printing.
25029         Clean up namespace a bit.
25030
25031         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
25032
25033         * lib/regexec.c (update_cur_sifted_state, check_arrival,
25034         check_arrival_add_next_nodes): Avoid using uninitialized variable.
25035
25036         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
25037                     Ulrich Drepper  <drepper@redhat.com>
25038
25039         [BZ #1302]
25040         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
25041         changed.
25042         (bitset_word_t): Renamed from bitset_word.  All uses changed.
25043
25044         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
25045
25046         [BZ #281]
25047         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
25048         * lib/regcomp.c: Remove unnecessary uses of
25049         unsigned RE_TRANSLATE_TYPE.
25050         * lib/regex_internal.h: Likewise.
25051         * lib/regex_internal.c: Likewise.
25052         * lib/regexec.c: Likewise.
25053         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
25054
25055         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
25056
25057         * lib/regexec.c (find_recover_state): Remove unnecessary
25058         initialization.
25059         (transit_state_bkref): Make DFA a const pointer.
25060         (get_subexp): Likewise.
25061         (check_arrival): Likewise.
25062         (update_cur_sifted_state): Likewise.
25063         (re_search_internal): Likewise.
25064         (prune_impossible_nodes): Likewise.
25065         (acquire_init_state_context): Likewise.
25066         (proceed_next_node): Likewise.
25067         (set_regs): Likewise.
25068         (free_fail_stack_return): Likewise.
25069         (check_arrival_expand_ecl): Mark DFA parameter as const.
25070         (check_arrival_expand_ecl_sub): Likewise.
25071         (check_subexp_limits): Likewise.
25072         (sub_epsilon_src_nodes):  Likewise.
25073         (add_epsilon_src_nodes):  Likewise.
25074         (merge_state_array): Likewise.
25075         (update_regs): Likewise.
25076         (build_trtable): Likewise.
25077         (sift_states_backward): Mark MCTX parameter as const.
25078         (build_sifted_states): Likewise.
25079         (update_cur_sifted_state): Likewise.
25080         (sift_states_mkref): Likewise.
25081         (check_arrival_expand_ecl): Mark eclosure as const.
25082         (check_dst_limits_calc_pos_1): Likewise.
25083         * lib/regex_internal.h (re_match_context_t): Make dfa a const
25084         pointer.
25085
25086         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
25087
25088         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
25089         (transit_state_sb): Likewise.
25090         (transit_state_mb): Likewise.
25091         (sift_states_iter_mb): Likewise.
25092         (check_arrival_add_next_nodes): Likewise.
25093         (check_node_accept_bytes): Change first parameter to pointer-to-const.
25094         [_LIBC] (re_search_2_stub): Use mempcpy.
25095
25096         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
25097         mbrtowc for very simple UTF-8 case.
25098
25099         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
25100         a pointer-to-const.
25101         (re_acquire_state_context): Likewise.
25102         * lib/regex_internal.h: Adjust prototypes.
25103
25104         * lib/regex.c: Prevent using C++ compilers.
25105
25106         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
25107         (re_acquire_state_context): Likewise.
25108
25109 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25110
25111         * modules/regex (Depends-on): Add ssize_t.
25112
25113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25114
25115         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
25116         translation table.
25117
25118 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
25119
25120         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
25121
25122 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
25123             Bruno Haible  <bruno@clisp.org>
25124
25125         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
25126         <sys/types.h> and <inttypes.h>.
25127
25128 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25129
25130         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
25131         `__error_t_defined', so argp.h will not typedef the former.
25132
25133 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25134
25135         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
25136         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
25137         glibc names.  Even if glibc is changed to conform to POSIX, the
25138         traditional names will be available anyway, since regex depends on
25139         the extensions module.  Also, fix a longstanding typo in the
25140         implementation of Spencer ERE test #75 from grep 2.3.  Problems
25141         reported by Emanuele Giaquinta.  Also, change sense of cached
25142         variable, so that the message makes sense.
25143
25144 2006-03-24  Simon Josefsson  <jas@extundo.com>
25145
25146         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
25147         including some doc fixes.
25148         (base64_encode_alloc): Fix +1 bug on allocation failures.
25149
25150 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25151
25152         * lib/base64.c (base64_encode): Do not read past end of array with
25153         unsanitized input on systems with CHAR_BIT > 8.
25154
25155 2006-03-24  Eric Blake  <ebb9@byu.net>
25156
25157         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
25158
25159 2006-03-22  Karl Berry  <karl@gnu.org>
25160
25161         * config/srclist.txt (*setenv.[ch]): get from coreutils.
25162         * config/srclistvars.sh (COREUTILS): new var.
25163
25164 2006-03-17  Jim Meyering  <jim@meyering.net>
25165
25166         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
25167         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
25168
25169 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25170
25171         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
25172         no longer needs it.  Instead, check that regoff_t is as least
25173         as wide as ptrdiff_t.
25174
25175         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
25176         so that our regex.h stays compatible with the installed regex.
25177         This is helpful for installers who configure --without-included-regex.
25178         Problem reported by Emanuele Giaquinta.
25179
25180 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
25181
25182         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
25183         Typedef to long int, not to off_, as POSIX will likely change
25184         in that direction.
25185
25186 2006-03-15  Eric Blake  <ebb9@byu.net>
25187
25188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
25189
25190 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25191
25192         * lib/argp-help.c (validate_uparams): Fix typo
25193         * lib/argp-parse.c (argp_default_options): Consistently begin help
25194         messages with a lowercase letter.
25195
25196 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25197
25198         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
25199         overrun buffers and shouldn't be used (much as gets shouldn't be
25200         used).
25201         * lib/time_r.c (asctime_r, ctime_r): Likewise.
25202
25203 2006-03-08  Simon Josefsson  <jas@extundo.com>
25204
25205         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
25206         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25207
25208 2006-03-08  Simon Josefsson  <jas@extundo.com>
25209
25210         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
25211         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25212
25213 2006-03-08  Simon Josefsson  <jas@extundo.com>
25214
25215         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
25216         signal that configure disabled the device.
25217
25218 2006-03-08  Simon Josefsson  <jas@extundo.com>
25219
25220         * build-aux/maint.mk: Fix refresh-po, to handle no translated
25221         languages.
25222
25223 2006-03-07  Simon Josefsson  <jas@extundo.com>
25224
25225         * modules/getopt (Depends-on): Add unistd.
25226
25227         * modules/unistd: New file.
25228
25229 2006-03-07  Simon Josefsson  <jas@extundo.com>
25230
25231         * modules/gc-random: New file.
25232
25233 2006-03-07  Simon Josefsson  <jas@extundo.com>
25234
25235         * m4/unistd_h.m4: New file.
25236
25237 2006-03-07  Simon Josefsson  <jas@extundo.com>
25238
25239         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
25240         test to be side-effect free by storing the result in the cache
25241         variable gl_cv_lib_readline, and moving the assignment of
25242         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
25243         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25244
25245 2006-03-07  Simon Josefsson  <jas@extundo.com>
25246
25247         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
25248         error on missing devices (the functions will return an error).
25249
25250         * m4/gc.m4: Move random stuff to gc-random.m4
25251
25252 2006-03-07  Simon Josefsson  <jas@extundo.com>
25253
25254         * lib/unistd_.h: New file.
25255
25256 2006-03-07  Simon Josefsson  <jas@extundo.com>
25257
25258         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
25259
25260 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25261
25262         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
25263         Problem reported by Juan Manuel Guerrero.
25264
25265 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25266
25267         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
25268         the unistd module.
25269         * lib/getlogin_r.c: Likewise.
25270         * lib/getlogin_r.h: Likewise.
25271         * lib/glob.c: Likewise.
25272         * lib/pagealign_alloc.c: Likewise.
25273         * lib/unistd_.h: Remove; no longer needed.
25274
25275 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25278         Add unistd.
25279         * modules/c-stack (Depends-on): Add unistd.
25280         * modules/getlogin_r: Likewise.
25281         * modules/glob: Likewise.
25282         * modules/pagealign_alloc: Likewise.
25283         * modules/unistd (Files): Remove lib/unistd_.h.
25284         (EXTRA_DIST): Remove.
25285         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
25286         need unistd_.h.
25287         (MOSTLYCLEANFILES): Remove unistd.h-t.
25288
25289 2006-03-03  Simon Josefsson  <jas@extundo.com>
25290
25291         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
25292
25293 2006-03-03  Simon Josefsson  <jas@extundo.com>
25294
25295         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
25296         libidn and bison.
25297
25298 2006-03-03  Simon Josefsson  <jas@extundo.com>
25299
25300         * build-aux/maint.mk: Add indent target.
25301
25302 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
25303
25304         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
25305         our replacement poll.h in any case, to avoid a differing
25306         declaration from a system header.  Seen on AIX.
25307
25308 2006-03-01  Simon Josefsson  <jas@extundo.com>
25309
25310         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
25311         <kasal@ucw.cz>.
25312
25313 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25314
25315         * modules/gettime (Depends-on): Add extensions module.
25316         * modules/nanosleep (Depends-on): Likewise.
25317         * modules/settime (Depends-on): Likewise.
25318
25319 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25320
25321         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
25322         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
25323         pedantically.
25324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25325         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
25326
25327         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
25328         not "==".  Reported by Ralf Wildenhues.
25329
25330 2006-03-01  Karl Berry  <karl@gnu.org>
25331
25332         * doc/Copyright/request-*: new files, synced from gnuorg.
25333
25334 2006-03-01  Karl Berry  <karl@gnu.org>
25335
25336         * config/srclist.txt (Copyright/*): new entries.
25337
25338 2006-02-28  Simon Josefsson  <jas@extundo.com>
25339
25340         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
25341
25342 2006-02-27  Simon Josefsson  <jas@extundo.com>
25343
25344         * lib/base64.h: Indent #define's.  From Jim Meyering
25345         <jim@meyering.net>.
25346
25347 2006-02-27  Jim Meyering  <jim@meyering.net>
25348
25349         Revert the change of 2006-02-24, so these files can continue
25350         to be sync'd from gettext.
25351         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
25352         of `config.h'.
25353
25354 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25355
25356         * modules/intprops: New file.
25357         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
25358         Add intprops.
25359         * modules/getloadavg (Files): Remove lib/intprops.h.
25360         (Depends-on): Add intprops.
25361         * modules/human: Likewise.
25362         * modules/inttostr: Likewise.
25363         * modules/openat: Likewise.
25364         * modules/sig2str: Likewise.
25365         * modules/userspec: Likewise.
25366         * modules/utimecmp: Likewise.
25367         * modules/xnanosleep: Likewise.
25368         * modules/xstrtol: Likewise.
25369
25370 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
25371
25372         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
25373         * modules/lock-tests (TESTS): Use $(EXEEXT).
25374         * modules/tls-tests: Likewise.
25375         * modules/argp-tests: Likewise.
25376         (check_PROGRAMS): New var, replacing...
25377         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
25378
25379 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25380
25381         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
25382         `config.h'.
25383
25384 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25385
25386         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
25387
25388 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25389
25390         Sync from coreutils.
25391         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
25392         gl_CHDIR_SAFER.
25393
25394 2006-02-22  Jim Meyering  <jim@meyering.net>
25395
25396         Sync from coreutils.
25397         * m4/chdir-safer.m4: New file.
25398
25399 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25400
25401         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
25402         AT_FDCWD exceeds INT_MAX.
25403         * lib/openat.h (AT_FDCWD): Likewise.
25404
25405 2006-02-17  Eric Blake  <address@hidden>
25406
25407         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
25408
25409 2006-02-16  Simon Josefsson  <jas@extundo.com>
25410
25411         * modules/getaddrinfo (Depends-on): Add sys_socket.
25412
25413 2006-02-15  Simon Josefsson  <jas@extundo.com>
25414
25415         * build-aux/maint.mk: Add dsyntax-check rule.
25416
25417 2006-02-15  Eric Blake  <ebb9@byu.net>
25418
25419         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
25420         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
25421         'present but cannot compile' warnings on cygwin.
25422         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
25423         use ws2tcpip.h if sys/socket.h works.
25424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
25425         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
25426
25427 2006-02-14  Simon Josefsson  <jas@extundo.com>
25428
25429         * modules/maintainer-makefile (Files): Rename.
25430
25431         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
25432         and (the local) Makefile.cfg to maint-cfg.mk.
25433
25434         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
25435         to the latter.
25436
25437         * modules/maintainer-makefile: New module.
25438
25439         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
25440         severaly stripped to make it possible to build it up from scratch
25441         with reliable tests.
25442
25443         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
25444         fixes to permit overriding the default actions when configure and
25445         makefile are not available.
25446
25447 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25448
25449         Sync from coreutils.
25450         * modules/lstat (Depends-on): Don't depend on xalloc.
25451         (License): Change from GPL to LGPL, since this is now simply a
25452         replacement for a libc function.
25453
25454 2006-02-14  Jim Meyering  <jim@meyering.net>
25455
25456         Sync from coreutils.
25457
25458         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
25459         failure on deficient systems, and simplify gnulib lgpl dependencies.
25460         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
25461         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
25462
25463         * lib/xalloc-die.c: Remove unused definition of N_.
25464
25465 2006-02-14  Jim Meyering  <jim@meyering.net>
25466
25467         Sync from coreutils.
25468         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
25469         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
25470         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
25471         double-quote uses of that variable, to accommodate the rare case in
25472         which getmntent is available in none of the libraries checked.  This
25473         happens at least on FreeBSD 5.0.
25474
25475 2006-02-13  Simon Josefsson  <jas@extundo.com>
25476
25477         * gnulib-tool (Usage): Fix --import, from
25478         karl@freefriends.org (Karl Berry).
25479
25480 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
25481
25482         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
25483
25484 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
25485
25486         * lib/argp-namefrob.h: Restore changes accidentally lost during the
25487         "autoupdate" on 2005-12-12.
25488
25489 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25490
25491         * modules/closeout (Depends-on): Remove atexit.
25492
25493 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25494
25495         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
25496         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
25497
25498 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
25499
25500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
25501         __EXTENSIONS__ if this causes compilation to fail.  Problem
25502         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
25503         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
25504
25505 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25506
25507         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
25508         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
25509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
25510         All uses changed.
25511
25512 2006-01-26  Simon Josefsson  <jas@extundo.com>
25513
25514         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
25515         prototype is visible on mingw32.
25516
25517         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
25518         for mingw32.
25519
25520         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
25521         mingw32).
25522
25523 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25524
25525         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
25526         attempt to open for write; this always fails, at least on POSIX
25527         hosts.  This reinstates the 2006-01-09 change, which was
25528         inadvertently removed.
25529
25530 2006-01-26  Bruno Haible  <bruno@clisp.org>
25531
25532         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
25533         Reported by Paul Eggert.
25534
25535 2006-01-26  Bruno Haible  <bruno@clisp.org>
25536             Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         * lib/stdbool_.h (_Bool)
25539         [(! (defined __cplusplus || defined __BEOS__)
25540           && !defined __GNUC__
25541           && !(defined __HP_cc || defined __xlc__
25542                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
25543                || defined __sgi))]:
25544         #define to signed char in these cases too; this simplifies
25545         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
25546         etc., separately) and makes it more conservative.
25547
25548 2006-01-25  Simon Josefsson  <jas@extundo.com>
25549
25550         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
25551         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
25552         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
25553
25554 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
25555
25556         * lib/argp-namefrob.h: Bugfix. Remove stray #
25557
25558 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25559
25560         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
25561         so that we test the test.
25562         Check for yet another HP-UX cc bug involving *bool |= bool.
25563
25564 2006-01-25  Karl Berry  <karl@gnu.org>
25565
25566         * config/srclist.txt (vasnprintf.c): sync lost.
25567
25568 2006-01-25  Jim Meyering  <jim@meyering.net>
25569
25570         Sync from the stable (b5) branch of coreutils:
25571
25572         * lib/fts.c (fts_children): Don't let close() clobber errno from
25573         failed fchdir().
25574
25575         * lib/fts.c (fts_stat): When following a symlink-to-directory,
25576         don't necessarily interpret stat-fails+lstat-succeeds as indicating
25577         a dangling symlink.  That can also happen at least for ELOOP.
25578         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
25579         FYI, this bug predates the inclusion of fts.c in coreutils.
25580
25581         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
25582         in their own block, so pre-c99 compilers don't object.
25583
25584         Avoid the double-free (first in fts_read, second in fts_close) that
25585         would occur when an `active' directory is made inaccessible (e.g.,
25586         via chmod a-x) during a traversal.
25587         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25588         before returning.  Reproduce this failure by
25589         mkdir -p a/b; cd a; chmod a-x . b
25590         Reported by Stavros Passas.
25591
25592 2006-01-25  Jim Meyering  <jim@meyering.net>
25593
25594         * lib/fileblocks.c: Remove more useless parentheses.
25595         * lib/readutmp.h: Likewise.
25596
25597 2006-01-25  Bruno Haible  <bruno@clisp.org>
25598
25599         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
25600         warnings.
25601         Reported by Paul Eggert.
25602
25603 2006-01-25  Bruno Haible  <bruno@clisp.org>
25604
25605         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
25606         rid of a trap command. For Solaris sh.
25607         Reported by Mark D. Baushke <mdb@gnu.org>.
25608
25609 2006-01-24  Simon Josefsson  <jas@extundo.com>
25610
25611         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
25612         Bruno.
25613
25614 2006-01-24  Karl Berry  <karl@gnu.org>
25615
25616         * config/srclist.txt (argp-namefrob.h): sync lost.
25617
25618 2006-01-24  Jim Meyering  <jim@meyering.net>
25619
25620         * modules/openat (Files): Add lib/intprops.h.
25621         From Mark D. Baushke.
25622
25623 2006-01-24  Jim Meyering  <jim@meyering.net>
25624
25625         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
25626         Reported by Mark D. Baushke.
25627
25628 2006-01-24  Jim Meyering  <jim@meyering.net>
25629
25630         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
25631
25632 2006-01-24  Bruno Haible  <bruno@clisp.org>
25633
25634         * modules/strnlen (Maintainer): Change from glibc to all.
25635
25636 2006-01-24  Bruno Haible  <bruno@clisp.org>
25637
25638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
25639         Patch by Paul Eggert.
25640
25641 2006-01-24  Bruno Haible  <bruno@clisp.org>
25642
25643         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
25644         already has it.
25645         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
25646         2005-11-26.
25647
25648         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
25649         'signed char' to avoid problems with the built-in _Bool type.
25650         Reported by Paul Eggert on 2005-11-26.
25651
25652 2006-01-24  Bruno Haible  <bruno@clisp.org>
25653
25654         * gnulib-tool (func_import): Avoid constructing complicated sed
25655         expressions inside backquote.
25656         Report and solution by Mark D. Baushke <mdb@gnu.org>.
25657
25658 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
25659
25660         These changes imported from libc.
25661         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
25662         test and two separate function calls.
25663         * lib/strndup.c (__strndup): Add libc_hidden_def.
25664
25665 2006-01-23  Simon Josefsson  <jas@extundo.com>
25666
25667         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
25668         Remove the test_*_SOURCES variable: automake infers it by default.
25669         * modules/tls-tests: Likewise.
25670
25671 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25672
25673         Work around porting bugs reported by Dieter in
25674         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
25675         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
25676         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
25677         Include "getopt.h" first, to check interface.
25678         (getenv): Declare only if defined HAVE_DECL_GETENV &&
25679         !HAVE_DECL_GETENV.
25680         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
25681         (__strndup): Revert to K&R-style function dfns, the glibc style.
25682         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
25683         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
25684         Include strnlen.h first, to get prototype properly.
25685         (strnlen): Renamed from __strnlen.
25686         Remove weak alias.
25687
25688 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25689
25690         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
25691
25692 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25693
25694         * config/srclist.txt: Adjust to reflect glibc reorganization.
25695         This affects only comments.
25696
25697 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
25698
25699          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
25700          Reported by Bruce Korb <bkorb@gnu.org>.
25701
25702 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
25705         to pacify gcc -Wswitch-default.
25706
25707 2006-01-22  Bruno Haible  <bruno@clisp.org>
25708
25709         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
25710         temporary buffer for sprintf, take into account the precision also
25711         for 'd', 'i', 'u', 'o', 'x', 'X'.
25712
25713 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25714
25715         * modules/argp-tests: New module
25716         * tests/test-argp.c: New file
25717         * tests/test-argp-2.sh: New file
25718
25719 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
25720
25721         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
25722         (__argp_base_name): Removed
25723         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
25724         typo.
25725         (__argp_base_name): Provide macro definition or extern declaration
25726         depending on the configuration
25727
25728 2006-01-20  Simon Josefsson  <jas@extundo.com>
25729
25730         * modules/inet_ntop (Depends-on): Depend on sys_socket.
25731
25732 2006-01-20  Simon Josefsson  <jas@extundo.com>
25733
25734         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
25735
25736 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25737
25738         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
25739         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
25740         Suggested by Bruno Haible.
25741
25742 2006-01-20  Karl Berry  <karl@gnu.org>
25743
25744         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
25745         until changes propagate, I guess.
25746
25747 2006-01-19  Simon Josefsson  <jas@extundo.com>
25748
25749         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
25750
25751 2006-01-19  Simon Josefsson  <jas@extundo.com>
25752
25753         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
25754
25755 2006-01-19  Simon Josefsson  <jas@extundo.com>
25756
25757         * gnulib-tool: Set check_PROGRAMS.
25758
25759         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25760         modules/des-tests, modules/gc-arcfour-tests,
25761         modules/gc-arctwo-tests, modules/gc-des-tests,
25762         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25763         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25764         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25765         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25766         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25767         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
25768         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
25769         test_*_SOURCES.
25770
25771 2006-01-18  Simon Josefsson  <jas@extundo.com>
25772
25773         * modules/socklen (Depends-on): Depend on sys_socket.
25774
25775 2006-01-18  Simon Josefsson  <jas@extundo.com>
25776
25777         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
25778         modules/des-tests, modules/gc-arcfour-tests,
25779         modules/gc-arctwo-tests, modules/gc-des-tests,
25780         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
25781         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
25782         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
25783         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
25784         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
25785         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
25786         $(EXEEXT) to automake TESTS variable, for mingw32.
25787
25788 2006-01-17  Simon Josefsson  <jas@extundo.com>
25789
25790         * modules/socklen (Include): Need sys/socket.h.
25791
25792 2006-01-17  Bruno Haible  <bruno@clisp.org>
25793
25794         * modules/ssize_t (Include): Add <sys/types.h>.
25795
25796 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25797
25798         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
25799         it's not portable and it doesn't work with cross-compiles.
25800         Problem reported by Bruno Haible.  Fix missing-$ typo in
25801         'test "gl_cv_ignore_unused_libraries" ...' that prevented
25802         -zignore from being used with Sun's C compiler.
25803
25804 2006-01-12  Simon Josefsson  <jas@extundo.com>
25805
25806         * lib/base64.c: Fix warning, reported by Bruno Haible
25807         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
25808
25809 2006-01-12  Bruno Haible  <bruno@clisp.org>
25810
25811         * modules/ldd: New file.
25812         * build-aux/ldd.sh.in: New file.
25813         * MODULES.html.sh (Support for building libraries and executables): Add
25814         ldd.
25815
25816 2006-01-12  Bruno Haible  <bruno@clisp.org>
25817
25818         * m4/ldd.m4: New file.
25819
25820 2006-01-12  Bruno Haible  <bruno@clisp.org>
25821
25822         * gnulib-tool (func_import, func_create_testdir): Don't go into an
25823         endless loop while replacing $auxdir with build-aux.
25824
25825 2006-01-11  Simon Josefsson  <jas@extundo.com>
25826
25827         * lib/stdint_.h (SIZE_MAX): Add missing (.
25828
25829 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25830
25831         Sync from coreutils.
25832         * lib/md5.c: Fix commentary typos.
25833         (alignof, UNALIGNED_P): No need for a GCC-specific version.
25834         * lib/md5.h (__attribute__): Remove; unused.
25835         * lib/sha1.c: Fix commentary to match md5 better.
25836         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
25837         so that we don't need to worry about alignment.  All uses changed.
25838         This merges the 2005-10-28 md5 change into sha1.
25839
25840 2006-01-11  Jim Meyering  <jim@meyering.net>
25841
25842         Sync from coreutils.
25843         * lib/md5.c (OP): Fix spacing.
25844
25845 2006-01-11  Bruno Haible  <bruno@clisp.org>
25846
25847         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25848         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
25849         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
25850
25851 2006-01-11  Bruno Haible  <bruno@clisp.org>
25852
25853         Ensure automatic ordering between gl_LOCK and gl_ARGP.
25854         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
25855         the "early" section as well.
25856
25857 2006-01-11  Bruno Haible  <bruno@clisp.org>
25858
25859         Avoid "ar: no archive members specified" error on MacOS X.
25860         * gnulib-tool (func_modules_add_dummy): New function.
25861         (func_import, func_create_testdir): Invoke it.
25862
25863 2006-01-11  Bruno Haible  <bruno@clisp.org>
25864
25865         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
25866         with $auxdir in AC_CONFIG_FILES statements.
25867
25868 2006-01-11  Bruno Haible  <bruno@clisp.org>
25869
25870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25871         Initialize also noinst_HEADERS to empty.
25872
25873 2006-01-11  Bruno Haible  <bruno@clisp.org>
25874
25875         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
25876         variables.
25877         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
25878         autoreconf.
25879
25880 2006-01-11  Bruno Haible  <bruno@clisp.org>
25881
25882         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
25883         overridable by the user.
25884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25885
25886 2006-01-10  Simon Josefsson  <jas@extundo.com>
25887
25888         * modules/sys_socket: New file.
25889
25890 2006-01-10  Simon Josefsson  <jas@extundo.com>
25891
25892         * m4/sys_socket_h.m4: New file.
25893
25894 2006-01-10  Simon Josefsson  <jas@extundo.com>
25895
25896         * lib/socket_.h: New file.
25897
25898 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25899
25900         * modules/readutmp (Maintainer): Add myself.
25901
25902 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25903
25904         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
25905         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
25906         People who are still concerned with buggy memcmp implementations
25907         can invoke gl_FUNC_MEMCMP themselves.
25908
25909 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25910
25911         * lib/regex_internal.h (BITSET_WORD_BITS):
25912         Work around a bug in 64-bit PGC (before version 6.1-2), where the
25913         preprocessor mishandles large unsigned values as if they were signed.
25914         Problem reported by Claudio Fontana in
25915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
25916
25917 2006-01-10  Jim Meyering  <jim@meyering.net>
25918
25919         Avoid the double-free (first in fts_read, second in fts_close) that
25920         would occur when an `active' directory is made inaccessible (e.g.,
25921         via chmod a-x) during a traversal.
25922         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
25923         before returning.  Reproduce this failure by
25924         mkdir -p a/b; cd a; chmod a-x . b
25925         Reported by Stavros Passas.
25926
25927         Sync from coreutils.
25928         * lib/sha1.c: Tweak grammar in a comment.
25929
25930 2006-01-10  Jim Meyering  <jim@meyering.net>
25931
25932         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
25933         Patch by Joerg Sonnenberger.
25934
25935 2006-01-10  Bruno Haible  <bruno@clisp.org>
25936
25937         * modules/readutmp: Depend on module free.
25938         * modules/strtok_r: Depend on module restrict.
25939
25940 2006-01-10  Bruno Haible  <bruno@clisp.org>
25941
25942         * modules/gettext (configure.ac): Add an invocation of
25943         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
25944
25945 2006-01-10  Bruno Haible  <bruno@clisp.org>
25946
25947         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
25948         Reported by Werner Lemberg <wl@gnu.org>.
25949
25950 2006-01-10  Bruno Haible  <bruno@clisp.org>
25951
25952         * lib/localcharset.c: Update from GNU gettext.
25953
25954 2006-01-10  Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/argp.h (__const): Remove macro. Use const instead.
25957         * lib/argp-fmtstream.h (__const): Likewise.
25958         * lib/glob_.h (__const): Remove macro.
25959         * lib/glob-libc.h: Use const instead of __const.
25960
25961 2006-01-10  Bruno Haible  <bruno@clisp.org>
25962
25963         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
25964         variable.
25965         Needed to avoid an automake error regarding the 'gettext' module.
25966
25967 2006-01-09  Simon Josefsson  <jas@extundo.com>
25968
25969         * modules/inet_ntop (Depends-on): Add restrict.
25970
25971 2006-01-09  Simon Josefsson  <jas@extundo.com>
25972
25973         * modules/gc-rijndael-tests (License): Put under LGPL.
25974
25975         * modules/gc-des-tests (License): Likewise.
25976
25977         * modules/gc-arcfour-tests (License): Likewise.
25978
25979         * modules/gc-arctwo-tests (License): Likewise.
25980
25981         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
25982
25983         * modules/gc-hmac-sha1-tests (Files): Likewise.
25984
25985         * modules/gc-hmac-md5-tests (License): Likewise.
25986
25987         * modules/gc-sha1-tests (License): Likewise.
25988
25989         * modules/gc-md5-tests (License): Likewise.
25990
25991         * modules/gc-md4-tests (License): Likewise.
25992
25993         * modules/gc-md2-tests (License): Likewise.
25994
25995         * modules/gc-tests (License): Likewise.
25996
25997         * modules/des-tests (License): Likewise.
25998
25999         * modules/md4-tests (License): Likewise.
26000
26001         * modules/md2-tests (License): Likewise.
26002
26003 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26004
26005         Sync from coreutils:
26006
26007         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
26008         * modules/lib-ignore: New file.
26009         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
26010         chdir-safer.m4, lchmod.m4.
26011         * modules/openat: Add mkdirat.c, openat-priv.h.
26012
26013 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26014
26015         Sync from coreutils.
26016         * m4/lib-ignore.m4: New file.
26017         * m4/lchmod.m4: New file.
26018
26019 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26020
26021         Sync from coreutils.
26022         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
26023         for write access: POSIX says that must fail.
26024         * lib/fts.c (diropen): Likewise.
26025         * lib/save-cwd.c (save_cwd): Likewise.
26026         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
26027         well, for minor improvements on hosts that lack O_DIRECTORY.
26028         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
26029         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
26030         Fall back on chown if open failed with EACCES.
26031
26032         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
26033         Report an error at compile-time if only a 1-second nominal clock
26034         resolution is found.
26035
26036         * lib/lchmod.h: New file.
26037         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
26038         (make_dir_parents): Use lchown rather than chown, and
26039         lchmod rather than chmod.
26040
26041         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
26042         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
26043         "proc" reported by n0dalus.
26044
26045         * lib/mountlist.c: Include <limits.h>.
26046         (dev_from_mount_options)
26047         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
26048         New function.  It no longer assumes "dev=" has the System V meaning
26049         on Linux (since it doesn't).  It also parses "dev=" more carefully.
26050         (read_file_system_list)
26051         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
26052         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
26053         dev= in that case.
26054
26055         * lib/posixtm.h (PDS_PRE_2000): New macro.
26056         * lib/posixtm.c (year): Arg is now syntax_bits rather than
26057         allow_century.  All usages changed.  Reject dates outside the range
26058         1969-1999 if PDS_PRE_2000 is used.
26059
26060 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26061
26062         Sync from coreutils.
26063         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
26064         (Time of day items): Mention the possibility of leap seconds.
26065         Problem reported by Dr. David Alan Gilbert.
26066
26067 2006-01-09  Jim Meyering  <jim@meyering.net>
26068
26069         Sync from coreutils.
26070
26071         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
26072
26073         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
26074
26075         * lib/modechange.c (mode_compile): Reject an invalid mode string
26076         that starts with an octal digit.  From Andreas Gruenbacher.
26077
26078         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
26079         and dup to open_safer and dup_safer, respectively.
26080         (openat_permissive): Fix typo in comment.
26081
26082         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
26083         "gettext.h"; either no longer needed or are guaranteed by openat.h.
26084         (_): Remove; no longer needed.
26085         (openat): Renamed from rpl_openat; no need for rpl_openat
26086         since openat.h renames openat for us.
26087         Replace most of the body with a call to openat_permissive,
26088         to avoid duplicate code.
26089         Port to (probably hypothetical) environments were mode_t is
26090         wider than int.
26091         (openat_permissive): Require mode arg, so that we can check
26092         types better.  Put it just after flags.  Change cwd failure
26093         indicator from pointer-to-bool to pointer-to-errno-value.
26094         All callers changed.
26095         Invoke openat_save_fail and/or openat_restore_fail if
26096         cwd_errno is null, so that openat can call us.
26097         (openat_permissive, fdopendir, fstatat, unlinkat):
26098         Simplify errno handling to avoid some duplicate code,
26099         as it's OK to set errno on success.
26100         * lib/openat.h: Revamp code so that function macros depend on
26101         __OPENAT_PREFIX only, not also on AT_FDCWD.
26102         (openat_ro): Remove.  Caller changed to use openat_permissive.
26103         (openat_permissive): Now a macro, if not a function.
26104         (openat_restore_fail, openat_save_fail): Now always functions,
26105         since mkdirat needs them even if __OPENAT_PREFIX is defined.
26106
26107         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
26108         and openat.c.
26109         * lib/mkdirat.c: Include openat-priv.h.
26110         Remove definitions of macros defined therein.
26111         * lib/openat.c: Likewise.
26112
26113         * lib/mkdirat.c (mkdirat): New file and function.
26114         * lib/openat.h (mkdirat): Declare.
26115
26116         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
26117
26118         * lib/openat.h (openat_permissive): Declare.
26119         (openat_ro): Define.
26120
26121         * lib/openat.c (EXPECTED_ERRNO): New macro.
26122         (openat_permissive): New function -- used in remove.c rewrite.
26123         (all functions): Set errno just before returning, only if there
26124         was an actual failure.
26125         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
26126
26127         Emulate openat-family functions using Linux's procfs, if possible.
26128         Idea and some code based on Ulrich Drepper's glibc changes.
26129
26130         * lib/openat.c: (BUILD_PROC_NAME): New macro.
26131         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
26132         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
26133         before falling back on save_cwd and restore_cwd.
26134         (fdopendir, fstatat, unlinkat): Likewise.
26135
26136         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
26137         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
26138
26139         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
26140         as second argument to va_arg.  Otherwise, some versions of gcc
26141         warn that `if this code is reached, the program will abort'.
26142
26143 2006-01-09  Jim Meyering  <jim@meyering.net>
26144
26145         Sync from coreutils.
26146         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
26147         Require openat-priv.h.
26148
26149 2006-01-09  Bruno Haible  <bruno@clisp.org>
26150
26151         * modules/strnlen (Include): Use strnlen.h.
26152
26153 2006-01-09  Bruno Haible  <bruno@clisp.org>
26154
26155         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
26156
26157 2006-01-09  Bruno Haible  <bruno@clisp.org>
26158
26159         * lib/sysexit_.h (EX_OK): New macro.
26160         Suggested by Martin Lambers <marlam@marlam.de>.
26161
26162 2006-01-09  Bruno Haible  <bruno@clisp.org>
26163
26164         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
26165         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
26166
26167 2006-01-09  Bruno Haible  <bruno@clisp.org>
26168
26169         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
26170         numbers.
26171
26172 2006-01-09  Bruno Haible  <bruno@clisp.org>
26173
26174         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
26175         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
26176         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
26177         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
26178
26179 2006-01-09  Bruno Haible  <bruno@clisp.org>
26180
26181         * build-aux/javacomp.sh.in: New file, moved from lib/.
26182         * modules/javacomp-script (Files): Update.
26183         (configure.ac): Add AC_CONFIG_FILES invocation.
26184         (EXTRA_DIST): Remove variable.
26185
26186         * build-aux/javaexec.sh.in: New file, moved from lib/.
26187         * modules/javaexec (Files): Update.
26188         (configure.ac): Add AC_CONFIG_FILES invocation.
26189         (EXTRA_DIST): Remove javaexec.sh.in.
26190
26191         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
26192         * modules/csharpcomp-script (Files): Update.
26193         (configure.ac): Add AC_CONFIG_FILES invocation.
26194         (EXTRA_DIST): Remove variable.
26195
26196         * build-aux/csharpexec.sh.in: New file, moved from lib/.
26197         * modules/csharpexec (Files): Update.
26198         (configure.ac): Add AC_CONFIG_FILES invocation.
26199         (EXTRA_DIST): Remove csharpexec.sh.in.
26200
26201 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26202
26203         Sync from coreutils.
26204
26205         Add POSIX ACL support
26206         * lib/acl.h (copy_acl, set_acl): Add declarations.
26207         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
26208         systems other than Linux.
26209         (chmod_or_fchmod): New function: use fchmod when possible,
26210         and chmod otherwise.
26211         (file_has_acl): Add a POSIX ACL implementation, with a
26212         Linux-specific subcase.
26213         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
26214         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
26215         acls are unsupported.
26216         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
26217         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
26218         are unsupported.
26219
26220 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
26221
26222         Sync from coreutils.
26223         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
26224
26225 2006-01-07  Bruno Haible  <bruno@clisp.org>
26226
26227         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
26228         gl_EARLY.
26229
26230 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26231
26232         * lib/strftime.c (tzname): Don't declare if it is already #defined.
26233         Problem reported for Mingw by Mark Junker.
26234
26235 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26236
26237         * README: Gnulib normally doesn't generate a tarball.
26238
26239 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26240
26241         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
26242         long int, not int, for nanosecond counts, so that people who are
26243         used to POSIX struct timespec won't be surprised.  Reported by Jim
26244         Meyering.
26245
26246 2005-12-28  Bruno Haible  <bruno@clisp.org>
26247
26248         * build-aux/config.rpath: Update from GNU gettext.
26249
26250 2005-12-16  Jim Meyering  <jim@meyering.net>
26251
26252         * modules/fprintftime: New module.
26253         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
26254
26255 2005-12-16  Jim Meyering  <jim@meyering.net>
26256
26257         * m4/fprintftime.m4: New file.
26258
26259 2005-12-16  Jim Meyering  <jim@meyering.net>
26260
26261         * lib/fprintftime.c, lib/fprintftime.h: New files.
26262
26263 2005-12-15  Simon Josefsson  <jas@extundo.com>
26264
26265         * modules/socklen (configure.ac): Fix M4 macro name, to align with
26266         new m4/socklen.m4.
26267
26268 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26269
26270         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
26271         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
26272
26273 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
26274
26275         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
26276         * lib/argp-help.c (fill_in_uparams): Check if the constructed
26277         struct uparams is valid. Fall back to the default values if it is
26278         not.
26279
26280 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26281
26282         * modules/argp (Files): Add argp-pin.c
26283         (Depends-on): dirname
26284         (lib_SOURCES): Add argp-pin.c
26285
26286 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26287
26288         * m4/argp.m4:  Check if program_invocation_name and
26289         program_invocation_short_name are declared and define appropriate
26290         macros if they are not.
26291
26292 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26293
26294         * lib/argp-help.c (__argp_base_name): New function
26295         (__argp_short_program_name): Rewrite using __argp_base_name
26296         * lib/argp-namefrob.h: Define program_invocation_name and
26297         program_invocation_short_name if requested
26298         (__argp_base_name): Add prototype
26299         * lib/argp-parse.c (argp_def): Use gettext wrappers
26300         (argp_default_parser): Use __argp_base_name
26301         * lib/argp-pin.c: New file. Defines program_invocation_name and
26302         program_invocation_short_name on systems that lack them.
26303
26304 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26305
26306         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
26307         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26308         porting problem reported by Georg Schwarz in
26309         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26310
26311 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26312
26313         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
26314         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
26315         porting problem reported by Georg Schwarz in
26316         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
26317
26318 2005-12-05  Bruno Haible  <bruno@clisp.org>
26319
26320         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
26321         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
26322         Reported by Mark Junker <mjscod@gmx.de>.
26323
26324 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26325
26326         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
26327         Use implementation from Albert Chin, with some
26328         comments/corrections by Stepan Kasal and myself.
26329
26330 2005-12-02  Bruno Haible  <bruno@clisp.org>
26331
26332         * gnulib-tool (func_import): Accept GPLed build tool modules when
26333         --lgpl is given.
26334         * modules/csharpcomp-script: New file.
26335         * modules/csharpcomp: Depend on it.
26336         * modules/javacomp-script: New file.
26337         * modules/javacomp: Depend on it.
26338         Suggested by Simon Josefsson.
26339
26340 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26341
26342         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
26343         statement, to work around an HP-UX 10.20 compiler bug reported by
26344         Peter O'Gorman.
26345
26346 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26347
26348         * modules/savedir (Depends-on): Add openat.
26349
26350 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26351
26352         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
26353         (uintmax_t) [defined uintmax_t]: Do not declare.
26354         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
26355         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
26356         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
26357         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
26358         sake of portability to weird hosts that C allows (though we don't
26359         know of any practical examples).
26360
26361         * lib/savedir.h (fdsavedir): New decl.
26362         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
26363         contains most of the former guts of savedir.
26364         (savedir): Use savedirstream.
26365         Include "openat.h".
26366
26367 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26368
26369         * modules/obstack (Files): Add m4/ulonglong.m4.
26370         Problem reported by Davide Angelocola.
26371
26372 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26373
26374         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
26375         coreutils no longer futzes with rounding modes.
26376
26377 2005-11-14  Jim Meyering  <jim@meyering.net>
26378
26379         * lib/mkstemp-safer.c: Include <config.h>, required for possible
26380         replacement of mkstemp.
26381
26382 2005-11-10  Simon Josefsson  <jas@extundo.com>
26383
26384         * lib/readline.c: Remove EOL.
26385
26386 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26387
26388         * modules/gethrxtime (Depends-on): Add gettime.
26389
26390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26391
26392         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
26393         or gettimeofday; no longer needed.
26394
26395 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26396
26397         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
26398         time business.
26399         (gethrxtime) [! (HAVE_NANOUPTIME
26400         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
26401         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
26402         our own approximation.
26403
26404 2005-11-08  Eric Blake  <ebb9@byu.net>
26405
26406         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26407
26408 2005-11-08  Eric Blake  <ebb9@byu.net>
26409
26410         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
26411
26412 2005-11-04  Bruno Haible  <bruno@clisp.org>
26413
26414         * gnulib-tool: Implement --update mode.
26415
26416 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26417
26418         Fix porting problem reported by Theodoros V. Kalamatianos.
26419         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
26420         Don't assume that futimes failing means we must fail.
26421
26422 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26423
26424         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
26425         variables to suggest the intended function of the PATH_MAX check.
26426
26427 2005-10-30  Kean Johnston  <jkj@sco.com>
26428
26429         Trivial changes to support SCO systems.
26430         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
26431         as PATH_MAX.
26432         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
26433         where __ptr is null when no I/O is pending.
26434
26435 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26436
26437         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
26438         leave errno alone.  Problem reported by Dmitry V. Levin.
26439
26440 2005-10-28  Simon Josefsson  <jas@extundo.com>
26441
26442         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
26443         Test more.
26444
26445         * tests/test-gc-md2.c, tests/test-md2.c: New files.
26446
26447         * modules/md2, modules/md2-tests: New files.
26448
26449 2005-10-28  Simon Josefsson  <jas@extundo.com>
26450
26451         * m4/inet_ntop.m4: More tests.
26452
26453         * m4/gc-md2.m4, md2.m4: New file.
26454
26455 2005-10-28  Simon Josefsson  <jas@extundo.com>
26456
26457         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
26458         "restrict" keywords, as per POSIX.  Protect the function
26459         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
26460         Don't use K&R prototypes.  Check the sprintf return values.
26461         Re-define EAFNOSUPPORT if not present.  Indent.
26462
26463         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
26464         suggested by Bruno Haible <bruno@clisp.org>.
26465
26466         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
26467
26468         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
26469
26470         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
26471         libgcrypt).
26472
26473         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
26474
26475         * lib/md2.h, lib/md2.c: New files.
26476
26477 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
26478
26479         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
26480         errno alone.  Problem reported by Frederic Jolliton.
26481
26482 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26483
26484         * modules/verify (License): Change from GPL to LGPL.  This is a
26485         tiny module and there are apparently near-equivalents that are
26486         under the BSD license.
26487
26488 2005-10-24  Simon Josefsson  <jas@extundo.com>
26489
26490         * modules/sha1: Relicense to LGPL.
26491
26492 2005-10-24  Simon Josefsson  <jas@extundo.com>
26493
26494         * lib/md4.h: Shrink buffer size, now that we changed the type.
26495
26496 2005-10-23  Simon Josefsson  <jas@extundo.com>
26497
26498         * gnulib-tool (func_import): Fix --tests-base.
26499
26500 2005-10-22  Simon Josefsson  <jas@extundo.com>
26501
26502         * modules/arcfour (Depends-on): Need stdint.
26503
26504 2005-10-22  Simon Josefsson  <jas@extundo.com>
26505
26506         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
26507         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
26508
26509 2005-10-22  Simon Josefsson  <jas@extundo.com>
26510
26511         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
26512         suggested by Bruno Haible <bruno@clisp.org>.
26513
26514 2005-10-22  Simon Josefsson  <jas@extundo.com>
26515
26516         * lib/crc.h: Include stddef.h, for size_t.
26517
26518 2005-10-22  Simon Josefsson  <jas@extundo.com>
26519
26520         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
26521         arcfour_context struct (simplify test vector testing in GNU
26522         Shishi).
26523
26524 2005-10-21  Simon Josefsson  <jas@extundo.com>
26525
26526         * modules/des, modules/des-tests: New files.
26527
26528         * modules/gc-des, modules/gc-des-tests: New files.
26529
26530         * tests/test-des.c, tests/test-gc-des.c: New file.
26531
26532 2005-10-21  Simon Josefsson  <jas@extundo.com>
26533
26534         * modules/arctwo, modules/arctwo-tests: New files.
26535
26536         * tests/test-arctwo.c: New file.
26537
26538         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
26539
26540         * tests/test-gc-arctwo.c: New file.
26541
26542 2005-10-21  Simon Josefsson  <jas@extundo.com>
26543
26544         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
26545         Bruno Haible <bruno@clisp.org>.
26546
26547         * m4/gc-des.m4: New file.
26548
26549 2005-10-21  Simon Josefsson  <jas@extundo.com>
26550
26551         * m4/arctwo.m4: New file.
26552
26553         * m4/gc-arctwo.m4: New file.
26554
26555 2005-10-21  Simon Josefsson  <jas@extundo.com>
26556
26557         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
26558         block.
26559
26560 2005-10-21  Simon Josefsson  <jas@extundo.com>
26561
26562         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
26563         <bruno@clisp.org>.
26564
26565         * lib/hmac-sha1.c (hmac_sha1): Likewise.
26566
26567         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
26568         Bruno Haible <bruno@clisp.org>.
26569
26570         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
26571         <bruno@clisp.org>.
26572
26573 2005-10-21  Simon Josefsson  <jas@extundo.com>
26574
26575         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
26576
26577 2005-10-21  Simon Josefsson  <jas@extundo.com>
26578
26579         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
26580
26581 2005-10-21  Simon Josefsson  <jas@extundo.com>
26582
26583         * lib/des.h, lib/des.c: New files.
26584
26585         * lib/gc-gnulib.c: Support DES.c
26586
26587 2005-10-21  Simon Josefsson  <jas@extundo.com>
26588
26589         * lib/arctwo.h, lib/arctwo.c: New files.
26590
26591         * lib/gc-gnulib.c: Support ARCTWO.
26592
26593 2005-10-21  Simon Josefsson  <jas@extundo.com>
26594
26595         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
26596         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26597
26598 2005-10-21  Simon Josefsson  <jas@extundo.com>
26599
26600         * gnulib-tool (func_import, func_create_testdir): Define automake
26601         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
26602         Makefile.am snippet),
26603         suggested by Bruno Haible <bruno@clisp.org>.
26604
26605         * modules/gc (Makefile.am): Use it.
26606
26607 2005-10-21  Bruno Haible  <bruno@clisp.org>
26608
26609         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
26610         patch.
26611
26612 2005-10-19  Simon Josefsson  <jas@extundo.com>
26613
26614         * tests/test-gc-rijndael.c: New file.
26615
26616         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
26617
26618 2005-10-19  Simon Josefsson  <jas@extundo.com>
26619
26620         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
26621         interface too.
26622
26623 2005-10-19  Simon Josefsson  <jas@extundo.com>
26624
26625         * tests/test-gc-arcfour.c: New file.
26626
26627         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
26628
26629 2005-10-19  Simon Josefsson  <jas@extundo.com>
26630
26631         * modules/gc-md4, modules/gc-md4-tests: New file.
26632
26633         * tests/test-gc-md4.c: New file.
26634
26635 2005-10-19  Simon Josefsson  <jas@extundo.com>
26636
26637         * m4/gc-md4.m4: New file.
26638
26639 2005-10-19  Simon Josefsson  <jas@extundo.com>
26640
26641         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
26642         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
26643         <kasal@ucw.cz>.
26644
26645 2005-10-19  Simon Josefsson  <jas@extundo.com>
26646
26647         * m4/gc-arcfour.m4: New file.
26648
26649         * m4/gc-rijndael.m4: New file.
26650
26651 2005-10-19  Simon Josefsson  <jas@extundo.com>
26652
26653         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
26654
26655 2005-10-19  Simon Josefsson  <jas@extundo.com>
26656
26657         * lib/gc-gnulib.c: Support ARCFOUR.
26658
26659 2005-10-19  Simon Josefsson  <jas@extundo.com>
26660
26661         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
26662         support.
26663
26664         * lib/gc.h: Add ECB enum type.
26665
26666         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
26667
26668 2005-10-18  Simon Josefsson  <jas@extundo.com>
26669
26670         * tests/test-md5.c: New file.
26671
26672         * modules/md5-tests: New file.
26673
26674 2005-10-18  Simon Josefsson  <jas@extundo.com>
26675
26676         * tests/test-md4.c: New file.
26677
26678         * modules/md4, modules/md4-tests: New files.
26679
26680 2005-10-18  Simon Josefsson  <jas@extundo.com>
26681
26682         * m4/md4.m4: New file.
26683
26684 2005-10-18  Simon Josefsson  <jas@extundo.com>
26685
26686         * lib/md4.h, lib/md4.c: New files, based on md5.?.
26687
26688 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
26689
26690         * gnulib-tool (func_create_testdir): Omit the second check whether
26691         BUILT_SOURCES in nonempty.
26692
26693 2005-10-17  Simon Josefsson  <jas@extundo.com>
26694
26695         * tests/test-rijndael.c: New file.
26696
26697 2005-10-17  Simon Josefsson  <jas@extundo.com>
26698
26699         * modules/sha1: Depend on stdint instead of md5.
26700
26701         * modules/md5: Depend on stdint, remove uint32_t.
26702
26703 2005-10-17  Simon Josefsson  <jas@extundo.com>
26704
26705         * modules/gc-sha1-tests: New file.
26706
26707         * tests/test-gc-sha1.c: New file.
26708
26709 2005-10-17  Simon Josefsson  <jas@extundo.com>
26710
26711         * m4/md5.m4: Remove call to uint32_t.m4.
26712
26713 2005-10-17  Simon Josefsson  <jas@extundo.com>
26714
26715         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
26716
26717         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
26718         md5.h.
26719
26720         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
26721
26722         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
26723
26724 2005-10-17  Simon Josefsson  <jas@extundo.com>
26725
26726         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
26727
26728 2005-10-17  Simon Josefsson  <jas@extundo.com>
26729
26730         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
26731
26732 2005-10-17  Simon Josefsson  <jas@extundo.com>
26733
26734         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
26735
26736         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
26737
26738 2005-10-17  Bruno Haible  <bruno@clisp.org>
26739
26740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
26741         that it can also be used in a test.
26742
26743 2005-10-16  Bruno Haible  <bruno@clisp.org>
26744
26745         * gnulib-tool (func_emit_tests_Makefile_am): Also define
26746         TESTS_ENVIRONMENT, so that individual tests can augment it.
26747
26748         * gnulib-tool (func_create_testdir): Use an intermediate target for
26749         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
26750         macros, like $(ALLOCA_H), which cannot be passed through the command
26751         line.
26752
26753 2005-10-15  Simon Josefsson  <jas@extundo.com>
26754
26755         * modules/rijndael-tests: New file.
26756
26757         * modules/rijndael: New file.
26758
26759 2005-10-15  Simon Josefsson  <jas@extundo.com>
26760
26761         * m4/rijndael.m4: New file.
26762
26763 2005-10-15  Simon Josefsson  <jas@extundo.com>
26764
26765         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
26766
26767         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
26768
26769 2005-10-14  Simon Josefsson  <jas@extundo.com>
26770
26771         * tests/test-arcfour.c: New file.
26772
26773         * modules/arcfour, modules/arcfour-tests: New files.
26774
26775 2005-10-14  Simon Josefsson  <jas@extundo.com>
26776
26777         * m4/arcfour.m4: New file.
26778
26779 2005-10-14  Simon Josefsson  <jas@extundo.com>
26780
26781         * lib/arcfour.h, lib/arcfour.c: New files.
26782
26783 2005-10-14  Roland McGrath  <roland@redhat.com>
26784
26785         Import from libc.  [BZ #1331]
26786         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
26787         macro argument.
26788         Reported by Matej Vela <vela@debian.org>.
26789
26790 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26791
26792         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
26793         include <wchar.h>; no longer needed.
26794
26795 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
26796
26797         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
26798
26799 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
26800         and  Ulrich Drepper  <drepper@redhat.com>
26801
26802         Import from libc.
26803         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
26804         instead of inline stream orientation test and two separate
26805         function calls.  Pay no attention to USE_IN_LIBIO.
26806
26807 2005-10-13  Simon Josefsson  <jas@extundo.com>
26808
26809         * modules/gc-hmac-md5-tests: New file.
26810
26811         * tests/test-gc-hmac-sha1.c: New file.
26812
26813         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
26814
26815         * modules/gc-hmac-md5-tests: New file.
26816
26817         * tests/test-gc-md5.c: New file.
26818
26819         * modules/gc-md5-tests: New file.
26820
26821 2005-10-13  Simon Josefsson  <jas@extundo.com>
26822
26823         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
26824         Move memory allocation outside of loop.
26825
26826 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
26829         intermediate directory is in a read-only file system.  Problem
26830         reported by Eric Blake.
26831
26832 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
26833
26834         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
26835
26836 2005-10-12  Simon Josefsson  <jas@extundo.com>
26837
26838         * tests/test-hmac-sha1.c: New file.
26839
26840         * modules/hmac-sha1-tests: New file.
26841
26842         * modules/hmac-sha1: New file.
26843
26844 2005-10-12  Simon Josefsson  <jas@extundo.com>
26845
26846         * modules/gc-sha1: New file.
26847
26848 2005-10-12  Simon Josefsson  <jas@extundo.com>
26849
26850         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
26851
26852         * tests/test-gc-pbkdf2-sha1.c: New file.
26853
26854 2005-10-12  Simon Josefsson  <jas@extundo.com>
26855
26856         * modules/gc-md5, modules/gc-hmac-md5: New files.
26857
26858         * modules/gc (Files): Remove md5, memxor and hmac files.
26859
26860 2005-10-12  Simon Josefsson  <jas@extundo.com>
26861
26862         * m4/gc-pbkdf2-sha1.m4: New file.
26863
26864         * m4/gc-hmac-sha1.m4: New file.
26865
26866         * m4/gc-sha1: New file.
26867
26868         * m4/hmac-sha1.m4: New file.
26869
26870 2005-10-12  Simon Josefsson  <jas@extundo.com>
26871
26872         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
26873
26874         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
26875
26876 2005-10-12  Simon Josefsson  <jas@extundo.com>
26877
26878         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
26879         suggested by Bruno Haible <bruno@clisp.org>.
26880
26881 2005-10-12  Simon Josefsson  <jas@extundo.com>
26882
26883         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
26884
26885 2005-10-12  Simon Josefsson  <jas@extundo.com>
26886
26887         * lib/gc-pbkdf2-sha1.c: New file.
26888
26889         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
26890
26891 2005-10-12  Simon Josefsson  <jas@extundo.com>
26892
26893         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
26894
26895         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
26896
26897 2005-10-12  Simon Josefsson  <jas@extundo.com>
26898
26899         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
26900         GC_USE_HMAC_MD5, respectively.
26901
26902         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
26903         (gc_md5): Fix typo.
26904
26905         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
26906
26907         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
26908
26909         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
26910
26911 2005-10-12  Bruno Haible  <bruno@clisp.org>
26912
26913         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
26914         Reported by Stepan Kasal <kasal@ucw.cz>.
26915
26916 2005-10-11  Simon Josefsson  <jas@extundo.com>
26917
26918         * tests/test-crc.c: New file.
26919
26920         * modules/crc, modules/crc-tests: New files.
26921
26922 2005-10-11  Simon Josefsson  <jas@extundo.com>
26923
26924         * m4/crc.m4: New file.
26925
26926 2005-10-11  Simon Josefsson  <jas@extundo.com>
26927
26928         * lib/gc.h: Add gc_hash and gc_hash_buffer.
26929
26930         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
26931
26932         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
26933
26934 2005-10-11  Simon Josefsson  <jas@extundo.com>
26935
26936         * lib/crc.h, lib/crc.c: New files.
26937
26938         * lib/gc.h (gc_hash_buffer): Add doc.
26939
26940 2005-10-11  Bruno Haible  <bruno@clisp.org>
26941
26942         * modules/c-strcasestr: New file.
26943         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
26944
26945 2005-10-11  Bruno Haible  <bruno@clisp.org>
26946
26947         * modules/c-strcase: New file.
26948         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
26949
26950 2005-10-11  Bruno Haible  <bruno@clisp.org>
26951
26952         * lib/strcasecmp.c: Include limits.h.
26953         (strcasecmp): Avoid integer overflow on exotic platforms.
26954         * lib/strncasecmp.c: Include limits.h.
26955         (strncasecmp): Avoid integer overflow on exotic platforms.
26956         Reported by Paul Eggert.
26957
26958 2005-10-11  Bruno Haible  <bruno@clisp.org>
26959
26960         * lib/c-strcasestr.h: New file, from GNU gettext.
26961         * lib/c-strcasestr.c: New file, from GNU gettext.
26962
26963 2005-10-11  Bruno Haible  <bruno@clisp.org>
26964
26965         * lib/c-strcase.h: New file, from GNU gettext.
26966         * lib/c-strcasecmp.c: New file, from GNU gettext.
26967         * lib/c-strncasecmp.c: New file, from GNU gettext.
26968
26969 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26970
26971         * modules/mempcpy (License): GPL -> LGPL.
26972         * modules/strchrnul (License): Likewise.
26973         * modules/sysexits (License): Likewise.
26974
26975 2005-10-08  Simon Josefsson  <jas@extundo.com>
26976
26977         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
26978
26979 2005-10-07  Simon Josefsson  <jas@extundo.com>
26980
26981         * m4/memxor.m4: Remove gl_C_RESTRICT call.
26982
26983 2005-10-06  Simon Josefsson  <jas@extundo.com>
26984
26985         * tests/test-hmac-md5.c: New file.
26986
26987         * modules/hmac-md5-tests: New file.
26988
26989         * modules/hmac-md5: New file.
26990
26991 2005-10-06  Simon Josefsson  <jas@extundo.com>
26992
26993         * m4/hmac-md5.m4: New file.
26994
26995         * m4/memxor.m4: Require gl_C_RESTRICT.
26996
26997 2005-10-06  Simon Josefsson  <jas@extundo.com>
26998
26999         * lib/memxor.c (memxor): Avoid casts and warnings.
27000
27001 2005-10-06  Simon Josefsson  <jas@extundo.com>
27002
27003         * lib/hmac-md5.c: New file.
27004
27005         * lib/hmac.h: New file.
27006
27007 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27008
27009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
27010         promotes to int, not unsigned int, to catch the AIX 5.3
27011         compiler bug.
27012
27013 2005-10-05  Simon Josefsson  <jas@extundo.com>
27014
27015         * modules/memxor: New file.
27016
27017         * modules/iconv (Files): Move config.rpath to havelib, it is used
27018         there.
27019
27020         * modules/havelib (Files): Add config.rpath.
27021
27022 2005-10-05  Simon Josefsson  <jas@extundo.com>
27023
27024         * m4/memxor.m4: New file.
27025
27026 2005-10-05  Simon Josefsson  <jas@extundo.com>
27027
27028         * lib/memxor.c (memxor): Fix compiler error.
27029
27030         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
27031         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
27032
27033         * lib/memxor.h, lib/memxor.c: New files.
27034
27035         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
27036         we assume all systems have it, suggested by Jim Meyering
27037         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
27038         any systems lack sys/socket.h; mingw32 is known to lack it, but we
27039         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
27040         same reasons.
27041
27042 2005-10-05  Simon Josefsson  <jas@extundo.com>
27043
27044         * config/srclist.txt: Add glibc bug 1423 for md5.h.
27045
27046 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27047
27048         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
27049         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
27050         needed, since the source code now assumes these .h files.
27051
27052 2005-10-05  Derek Price  <derek@ximbiot.com>
27053
27054         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
27055
27056 2005-10-05  Bruno Haible  <bruno@clisp.org>
27057
27058         * modules/stdint (License): Change to LGPL.
27059
27060 2005-10-04  Simon Josefsson  <jas@extundo.com>
27061
27062         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
27063         D. Baushke" <mdb@gnu.org>.
27064
27065 2005-10-04  Bruno Haible  <bruno@clisp.org>
27066
27067         * lib/verify.h (verify_true): Provide alternative definition for C++.
27068
27069 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27070
27071         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
27072         (SSIZE_MAX): New macro, if not already defined.
27073         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
27074         than 2 GiB.
27075
27076 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27077
27078         Sync from coreutils.
27079         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
27080         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
27081         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
27082         ULLONG_MAX doesn't work with 2.7.2.1.
27083
27084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27085
27086         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
27087         From Ben Pfaff.
27088
27089         * modules/exclude (Depends-on): Depend on verify.
27090         * modules/strtoimax (Depends-on): Likewise.
27091         * modules/utimecmp (Depends-on): Likewise.
27092
27093 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
27094
27095         * lib/exclude.c: Include verify.h.
27096         (verify): Remove.  All callers changed to use verify.h's version.
27097         * lib/strtoimax.c: Likewise.
27098         * lib/utimecmp.c: Likewis.e
27099
27100         Sync from coreutils.
27101         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
27102         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
27103         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
27104         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
27105         bother returning ENOSYS if settimeofday or stime fails; just let
27106         them return whatever errno they want to return.
27107         * lib/utimens.c: Include unistd.h, for dup2.
27108         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
27109         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
27110
27111 2005-10-02  Jim Meyering  <jim@meyering.net>
27112
27113         Sync from coreutils.
27114         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
27115         from glibc-2.2.5 that fails for read-only files.
27116
27117 2005-10-02  Jim Meyering  <jim@meyering.net>
27118
27119         Sync from coreutils.
27120         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
27121         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
27122         `#if HAVE_CONFIG_H'.
27123         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
27124         Remove AT_FDCWD test.
27125         Do not consume the fd unless successful.
27126         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
27127         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
27128         block, so that we don't even try to compile it if settimeofday is
27129         available.  This works around a compilation failure on OSF1 V5.1,
27130         due to stime requiring a `long int*' while tv_sec is `int'.
27131
27132 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
27133
27134         Sync from coreutils.
27135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
27136         against `yes', rather than just testing for nonempty.
27137
27138 2005-10-01  Simon Josefsson  <jas@extundo.com>
27139
27140         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
27141         and Darwin.
27142
27143         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
27144         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
27145         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
27146         freeaddrinfo and gai_strerror are declared by the POSIX headers.
27147         Check if struct addrinfo is declared.
27148
27149 2005-10-01  Simon Josefsson  <jas@extundo.com>
27150
27151         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
27152         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
27153         AI_* and EAI_* definitions.  Protect function declarations.
27154
27155 2005-10-01  Jim Meyering  <jim@meyering.net>
27156
27157         Sync from coreutils.
27158
27159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
27160         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
27161         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
27162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27163         in the inet and nsl libraries.  Required on Solaris 5.7.
27164
27165 2005-10-01  Jim Meyering  <jim@meyering.net>
27166
27167         Sync from coreutils.
27168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
27169         in the inet and nsl libraries.  Required on Solaris 5.7.
27170
27171 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
27172
27173         * lib/getdelim.c (getdelim): Remove unused variables.
27174
27175 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
27176
27177         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
27178         so that the code works even with ancient cpp.  Portability problem
27179         with GCC 2.7.2.1 reported by Thomas M.Ott.
27180
27181 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
27182
27183         * modules/regex (Depends-on): Add strcase.
27184
27185         * modules/gethostname (Licence): Change from GPL to LGPL, since
27186         gethostname.c is a trivial implementation of a standard library
27187         function.
27188         * modules/poll (License): Change from GPL to LGPL, since it's
27189         derived from LGPL code.
27190
27191 2005-09-27  Jim Meyering  <jim@meyering.net>
27192
27193         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
27194         HAVE_CONFIG_H.
27195
27196         * lib/intprops.h (signed_type_or_expr__): Define.
27197         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
27198         for unsigned types.
27199
27200 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27201
27202         * lib/verify.h (verify_expr): Remove, replacing with:
27203         (verify_true): New macro that returns true instead of void.
27204         (verify_type__): Remove.
27205         (verify): Use verify_true rather than verify_type__.
27206
27207 2005-09-26  Bruno Haible  <bruno@clisp.org>
27208
27209         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
27210         is necessary.
27211         (lib_SOURCES): Remove mbchar.c.
27212         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
27213         (Files): Add m4/mbrtowc.m4.
27214         * modules/mbiter: Likewise.
27215         * modules/mbuiter: Likewise.
27216
27217 2005-09-26  Bruno Haible  <bruno@clisp.org>
27218
27219         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
27220         compile mbchar.c if they are not both present.
27221         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
27222         * m4/mbiter.m4 (gl_MBITER): Likewise.
27223         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
27224         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
27225         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
27226
27227 2005-09-25  Jim Meyering  <jim@meyering.net>
27228
27229         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
27230         also uses socklen_t.
27231
27232 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27233
27234         * lib/utimens.c (ENOSYS): Define if not already defined.
27235         (futimens): Support having a null PATH if the file descriptor
27236         is nonnegative.
27237
27238         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
27239         Remove.
27240         (__attribute): Define to empty unless GCC 3.1 or later.
27241         This works around a core dump on OpenBSD 3.4, which has GCC
27242         2.95.3, which dumps core when given __attribute__(()).  It also
27243         simplifies other tests, since we really don't want to bother with
27244         worrying about which ancient version of GCC supported what.
27245         Original problem reported by Yoann Vandoorselaere, with part of
27246         the fix suggested by Derek Price.
27247
27248 2005-09-24  Jim Meyering  <jim@meyering.net>
27249
27250         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
27251         so we can once again use a positive bitfield width of 1 -- now we
27252         don't have to explain why we were using a bitfield width of 2.
27253
27254 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27255
27256         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
27257         and similarly for the other external symbols.  Problem reported
27258         by James Gallager.
27259
27260         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
27261         bug reported by Jim Meyering.
27262
27263         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
27264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
27265         not needed, since socklen is a prerequisite module.
27266
27267 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27268
27269         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
27270         Problem reported by Eric Blake.
27271         (getaddrinfo): Initialize se so that it's not garbage.
27272         Redo internal storage allocation so that it doesn't make unportable
27273         assumptions about alignment.
27274         Fix a memory leak.
27275
27276         * lib/utimens.c (futimens): Use futimesat if available.
27277         Prefer it to futimes since it doesn't have the futimes bug.
27278
27279         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
27280         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
27281         Instead, declare a function that returns a pointer to an array,
27282         and use verify_type__ to declare the size of the array.
27283         Problem and germ of a solution reported by Bruno Haible.
27284         (verify_type__): Use 2, not 1, for bitfield size, to avoid
27285         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
27286
27287 2005-09-23  Jim Meyering  <jim@meyering.net>
27288
27289         Sync from coreutils.
27290         Correct build failure (socklen_t not defined) on at least
27291         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
27292         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
27293
27294 2005-09-23  Jim Meyering  <jim@meyering.net>
27295
27296         * modules/getaddrinfo (Depends-on): Add socklen.
27297
27298 2005-09-23  Bruno Haible  <bruno@clisp.org>
27299
27300         * tests/test-verify.c: New file.
27301
27302 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27303
27304         Sync from coreutils.
27305
27306         * modules/argmatch (Depends-on): Add verify.
27307         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
27308         unistd-safer.
27309         * modules/save-cwd (Depends-on): Likewise.
27310
27311         * modules/openat (Files): Add lib/openat-die.c.
27312         (Depends-on): Remove error, exitfail.
27313         Add dirname.
27314
27315         * modules/verify: New file.
27316         * MODULES.html.sh (Diagnostics <assert.h>): New section,
27317         with "verify" module.
27318
27319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27320
27321         Sync from coreutils.
27322
27323         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
27324         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
27325         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
27326         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
27327         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
27328         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
27329         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
27330         Don't bother checking for string.h, stdlib.h, unistd.h.
27331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
27332         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
27333         module's job.
27334         * m4/jm-macros.m4 (gl_MACROS): Likewise.
27335         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
27336
27337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
27338         (gl_GETDATE): Use it.
27339
27340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
27341
27342 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27343
27344         Sync from coreutils.
27345
27346         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
27347         stat-time.h.
27348         * lib/argmatch.h: Include verify.h
27349         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
27350         (ARGMATCH_ASSERT): Remove; unused.
27351         * lib/canonicalize.c: Assume STDC_HEADERS.
27352         * lib/exclude.c: Include "strcase.h".
27353         * lib/regex_internal.h [!defined _LIBC]: Likewise.
27354         * lib/getusershell.c: Include stdio--.h rather than stdio.h
27355         and stdio-safer.h.
27356         (getusershell): Call fopen, not fopen_safer.
27357         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
27358         Do not include unistd-safer.h.
27359         (save_cwd): Don't call fd_safer; no longer needed
27360         now that we include fcntl--.h.
27361
27362         * lib/getdate.y (relative_time): New type.
27363         (RELATIVE_TIME_0): New constant.
27364         (parser_control): Use relative_time instead of doing it ourselves.
27365         (%union): Add new relative_time rel member.
27366         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
27367         Now typeless.
27368         (relunit, relunit_snumber): Now of type rel.
27369         (zone, rel, relunit, get_date): Adjust to above changes.
27370
27371         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
27372         Do not include unistd-safer.h.
27373         (getloadavg): Don't call fd_safer; no longer needed
27374         now that we include fcntl--.h.
27375
27376         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
27377         (make_dir_parents): Treat ENOSYS like EEXIST.
27378
27379         Improve quality of diagnostics on restore_cwd failure.
27380         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
27381         (make_dir_parents): Last arg is now int * (for errno), not bool *.
27382         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
27383         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
27384         each time through the loop.  Do not diagnose restore_cwd failure;
27385         that is the caller's job (and perhaps the caller does not care).
27386
27387         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
27388         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
27389         If the file already exists but is not a directory, don't bother
27390         to try to make its parents.
27391         Close potential file descriptor leak if we can't chdir("/") (!).
27392         Don't always return true if chdir($PWD) fails; return true only
27393         if the requested action was done successfully (except for the
27394         chdir($PWD)).
27395         Don't log final directory unless we actually made it.
27396         Refactor to avoid duplicate code to fix up permissions.
27397         Don't attempt to fix up parent permissions if chdir($PWD) fails.
27398
27399         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
27400         to make it a bit faster and (I hope) clearer.
27401         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
27402         Fix bug in formats like %2N.
27403
27404         * lib/verify.h: New file.
27405
27406 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27407
27408         Sync from coreutils.
27409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
27410
27411 2005-09-22  Jim Meyering  <jim@meyering.net>
27412
27413         Sync from coreutils.
27414
27415         * m4/lstat.m4 (gl_FUNC_LSTAT):
27416         Use AC_LIBSOURCES to require lstat.c and lstat.h.
27417         Remove obsolete comment.
27418         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
27419         * m4/xstrtod.m4: Likewise.
27420
27421         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
27422
27423 2005-09-22  Jim Meyering  <jim@meyering.net>
27424
27425         Sync from coreutils.
27426
27427         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
27428
27429         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
27430         the .tm_year member, since otherwise gcc-4.0 would now warn about
27431         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
27432
27433         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
27434         order to avoid an unsuppressible warning from gcc on 64-bit systems.
27435
27436         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
27437         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
27438         when run in a time zone for which daylight savings time is in effect
27439         for the starting date.
27440
27441         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
27442         stop us from restricting permissions of just-created absolute-named
27443         directories.
27444         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
27445         to restore initial working directory.
27446         * lib/mkdir-p.c (make_dir_parents): New parameter:
27447         different_working_dir, to tell caller if/when we change the working
27448         directory and are unable to return to the initial one.
27449         * lib/mkdir-p.h (make_dir_parents): Update prototype.
27450         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
27451         `return false'.  This fixes a bug introduced on 2004-07-30.
27452
27453         * lib/openat.c (fdopendir): Be sure to close the supplied
27454         file descriptor before returning.  This makes our replacement
27455         implementation a little closer to Solaris's, where fdopendir
27456         ties the file descriptor to the returned DIR* pointer.
27457         * lib/openat.c (unlinkat): New function.
27458         * lib/openat.h (unlinkat): Add prototype.
27459         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
27460         (openat_restore_fail): Rename from openat_restore_die.
27461         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
27462
27463         Provide an alternative to exiting immediately upon save_cwd or
27464         restore_cwd failure.  Now, an application can arrange e.g.,
27465         to perform a longjump in that case.
27466         * lib/openat.c: Include dirname.h.
27467         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
27468         (rpl_openat, fdopendir, fstatat): Call openat_save_die
27469         and openat_restore_die rather than calling error directly.
27470         Don't include "error.h" or "exitfail.h"; they're no longer needed.
27471
27472         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
27473         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
27474         define.
27475
27476         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
27477         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
27478                             int utc, int nanoseconds);
27479         Background:
27480         date should not have to allocate a megabyte of virtual memory to
27481         handle a format argument like +%1048575T.  When implemented with
27482         strftime, it must allocate such a buffer, use strftime to fill it
27483         in, print it, then free it.
27484         With fprintftime, it simply prints everything and exits.
27485         With no need for memory allocation, that's one fewer way to fail.
27486         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
27487         optional field width, not before, so we accept %9:z, not %:9z.
27488         (my_strftime): Be sure to use L_('x') for literals.
27489
27490         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
27491         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
27492         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
27493         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
27494         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
27495         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
27496         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
27497         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
27498         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
27499         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
27500         * lib/xgethostname.c, lib/xreadlink.c:
27501         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
27502
27503         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
27504         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
27505         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
27506         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27507         and don't include <sys/file.h>).
27508
27509 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
27510
27511         Sync from coreutils.
27512
27513         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
27514         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
27515         [!LDAV_DONE]: Avoid unused variable warning.
27516
27517 2005-09-21  Bruno Haible  <bruno@clisp.org>
27518
27519         * lib/unicodeio.h (unicode_to_mb): New declaration.
27520
27521 2005-09-20  Derek Price  <derek@ximbiot.com>
27522
27523         * lib/getaddrinfo.c: Don't include <netdb.h> included from
27524         getaddrinfo.h.
27525
27526 2005-09-20  Bruno Haible  <bruno@clisp.org>
27527
27528         * gnulib-tool: Remove trailing slashes from the values specified for
27529         --source-base, --m4-base, --tests-base, --aux-dir.
27530         Suggested by Simon Josefsson <jas@extundo.com>.
27531
27532 2005-09-20  Bruno Haible  <bruno@clisp.org>
27533
27534         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
27535         func_modules_to_filelist, func_import, func_create_testdir): Make all
27536         sorting results locale-independent, so that gnulib-cache.m4 doesn't
27537         change when gnulib-tool is invoked in a different locale.
27538
27539 2005-09-19  Simon Josefsson  <jas@extundo.com>
27540
27541         * m4/socklen.m4: Fix typo.
27542
27543 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27544
27545         Use a consistent style for including <config.h>.
27546         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
27547         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
27548         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
27549         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
27550         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
27551         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
27552         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
27553         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
27554         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
27555         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
27556         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
27557         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
27558         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
27559         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
27560         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
27561         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
27562         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
27563         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
27564         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
27565         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
27566         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
27567         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
27568         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
27569         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
27570         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
27571         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
27572         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
27573         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
27574         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
27575         lib/xstrtoumax.c, lib/yesno.c:
27576         Standardize inclusion of config.h.
27577         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
27578         lib/inttostr.h:  Removed inclusion of config.h from header files.
27579         * lib/inttostr.c:  Adjusted in-tree users.
27580         * lib/timespec.h: Remove superfluous warning to include config.h.
27581         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
27582         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
27583         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
27584         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
27585         config.h with HAVE_CONFIG_H.
27586
27587 2005-09-19  Jim Meyering  <jim@meyering.net>
27588
27589         * modules/pathmax (License): Change to LGPL.
27590
27591 2005-09-19  Derek Price  <derek@ximbiot.com>
27592
27593         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
27594
27595 2005-09-19  Bruno Haible  <bruno@clisp.org>
27596
27597         * gnulib-tool (import): Provide default for --tests-base.
27598
27599 2005-09-19  Bruno Haible  <bruno@clisp.org>
27600
27601         * doc/quote.texi: New file, extracted from gnulib.texi.
27602         * doc/ctime.texi: New file, extracted from gnulib.texi.
27603         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
27604         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
27605         * doc/gnulib.texi: Include them.
27606
27607 2005-09-18  Bruno Haible  <bruno@clisp.org>
27608
27609         Portability fix.
27610         * gnulib-tool (func_readlink): New function.
27611         (func_ln_if_changed): Use it.
27612
27613 2005-09-18  Bruno Haible  <bruno@clisp.org>
27614
27615         * gnulib-tool: Support --with-tests also with --import.
27616         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
27617         (func_import): Use variables $testsbase and $inctests. Emit a
27618         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
27619         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
27620         SUBDIRS += $testsdir.
27621         (func_create_testdir): Update.
27622
27623 2005-09-18  Bruno Haible  <bruno@clisp.org>
27624
27625         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
27626         instead of $dry_run.
27627         (func_cp_if_changed, func_mv_if_changed): Remove functions.
27628         (func_ln_if_changed): Don't handle dry-run here.
27629         (func_import): In dry-run mode, detect more precisely which actions
27630         would be performed, and don't use "...ing" verbs.
27631
27632 2005-09-18  Bruno Haible  <bruno@clisp.org>
27633
27634         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
27635         (func_import): Use join on two temporary files instead of three nested
27636         loops, in order to determine which files are new or old.
27637
27638 2005-09-18  Bruno Haible  <bruno@clisp.org>
27639
27640         * gnulib-tool (func_import): Comment out code that spits out the
27641         new files with --dry-run.
27642
27643 2005-09-18  Bruno Haible  <bruno@clisp.org>
27644
27645         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
27646
27647 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27648
27649         * lib/stat-time.h: New file.
27650         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
27651         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
27652         in a different way.
27653         (timespec_cmp): New function.
27654         * lib/utimecmp.c: Include stat-time.h.
27655         (SYSCALL_RESOLUTION): Depend on whether various struct stat
27656         members exist, not on the obsolescent ST_MTIM_NSEC.
27657         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
27658
27659 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27660
27661         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
27662
27663 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27664
27665         * MODULES.html.sh (File system functions): Add stat-time.
27666         * modules/stat-time: New file.
27667         * modules/timespec (Files): Remove m4/st_mtim.m4; this
27668         is now done in a different way, by the stat-time module.
27669         * modules/utimecmp (Depends-on): Add stat-time.
27670
27671 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27672
27673         * m4/st_mtim.m4: Remove.  Superseded by...
27674         * m4/stat-time.m4: New file.
27675         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
27676         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
27677
27678 2005-09-15  Derek Price  <derek@ximbiot.com>
27679
27680         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
27681
27682 2005-09-15  Derek Price  <derek@ximbiot.com>
27683
27684         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
27685         * lib/regex_internal.c: Ditto, using this...
27686         (__GNUC_PREREQ): ...new macro.
27687         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
27688         using...
27689         (__GNUC_PREREQ): ...this new macro.
27690
27691         * lib/strstr.h: Include string.h. Define strstr as a macro here.
27692
27693 2005-09-15  Derek Price  <derek@ximbiot.com>
27694             Paul Eggert  <eggert@cs.ucla.edu>
27695
27696         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
27697         changes, consolidating in...
27698         * lib/regex_internal.h: ...this file.
27699
27700 2005-09-13  Jim Meyering  <jim@meyering.net>
27701
27702         * lib/canon-host.c: Filter through gnu indent and reword comments
27703         slightly.
27704         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
27705
27706 2005-09-13  Derek Price  <derek@ximbiot.com>
27707
27708         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
27709         failure.
27710         Reported by Jim Meyering  <jim@meyering.net>.
27711
27712 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
27713
27714         * lib/base64.c: Typo.
27715         (base64_encode): Put b64str in initialized data section.
27716
27717 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27718
27719         Merge glibc and coreutils changes into gnulib, plus a few
27720         extra fixes.
27721         * lib/md5.c: Use #error rather than a string.
27722         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
27723         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
27724         (__attribute__): Define to empty for non recent-GCC.
27725         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
27726         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
27727         Renamed from their non-__ counterparts, with new macros replacing
27728         them if not _LIBC.  Add __THROW attribute.
27729         (rol): Remove.
27730         (struct md5_ctx): Align buffer if using GCC.
27731         * lib/sha1.h (struct sha1_ctx): Likewise.
27732         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
27733         The old name was backwards.
27734         (NOTSWAP): Remove; not used.
27735         (rol): New macro, moved here from md5.h.
27736         (sha1_process_block): Remove a FIXME that doesn't make sense.
27737
27738 2005-09-12  Derek Price  <derek@ximbiot.com>
27739
27740         Return usable errors from canon-host.
27741         * lib/canon-host.h: New file.
27742         * lib/canon-host.c (canon_host): Wrap...
27743         (canon_host_r): ...this new function, which now relies exclusively on
27744         getaddrinfo.
27745         (ch_strerror): New function.
27746         (last_cherror): New global.
27747         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
27748         interface.
27749         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
27750         void *.
27751         (freeaddrinfo): Free ai->ai_canonname when set.
27752
27753 2005-09-12  Derek Price  <derek@ximbiot.com>
27754
27755         Make canon-host require getaddrinfo.
27756         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
27757         AC_LIBSOURCE canon-host.h.  Call...
27758         (gl_PREREQ_CANON_HOST): ...this new function, which requires
27759         gl_GETADDRINFO.
27760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
27761
27762 2005-09-12  Derek Price  <derek@ximbiot.com>
27763
27764         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
27765         LGPL.
27766         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
27767
27768 2005-09-12  Derek Price  <derek@ximbiot.com>
27769
27770         * lib/gai_strerror.c: Include config.h when available.  Include
27771         getaddrinfo.h before other headers to test interface.
27772         Reported by Larry Jones <lawrence.jones@ugs.com>.
27773
27774 2005-09-12  Derek Price  <derek@ximbiot.com>
27775             Paul Eggert  <eggert@cs.ucla.edu>
27776
27777         * modules/glob (Files): Add glob-libc.h.
27778
27779 2005-09-12  Derek Price  <derek@ximbiot.com>
27780             Paul Eggert  <eggert@cs.ucla.edu>
27781
27782         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
27783         glob_.h, glob-libc.h.
27784         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
27785
27786 2005-09-12  Derek Price  <derek@ximbiot.com>
27787             Paul Eggert  <eggert@cs.ucla.edu>
27788
27789         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
27790         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
27791         protecting things that should be done only in gnulib contexts.
27792         * lib/glob_.h: New file, containing only the glob things needed for
27793         gnulib.
27794         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
27795         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
27796         (glob, globfree, glob_pattern_p): Now defined simply in terms of
27797         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
27798         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
27799         and to respect the namespace rules better.
27800
27801 2005-09-08  Simon Josefsson  <jas@extundo.com>
27802
27803         * modules/socklen: New file.
27804
27805 2005-09-08  Simon Josefsson  <jas@extundo.com>
27806
27807         * m4/socklen.m4: New file.
27808
27809 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27810
27811         * modules/utimens (Files): Add m4/utimbuf.m4, since
27812         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
27813         Reported by Sergey Poznyakoff.
27814
27815 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27816
27817         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
27818         definitions, since that's the preferred style in glibc.
27819         Fix a minor spacing issue, and update copyright notice to match
27820         glibc's.
27821
27822 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
27823
27824         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
27825
27826 2005-09-06  Simon Josefsson  <jas@extundo.com>
27827
27828         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
27829         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
27830
27831 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27832
27833         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
27834         warning.
27835
27836 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27837
27838         * config/srclist.txt: Add glibc bug 1302.
27839
27840 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27841
27842         Change bitset word type from unsigned int to unsigned long int,
27843         as this has better performance on typical 64-bit hosts.
27844         Port bitset code to hosts with unusual word sizes.
27845         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
27846         (build_collating_symbol):
27847         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
27848         argument is a bitset.  This is merely a style issue, but it makes
27849         it clearer that an entire array is expected.
27850         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
27851         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
27852         Port to the case where bitset_word is not the same as unsigned int.
27853         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
27854         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
27855         Likewise.
27856         * lib/regexec.c (check_dst_limits_calc_pos_1,
27857         check_subexp_matching_top):
27858         (build_trtable, group_nodes_into_DFAstates):
27859         Likewise.
27860         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
27861         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
27862         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
27863         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
27864         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
27865         * lib/regcomp.c (optimize_subexps, lower_subexp):
27866         Work even if bitset_word has holes in its bitwise representation.
27867         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
27868         * lib/regexec.c (check_dst_limits_calc_pos_1,
27869         check_subexp_matching_top):
27870         Likewise.
27871         * lib/regex_internal.c (re_string_reconstruct):
27872         Don't assume UCHAR_MAX == 255.
27873         * lib/regex_internal.h (bitset_set_all): Likewise.
27874         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
27875         All uses changed.
27876         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
27877         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
27878         All uses changed.
27879         (BITSET_WORD_MAX): New macro.
27880         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
27881         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
27882         (bitset_empty, bitset_copy):
27883         Prefer sizeof (bitset) to multiplying it out ourselves.
27884         (bitset_not_merge): Remove; unused.
27885         (bitset_contain): Return bool, not unsigned int with one bit on.
27886         All callers changed.
27887         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
27888         alignment than re_node_set; do this by defining a new internal
27889         type struct dests_alloc and using it to allocate memory.
27890
27891 2005-09-05  Bruno Haible  <bruno@clisp.org>
27892
27893         * gnulib-tool (func_import): Fix comparison in handling of symbolic
27894         links.
27895
27896 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
27897
27898         * modules/size_max (Makefile.am): Add size_max.h
27899
27900 2005-09-04  Derek Price  <derek@ximbiot.com>
27901
27902         * gnulib-tool (func_import): Fix reversed $symbolic logic.
27903
27904 2005-09-03  Simon Josefsson  <jas@extundo.com>
27905
27906         * gnulib-tool: Fix typo.
27907
27908 2005-09-03  Simon Josefsson  <jas@extundo.com>
27909
27910         * config/srclist.txt: Add glibc bug 1293.
27911
27912 2005-09-03  Derek Price  <derek@ximbiot.com>
27913
27914         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
27915         From Larry Jones <lawrence.jones@ugs.com>.
27916
27917 2005-09-02  Simon Josefsson  <jas@extundo.com>
27918
27919         * modules/socklen: New file.
27920
27921 2005-09-02  Simon Josefsson  <jas@extundo.com>
27922
27923         * modules/havelib: New module.
27924
27925         * modules/gettext, modules/iconv, modules/lock, modules/readline:
27926         Use havelib.
27927
27928 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27929
27930         Check for arithmetic overflow when calculating sizes, to prevent
27931         some buffer-overflow issues.  These patches are conservative, in the
27932         sense that when I couldn't determine whether an overflow was possible,
27933         I inserted a run-time check.
27934         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
27935         macros.
27936         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
27937         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
27938         (re_xnrealloc, re_x2nrealloc): New inline functions.
27939         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
27940         parse_bracket_exp):
27941         (build_equiv_class, build_charclass): Check for arithmetic overflow
27942         in size expression calculations.
27943         * lib/regex_internal.c (re_string_realloc_buffers):
27944         (build_wcs_upper_buffer, re_node_set_add_intersect):
27945         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
27946         (re_dfa_add_node, register_state): Likewise.
27947         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
27948         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
27949         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
27950         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
27951
27952 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27953
27954         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
27955         m4/ulonglong.m4.  Problem reported by Martin Lambers.
27956
27957 2005-09-02  Bruno Haible  <bruno@clisp.org>
27958
27959         Support for lib vs. lib64 distinction on biarch platforms.
27960         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
27961         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
27962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
27963
27964 2005-09-02  Bruno Haible  <bruno@clisp.org>
27965
27966         * gnulib-tool (import): In the other first-use case, provide defaults
27967         as well.
27968
27969 2005-09-02  Bruno Haible  <bruno@clisp.org>
27970
27971         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
27972         patches not yet found in the latest gettext release.
27973
27974 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27975
27976         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
27977         to avoid a collision with bits/local_lim.h in glibc.
27978         All uses changed.  Problem reported by Dmitry V. Levin in
27979         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
27980
27981         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
27982         bugs in int versus size_t comparisons.
27983         (re_string_context_at): Fix bug where the code assumed that
27984         Idx is signed.
27985
27986         Use bool where appropriate.
27987         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
27988         All callers changed.
27989         (calc_eclosure_iter): Likewise, for ROOT arg.
27990         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
27991         (build_charclass_op): Likewise, for NON_MATCH arg.
27992         * lib/regex_internal.c (re_string_allocate, re_string_construct):
27993         (re_string_construct_common): Likewise, for ICASE arg.
27994         * lib/regexec.c (re_search_2_stub, re_search_stub):
27995         Likewise, for RET_LEN arg.
27996         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
27997         (set_regs): Likewise, for FL_BACKTRACK arg.
27998         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
27999         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
28000         (calc_eclosure_iter, parse_bracket_exp):
28001         Use bool for internal variables that are booleans.
28002         * lib/regexec.c (re_search_internal, check_matching,
28003         proceed_next_node):
28004         (set_regs, build_sifted_states, sift_states_bkref):
28005         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
28006         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28007         (find_collation_sequence_value):
28008         Likewise.
28009         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
28010         (re_node_set_compare):
28011         Return bool, not int. All callers changed.
28012         * lib/regexec.c (check_halt_node_context, check_dst_limits):
28013         (build_trtable, check_node_accept): Likewise.
28014         * lib/regex_internal.h: Include stdbool.h.
28015
28016         Fix bugs uncovered when converting to bool.
28017         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
28018         failure instead of charging ahead blindly.
28019         * lib/regex_internal.c (register_state): Likewise.
28020         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
28021         for freeing internal storage.
28022         (group_nodes_into_DFA_states): Use unsigned int, not int, for
28023         bitset pieces used as boolean, to avoid undefined behavior
28024         on hosts that do int overflow checking.
28025
28026 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28027
28028         * config/srclist.txt: Add glibc bugs 1285-1287.
28029
28030 2005-09-01  Jim Meyering  <jim@meyering.net>
28031
28032         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
28033         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
28034         Require gl_STAT_MACROS, too.
28035
28036 2005-09-01  Bruno Haible  <bruno@clisp.org>
28037
28038         * gnulib-tool (import): In the first-use case, provide defaults.
28039
28040 2005-09-01  Bruno Haible  <bruno@clisp.org>
28041
28042         * gnulib-tool (func_import): Remove the .tmp files.
28043
28044 2005-09-01  Bruno Haible  <bruno@clisp.org>
28045
28046         * gnulib-tool (func_import): Fix handling of symbolic links.
28047
28048 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28049
28050         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
28051         old glibc regex code mishandles strings longer than 2**31 bytes.
28052         This patch fixes this when the regex code is used in gnulib
28053         (i.e., outside glibc).
28054
28055         This patch should not affect the use of the regex code inside
28056         glibc.  No doubt this problem also needs to be handled for glibc
28057         as well, but the result will be an incompatible change to the
28058         glibc ABI, and the old ABI will have to be supported too.  That
28059         can be the the subject for another patch.
28060
28061         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
28062         governing whether the rest of this patch is active.  By default,
28063         the macro is disabled and the patch has no effect.
28064         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
28065         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
28066         (struct re_pattern_buffer, re_search, re_search_2, re_match):
28067         (re_match_2, re_set_registers): Use the new types.
28068         * lib/regex_internal.h (Idx, re_hashval_t): New types.
28069         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
28070         New macros.
28071         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
28072         (re_string_context_at, bin_tree_t, re_dfastate_t):
28073         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
28074         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
28075         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
28076         (re_string_char_size_at, re_string_wchar_at):
28077         (re_string_elem_size_at):
28078         Use the new types and macros to port to 64-bit hosts.
28079         Use unsigned types for internal values, so that the code
28080         mostly works even for arrays larger than SSIZE_MAX.
28081         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
28082         (search_duplicated_node, calc_eclosure_iter, fetch_number):
28083         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
28084         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
28085         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
28086         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
28087         (calc_inveclosure, parse_dup_op, build_range_exp):
28088         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
28089         (fetch_number, create_token_tree, mark_opt_subexp):
28090         Likewise.
28091         * lib/regex_internal.c (re_string_construct_common,
28092         create_ci_newstate):
28093         (create_cd_newstate, re_string_allocate, re_string_construct):
28094         (re_string_realloc_buffers, build_wcs_upper_buffer):
28095         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28096         (re_string_reconstruct, re_string_peek_byte_case):
28097         (re_string_fetch_byte_case, re_string_context_at):
28098         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28099         (re_node_set_init_copy, re_node_set_add_intersect):
28100         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28101         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28102         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28103         (re_acquire_state, re_acquire_state_context, register_state):
28104         Likewise.
28105         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
28106         search_cur_bkref_entry):
28107         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
28108         (re_search_internal, re_search_2_stub, re_search_stub)
28109         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
28110         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
28111         (update_cur_sifted_state, check_dst_limits):
28112         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28113         (check_subexp_limits, sift_states_bkref, merge_state_array):
28114         (check_subexp_matching_top, get_subexp, get_subexp_sub):
28115         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
28116         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28117         (expand_bkref_cache, check_node_accept_bytes):
28118         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
28119         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
28120         (acquire_init_state_context, check_halt_node_context):
28121         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
28122         (sift_states_backward, clean_state_log_if_needed):
28123         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
28124         (find_recover_state, transit_state_sb, transit_state_mb):
28125         (transit_state_bkref, build_trtable, match_ctx_clean):
28126         Likewise.
28127         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
28128         to work around an assumption that REG_MISSING is negative.
28129
28130         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
28131         (seek_collating_symbol_entry) [defined _LIBC]:
28132         (lookup_collation_sequence_value) [defined _LIBC]:
28133         (build_range_exp, build_collating_symbol) [defined _LIBC]:
28134         Use prototypes rather than old-style function definitions.
28135         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
28136         (transit_state_sb) [0]:
28137         (find_collation_sequence_value) [defined _LIBC]: Likewise.
28138
28139         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
28140         rm_eo.
28141
28142         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
28143         (optimize_subexps, lower_subexp):
28144         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
28145         since the signed shift might overflow.  Use 1u<<31 instead.
28146         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
28147         Likewise.
28148         * lib/regexec.c (check_dst_limits_calc_pos_1,
28149         check_subexp_matching_top): Likewise.
28150
28151         * lib/regcomp.c (optimize_subexps, lower_subexp):
28152         Use CHAR_BIT rather than 8, for clarity.
28153         * lib/regexec.c (check_dst_limits_calc_pos_1):
28154         (check_subexp_matching_top): Likewise.
28155         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
28156         have to worry about portability issues when shifting it left.
28157         Remove no-longer-needed test for table_size > 0.
28158         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
28159         in a word, as the resulting behavior is undefined.
28160         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
28161         in one case, a <= should have been an <, and in another case the
28162         whole test was missing.
28163         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
28164         the standard name CHAR_BIT.
28165         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
28166         this is not true on one's complement and signed-magnitude hosts.
28167
28168         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
28169         next_last_offset.
28170         (struct re_dfa_t): Remove unused member states_alloc.
28171         * lib/regcomp.c (init_dfa): Don't initialize unused members.
28172
28173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28174
28175         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
28176         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
28177         and large-file glibc and in 32-bit large-file Solaris.
28178
28179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28180
28181         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
28182         lengths fit in regoff_t; this isn't true if regoff_t is the same
28183         width as size_t.
28184         * lib/regex.c (re_search_internal): 5th arg is LAST_START
28185         (= START + RANGE) instead of RANGE.  This avoids overflow
28186         problems when regoff_t is the same width as size_t.
28187         All callers changed.
28188         (re_search_2_stub): Check for overflow when adding the
28189         sizes of the two strings.
28190         (re_search_stub): Check for overflow when adding START
28191         to RANGE; if it occurs, substitute the extreme value.
28192
28193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28194
28195         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
28196
28197 2005-08-31  Jim Meyering  <jim@meyering.net>
28198
28199         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
28200         a pointer-to-const.
28201         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
28202         (register_state): Likewise.
28203         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
28204         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
28205         (group_nodes_into_DFAstates): Likewise.
28206
28207 2005-08-31  Jim Meyering  <jim@meyering.net>
28208
28209         * check-module: Add a FIXME comment.
28210
28211 2005-08-31  Eric Blake  <ebb9@byu.net>
28212
28213         * modules/unistd-safer (Files): Add unistd--.h.
28214         * modules/stdio-safer (Files): Add stdio--.h.
28215
28216 2005-08-31  Derek Price  <derek@ximbiot.com>
28217
28218         * lib/getdelim.c (getdelim): Return EOF on EOF.
28219         Reported by Larry Jones <lawrence.jones@ugs.com>.
28220
28221 2005-08-31  Bruno Haible  <bruno@clisp.org>
28222
28223         Avoid unnecessary diffs in the generated lib/Makefile.am.
28224         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
28225         the generated files.
28226         (func_import): Don't set cmd.
28227
28228 2005-08-31  Bruno Haible  <bruno@clisp.org>
28229
28230         * lib/strstr.c: Include <stddef.h>, for NULL.
28231         * lib/strcasestr.c: Likewise.
28232         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28233
28234 2005-08-31  Bruno Haible  <bruno@clisp.org>
28235
28236         * gnulib-tool: New option --macro-prefix.
28237         (func_import): Use macro_prefix.
28238         (import): Handle option --macro-prefix.
28239
28240 2005-08-31  Bruno Haible  <bruno@clisp.org>
28241
28242         * gnulib-tool (import): Rename most ac_* variables to cached_*.
28243         Also use new variables cached_lgpl, cached_libtool.
28244
28245 2005-08-31  Bruno Haible  <bruno@clisp.org>
28246
28247         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
28248         always instantiating them.
28249
28250 2005-08-31  Bruno Haible  <bruno@clisp.org>
28251
28252         * gnulib-tool (func_import): Read the previous cached settings
28253         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
28254         earlier added by gnulib but are now dropped. Warn when a gnulib file
28255         overwrites a non-gnulib file.
28256
28257 2005-08-31  Bruno Haible  <bruno@clisp.org>
28258
28259         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
28260         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
28261         projects that don't keep autogenerated files in CVS. Put into
28262         actioncmd only the specified modules, not the transitive closure.
28263
28264 2005-08-31  Bruno Haible  <bruno@clisp.org>
28265
28266         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
28267         Create directories that shall be filled.
28268         (import): Don't look for gl_* macros in configure.ac. Recurse across
28269         all directories containing a gnulib-cache.m4 files, if meaningful.
28270
28271 2005-08-31  Bruno Haible  <bruno@clisp.org>
28272
28273         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
28274         (import): Set seen_libtool when we see gl_LIBTOOL.
28275
28276 2005-08-31  Bruno Haible  <bruno@clisp.org>
28277
28278         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
28279         declaration macro definitions from generated gnulib.m4.
28280
28281 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
28282
28283         * lib/iconvme.h: Add prototype for iconv_alloc.
28284
28285 2005-08-29  Simon Josefsson  <jas@extundo.com>
28286
28287         * lib/iconvme.c: Fix errno.
28288
28289 2005-08-29  Bruno Haible  <bruno@clisp.org>
28290
28291         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
28292         that it works when the directory contains spaces.
28293
28294 2005-08-29  Bruno Haible  <bruno@clisp.org>
28295
28296         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
28297
28298 2005-08-29  Bruno Haible  <bruno@clisp.org>
28299
28300         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
28301         Emit more advice.
28302
28303 2005-08-29  Bruno Haible  <bruno@clisp.org>
28304         and Stepan Kasal  <kasal@ucw.cz>
28305
28306         * check-module: If more parameters are given, check each of them
28307         separately; add more exceptions, as noted by Jim Meyering.
28308         (check_module): New procedure.
28309         (%exempt_header): Now contains all exceptions.
28310
28311 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
28312
28313         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
28314
28315 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
28316
28317         * lib/iconvme.c: Split iconv_string into iconv_alloc.
28318
28319 2005-08-28  Bruno Haible  <bruno@clisp.org>
28320
28321         * m4/gnulib-tool.m4: New file.
28322
28323 2005-08-27  Jim Meyering  <jim@meyering.net>
28324
28325         * modules/unistd-safer (Files): Add pipe-safer.c.
28326         * modules/fcntl-safer (Files): Add creat-safer.c.
28327
28328 2005-08-27  Jim Meyering  <jim@meyering.net>
28329
28330         * m4/stdlib-safer.m4: New file.  From coreutils.
28331         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
28332         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
28333         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
28334         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
28335         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
28336
28337 2005-08-27  Jim Meyering  <jim@meyering.net>
28338
28339         * lib/fopen-safer.c: Merge minor changes from coreutils.
28340         * lib/dup-safer.c: Likewise.
28341         * lib/fd-safer.c: Likewise.
28342
28343         Merge from coreutils.
28344         * lib/stdio--.h: New file.
28345         * lib/stdlib--.h: New file.
28346         * lib/mkstemp-safer.c: New file.
28347
28348         GNU tar needs these.
28349         * lib/pipe-safer.c: New file.
28350         * lib/creat-safer.c: New file.
28351         * lib/fcntl--.h (creat): Define to creat_safer.
28352         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
28353         * lib/unistd--.h (pipe): Define to pipe_safer.
28354         * lib/unistd-safer.h: Declare pipe_safer.
28355
28356 2005-08-26  Simon Josefsson  <jas@extundo.com>
28357
28358         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
28359         Haible <bruno@clisp.org>.
28360
28361 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
28362
28363         * lib/regex_internal.h: Remove all references to
28364         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
28365         or better.
28366         (bitset_not, bitset_merge, bitset_not_merge):
28367         (bitset_mask, re_string_allocate, re_string_construct):
28368         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
28369         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
28370         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
28371         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
28372         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28373         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28374         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
28375         (re_acquire_state_context):
28376         Remove unnecessary forward decls.
28377         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
28378         Put __attribute at function definition,
28379         now that the function decl has been removed.
28380         * lib/regex_internal.c (re_string_peek_byte_case):
28381         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
28382         Likewise.
28383
28384 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
28385
28386         * m4/regex.m4: Add AC_PREREQ(2.50).
28387         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
28388
28389 2005-08-25  Simon Josefsson  <jas@extundo.com>
28390
28391         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
28392         __fsetlocking.
28393
28394 2005-08-25  Simon Josefsson  <jas@extundo.com>
28395
28396         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
28397         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
28398         GLIBC specific code.
28399
28400 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28401
28402         Make regex safe for g++.  This fixes one real bug (an "err"
28403         that should have been "*err").  g++ problem reported by
28404         Sam Steingold.
28405         * lib/regex_internal.h (re_calloc): New macro, consistent with
28406         re_malloc etc.  All callers of calloc changed to use re_calloc.
28407         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
28408         not int.  All callers changed.
28409         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
28410         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
28411         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
28412         (find_recover_state): Change "err" to "*err"; this fixes what
28413         appears to be a real bug.
28414         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
28415         versus int.
28416
28417 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28418
28419         * modules/regex (Depends-on): Add malloc, since the code
28420         assumes that !malloc(0) means failure.
28421
28422 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28423
28424         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
28425
28426         alloca modernization/simplification for regex.
28427         * lib/regex.c: Remove portability cruft for alloca.  This no longer
28428         needs to be at the start of the file, and can be moved into
28429         regex_internal.h and simplified.
28430         * lib/regex_internal.h: Include <alloca.h>.
28431         (__libc_use_alloca) [!defined _LIBC]: New macro.
28432         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
28433         now works outside glibc.
28434
28435 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
28436
28437         * config/srclist.txt: Add glibc bugs 1241, 1245.
28438
28439 2005-08-25  Jim Meyering  <jim@meyering.net>
28440
28441         * lib/open-safer.c: Include <config.h>.
28442         Otherwise, we'd lose LARGEFILE support in any file using
28443         e.g. "fcntl--.h"
28444
28445 2005-08-25  Bruno Haible  <bruno@clisp.org>
28446
28447         * m4/minmax.m4: Require autoconf 2.52.
28448         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
28449         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
28450         alternatives of translit over the alphabet.
28451         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
28452
28453 2005-08-24  Simon Josefsson  <jas@extundo.com>
28454
28455         * tests/test-getpass.c: New file.
28456
28457 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28458
28459         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
28460         for GNU regex features.
28461
28462 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28463
28464         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
28465         * lib/regex.h (regerror): Likewise.
28466
28467         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
28468         requires this.  (The code never needed it.)
28469
28470         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
28471         All uses of recently-renamed identifiers changed to use the new,
28472         POSIX-compliant names.  The code will build and run just fine
28473         without these changes, but it's better to eat our own dog food
28474         and use the standard-conforming names.
28475
28476         * lib/regex.h: Fix a multitude of POSIX name space violations.
28477         These changes have an effect only for programs that define
28478         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
28479         do not change anything for programs compiled in the normal way.
28480         Also, there is no effect on the ABI.
28481
28482         (_REGEX_SOURCE): New macro.
28483         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
28484         defined and _GNU_SOURCE is not; this fixes a name space violation.
28485
28486         Rename the following macros to obey POSIX requirements.
28487         The old names are still visible as macros if _REGEX_SOURCE is defined.
28488         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
28489         RE_BACKSLASH_ESCAPE_IN_LISTS.
28490         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
28491         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
28492         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
28493         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
28494         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
28495         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
28496         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
28497         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
28498         (REG_INTERVALS): renamed from RE_INTERVALS.
28499         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
28500         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
28501         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
28502         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
28503         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
28504         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
28505         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
28506         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
28507         RE_UNMATCHED_RIGHT_PAREN_ORD.
28508         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
28509         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
28510         (REG_DEBUG): renamed from RE_DEBUG.
28511         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
28512         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
28513         unusual, since we can't clash with the POSIX REG_ICASE.
28514         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
28515         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
28516         (REG_NO_SUB): renamed from RE_NO_SUB.
28517         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
28518         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
28519         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
28520         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
28521         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
28522         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
28523         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
28524         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
28525         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
28526         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
28527         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
28528         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
28529         RE_SYNTAX_POSIX_MINIMAL_BASIC.
28530         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
28531         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
28532         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
28533         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
28534         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
28535         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
28536         (REG_FIXED): Renamed from REGS_FIXED.
28537         (REG_NREGS): Renamed from RE_NREGS.
28538
28539         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
28540         of other REG_* macros, since POSIX says the user is allowed to
28541         #undef these macros selectively.
28542
28543         (reg_errcode_t): Update comment stating what other tables need
28544         to be consistent.
28545
28546         Rename the following enum values to obey POSIX requirements.
28547         The old names are still visible as macros.
28548         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
28549         is not defined, since GNU is supposed to be a superset of POSIX as
28550         much as possible, and since we want reg_errcode_t to be a signed
28551         type for implementation consistency.
28552         (_REG_NOERROR): Renamed from REG_NOERROR.
28553         (_REG_NOMATCH): Renamed from REG_NOMATCH.
28554         (_REG_BADPAT): Renamed from REG_BADPAT.
28555         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
28556         (_REG_ECTYPE): Renamed from REG_ECTYPE.
28557         (_REG_EESCAPE): Renamed from REG_EESCAPE.
28558         (_REG_ESUBREG): Renamed from REG_ESUBREG.
28559         (_REG_EBRACK): Renamed from REG_EBRACK.
28560         (_REG_EPAREN): Renamed from REG_EPAREN.
28561         (_REG_EBRACE): Renamed from REG_EBRACE.
28562         (_REG_BADBR): Renamed from REG_BADBR.
28563         (_REG_ERANGE): Renamed from REG_ERANGE.
28564         (_REG_ESPACE): Renamed from REG_ESPACE.
28565         (_REG_BADRPT): Renamed from REG_BADRPT.
28566         (_REG_EEND): Renamed from REG_EEND.
28567         (_REG_ESIZE): Renamed from REG_ESIZE.
28568         (_REG_ERPAREN): Renamed from REG_ERPAREN.
28569         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
28570         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
28571         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
28572         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
28573
28574         (_REG_RE_NAME, _REG_RM_NAME): New macros.
28575         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
28576         changed.  But support the old name if the new one is not defined
28577         and if _REGEX_SOURCE.
28578
28579         Change the following member names in struct re_pattern_buffer.
28580         The old names are still supported if !_REGEX_SOURCE.
28581         The new names are always supported, regardless of _REGEX_SOURCE.
28582         (re_buffer): Renamed from buffer.
28583         (re_allocated): Renamed from allocated.
28584         (re_used): Renamed from used.
28585         (re_syntax): Renamed from syntax.
28586         (re_fastmap): Renamed from fastmap.
28587         (re_translate): Renamed from translate.
28588         (re_can_be_null): Renamed from can_be_null.
28589         (re_regs_allocated): Renamed from regs_allocated.
28590         (re_fastmap_accurate): Renamed from fastmap_accurate.
28591         (re_no_sub): Renamed from no_sub.
28592         (re_not_bol): Renamed from not_bol.
28593         (re_not_eol): Renamed from not_eol.
28594         (re_newline_anchor): Renamed from newline_anchor.
28595
28596         Change the following member names in struct re_registers.
28597         The old names are still supported if !_REGEX_SOURCE.
28598         The new names are always supported, regardless of _REGEX_SOURCE.
28599         (rm_num_regs): Renamed from num_regs.
28600         (rm_start): Renamed from start.
28601         (rm_end): Renamed from end.
28602
28603         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
28604         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
28605         Prepend __ to parameter names.
28606
28607         Undo yesterday's changes.
28608
28609 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28610
28611         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
28612         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
28613         lib/regex.c.
28614
28615 2005-08-24  Jim Meyering  <jim@meyering.net>
28616
28617         Sync from coreutils.
28618         * m4/fcntl-safer.m4: New file.
28619
28620         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
28621         and object files for this module.
28622
28623 2005-08-24  Jim Meyering  <jim@meyering.net>
28624
28625         Sync from coreutils.
28626         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
28627
28628 2005-08-24  Jim Meyering  <jim@meyering.net>
28629
28630         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
28631         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
28632
28633 2005-08-24  Jim Meyering  <jim@meyering.net>
28634
28635         * modules/fcntl-safer: New module.
28636         * modules/fts (Depends-on): Add fcntl-safer.
28637         * MODULES.html.sh (File descriptor based Input/Output):
28638         Add fcntl-safer.
28639
28640 2005-08-24  Bruno Haible  <bruno@clisp.org>
28641
28642         Support for unit test modules.
28643         * modules/README: Mention tests modules.
28644         * modules/TEMPLATE-TESTS: New file.
28645         * gnulib-tool: New options --extract-tests-module, --with-tests and
28646         --tests-base (unused for the moment).
28647         (testsbase, inctests): New variables.
28648         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
28649         (func_verify_module): Exclude TEMPLATE-TESTS.
28650         (func_verify_nontests_module, func_verify_tests_module): New functions.
28651         (func_get_dependencies): Add implicit dependency for tests modules.
28652         (func_get_tests_module): New function.
28653         (func_modules_transitive_closure): When --with-tests was specified,
28654         include the unit tests as well, unless explicitly avoided.
28655         (func_emit_lib_Makefile_am): Ignore the tests modules here.
28656         (func_emit_tests_Makefile_am): New function.
28657         (func_create_testdir): When --with-tests was specified, emit a
28658         tests/ directory.
28659         * MODULES.html.sh (Future developments): Update.
28660
28661 2005-08-24  Bruno Haible  <bruno@clisp.org>
28662
28663         * modules/tls-tests: New file.
28664         * tests/test-tls.c: New file, from GNU gettext.
28665
28666 2005-08-24  Bruno Haible  <bruno@clisp.org>
28667
28668         * modules/lock-tests: New file.
28669         * tests/test-lock.c: New file, from GNU gettext.
28670
28671 2005-08-24  Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/lock.h: Add multiple inclusion guard.
28674         * lib/tls.h: Add multiple inclusion guard.
28675
28676 2005-08-24  Bruno Haible  <bruno@clisp.org>
28677
28678         * gnulib-tool: Add support for the --aux-dir option to
28679         --create-testdir, --create-megatestdir, --test, --megatest.
28680         (func_create_testdir, func_create_megatestdir): Optionally emit a
28681         AC_CONFIG_AUX_DIR directive.
28682         (create-testdir, create-megatestdir, test, megatest): Provide a
28683         default value for $auxdir.
28684
28685 2005-08-24  Bruno Haible  <bruno@clisp.org>
28686
28687         * gnulib-tool (import): Use compound statement instead of subshell
28688         where possible.
28689
28690 2005-08-24  Bruno Haible  <bruno@clisp.org>
28691
28692         * gnulib-tool (import): Change --aux-dir default to "build-aux".
28693
28694 2005-08-24  Bruno Haible  <bruno@clisp.org>
28695
28696         * gnulib-tool (func_version): Update.
28697
28698 2005-08-24  Bruno Haible  <bruno@clisp.org>
28699
28700         * gnulib-tool (func_import, func_create_testdir,
28701         func_create_megatestdir): Quote all autoconf macro arguments.
28702
28703 2005-08-24  Bruno Haible  <bruno@clisp.org>
28704
28705         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
28706         option --force, because --force causes the aclocal.m4 of each
28707         subdirectory to be newer than the corresponding config.h.in.
28708
28709 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28710
28711         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
28712         All contents moved to gl_REGEX.
28713         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
28714         assume that it does.
28715
28716 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28717
28718         * lib/regex.h (REG_NOSYS)
28719         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
28720         Define, since POSIX requires it as of 2001.
28721         (_REG_ENOSYS)
28722         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
28723         New private symbol, used to keep the enum signed in all cases.
28724         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
28725         Youngman in
28726         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
28727
28728         * lib/regex_internal.c (re_string_skip_chars, register_state):
28729         (calc_state_hash):
28730         Remove forward decls; no longer needed now that we use prototypes.
28731         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
28732         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
28733         (clean_state_log_if_needed): Likewise.
28734
28735 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28736
28737         * config/srclist.txt: Add glibc bugs 1231-1233.
28738
28739 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28740
28741         Fix problems reported by Sam Steingold in
28742         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
28743         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
28744         assumed that reg_errcode_t is a signed type, which is not
28745         necessarily true if _XOPEN_SOURCE is not defined.
28746         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
28747         since some compilers warn about it otherwise.
28748
28749 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28750
28751         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
28752         (init_word_char, create_initial_state, duplicate_node_closure):
28753         (fetch_token, peek_token_bracket, build_range_exp):
28754         (build_collating_symbol): Remove forward decls; no longer needed
28755         now that we use prototypes.
28756
28757         * lib/regcomp.c:
28758         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
28759         (re_compile_fastmap_iter, regcomp, regerror, regfree):
28760         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
28761         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
28762         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
28763         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
28764         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
28765         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
28766         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
28767         (build_range_exp, build_collating_symbol, parse_bracket_exp):
28768         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
28769         (build_charclass, build_charclass_op, fetch_number, create_tree):
28770         (create_token_tree, mark_opt_subexp, duplicate_tree):
28771         Use prototypes rather than old-style definitions.
28772
28773         * lib/regex_internal.c:
28774         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
28775         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
28776         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
28777         (re_string_reconstruct, re_string_peek_byte_case):
28778         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
28779         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
28780         (re_node_set_init_copy, re_node_set_add_intersect):
28781         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
28782         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
28783         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
28784         (re_acquire_state, re_acquire_state_context, register_state):
28785         (create_ci_newstate, create_cd_newstate, free_state):
28786         Likewise.
28787         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
28788         re_search_2):
28789         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
28790         (re_search_internal, prune_impossible_nodes):
28791         (acquire_init_state_context, check_matching, static):
28792         (check_halt_node_context, check_halt_state_context, proceed_next_node):
28793         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
28794         (update_regs, sift_states_backward, build_sifted_states):
28795         (clean_state_log_if_needed, merge_state_array):
28796         (update_cur_sifted_state, add_epsilon_src_nodes):
28797         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
28798         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
28799         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
28800         (find_recover_state, check_subexp_matching_top, transit_state_mb):
28801         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
28802         (check_arrival, check_arrival_add_next_nodes):
28803         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
28804         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
28805         (check_node_accept_bytes, check_node_accept, extend_buffers):
28806         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
28807         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
28808         (sift_ctx_init):
28809         Likewise.
28810
28811         * lib/regex_internal.h:
28812         (re_string_allocate, re_string_construct, re_string_reconstruct):
28813         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
28814         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
28815         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
28816         (re_string_context_at, re_string_peek_byte_case):
28817         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
28818         is defined, since we now use prototypes always.
28819
28820         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
28821         C89 or better.  All uses removed.
28822
28823 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
28824
28825         * config/srclist.txt: Add glibc bugs 1220-1227.
28826
28827 2005-08-20  Jim Meyering  <jim@meyering.net>
28828
28829         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
28830         of unused local, dfa.
28831
28832 2005-08-20  Bruno Haible  <bruno@clisp.org>
28833
28834         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
28835
28836 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28837
28838         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
28839         (re_node_set_insert_last, re_dfa_add_node):
28840         Rename local variables to avoid GCC shadowing warnings.
28841
28842 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28843
28844         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
28845         [defined lint]: Suppress bogus uninitialized-variable warnings.
28846
28847         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
28848         and let the caller return REG_ESPACE if out of space.  This
28849         removes an uninitialied-variable warning with GCC 4.0.1, and also
28850         avoids taking the address of a local variable.  All callers
28851         changed.
28852
28853 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
28854
28855         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
28856         $LIBCSRC/posix/regexec.c.
28857         Add glibc bug 1217 for regcomp.c.
28858
28859 2005-08-19  Jim Meyering  <jim@meyering.net>
28860
28861         * lib/regexec.c (proceed_next_node): Redo local variables to
28862         avoid GCC shadowing warnings.
28863
28864 2005-08-18  Bruno Haible  <bruno@clisp.org>
28865
28866         * lib/strstr.c (strstr): Fix return value in multibyte case.
28867         * lib/strcasestr.c (strcasestr): Likewise.
28868
28869 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28870
28871         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
28872
28873 2005-08-17  Jim Meyering  <jim@meyering.net>
28874
28875         Make the %s format (seconds since the epoch) work for a negative
28876         number and when used with a zero-padded field width, e.g. %015s.
28877
28878         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
28879         label so that it precedes the code to set `digits'.  Otherwise,
28880         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
28881         print `00-22'.  Now, it prints `-0022', as it should.
28882
28883 2005-08-17  Bruno Haible  <bruno@clisp.org>
28884
28885         * modules/strstr (Files): Add m4/mbrtowc.m4.
28886         (Depends-on): Add mbuiter.
28887
28888 2005-08-17  Bruno Haible  <bruno@clisp.org>
28889
28890         * modules/strcasestr: New file.
28891         * MODULES.html.sh (String handling, based on ANSI C 89): Add
28892         strcasestr.
28893
28894 2005-08-17  Bruno Haible  <bruno@clisp.org>
28895
28896         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
28897
28898 2005-08-17  Bruno Haible  <bruno@clisp.org>
28899
28900         * modules/mbuiter: New file.
28901         * MODULES.html.sh (Extended multibyte and wide character utilities):
28902         Add mbuiter.
28903
28904 2005-08-17  Bruno Haible  <bruno@clisp.org>
28905
28906         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
28907         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
28908
28909 2005-08-17  Bruno Haible  <bruno@clisp.org>
28910
28911         * m4/strcasestr.m4: New file.
28912
28913 2005-08-17  Bruno Haible  <bruno@clisp.org>
28914
28915         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
28916         * lib/strstr.c: Completely rewritten, with multibyte locale support.
28917
28918 2005-08-17  Bruno Haible  <bruno@clisp.org>
28919
28920         * lib/strcasestr.h: New file.
28921         * lib/strcasestr.c: New file.
28922
28923 2005-08-17  Bruno Haible  <bruno@clisp.org>
28924
28925         * lib/strcasecmp.c: Use mbuiter.h.
28926
28927 2005-08-17  Bruno Haible  <bruno@clisp.org>
28928
28929         * lib/mbuiter.h: New file.
28930
28931 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28932
28933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
28934         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
28935         and gl_GETOPT are both invoked via different paths (as happens
28936         with GNU tar CVS because it uses both argp and getopt), the former
28937         wins.
28938
28939 2005-08-16  Bruno Haible  <bruno@clisp.org>
28940
28941         * modules/tls: New file.
28942         * MODULES.html.sh (Multithreading): Add tls.
28943
28944 2005-08-16  Bruno Haible  <bruno@clisp.org>
28945
28946         * modules/strnlen1: New file.
28947         * MODULES.html.sh (String handling): Add strnlen1.
28948
28949 2005-08-16  Bruno Haible  <bruno@clisp.org>
28950
28951         * modules/strcase (Files): Add m4/mbrtowc.m4.
28952         (Depends-on): Add strnlen1, mbchar.
28953
28954 2005-08-16  Bruno Haible  <bruno@clisp.org>
28955
28956         * modules/mbiter: New file.
28957         * MODULES.html.sh (Extended multibyte and wide character utilities):
28958         Add mbiter.
28959
28960 2005-08-16  Bruno Haible  <bruno@clisp.org>
28961
28962         * modules/mbfile: New file.
28963         * MODULES.html.sh (Extended multibyte and wide character utilities):
28964         Add mbfile.
28965
28966 2005-08-16  Bruno Haible  <bruno@clisp.org>
28967
28968         * modules/mbchar: New file.
28969         * MODULES.html.sh (Extended multibyte and wide character utilities):
28970         New section.
28971
28972 2005-08-16  Bruno Haible  <bruno@clisp.org>
28973
28974         * m4/tls.m4: New file, from GNU gettext.
28975
28976 2005-08-16  Bruno Haible  <bruno@clisp.org>
28977
28978         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
28979         always.
28980         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
28981
28982 2005-08-16  Bruno Haible  <bruno@clisp.org>
28983
28984         * m4/mbiter.m4: New file.
28985
28986 2005-08-16  Bruno Haible  <bruno@clisp.org>
28987
28988         * m4/mbfile.m4: New file.
28989
28990 2005-08-16  Bruno Haible  <bruno@clisp.org>
28991
28992         * m4/mbchar.m4: New file.
28993
28994 2005-08-16  Bruno Haible  <bruno@clisp.org>
28995
28996         * lib/tls.h: New file, from GNU gettext.
28997         * lib/tls.c: New file, from GNU gettext.
28998
28999 2005-08-16  Bruno Haible  <bruno@clisp.org>
29000
29001         * lib/strnlen1.h: New file.
29002         * lib/strnlen1.c: New file.
29003
29004 2005-08-16  Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
29007         (mbi_init): Update.
29008         (mbi_avail, mbi_advance): Let the iteration end before the terminating
29009         NUL byte, not after it.
29010
29011 2005-08-16  Bruno Haible  <bruno@clisp.org>
29012
29013         * lib/strcase.h (strcasecmp): Add note in comments.
29014         * lib/strncasecmp.c: Use code from strcasecmp.c.
29015         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
29016         (strcasecmp): Work correctly in multibyte locales.
29017
29018 2005-08-16  Bruno Haible  <bruno@clisp.org>
29019
29020         * lib/mbiter.h: New file.
29021
29022 2005-08-16  Bruno Haible  <bruno@clisp.org>
29023
29024         * lib/mbfile.h: New file.
29025
29026 2005-08-16  Bruno Haible  <bruno@clisp.org>
29027
29028         * lib/mbchar.h: New file.
29029         * lib/mbchar.c: New file.
29030
29031 2005-08-16  Bruno Haible  <bruno@clisp.org>
29032
29033         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
29034         the valid ones. Makes the comparison operations transitive:
29035         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
29036         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
29037
29038 2005-08-15  Simon Josefsson  <jas@extundo.com>
29039
29040         * modules/ssize_t (License): Change to 'unlimited'.
29041
29042         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
29043
29044 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29045
29046         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
29047         Add comments for each pending glibc patch.
29048
29049 2005-08-15  Bruno Haible  <bruno@clisp.org>
29050
29051         * lib/regex.h (__restrict_arr): Don't define to __restrict if
29052         __cplusplus is defined.
29053
29054 2005-08-14  Jim Meyering  <jim@meyering.net>
29055
29056         Sync from coreutils.
29057
29058         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
29059         Use the hash-table-based cycle-detection code not just when
29060         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
29061         Reported by James Youngman in
29062         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
29063         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
29064         FTS_TIGHT_CYCLE_CHECK.
29065         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
29066         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
29067         once again.
29068         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
29069         * lib/fts.c (fd_safer): Remove decl.
29070         Include fcntl--.h rather than unistd-safer.h
29071         (fts_safe_changedir): Don't call fd_safer; no longer needed
29072         now that we include fcntl--.h.
29073
29074 2005-08-12  Simon Josefsson  <jas@extundo.com>
29075
29076         * modules/getndelim2: Use ssize_t module.
29077         * modules/getnline: Likewise.
29078         * modules/safe-read: Likewise.
29079         * modules/xreadlink: Likewise.
29080
29081         * modules/ssize_t: New file.
29082
29083 2005-08-12  Simon Josefsson  <jas@extundo.com>
29084
29085         * m4/readline.m4: Look for termcap, curses or ncurses if required.
29086
29087 2005-08-12  Simon Josefsson  <jas@extundo.com>
29088
29089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29090         ssize_t.
29091
29092 2005-08-12  Simon Josefsson  <jas@extundo.com>
29093
29094         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
29095         readline, getdelim and check_version.
29096         (Support for systems lacking ISO C 99: Sizes of integer types):
29097         Add size_max.
29098
29099 2005-08-12  Bruno Haible  <bruno@clisp.org>
29100
29101         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
29102
29103 2005-08-11  Simon Josefsson  <jas@extundo.com>
29104
29105         * modules/readline: New file.
29106
29107         * modules/strnlen (Files): Add strnlen.h.
29108
29109 2005-08-11  Simon Josefsson  <jas@extundo.com>
29110
29111         * m4/readline.m4: New file.
29112
29113 2005-08-11  Simon Josefsson  <jas@extundo.com>
29114
29115         * lib/readline.h, readline.c: New file.
29116
29117 2005-08-11  Simon Josefsson  <jas@extundo.com>
29118
29119         * doc/gnulib.texi (Initial import, Finishing touches): Mention
29120         gl_AVOID.
29121
29122 2005-08-11  Bruno Haible  <bruno@clisp.org>
29123
29124         * lib/strnlen.h (strnlen): Change parameter name to match comment.
29125
29126 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
29127
29128         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
29129
29130 2005-08-10  Simon Josefsson  <jas@extundo.com>
29131
29132         * tests/test-iconvme.c: New file.
29133
29134 2005-08-10  Simon Josefsson  <jas@extundo.com>
29135
29136         * m4/strnlen.m4: New file.
29137
29138         * m4/strndup.m4: Don't check for strnlen declaration, done in
29139         strnlen.m4.
29140
29141 2005-08-10  Simon Josefsson  <jas@extundo.com>
29142
29143         * lib/strndup.c: Use strnlen.h.
29144
29145         * lib/strnlen.h: New file.
29146
29147 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
29148
29149         * README: Typos.
29150
29151 2005-08-02  Simon Josefsson  <jas@extundo.com>
29152
29153         * modules/readline: New file.
29154
29155 2005-08-02  Simon Josefsson  <jas@extundo.com>
29156
29157         * modules/getdelim: New file.
29158
29159         * modules/getline: Rewrite, don't use getndelim2.
29160
29161 2005-08-02  Simon Josefsson  <jas@extundo.com>
29162
29163         * m4/getline.m4: Separate out getdelim stuff into separate module.
29164
29165         * m4/getdelim.m4: New file.
29166
29167 2005-08-02  Simon Josefsson  <jas@extundo.com>
29168
29169         * lib/getline.h, getline.c: Rewrite.
29170
29171         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
29172
29173 2005-07-31  Bruno Haible  <bruno@clisp.org>
29174
29175         * lib/lock.h (gl_lock_initializer): New macro.
29176         (gl_lock_define_initialized): Use it.
29177         (gl_rwlock_initializer): New macro.
29178         (gl_rwlock_define_initialized): Use it.
29179         (gl_recursive_lock_initializer): New macro.
29180         (gl_recursive_lock_define_initialized): Use it.
29181
29182 2005-07-30  Karl Berry  <karl@gnu.org>
29183
29184         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
29185         Report from Ben Pfaff, regarding getopt.
29186
29187 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
29188
29189         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
29190         normal way.
29191         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
29192         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
29193         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
29194         (gl_GETOPT): Use the new macros.  Most of the implementation
29195         is moved to the new macros.  This is for programs like Emacs
29196         that don't want all the functionality of gl_GETOPT.
29197
29198 2005-07-26  Bruno Haible  <bruno@clisp.org>
29199
29200         * m4/lock.m4: Update from GNU gettext.
29201
29202 2005-07-26  Bruno Haible  <bruno@clisp.org>
29203
29204         * lib/lock.h: Update from GNU gettext.
29205         * lib/lock.c: Update from GNU gettext.
29206
29207 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29208
29209         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
29210         obsolescent AC_TRY_RUN.  Include the default includes files, for
29211         'exit'.
29212
29213 2005-07-24  Bruno Haible  <bruno@clisp.org>
29214
29215         * modules/visibility: New file.
29216         * MODULES.html.sh (Misc): Add visibility.
29217
29218 2005-07-24  Bruno Haible  <bruno@clisp.org>
29219
29220         * m4/visibility.m4: New file.
29221
29222 2005-07-24  Bruno Haible  <bruno@clisp.org>
29223
29224         * doc/visibility.texi: New file.
29225
29226 2005-07-22  Bruno Haible  <bruno@clisp.org>
29227
29228         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
29229         $(ALLOCA_H), redundant through BUILT_SOURCES.
29230         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
29231         redundant through BUILT_SOURCES.
29232         * modules/byteswap (Makefile.am): Remove explicit dependency on
29233         $(BYTESWAP_H), redundant through BUILT_SOURCES.
29234         * modules/fnmatch (Makefile.am): Remove explicit dependency on
29235         $(FNMATCH_H), redundant through BUILT_SOURCES.
29236         * modules/getopt (Makefile.am): Remove explicit dependency on
29237         $(GETOPT_H), redundant through BUILT_SOURCES.
29238         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
29239         redundant through BUILT_SOURCES.
29240         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
29241         redundant through BUILT_SOURCES.
29242         * modules/stdbool (Makefile.am): Remove explicit dependency on
29243         $(STDBOOL_H), redundant through BUILT_SOURCES.
29244         * modules/stdint (Makefile.am): Remove explicit dependency on
29245         $(STDINT_H), redundant through BUILT_SOURCES.
29246         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
29247         Remove explicit dependency on $(SYSEXITS_H).
29248         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
29249
29250 2005-07-18  Simon Josefsson  <jas@extundo.com>
29251
29252         * lib/check-version.c (check_version): Accept identical versions too.
29253
29254 2005-07-18  Bruno Haible  <bruno@clisp.org>
29255
29256         * modules/lock: New file.
29257         * MODULES.html.sh (Multithreading): New section.
29258
29259 2005-07-18  Bruno Haible  <bruno@clisp.org>
29260
29261         * m4/lock.m4: New file, from GNU gettext.
29262
29263 2005-07-18  Bruno Haible  <bruno@clisp.org>
29264
29265         * lib/lock.h: New file, from GNU gettext.
29266         * lib/lock.c: New file, from GNU gettext.
29267
29268 2005-07-18  Bruno Haible  <bruno@clisp.org>
29269
29270         * lib/lock.h (gl_once_t): New type.
29271         (gl_once_define, gl_once): New macros.
29272         * lib/lock.c (fresh_once): New variable.
29273         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
29274         functions.
29275
29276 2005-07-16  Simon Josefsson  <jas@extundo.com>
29277
29278         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
29279         workaround, suggested by Bruno.
29280
29281 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29282
29283         * modules/xalloc (Depends-on): Add xalloc-die.
29284         * modules/xvasprintf (Depends-on): Add xalloc-die.
29285
29286 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29287
29288         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
29289         with a minor change.
29290
29291 2005-07-15  Bruno Haible  <bruno@clisp.org>
29292
29293         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
29294         When using lib/poll.c, define poll as rpl_poll.
29295
29296 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
29297
29298         * modules/argp (Depends-on): Remove unlocked-io.
29299
29300 2005-07-14  Derek Price  <derek@ximbiot.com>
29301
29302         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
29303         for glob symlink bug.
29304
29305 2005-07-14  Bruno Haible  <bruno@clisp.org>
29306
29307         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
29308         Instead, test for *_unlocked function declarations directly.
29309
29310 2005-07-11  Simon Josefsson  <jas@extundo.com>
29311
29312         * modules/size_max: New file.
29313
29314         * modules/xsize: Depend on size_max module for size_max.m4.
29315
29316 2005-07-11  Simon Josefsson  <jas@extundo.com>
29317
29318         * lib/size_max.h: New file.
29319
29320 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29321
29322         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
29323         copyright symbol and the year.
29324         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
29325         (version_etc_va): Use parameterized copyright notice.
29326         Reword to conform to the current GNU coding standards.
29327
29328 2005-07-11  Karl Berry  <karl@gnu.org>
29329
29330         * doc/gnulib.texi (Quoting): new node.
29331         (Initial import): more info, from Patrice.
29332
29333 2005-07-11  Bruno Haible  <bruno@clisp.org>
29334
29335         * gnulib-tool (func_usage): Document option --avoid.
29336         (Command line options): Handle --avoid.
29337         (func_acceptable): New function.
29338         (func_modules_transitive_closure): Use it.
29339
29340 2005-07-11  Bruno Haible  <bruno@clisp.org>
29341
29342         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
29343         Reported by Jim Meyering.
29344
29345 2005-07-10  Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
29348         Needed when size_t is smaller than 'unsigned int'.
29349         Reported by Paul Eggert.
29350
29351 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29352
29353         * modules/argp (Depends-on): Add unlocked-io
29354
29355 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29356
29357         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
29358         block of defines.
29359
29360 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29361
29362         * config/srclist.txt: Comment out regcomp.c, since we have a porting
29363         fix now.
29364
29365 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
29366         and Paul Eggert  <eggert@cs.ucla.edu>
29367
29368         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
29369         in wint_t, not wchar_t.  Remove now-unnecessary cast.
29370
29371 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29372
29373         * modules/regex (Files): Add lib/regex_internal.c,
29374         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
29375         (Depends-on): Add extensions.
29376         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
29377
29378 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29379
29380         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
29381         pathconf.
29382         * m4/same.m4 (gl_SAME): Likewise.
29383         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
29384
29385         * m4/regex.m4: Adjust to new libc regex implementation.
29386         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
29387         all the .c and .h parts of (the new) regex.
29388         Quote the m4 stuff better.
29389         Check for RE_ICASE bug of old gnulib.
29390         Check for REG_STARTEND of recent libc.
29391         Rename local variables from jm_* to gl_*.
29392         Quote operand of "test -f".
29393         Say "recent enough" version of libc, not "version 2".
29394         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
29395         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
29396         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
29397         Remove check for btowc, isascii.
29398         Require AM_LANGINFO_CODESET.
29399
29400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29401
29402         * lib/regex.c, regex.h: Sync from libc.
29403         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
29404         * lib/regexec.c:
29405         New files, synced from libc, except that regex_internal.h
29406         currently has a small porting fix.
29407
29408 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
29409
29410         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
29411         regex_internal.c, regexec.c.
29412         Add regex_internal.h too, but as a comment, since the libc version
29413         is currently broken in gnulib mode.
29414
29415 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29416
29417         Support programs like Emacs that use gnulib but not gettext.
29418         * MODULES.html.sh (Internationalization functions): Add gettext-h.
29419         * modules/gettext-h: New file.
29420         * modules/gettext (Files): Remove lib/gettext.h.
29421         (Depends-on): Add gettext-h.
29422         (Makefile.am): Remove lib_SOURCES.
29423         * modules/argmatch, modules/c-stack, modules/closeout:
29424         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
29425         * modules/execute, modules/file-type, modules/getaddrinfo:
29426         * modules/getopt, modules/human, modules/javacomp:
29427         * modules/javaexec, modules/mkdir-p, modules/obstack:
29428         * modules/openat, modules/pagealign_alloc, modules/pipe:
29429         * modules/quotearg, modules/regex, modules/rpmatch:
29430         * modules/unicodeio, modules/userspec, modules/version-etc:
29431         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
29432         * modules/xsetenv:
29433         Depend on gettext-h, not gettext.
29434
29435 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29436
29437         * gnulib-tool (func_import): Add support for 'public domain' license.
29438         * modules/alloca, modules/atexit, modules/memmove:
29439         Now public domain, not GPL.
29440         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
29441         * modules/realloc, modules/strerror, modules/strtod:
29442         Now LGPL, not GPL.
29443
29444 2005-07-05  Bruno Haible  <bruno@clisp.org>
29445
29446         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
29447         autoconf CVS. Needed for mingw.
29448
29449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29450
29451         Remove the dependency of the strftime module on the tzset module.
29452         * modules/strftime (Depends-on): Remove dependency on tzset.
29453
29454 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29455
29456         Remove the dependency of the strftime module on the tzset module.
29457         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
29458         gl_FUNC_TZSET_CLOBBER.
29459
29460 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29461
29462         Remove the dependency of the strftime module on the tzset module.
29463         * lib/strftime.c (my_strftime)
29464         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
29465         Copy the input structure, to work around some of the bug with
29466         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
29467         Solaris releases, you should also use the tzset module, but we won't
29468         require it as a dependency any more since we don't want LGPLed code
29469         to depend on GPLed code.
29470
29471 2005-07-02  Jim Meyering  <jim@meyering.net>
29472
29473         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
29474         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
29475         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
29476         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
29477
29478 2005-07-02  Jim Meyering  <jim@meyering.net>
29479
29480         * lib/backupfile.c (backup_args): Change a `0' to NULL.
29481
29482 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
29483
29484         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
29485         declares only 'struct timespec;' (!).
29486
29487 2005-07-01  Jim Meyering  <jim@meyering.net>
29488
29489         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
29490         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
29491         * lib/save-cwd.c, tempname.c:
29492         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
29493         and don't include <sys/file.h>).
29494
29495 2005-06-29  Jim Meyering  <jim@meyering.net>
29496
29497         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
29498         type name.  Use the variable name instead.
29499         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
29500         Likewise.
29501
29502 2005-06-28  Simon Josefsson  <jas@extundo.com>
29503
29504         * modules/check-version (Files): Add check-version.m4.
29505
29506 2005-06-28  Simon Josefsson  <jas@extundo.com>
29507
29508         * m4/check-version.m4: New file, suggested by Jim Meyering
29509         <jim@meyering.net>.
29510
29511 2005-06-28  Simon Josefsson  <jas@extundo.com>
29512
29513         * lib/check-version.h, lib/check-version.c: New files.
29514
29515 2005-06-28  Simon Josefsson  <jas@extundo.com>
29516
29517         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
29518         collision with global variable.  Better indentation.  Don't
29519         increment buffer pointer beyond buffer end.  Based on comments
29520         from Paul Eggert <eggert@cs.ucla.edu>.
29521
29522         * lib/base64.h: Indent.
29523
29524 2005-06-28  Simon Josefsson  <jas@extundo.com>
29525
29526         * doc/gnulib.texi (Library version handling): New section.
29527
29528 2005-06-28  Jim Meyering  <jim@meyering.net>
29529
29530         * check-module (find_included_lib_files): Hard-code another
29531         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
29532         but modules/fts-lgpl (correctly) does not list those files.
29533
29534         * modules/canonicalize (Files): Add lib/pathmax.h.
29535
29536 2005-06-25  Simon Josefsson  <jas@extundo.com>
29537
29538         * modules/check-version: New file.
29539
29540 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29541
29542         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
29543         initializer of struct addrinfo, as an indication that we don't
29544         care how many members the structure has.
29545
29546 2005-06-24  Derek Price  <derek@ximbiot.com>
29547         and Bruno Haible  <bruno@clisp.org>
29548
29549         Remove stat module & update lstat.
29550         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
29551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29552         * m4/stat.m4: Remove this file.
29553
29554 2005-06-24  Derek Price  <derek@ximbiot.com>
29555         and Bruno Haible  <bruno@clisp.org>
29556
29557         Remove stat module & update lstat.
29558         * lib/stat.c: Remove this file...
29559         (slash_aware_lstat): ...moving this content and its support...
29560         * lib/lstat.c (rpl_lstat): ...into here.
29561         * lib/lstat.h: New file.
29562
29563 2005-06-24  Derek Price  <derek@ximbiot.com>
29564         and Bruno Haible  <bruno@clisp.org>
29565
29566         Remove stat module & update lstat.
29567         * config/srclist.txt (libc sources): Remove stat.
29568
29569 2005-06-24  Derek Price  <derek@ximbiot.com>
29570         and Bruno Haible  <bruno@clisp.org>
29571
29572         Remove stat module & update lstat.
29573         * MODULES.html.sh (stat): Remove.
29574         * MODULES.html: Regenerated.
29575         * modules/lstat (Description): Correct function name.
29576         (Files): Add "lstat.h".
29577         (Depends-on): Remove stat, add xalloc, stat-macros.
29578         * modules/stat: Remove this file.
29579         (Include): Add "lstat.h", remove <sys/stat.h>.
29580
29581 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29582
29583         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
29584         (ranged_convert): Don't save conversion in a temporary struct.
29585         This causes a warning with GCC 4.0.0, and anyway in the typical
29586         case it's not worth the extra 100 bytes or so of code.
29587         (ranged_convert, __mktime_internal): When calling a function via a
29588         pointer P, use P () rather than (*P) (), as we now assume C89 or
29589         better.
29590
29591 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29592
29593         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
29594         "who -r" failed to give output.  Problem reported by Tim Waugh.
29595
29596         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
29597         (xcalloc): Use it to avoid needless tests.
29598         Problem reported by Jim Meyering.
29599
29600 2005-06-20  Derek Price  <derek@ximbiot.com>
29601
29602         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
29603         unnecessary for Autoconfs > 2.59c.
29604
29605 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29606
29607         * lib/argp.h (__option_is_short): Check upper limit of
29608         __key. Isprint() requires its argument to have the value
29609         of an unsigned char or EOF.
29610
29611 2005-06-16  Jim Meyering  <jim@meyering.net>
29612
29613         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
29614         when either N or S is zero.
29615
29616 2005-06-16  Derek Price  <derek@ximbiot.com>
29617
29618         * m4/bison.m4: Declare YACC & YFLAGS precious.
29619
29620 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
29621
29622         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
29623         multibyte string or pattern, fall back on unibyte matching.
29624         Problem reported by James Youngman.
29625
29626 2005-06-08  Bruno Haible  <bruno@clisp.org>
29627
29628         * modules/csharpcomp: New file.
29629         * MODULES.html.sh (C#): Add csharpcomp.
29630
29631 2005-06-08  Bruno Haible  <bruno@clisp.org>
29632
29633         * m4/csharpcomp.m4: New file, from GNU gettext.
29634
29635 2005-06-08  Bruno Haible  <bruno@clisp.org>
29636
29637         * lib/csharpcomp.h: New file, from GNU gettext.
29638         * lib/csharpcomp.c: New file, from GNU gettext.
29639         * lib/csharpcomp.sh.in: New file, from GNU gettext.
29640
29641 2005-06-08  Bruno Haible  <bruno@clisp.org>
29642
29643         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
29644         warning on mingw.
29645
29646 2005-06-07  Derek Price  <derek@ximbiot.com>
29647
29648         Sync from CVS.
29649         * lib/glob_.h: Indent nested #ifdef.
29650
29651 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29652
29653         Sync from coreutils.
29654         Use "file name" when talking about file names, instead of "filename"
29655         or "path", as per the GNU coding standards.
29656         * lib/mkdir-p.c: Renamed from makepath.c.
29657         (make_dir_parents): Renamed from make_path.  All callers changed.
29658         * lib/mkdir-p.h: Likewise.  All includers changed.
29659         * lib/filenamecat.c: Renamed from path-concat.c.
29660         (file_name_concat): Renamed from path_concat.  All callers changed.
29661         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
29662         * lib/filenamecat.h: Likewise.  All includers changed.
29663         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
29664         in comments or local variable names.
29665         * lib/basename.c: Likewise.
29666         * lib/canonicalize.c, canonicalize.h: Likewise.
29667         * lib/dirname.c, dirname.h: Likewise.
29668         * lib/euidaccess.c: Likewise.
29669         * lib/exclude.c: Likewise
29670         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
29671         * lib/fsusage.c, fsuage.h: Likewise.
29672         * lib/fts.c, fts_.h: Likewise.
29673         * lib/getcwd.c: Likewise.
29674         * lib/getloadavg.c: Likewise.
29675         * lib/mkstemp.c: Likewise.
29676         * lib/mountlist.c, mountlist.h: Likewise.
29677         * lib/openat.c, openat.h: Likewise.
29678         * lib/readlink-stub.c: Likewise.
29679         * lib/readutmp.c, readutmp.h: Likewise.
29680         * lib/rename.c: Likewise.
29681         * lib/rmdir.c: Likewise.
29682         * lib/same.c: Likewise.
29683         * lib/savedir.c: Likewise.
29684         * lib/stripslash.c: Likewise.
29685         * lib/tempname.c: Likewise.
29686         * lib/xreadlink.c: Likewise.
29687         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
29688         All uses changed.
29689         * lib/exclude.h: Likewise.
29690
29691         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
29692         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29693         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
29694         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29695         * lib/pathmax.h: Include <limits.h> unconditionally, since other
29696         files have been getting away with it for years (MORE/BSD 4.3
29697         is extinct now).
29698         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
29699         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
29700
29701         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
29702         Define to 256, not 255, as per modern POSIX.
29703
29704 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29705
29706         Sync from coreutils.
29707         Use "file name" when talking about file names, instead of "filename"
29708         or "path", as per the GNU coding standards.
29709         * MODULES.html.sh: mkdir-p renamed from makepath.
29710         filenamecat renamed from path-concat.
29711         * modules/filenamecat: Renamed from modules/path-concat.
29712         (Files): filenamecat.h and filenamecat.c renamed from
29713         path-concat.h and path-concat.c.
29714         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
29715         (Include): filenamecat.h, not path-concat.h.
29716         * modules/mkdir-p: Renamed from modules/makepath.
29717         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
29718         makepath.c.
29719         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
29720         (Include): mkdir-p.h, not makepath.h.
29721
29722 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
29723
29724         Sync from coreutils.
29725         * m4/mkdir-p.m4: Renamed from makepath.m4.
29726         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
29727         Rename files from makepath.c to mkdir-p.c, and from
29728         makepath.h to mkdir-p.h.
29729         * m4/filenamecat.m4: Renamed from path-concat.m4.
29730         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
29731         Rename files from path-concat.c to filenamecat.c,
29732         and from path-concat.h to filenamecat.h.
29733         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
29734         "file name" in local variables or comments.
29735         * m4/rename.m4: Likewise.
29736
29737 2005-06-01  Bruno Haible  <bruno@clisp.org>
29738
29739         * modules/csharpexec: New file.
29740         * MODULES.html.sh (C#): New section.
29741
29742 2005-06-01  Bruno Haible  <bruno@clisp.org>
29743
29744         * m4/csharp.m4: New file, from GNU gettext.
29745         * m4/csharpexec.m4: New file, from GNU gettext.
29746
29747 2005-06-01  Bruno Haible  <bruno@clisp.org>
29748
29749         * lib/csharpexec.h: New file, from GNU gettext.
29750         * lib/csharpexec.c: New file, from GNU gettext.
29751         * lib/csharpexec.sh.in: New file, from GNU gettext.
29752
29753 2005-05-31  Derek Price  <derek@ximbiot.com>
29754             Paul Eggert  <eggert@cs.ucla.edu>
29755
29756         Sync from cvs.
29757         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29758
29759 2005-05-31  Derek Price  <derek@ximbiot.com>
29760             Paul Eggert  <eggert@cs.ucla.edu>
29761
29762         Sync from cvs.
29763         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
29764
29765 2005-05-29  Derek Price  <derek@ximbiot.com>
29766
29767         * config/srclist.txt (glob_.h, glob.c): Add these files.
29768
29769 2005-05-29  Derek Price  <derek@ximbiot.com>
29770
29771         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
29772         * modules/glob: New file.
29773         * modules/getlogin_r: Add link to POSIX spec in description.
29774
29775 2005-05-29  Derek Price  <derek@ximbiot.com>
29776             Paul Eggert  <eggert@cs.ucla.edu>
29777
29778         * m4/glob.m4: New file.
29779
29780 2005-05-29  Derek Price  <derek@ximbiot.com>
29781             Paul Eggert  <eggert@cs.ucla.edu>
29782
29783         * lib/glob_.h, lib/glob.c: New files.
29784
29785 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29786
29787         * modules/fts (Files): Remove m4/inttypes-pri.m4.
29788         * modules/fts-lgpl (Depends-on): Remove gettext.
29789
29790 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29791
29792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
29793         and don't require gt_INTTYPES_PRI.
29794
29795 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29796
29797         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
29798
29799         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
29800         the configuration hassle isn't worth it.
29801         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
29802         (LONGEST_MODIFIER, PRIuMAX): Remove.
29803
29804 2005-05-27  Bruno Haible  <bruno@clisp.org>
29805
29806         * lib/getlogin_r.h: Remove second include of <stddef.h>.
29807
29808 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
29809
29810         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
29811         _POSIX_PTHREAD_SEMANTICS for Solaris.
29812
29813 2005-05-25  Derek Price  <derek@ximbiot.com>
29814
29815         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
29816
29817 2005-05-25  Derek Price  <derek@ximbiot.com>
29818             Paul Eggert  <eggert@cs.ucla.edu>
29819
29820         * modules/getlogin_r, m4/getlogin_r.m4: New files.
29821         * lib/getlogin_r.c, getlogin_r.h: New files.
29822
29823 2005-05-25  Bruno Haible  <bruno@clisp.org>
29824             Derek Price  <derek@ximbiot.com>
29825
29826         * lib/getlogin_r.h: Simplify API documentation.
29827
29828 2005-05-23  Derek Price  <derek@ximbiot.com>
29829
29830         * modules/minmax (Files): Add m4/minmax.m4.
29831         (configure.ac): Add gl_MINMAX.
29832
29833 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
29834
29835         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
29836         so that unistd-safer.h (GPL'ed code) need not be included.
29837
29838 2005-05-22  Bruno Haible  <bruno@clisp.org>
29839
29840         * m4/minmax.m4: New file.
29841         Based on a patch by Derek Price <derek@ximbiot.com>.
29842
29843 2005-05-22  Bruno Haible  <bruno@clisp.org>
29844
29845         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
29846         (INT64_MIN): Fix definition.
29847         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
29848
29849         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
29850         NEED_SIGNED_INT_TYPES.
29851
29852         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
29853         HAVE_SYSTEM_INTTYPES.
29854
29855 2005-05-22  Bruno Haible  <bruno@clisp.org>
29856
29857         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
29858         Also include <sys/param.h> if it defines MIN, MAX.
29859         Based on a patch by Derek Price <derek@ximbiot.com>.
29860
29861 2005-05-21  Jim Meyering  <jim@meyering.net>
29862
29863         * modules/fts (Files): Add m4/inttypes-pri.m4.
29864         (Depends-on): Add lstat and remove gettext.  Alphabetize.
29865
29866 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29867
29868         New fts module.
29869         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
29870         (setup_dir, free_dir): New functions.
29871         (enter_dir, leave_dir): Define trivial
29872         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
29873         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
29874         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
29875         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
29876         Move to fts-cycle.c.
29877         (fts_open): Use setup_dir.
29878         (fts_close): Use free_dir.
29879         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
29880         This adds a label and some gotos, but the alternatives were messier.
29881         Check for memory allocation failure when entering a dir.
29882         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
29883         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
29884         (FTS): New member fts_cycle, that is a union that contains the
29885         old active_dir_ht and cycle_state.  All uses changed to mention
29886         fts_cycle.ht and fts_cycle.state.
29887         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
29888         fts.c, with the following changes:
29889         (setup_dir, free_dir): New functions.
29890         (enter_dir): Now returns bool.  Return true if successful, false
29891         if memory exhausted.  All callers changed.
29892         Do not bother partly cleaning up on
29893         memory allocation failure; that is free_dir's job.
29894         However, free ad if hash_insert fails, to avoid memory leak.
29895         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
29896         fts->fts_options to see which union member to use.
29897
29898 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29899
29900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
29901         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
29902
29903 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29904
29905         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
29906
29907 2005-05-20  Jim Meyering  <jim@meyering.net>
29908
29909         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
29910         Now a macro, to pacify GCC.
29911
29912 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
29913
29914         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
29915         of -1.
29916
29917 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
29918
29919         * lib/chown.c (rpl_chown): Return -1 on failure.
29920
29921 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29922
29923         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
29924         Don't check for stddef.h.
29925         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
29926         don't use its results.
29927         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
29928         since we include them unconditionally.  Don't require
29929         AM_STDBOOL_H, since stdbool is a prerequisite.
29930         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
29931         since we assume C89 or better.
29932         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
29933         as we don't use their results.
29934         Don't check for fchdir, memmove, memset, strrchr, as we use
29935         them unconditionally.
29936         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
29937         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
29938
29939 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
29940
29941         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
29942         Include <stddef.h> unconditionally, since we assume C89 now.
29943         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
29944         * lib/fts.c: Include fts_.h first, to check interface.
29945         Do not include intprops.h; no longer needed.
29946         Include cycle-check.h and hash.h, since fts_.h no longer does.
29947         Remove unnecessary casts of closedir to void.
29948         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
29949         decide whether to decrement nlinks.
29950         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
29951         (FTS): Use struct hash_table * instead of Hash_table, so that
29952         we no longer need to include hash.h here.
29953
29954 2005-05-18  Jim Meyering  <jim@meyering.net>
29955
29956         * modules/dirfd (License): Change to LGPL.  Most of the code
29957         is already in the public domain.
29958
29959 2005-05-18  Jim Meyering  <jim@meyering.net>
29960
29961         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
29962         Reported by Yoann Vandoorselaere.
29963
29964 2005-05-17  Jim Meyering  <jim@meyering.net>
29965
29966         * m4/fts.m4: New file, from coreutils.
29967
29968 2005-05-17  Jim Meyering  <jim@meyering.net>
29969
29970         * lib/fts.c, lib/fts_.h: New files, from coreutils.
29971
29972 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29973
29974         Sync from coreutils.
29975         * m4/unlinkdir.m4: New file.
29976
29977 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29978
29979         Sync from coreutils.
29980         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
29981         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
29982         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
29983         White space changes only.
29984         * lib/makepath.c (make_path): Port to hosts where leading "//" is
29985         special.
29986         * lib/yesno.c: Include getline.h, not ctype.h.
29987         (yesno): Don't remove leading white space; POSIX doesn't allow it.
29988         Use getline to remove arbitrary restriction on response length.
29989
29990 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29991
29992         * config/srclist-update: Spell out "Street" in FSF postal
29993         mail address; this is the style the FSF seems to prefer.
29994
29995         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
29996         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
29997         this updates FSF postal mail address.
29998
29999         Sync from coreutils.
30000         * modules/unlinkdir: New file.
30001         * modules/yesno (Depends-on): Add getline.
30002         * MODULES.html.sh (File system functions): Add unlinkdir.
30003
30004 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30005
30006         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
30007         lib/strsep.h:
30008         Change the initial comment to refer to GPL, not LGPL.
30009         gnulib-tool will change it to LGPL as needed.
30010
30011         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
30012         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
30013         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
30014         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
30015         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
30016         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
30017         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
30018         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
30019         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
30020         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
30021         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
30022         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
30023         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
30024         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
30025         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
30026         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
30027         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
30028         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
30029         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
30030         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
30031         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
30032         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
30033         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
30034         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
30035         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
30036         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
30037         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
30038         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
30039         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
30040         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
30041         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
30042         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
30043         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
30044         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
30045         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
30046         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
30047         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
30048         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
30049         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
30050         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
30051         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
30052         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
30053         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
30054         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
30055         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
30056         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
30057         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
30058         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
30059         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
30060         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
30061         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30062         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
30063         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
30064         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
30065         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
30066         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
30067         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
30068         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
30069         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
30070         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
30071         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
30072         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
30073         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
30074         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
30075         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
30076         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
30077         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
30078         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
30079         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
30080         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
30081         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
30082         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
30083         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
30084         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
30085         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
30086         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
30087         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
30088         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
30089         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
30090         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
30091         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
30092         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
30093         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
30094         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
30095         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
30096         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
30097         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
30098         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
30099         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
30100         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
30101         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
30102         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
30103         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
30104         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
30105         lib/yesno.c, lib/yesno.h:
30106         Update FSF postal mail address.
30107
30108 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30109
30110         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
30111         tests/test-memmem.c, tests/test-stpncpy.c:
30112         Update FSF postal mail address.
30113
30114 2005-05-13  Bruno Haible  <bruno@clisp.org>
30115
30116         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
30117         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
30118         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
30119         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
30120         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
30121         Add support for 64-bit integers in the MSVC compiler.
30122
30123 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30124
30125         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
30126
30127 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
30128
30129         * gnulib-tool (func_import): Sort and uniquify recommended includes.
30130
30131 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30132
30133         * doc/getdate.texi (General date syntax): Don't say that date
30134         date --iso-8601=ns generates acceptable dates; it doesn't yet.
30135         Problem reported by Nic Ferrier.
30136
30137 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30138
30139         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
30140         specified in ai_socktype. Fix invalid ai_protocol
30141         check. ai_protocol is usually set to 0 or depending on
30142         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
30143         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
30144         ai_socktype / ai_protocol in the returned addrinfo structure.
30145
30146 2005-05-10  Simon Josefsson  <jas@extundo.com>
30147
30148         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
30149         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30150
30151 2005-05-10  Karl Berry  <karl@gnu.org>
30152
30153         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
30154         (from http://www.gnu.org/licenses).
30155         * doc/COPYING.LIB: also rename to COPYING.LESSER.
30156         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
30157         fdl.texi suffices.
30158
30159 2005-05-10  Karl Berry  <karl@gnu.org>
30160
30161         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
30162         (COPYING.DOC): remove.
30163
30164         * config/srclist-update: new FSF address.
30165
30166 2005-05-10  Derek Price  <derek@ximbiot.com>
30167
30168         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
30169         possible.
30170
30171 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30172             Bruno Haible  <bruno@clisp.org>
30173
30174         * modules/inet_ntop: New file.
30175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30176         inet_ntop.
30177
30178 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30179             Bruno Haible  <bruno@clisp.org>
30180
30181         * m4/inet_ntop.m4: New file.
30182
30183 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30184             Bruno Haible  <bruno@clisp.org>
30185
30186         * lib/inet_ntop.h: New file.
30187         * lib/inet_ntop.c: New file, from glibc with modifications.
30188
30189 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
30190
30191         * modules/time_r (License): Change to LGPL.
30192         * modules/extensions (License): Change to LGPL.  Actually,
30193         the license is more permissive than that, but currently gnulib-tool
30194         doesn't know how to handle more-permissive licenses.
30195
30196         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
30197         Problem reported by Dave Love.
30198
30199 2005-05-08  Jim Meyering  <jim@meyering.net>
30200
30201         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
30202         blank.
30203
30204 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30205
30206         * modules/argmatch (Depends-on): Add stdbool.
30207         * modules/backupfile (Depends-on): Likewise.
30208         * modules/chdir-long (Depends-on): Likewise.
30209         * modules/closeout (Depends-on): Likewise.
30210         * modules/cycle-check (Depends-on): Likewise.
30211         * modules/dirname (Depends-on): Likewise.
30212         * modules/fnmatch (Depends-on): Likewise.
30213         * modules/fsusage (Depends-on): Likewise.
30214         * modules/fwriteerror (Depends-on): Likewise.
30215         * modules/getcwd (Depends-on): Likewise.
30216         * modules/getloadavg (Depends-on): Likewise.
30217         * modules/hard-locale (Depends-on): Likewise.
30218         * modules/makepath (Depends-on): Likewise.
30219         * modules/mountlist (Depends-on): Likewise.
30220         * modules/nanosleep (Depends-on): Likewise.
30221         * modules/posixtm (Depends-on): Likewise.
30222         * modules/quotearg (Depends-on): Likewise.
30223         * modules/readtokens (Depends-on): Likewise.
30224         * modules/readtokens0 (Depends-on): Likewise.
30225         * modules/readutmp (Depends-on): Likewise.
30226         * modules/save-cwd (Depends-on): Likewise.
30227         * modules/strftime (Depends-on): Likewise.
30228         * modules/userspec (Depends-on): Likewise.
30229         * modules/utimecmp (Depends-on): Likewise.
30230         * modules/xgetcwd (Depends-on): Likewise.
30231         * modules/xnanosleep (Depends-on): Likewise.
30232         * modules/xstrtod (Depends-on): Likewise.
30233         * modules/yesno (Depends-on): Likewise.
30234
30235 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30236
30237         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
30238         needless checks.
30239
30240 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30241
30242         Merge from coreutils.  Among other things,
30243         add bulletproofing for cases where stdin, stdout, or stderr are closed.
30244         * lib/fd-safer.c: New file.
30245         * lib/fcntl-safer.h, open-safer.c: Remove.
30246         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
30247         * lib/dup-safer.c: Include unistd-safer.h first.
30248         Don't include errno.h.
30249         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
30250         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
30251         * lib/file-type.c: Rely on file-type.h change.
30252         * lib/getloadavg.c: Include unistd-safer.h.
30253         (getloadavg): Use safer open.
30254         * lib/getusershell.c: Include "stdio-safer.h".
30255         (getusershell): Use safer fopen.
30256         * lib/long-options.c (long_options): Use NULL rather than 0.
30257         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
30258         'free'.
30259         * lib/modechange.c: Likewise.
30260         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
30261         (MODE_DONE): New constant.
30262         (struct mode_change): Remove 'next' member.
30263         (make_node_op_equals): New function; like the old one of the
30264         same name, except it allocates an array.
30265         (mode_compile, mode_create_from_ref): Use it.
30266         (mode_compile): Allocate result as an array, not a linked list.
30267         Parse octal string ourself, so that we catch mistakes like "+0".
30268         (mode_adjust): Arg is an array, not a linked list.
30269         * lib/modechange.c: Include stat-macros.h, xalloc.h.
30270         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
30271         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
30272         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
30273         Remove.  This is now stat-macros.h's job.
30274         (talloc): Remove.  All callers replaced by xalloc, so that
30275         our invokers don't have to worry about reporting memory failures.
30276         (make_node_op_equals): Remove.
30277         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30278         New constants.
30279         (struct mode_change): Moved here from modechange.h.
30280         (mode_append_entry): Remove.
30281         (mode_compile): Remove MASKED_OPS arg, since it encouraged
30282         apps to have incorrect behavior.  Use simpler algorithm for head
30283         and tail.  Don't futz with umask; that's now the job of mode_adjust.
30284         Detect more invalid usages rather than having somewhat-random behavior.
30285         Don't insert an "a=" action, as that leads to incorrect behavior.
30286         (mode_compile, mode_create_from_ref): Return NULL on error instead
30287         of an enum, since now there's only one way to have an error.  All
30288         callers changed.
30289         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
30290         at the correct time.  Simplify calculation of "+u" and its ilk.
30291         Don't mishandle "+X".
30292         (mode_free): Remove "register" and localize decls.
30293         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
30294         (struct mode_change): Move to modechange.c; callers don't
30295         need to see this stuff.
30296         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
30297         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
30298         (mode_change, mode_adjust): Reflect the new signatures noted above.
30299         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
30300         that might redefine system include files.
30301         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
30302         (my_usleep): Use NULL rather than (void *) 0.
30303         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
30304         Use siginterrupt to specify that system calls should be interrupted.
30305         (rpl_nanosleep): Move initialization of suspended closer to call of
30306         my_usleep.
30307         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
30308         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
30309         (desirable_utmp_entry): New function.
30310         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
30311         using x2nrealloc, to simplify logic.
30312         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
30313         size calculation.  Do not assume utmp file is a regular file.
30314         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
30315         (READ_UTMP_CHECK_PIDS): New constant.
30316         * lib/save-cwd.c: Include unistd-safer.h.
30317         (save_cwd): Use fd_safer.
30318         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
30319         [!_LIBC] Include "stat-macros.h" instead.
30320         * lib/unistd-safer.h (fd_safer): New decl.
30321
30322 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30323
30324         * modules/getloadavg (Depends-on): Add unistd-safer.
30325         * modules/getusershell (Depends-on): Add stdio-safer.
30326         * modules/lstat (Depends-on): Remove xalloc.
30327         * modules/mkstemp (Depends-on): Add stat-macros.
30328         * modules/modechange (Depends-on): Remove xstrtol.
30329         Add stat-macros, xalloc.
30330         * modules/save-cwd (Depends-on): Add unistd-safer.
30331         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
30332         * modules/unistd-safer (Files): Add lib/fd-safer.c
30333         (Makefile.am): Remove lib_SOURCES.
30334
30335         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
30336         Remove fcntl-safer; unistd-safer supersedes it.
30337
30338 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30339
30340         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
30341         AC_HEADER_STAT.
30342         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
30343         (gl_PREREQ_CHOWN): Remove.
30344         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
30345         it.  Don't require AC_HEADER_STAT.
30346         (gl_PREREQ_LSTAT): Remove.
30347         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
30348         Don't require AC_HEADER_STAT.
30349         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
30350         (gl_PREREQ_RMDIR): Remove.
30351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
30352         mention stat-macros.h or AC_HEADER_STAT, since we'll make
30353         the stat-macros module a prerequisite.
30354         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
30355         * m4/filemode.m4 (gl_FILEMODE): Likewise.
30356         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
30357         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
30358         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
30359         variable names.
30360         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
30361         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
30362         variable prefixes.
30363         * m4/fcntl-safer.m4: Remove.
30364         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
30365         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
30366         Invoke gl_PREREQ_FD_SAFER.
30367         (gl_PREREQ_FD_SAFER): New macro.
30368         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
30369         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
30370         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
30371         Remove duplicate call to AC_LIBOBJ(readutmp).
30372         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
30373
30374         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
30375         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
30376
30377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
30378
30379         * MODULES.html.sh (Misc): Add byteswap.
30380
30381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30382
30383         * modules/getcwd (Depends-on): Add extensions.
30384         * modules/openat (Depends-on): Likewise.
30385
30386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30387
30388         * modules/byteswap: New file.
30389
30390 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30391
30392         * m4/byteswap.m4: New file.
30393
30394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
30395
30396         * lib/byteswap_.h: New file.
30397
30398 2005-04-25  Karl Berry  <karl@gnu.org>
30399
30400         * m4/gettext.m4: Update from GNU gettext 0.14.4.
30401
30402 2005-04-25  Albert Chin  <china@thewrittenword.com>
30403
30404         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
30405         Toolkit C bug.
30406
30407 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
30408
30409         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
30410         (func_ln_if_changed) Remove forcibly for no error message
30411         in case file does not exist.
30412
30413 2005-04-19  Simon Josefsson  <jas@extundo.com>
30414
30415         * gnulib-tool (Options): Make --symlink mean --symbolic.
30416
30417 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
30418
30419         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
30420
30421 2005-04-16  Simon Josefsson  <jas@extundo.com>
30422
30423         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
30424
30425 2005-04-15  Simon Josefsson  <jas@extundo.com>
30426
30427         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
30428
30429 2005-04-15  Simon Josefsson  <jas@extundo.com>
30430
30431         * gnulib-tool: Rename --symlink to --symbolic.
30432
30433 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
30434
30435         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
30436         symbolic links to files instead of copying/moving.  Add --aux-dir,
30437         specifying directory relative --dir where auxiliary build tools
30438         are placed.
30439
30440 2005-04-14  Bruno Haible  <bruno@clisp.org>
30441
30442         * modules/allocsa (License): Change to LGPL.
30443         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30444
30445 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
30446
30447         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
30448         that "UTC +1 second" continues to work.  Problem reported
30449         by Dmitry V. Levin.
30450         (relunit_snumber): New rule.
30451         (relunit): Use it.
30452
30453 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30454
30455         * lib/getdate.y (universal_time_zone_table): New constant.
30456         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
30457         universal_time_zone_table.
30458         (lookup_zone): Prefer universal_time_zone_table to
30459         local_time_zone_table, so that "GMT" time stamps are allowed in
30460         London during the summer.  Problem reported by Ian Abbott.
30461
30462 2005-04-12  Jim Meyering  <jim@meyering.net>
30463
30464         * lib/human.c (humblock): Set *options even when returning due to
30465         xstrtoumax conversion failure.  Thanks to a used-uninitialized
30466         warning from gcc-4.
30467
30468 2005-04-09  Jim Meyering  <jim@meyering.net>
30469
30470         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
30471         -Wuninitialized: initialize tm0.tm_year.
30472
30473 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
30474
30475         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
30476         count, since there's no maximum.  All uses changed.
30477         Add member dsts_seen.
30478         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
30479         not being INT_MAX.
30480         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
30481         Use pc_rels_seen to decide whther a date is absolute.
30482
30483         * lib/getdate.y (number): Don't overwrite year.
30484         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
30485         check.
30486
30487 2005-04-02  Simon Josefsson  <jas@extundo.com>
30488
30489         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
30490         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
30491
30492 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
30493
30494         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
30495         where no absolute path name can be longer than PATH_MAX.
30496
30497 2005-03-27  Jim Meyering  <jim@meyering.net>
30498
30499         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
30500
30501 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
30502
30503         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
30504         "one's complement" -> "ones' complement" in comment, as per Knuth.
30505         "value of type" -> "type or expression" in comment.
30506         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
30507
30508 2005-03-26  Jim Meyering  <jim@meyering.net>
30509
30510         Comment nits.
30511         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
30512         Correct typos: s/or/of/.
30513
30514 2005-03-26  Jim Meyering  <jim@meyering.net>
30515
30516         * modules/check-include-files: Move to ../ and rename to...
30517         * check-module: ...this.
30518
30519 2005-03-25  Jim Meyering  <jim@meyering.net>
30520
30521         * modules/xvasprintf (Files): Add xalloc.h.
30522
30523 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
30524
30525         * modules/gettext (Files): config/config.rpath ->
30526         build-aux/config.rpath
30527         * modules/iconv (Files): Likewise.
30528         Problem reported by Oskar Liljeblad.
30529
30530 2005-03-23  Jim Meyering  <jim@meyering.net>
30531
30532         * modules/check-include-files: New script to check for
30533         missing dependencies, multiple includes, etc.
30534
30535         * modules/c-strtold (Depends-on): Add xalloc.
30536         * modules/c-strtod (Depends-on): Add xalloc.
30537         * modules/hash (Depends-on): Add xalloc.
30538         (Files): Remove lib/xalloc.h.
30539
30540         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
30541         * modules/userspec (Files): Add lib/inttostr.h.
30542
30543 2005-03-23  Jim Meyering  <jim@meyering.net>
30544
30545         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
30546
30547 2005-03-22  Jim Meyering  <jim@meyering.net>
30548
30549         * modules/stat-macros: New module.
30550         * modules/canonicalize, modules/euidaccess, modules/file-type,
30551         * modules/filemode, modules/lchown, modules/makepath,
30552         * modules/rmdir, modules/stat: Depend on new stat-macros module
30553         rather than listing lib/stat-macros.h manually.
30554         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
30555
30556 2005-03-22  Jim Meyering  <jim@meyering.net>
30557
30558         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
30559
30560 2005-03-22  Bruno Haible  <bruno@clisp.org>
30561
30562         * config/srclist.txt: Replace target directory 'config' with
30563         'build-aux'.
30564         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
30565         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
30566         ../build-aux/.
30567
30568 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
30569
30570         * modules/chdir-long (Depends-on): Add mempcpy.
30571
30572         * modules/acl, modules/backupfile, modules/c-strtod,
30573         modules/c-strtold, modules/canon-host, modules/canonicalize,
30574         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
30575         modules/exclude, modules/exitfail, modules/file-type,
30576         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
30577         modules/getdate, modules/getline, modules/getpagesize,
30578         modules/getpass, modules/getugroups, modules/group-member,
30579         modules/hard-locale, modules/hash, modules/human, modules/idcache,
30580         modules/inttostr, modules/long-options, modules/makepath,
30581         modules/md5, modules/memcasecmp, modules/memcoll,
30582         modules/modechange, modules/mountlist, modules/path-concat,
30583         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
30584         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
30585         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
30586         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
30587         modules/strftime, modules/strndup, modules/strverscmp,
30588         modules/timespec, modules/unlocked-io, modules/userspec,
30589         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
30590         modules/yesno:
30591         Remove lib_SOURCES line from Makefile.am section, as this is now
30592         done automatically by the corresponding Autoconf macro.
30593
30594 2005-03-21  Jim Meyering  <jim@meyering.net>
30595
30596         Changes imported from coreutils.
30597
30598         * lib/cycle-check.c: Don't include xalloc.h.
30599
30600         * lib/path-concat.c: Don't include assert.h.
30601         (path_concat): Remove assertion that would have triggered
30602         for ABASE starting with more than one slash.
30603         Reported by Andreas Schwab.
30604
30605         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
30606         properly when ABASE is an absolute file name.
30607         Correct the description of this function.
30608         Include <assert.h>.
30609         Add an assertion and a test driver.
30610         This fixes a bug introduced on 2004-07-02.
30611         Andreas Schwab reported the resulting failure of cp --parents:
30612         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
30613
30614 2005-03-21  Jim Meyering  <jim@meyering.net>
30615
30616         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
30617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
30618
30619 2005-03-21  Jim Meyering  <jim@meyering.net>
30620         and  Paul Eggert  <eggert@cs.ucla.edu>
30621
30622         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
30623         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
30624         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
30625         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
30626         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
30627         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
30628         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
30629         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
30630         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
30631         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
30632         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
30633         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
30634         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
30635         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
30636         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
30637         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
30638         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
30639         for these modules.
30640
30641 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30642
30643         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
30644         (which shouldn't happen), generate nothing instead of returning 0
30645         immediately, so that nstrftime (NULL, ...) doesn't return 0.
30646
30647 2005-03-16  Bruno Haible  <bruno@clisp.org>
30648
30649         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
30650         HAVE_LONGLONG_64BIT.
30651
30652 2005-03-16  Bruno Haible  <bruno@clisp.org>
30653
30654         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
30655         HAVE_LONGLONG_64BIT.
30656
30657 2005-03-16  Bruno Haible  <bruno@clisp.org>
30658
30659         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
30660         HAVE_LONGLONG_64BIT.
30661
30662 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30663
30664         * lib/strftime.c (my_strftime): Prepend space to format so that we can
30665         reliably distinguish strftime failure from empty output on POSIX
30666         hosts.
30667
30668 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
30669
30670         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
30671         (iconv_string): Don't guess a size-zero buffer, as that might cause
30672         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
30673         result would be 'too large', where 'too large' is (heuristically)
30674         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
30675         overflow concerns.  This will prevent some unwanted malloc failures
30676         when the inputs are very large.
30677
30678 2005-03-15  Karl Berry  <karl@gnu.org>
30679
30680         * config/srclist.txt (config.rpath): from gettext.
30681         * config/config.rpath: update.
30682
30683 2005-03-15  Bruno Haible  <bruno@clisp.org>
30684
30685         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
30686         to 'negate'.
30687
30688         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
30689         variable.
30690
30691         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
30692         results.
30693
30694 2005-03-14  Simon Josefsson  <jas@extundo.com>
30695
30696         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
30697         <fx@gnu.org>.
30698
30699 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
30700
30701         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
30702         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
30703         intprops.h.
30704         * lib/strtol.c: Likewise.
30705
30706 2005-03-14  Jim Meyering  <jim@meyering.net>
30707
30708         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
30709         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
30710         to be nonzero so that we (and caller) can detect the difference
30711         between a valid zero-length expansion and an error return, even
30712         when the underlying strftime fails before writing anything into
30713         that location.
30714
30715 2005-03-14  Bruno Haible  <bruno@clisp.org>
30716
30717         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
30718         Update from GNU gettext 0.14.3.
30719
30720 2005-03-10  Jim Meyering  <jim@meyering.net>
30721
30722         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
30723
30724 2005-03-10  Jim Meyering  <jim@meyering.net>
30725
30726         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
30727         so that this module works on systems without fchdir.
30728
30729 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
30730
30731         Factor int-properties macros into a single file, except for
30732         glibc-related files.
30733         * lib/intprops.h: New file.
30734         * lib/getloadavg.c: Include it instead of limits.h.
30735         (INT_STRLEN_BOUND): Remove.
30736         * lib/human.c: Include intprops.h.
30737         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
30738         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
30739         302/1000.
30740         * lib/inttostr.h: Include intprops.h instead of limits.h.
30741         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
30742         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
30743         for consistency with intprops.h.
30744         (time_t_is_integer, twos_complement_arithmetic): Use them.
30745         * lib/sig2str.h: Include <signal.h>, intprops.h.
30746         (INT_STRLEN_BOUND): Remove.
30747         * lib/strftime.c (TYPE_SIGNED): Remove.
30748         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
30749         * lib/strtol.c: Adjust comments to match intprops.h.
30750         * lib/userspec.c: Include intprops.h.
30751         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
30752         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
30753         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
30754         instead of rolling our own expressions.
30755         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
30756
30757         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
30758         instead of int.
30759         (my_strftime): Do not mishandle years close to INT_MAX, by doing
30760         the right thing even if adding 1900 would overflow.  Similarly
30761         for tm_mon + 1 and tm_yday + 1.
30762         Make %Y always equivalent to %C%y, and similarly for %G and %g.
30763         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
30764         (DO_SIGNED_NUMBER): New macro.
30765         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
30766
30767 2005-03-07  Bruno Haible  <bruno@clisp.org>
30768
30769         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
30770
30771 2005-03-07  Bruno Haible  <bruno@clisp.org>
30772
30773         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
30774
30775 2005-03-04  Derek R. Price  <derek@ximbiot.com>
30776
30777         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
30778         (func_import): Only replace files via --import when they have actually
30779         changed.
30780
30781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30782
30783         * m4/mmap-anon.m4: New file.
30784         * m4/pagealign_alloc.m4: New file.
30785
30786 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30787             Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/pagealign_alloc: New file.
30790         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
30791
30792 2005-03-03  Derek R. Price  <derek@ximbiot.com>
30793             Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/pagealign_alloc.h: New file.
30796         * lib/pagealign_alloc.c: New file.
30797
30798 2005-03-03  Bruno Haible  <bruno@clisp.org>
30799
30800         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
30801         Use an all-permissive copyright notice, recommended by RMS.
30802
30803 2005-03-02  Bruno Haible  <bruno@clisp.org>
30804
30805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
30806         of AIX, the replacement has to be done only after <string.h> is
30807         included, therefore not in config.h. stpncpy.h does the replacement,
30808         and stpncpy.c uses it.
30809
30810 2005-03-02  Bruno Haible  <bruno@clisp.org>
30811
30812         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
30813         stpncpy.c uses it.
30814
30815 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30816
30817         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
30818         The workaround isn't strictly needed for POSIX conformance, and
30819         it's too much of a pain to configure and maintain.  We'll ask
30820         people to fix their kernels instead.
30821         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
30822         (NANOSLEEP_BUG_WORKAROUND): Remove.
30823         (xnanosleep): Remove the workaround.
30824
30825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30826
30827         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
30828         Reported by Derek Price.
30829         (Include): Add "timespec.h".
30830
30831         * modules/xnanosleep (Depends-on): Remove gethrxtime.
30832
30833 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
30834
30835         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
30836         to detect nanosleep bug.
30837
30838 2005-03-01  Bruno Haible  <bruno@clisp.org>
30839
30840         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
30841
30842 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30843
30844         * modules/gethrxtime: New file.
30845         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
30846         (Depends-on): Add gethrxtime.
30847         (configure.ac): Add gl_XNANOSLEEP.
30848         (Makefile.am): Remove lib_SOURCES line.
30849
30850 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30851
30852         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
30853         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
30854
30855 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
30856
30857         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
30858         * lib/timespec.h (gettime): Return void, since it always
30859         succeeds now.  All uses changed.
30860         * lib/gettime.c (gettime) Likewise.
30861         [HAVE_NANOTIME]: Prefer nanotime.
30862         Assume gettimeofday succeeds, as POSIX requires.
30863         Assime time () succeeds, since other code already does.
30864         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
30865         (timespec_subtract): Remove.
30866         (NANOSLEEP_BUG_WORKAROUND): New constant.
30867         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
30868         things considerably.  Use it only on GNU/Linux hosts, since the
30869         workaround shouldn't be needed elsewhere.
30870
30871 2005-02-24  Bruno Haible  <bruno@clisp.org>
30872
30873         * modules/gettext (Files): Add m4/glibc2.m4.
30874
30875 2005-02-24  Bruno Haible  <bruno@clisp.org>
30876
30877         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
30878         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
30879         * m4/progtest.m4:
30880         Update from GNU gettext 0.14.2.
30881         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
30882
30883 2005-02-24  Bruno Haible  <bruno@clisp.org>
30884
30885         * lib/localcharset.c: Update from GNU gettext 0.14.2.
30886         * lib/config.charset: Update from GNU gettext 0.14.2.
30887
30888 2005-02-24  Bruno Haible  <bruno@clisp.org>
30889
30890         * lib/gettext.h: Update from GNU gettext 0.14.2.
30891
30892 2005-02-23  Simon Josefsson  <jas@extundo.com>
30893
30894         * m4/iconvme.m4: New file.
30895
30896 2005-02-23  Jim Meyering  <jim@meyering.net>
30897
30898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
30899         change.
30900         Thanks to Bruno Haible for catching it.
30901
30902 2005-02-22  Simon Josefsson  <jas@extundo.com>
30903
30904         * modules/iconvme: New file.
30905
30906         * MODULES.html.sh: Add iconvme.
30907
30908 2005-02-22  Simon Josefsson  <jas@extundo.com>
30909
30910         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
30911
30912 2005-02-22  Simon Josefsson  <jas@extundo.com>
30913
30914         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
30915
30916 2005-02-22  Jim Meyering  <jim@meyering.net>
30917
30918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
30919         s/ifndef/ifdef/.
30920
30921 2005-02-20  Neil Conway  <neilc@samurai.com>
30922
30923         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
30924         returned by OSX/Darwin if the specified buffer is not large
30925         enough for the hostname.
30926
30927 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
30928
30929         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
30930         pass it to _help, otherwise the latter coredumps trying to
30931         dereference state.root_argp.
30932
30933 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30934
30935         * modules/chdir-long (Depends-on): Add memrchr.
30936         * modules/memrchr (Files): Add lib/memrchr.h.
30937         (Include): "memrchr.h".
30938
30939 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30940
30941         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
30942
30943 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30944
30945         * lib/memrchr.h: New file.
30946         * lib/chdir-long.c: Include it.
30947         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
30948         Don't bother including stddef.h.
30949
30950 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
30951
30952         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
30953         inclusion.
30954         Include <sys/types.h>, for dev_t.
30955         (ME_DUMMY, ME_REMOTE): Move from here....
30956         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
30957         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
30958         Dmitry V. Levin.
30959         Include mountlist.h first, to test the interface.
30960
30961 2005-01-29  Bruno Haible  <bruno@clisp.org>
30962
30963         * lib/progname.c (program_name): Initialize.
30964         Needed when linking statically on MacOS X.
30965
30966 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30967
30968         Sync from coreutils.
30969         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
30970         (Depends-on): Add c-strtod.
30971         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
30972
30973 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30974
30975         Sync from coreutils.
30976         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
30977
30978         Remove files that are specific to coreutils.
30979         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
30980
30981 2005-01-28  Bruno Haible  <bruno@clisp.org>
30982
30983         * modules/javacomp: New file.
30984         * MODULES.html.sh (Java): Add javacomp.
30985
30986 2005-01-28  Bruno Haible  <bruno@clisp.org>
30987
30988         * m4/javacomp.m4: New file, from GNU gettext.
30989
30990 2005-01-28  Bruno Haible  <bruno@clisp.org>
30991
30992         * lib/javacomp.sh.in: New file, from GNU gettext.
30993         * lib/javacomp.h: New file, from GNU gettext.
30994         * lib/javacomp.c: New file, from GNU gettext.
30995
30996 2005-01-26  Simon Josefsson  <jas@extundo.com>
30997
30998         * lib/gai_strerror.c: Use GPL in header.
30999
31000 2005-01-26  Bruno Haible  <bruno@clisp.org>
31001
31002         * modules/javaexec: New file.
31003         * MODULES.html.sh (Java): Add javaexec.
31004
31005 2005-01-26  Bruno Haible  <bruno@clisp.org>
31006
31007         * m4/javaexec.m4: New file, from GNU gettext.
31008
31009 2005-01-26  Bruno Haible  <bruno@clisp.org>
31010
31011         * lib/javaexec.sh.in: New file, from GNU gettext.
31012         * lib/javaexec.h: New file, from GNU gettext.
31013         * lib/javaexec.c: New file, from GNU gettext.
31014
31015 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31016
31017         * modules/lchown (Depends-on): Remove lchown.h
31018
31019 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31020
31021         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
31022         must be defined if the header file was not found, in order
31023         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
31024
31025 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31026
31027         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
31028         initializers for struct pentry_state.
31029         (__argp_error): Check return value of __asprintf
31030         (__argp_failure): Translate error message
31031
31032         * lib/argp-parse.c: Removed braces around the expansion of N_()
31033
31034 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31035
31036         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
31037         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
31038         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
31039         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
31040         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
31041         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
31042         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
31043         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
31044         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
31045         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
31046         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
31047         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
31048         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
31049         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
31050         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
31051         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
31052         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
31053         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
31054         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
31055         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
31056         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
31057         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
31058         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
31059         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
31060         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
31061         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
31062         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
31063         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
31064         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
31065         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
31066         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
31067         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
31068         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
31069         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
31070         xstrtol.m4, xstrtoumax.m4, yesno.m4:
31071         Use an all-permissive copyright notice, recommended by RMS.
31072
31073 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31074
31075         * modules/chdir-long (Depends-on): Remove mempcpy.
31076
31077 2005-01-21  Jim Meyering  <jim@meyering.net>
31078
31079         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
31080         same value as for Solaris 9.
31081
31082         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
31083         component length.  This included changing the parameter to be
31084         of type `char *' rather than `char const *'.
31085         * lib/chdir-long.h (chdir_long): Update prototype.
31086
31087         * lib/openat.c (fdopendir, fstatat): New functions.
31088         * lib/openat.h: Include headers required for use of DIR and struct
31089         stat.
31090         [AT_SYMLINK_NOFOLLOW]: Define.
31091         (fdopendir, fstatat): Add prototypes.
31092
31093 2005-01-21  Bruno Haible  <bruno@clisp.org>
31094
31095         * modules/classpath: New file.
31096         * MODULES.html.sh (Java): Add classpath.
31097
31098 2005-01-21  Bruno Haible  <bruno@clisp.org>
31099
31100         * lib/classpath.h: New file, from GNU gettext.
31101         * lib/classpath.c: New file, from GNU gettext.
31102
31103 2005-01-20  Simon Josefsson  <jas@extundo.com>
31104
31105         * modules/version-etc-fsf: New file.
31106
31107 2005-01-20  Simon Josefsson  <jas@extundo.com>
31108
31109         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
31110         * lib/version-etc.c: Remove version_etc_copyright.
31111         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
31112         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
31113
31114 2005-01-20  Simon Josefsson  <jas@extundo.com>
31115
31116         * lib/base64.h (isbase64): Add.
31117
31118         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
31119         using a unsigned prototype, don't inline.
31120         (base64_decode): Use it.
31121
31122 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31123
31124         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
31125         it.
31126
31127 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31128
31129         * lib/save-cwd.c (save_cwd): Remove code to support the case
31130         where fchdir is missing or flaky.
31131
31132 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
31133
31134         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
31135
31136 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
31137
31138         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
31139         AC_LIBSOURCES now does this.
31140         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
31141         with new ullong_max module.
31142
31143 2005-01-19  Bruno Haible  <bruno@clisp.org>
31144
31145         * modules/sh-quote: New file.
31146         * MODULES.html.sh (Executing programs): Add sh-quote.
31147
31148 2005-01-19  Bruno Haible  <bruno@clisp.org>
31149
31150         * lib/sh-quote.h: New file, from GNU gettext.
31151         * lib/sh-quote.c: New file, from GNU gettext.
31152
31153 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31154
31155         Merge from coreutils.
31156         * m4/ullong_max.m4: New file.
31157         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
31158         (gl_MACROS): Assume localeconv exists.
31159
31160 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31161
31162         Merge changes from coreutils, as described below in several
31163         changelogs dated today.
31164
31165         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
31166         (O_DIRECTORY): Remove; not needed here, since "." must be
31167         a directory.  All uses removed.
31168         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
31169         universal on Suns, and we also need to test for IRIX.
31170         Revamp code to use 'if' rather than '#if'.
31171         Avoid unnecessary comparison of cwd->desc to 0.
31172
31173         * lib/utimens.c (futimens): Robustify the previous patch, by checking
31174         for known valid error numbers rather than observed invalid ones.
31175
31176 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
31177
31178         * modules/ullong_max: New file.
31179
31180         * modules/chdir-long, modules/openat: New files.
31181         * modules/save-cwd (Depends-on): Depend on chdir-long.
31182         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
31183
31184 2005-01-18  Jim Meyering  <jim@meyering.net>
31185
31186         Merge from coreutils.
31187         * m4/chdir-long.m4, m4/openat.m4: New files.
31188         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
31189         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
31190         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
31191         is sane and DOES follow symlinks.  Besides, testing 20 different
31192         systems found no broken chown implementations.
31193         Prompted by a change in rsync's copy of this macro.
31194         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
31195
31196         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
31197
31198         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
31199         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
31200         NULL-means-set-to-current-time semantics.
31201         Remove temporary file immediately, rather than waiting
31202         for configure's at-exit trap code to do it.
31203
31204 2005-01-18  Jim Meyering  <jim@meyering.net>
31205
31206         * lib/version-etc.c (version_etc_copyright): Update copyright date.
31207
31208         * lib/utimens.c (futimens): Account for the fact that futimes
31209         can also fail with errno == ENOSYS or errno == ENOENT.
31210         Patch from Dmitry V. Levin.
31211
31212         Change the name of the robust chdir function from chdir to chdir_long.
31213         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
31214         (restore_cwd): Use chdir_long, not chdir.
31215         * lib/chdir-long.c: Renamed from chdir.c.
31216         * lib/chdir-long.h: Renamed from chdir.h.
31217         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
31218         Hurd.
31219
31220 2005-01-18  Bruno Haible  <bruno@clisp.org>
31221
31222         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
31223         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
31224         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
31225         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
31226         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
31227         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
31228         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
31229         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
31230         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
31231         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
31232         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
31233         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
31234         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
31235         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
31236         Use an all-permissive copyright notice, recommended by RMS.
31237
31238 2005-01-18  Bob Proulx  <bob@proulx.com>
31239
31240         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
31241         simplify offsetof() macro construct to avoid compile failure with
31242         native HP-UX 11.0 ANSI C compiler.
31243
31244 2005-01-17  Bruno Haible  <bruno@clisp.org>
31245
31246         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
31247         redundant because stpncpy.m4 takes care of it.
31248
31249 2005-01-17  Bruno Haible  <bruno@clisp.org>
31250
31251         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
31252
31253 2005-01-17  Bruno Haible  <bruno@clisp.org>
31254
31255         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
31256         used.
31257
31258 2005-01-17  Bruno Haible  <bruno@clisp.org>
31259
31260         * lib/fwriteerror.h (fwriteerror): Change specification to include
31261         fclose.
31262         * lib/fwriteerror.c: Include <stdbool.h>.
31263         (fwriteerror): At the end, close the file stream. Record whether
31264         stdout was already closed.
31265
31266 2005-01-17  Bruno Haible  <bruno@clisp.org>
31267
31268         * lib/execute.c (environ): Declare if needed.
31269         * lib/pipe.c (environ): Likewise.
31270         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
31271
31272 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31273
31274         * modules/argp: Depend on vsnprintf
31275
31276 2005-01-10  Jim Meyering  <jim@meyering.net>
31277
31278         * modules/closeout (Depends-on): Add atexit.
31279
31280 2005-01-06  Bruno Haible  <bruno@clisp.org>
31281
31282         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
31283
31284 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31285
31286         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
31287         definitions to be after all include files, to avoid collisions.
31288         Problem reported by Bob Proulx.
31289
31290 2005-01-04  Jim Meyering  <jim@meyering.net>
31291
31292         Changes imported from coreutils.
31293         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
31294         as the mkstemp template, use a temporary directory and an
31295         8.3-friendly template to avoid trouble on systems like DJGPP.
31296         Reported by Juan M. Guerrero via Stepan Kasal.
31297         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
31298         close. Remove the temporary directory right away, rather than waiting
31299         for configure's at-exit trap code to do it.
31300         Suggestion from Stepan Kasal.
31301
31302 2005-01-01  Simon Josefsson  <jas@extundo.com>
31303
31304         * gnulib-tool: Print #include directives when --import'ing.
31305
31306 2004-12-28  Simon Josefsson  <jas@extundo.com>
31307
31308         * tests/test-base64.c: Include required header files.  Remove
31309         unused variables.
31310
31311 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31312
31313         * modules/error (Depends-on): Remove gettext.
31314
31315 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31316
31317         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
31318         not needed.  This removes a dependency on the gettext module.
31319         [defined _LIBC]: Do not include <libintl.h>; not needed.
31320
31321 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31322
31323         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
31324         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
31325
31326 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
31327
31328         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
31329         HAVE_DECL_STRTOLD.
31330
31331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31332
31333         * modules/getdate (Depends-on): Remove alloca-opt.
31334
31335 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31336
31337         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
31338
31339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31340
31341         * lib/argp-parse.c: Include <stddef.h>.
31342         (alignof, alignto): New macros.
31343         (parser_init): Don't assume that void * is aligned sufficiently
31344         for struct option.
31345
31346         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
31347         need to extend the stack.
31348         (YYINITDEPTH): New macro, so that the initial stack isn't overly
31349         large.
31350
31351 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31352
31353         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
31354
31355 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31356
31357         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
31358         (2004-10-24) change.  Apparently this was a false alarm.
31359
31360         * modules/getdate: Depend on alloca-opt, not alloca.
31361
31362 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
31363
31364         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
31365         Remove now-obsolete comment about AIX.
31366         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
31367         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
31368         (YYMAXDEPTH): New macro.
31369
31370 2004-12-18  Simon Josefsson  <jas@extundo.com>
31371
31372         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
31373
31374 2004-12-18  Bruno Haible  <bruno@clisp.org>
31375
31376         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
31377
31378 2004-12-18  Bruno Haible  <bruno@clisp.org>
31379
31380         * lib/fatal-signal.c (fatal_signals): Make non-const.
31381         (init_fatal_signals): New function.
31382         (uninstall_handlers, install_handlers): Ignore signals that were set to
31383         SIG_IGN.
31384         (at_fatal_signal): Call init_fatal_signals.
31385         (init_fatal_signal_set): Likewise. Ignore signals that were set to
31386         SIG_IGN.
31387         Reported by Paul Eggert.
31388
31389 2004-12-18  Bruno Haible  <bruno@clisp.org>
31390
31391         * doc/alloca.texi: New file.
31392         * doc/alloca-opt.texi: New file.
31393
31394 2004-12-17  Jim Meyering  <jim@meyering.net>
31395
31396         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
31397         Otherwise, install-sh could exit with improper exit status when
31398         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
31399
31400 2004-12-16  Simon Josefsson  <jas@extundo.com>
31401
31402         * tests/test-base64.c: Add license.
31403
31404 2004-12-15  Stepan Kasal  <address@hidden>
31405
31406         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
31407
31408 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31409
31410         * modules/getcwd (Files): Add m4/d-ino.m4.
31411         Suggested by Mark D. Baushke.
31412
31413 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31414
31415         * lib/getdate.y (textint): New member "negative".
31416         (time_zone_hhmm): New function.
31417         Expect 14 shift-reduce conflicts, not 13.
31418         (o_colon_minutes): New rule.
31419         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
31420         (yylex): Set the "negative" member of signed numbers.
31421
31422 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
31423
31424         * doc/getdate.texi (Time of day items, Time zone items):
31425         Describe new formats +00:00, UTC+00:00.
31426
31427 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
31428
31429         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
31430         spurious "-l"s.  Problem reported by Stepan Kasal.
31431
31432 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
31433
31434         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
31435         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
31436
31437 2004-12-04  Simon Josefsson  <jas@extundo.com>
31438
31439         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
31440         Vandoorselaere <yoann@prelude-ids.org>.
31441
31442 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31443
31444         Changes imported from coreutils.
31445         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
31446         exist.
31447         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
31448
31449 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31450
31451         Changes imported from coreutils.
31452         * lib/hard-locale.c: Assume <locale.h> exists.
31453         Include "strdup.h".
31454         (GLIBC_VERSION): New macro.
31455         (hard_locale): Assume setlocale exists.
31456         Rewrite to avoid #ifdef.
31457         Use strdup rather than malloc + strcpy.
31458         * lib/human.c: Assume <locale.h> exists.
31459         (human_readable): Assume localeconv exists.
31460
31461 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
31462
31463         * modules/hard-locale (Depends-on): Add strdup.
31464
31465 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
31466
31467         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
31468         convert T2, not T.  (Imported from libc.)
31469
31470 2004-11-30  Simon Josefsson  <jas@extundo.com>
31471
31472         * modules/restrict (License): Change to LGPL.
31473
31474 2004-11-30  Simon Josefsson  <jas@extundo.com>
31475
31476         * m4/restrict.m4: Add copyright and copying conditions.
31477
31478 2004-11-30  Simon Josefsson  <jas@extundo.com>
31479
31480         * m4/base64.m4: New file.
31481
31482 2004-11-30  Simon Josefsson  <jas@extundo.com>
31483
31484         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
31485         base64.
31486
31487         * tests/test-base64.c: New file.
31488
31489         * modules/base64: New file.
31490
31491 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31492
31493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31494         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
31495
31496         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
31497
31498 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
31499
31500         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
31501         (__getcwd.c): Don't restore errno; glibc doesn't.
31502         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
31503         first, falling back to our code only if its results look suspicious.
31504         Ensure that the resulting buffer is only as large as necessary.
31505
31506         * lib/readutmp.c: Include readutmp.h first.
31507         Include <errno.h>, since readutmp.h no longer does that.
31508         * lib/readutmp.h: Don't include <errno.h>,
31509         <sys/param.h>, <time.h>; not needed to establish interface.
31510         (errno): Remove decl.
31511         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
31512         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
31513         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
31514
31515 2004-11-28  Simon Josefsson  <jas@extundo.com>
31516
31517         * lib/base64.h, base64.c: New file.
31518
31519 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
31520
31521         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
31522
31523 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
31524
31525         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
31526         (Depends-on): Remove pathmax, same.  Add mempcpy.
31527         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
31528         (Makefile.am): Append getcwd.h to lib_SOURCES.
31529         (Include): Add getcwd.h.
31530         (Maintainer): Change from Jim Meyering to "all, glibc",
31531         since getdate now uses intended-for-glibc code.
31532         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
31533         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
31534
31535 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31536
31537         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
31538         HP's ANSI C compiler.
31539         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
31540         Declaring int functions causes warnings on some modern systems and
31541         shouldn't be needed to compile on ancient ones.
31542         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
31543         defined.
31544
31545         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
31546         with the following changes.
31547         (__set_errno): Parenthesize properly.
31548         Include <stdbool.h>.
31549         (MIN, MAX, MATCHING_INO): New macros.
31550         (__getcwd): Define with prototype, not K&R form.
31551         Use heuristics to allocate default buffer on stack if possible.
31552         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
31553         behavior, and to avoid the PATH_MAX limit when computing
31554         ../../../../...
31555         Use MATCHING_INO to compare inode number to file.
31556         Check for arithmetic overflow in size calculations.
31557         Fix bug in reallocation of dot array that caused getcwd to fail
31558         on directories nested deeper than 75.
31559         Be more careful about saving errno on error.
31560         Do not use realloc; use only free+malloc, as this is a bit
31561         more flexible and avoids a needless copy operation.
31562         Do not inspect st_dev and st_ino for symbolic links; POSIX
31563         doesn't specify the latter.
31564         Check for closedir errors.
31565         Avoid needless casts.
31566         Use "#ifdef weak_alias" around weak_alias, to be like other
31567         glibc code.
31568         The following changes to getcwd.c have effect only when used in
31569         gnulib; they have no effect inside glibc proper.
31570         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
31571         as alloca isn't used.
31572         (alloca, __alloca): Likewise.
31573         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
31574         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31575         unconditionally, as gnulib assumes C89 or better.
31576         Do not include <sys/param.h>.
31577         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
31578         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
31579         better.
31580         (NULL) [!defined NULL]: Remove; we assume C89 or better.
31581         Include <dirent.h> in a way that is compatible with modern Autoconf.
31582         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
31583         New macros, if not already defined.
31584         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
31585         Use "_LIBC", not "defined _LIBC", for consistency.
31586         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
31587         a mempcpy module.
31588         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
31589         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
31590         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
31591         credit only to Jim Meyering and adjust the copyright dates.
31592         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
31593         <stdlib.h>, <unistd.h>, "pathmax.h".
31594         Instead, include "xgetcwd.h" (first) and "getcwd.h".
31595         (INITIAL_BUFFER_SIZE): Remove.
31596         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
31597
31598 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
31599
31600         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
31601         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
31602         Use the _ONCE methods, for efficiency.
31603         Check for fcntl.h.  In test program, include <errno.h>
31604         and <fcntl.h> if available.  Remove old K&R cruft from
31605         test program.  Check for common errors in GNU/Linux,
31606         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
31607         don't do AC_LIBOBJ, as that's getcwd.m4's job.
31608         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
31609         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
31610         name accordingly.
31611         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
31612         accommodate new getcwd.c.
31613         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
31614         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
31615         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
31616         that's all we need now.
31617
31618 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31619
31620         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
31621         argp-parse.c depends on getopt internals, that means we should
31622         always use our getopt, to be on the safe side.
31623         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
31624         order not to spoil the result of an eventual previous invocation
31625         of gl_GETOPT_SUBSTITUTE.
31626
31627 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
31628
31629         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
31630         redefinition warnings. To avoid them, include the defines
31631         in `#if !defined __need_getopt ... #endif'. The only place
31632         where __getopt_argv_const is used is in definitions
31633         of getopt_long and getopt_long_only below, which are as well
31634         protected by `#ifndef __need_getopt'.
31635         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
31636         __need_getopt after including <stdio.h> and <unistd.h> These
31637         headers might have defined it.
31638
31639 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31640
31641         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
31642
31643 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
31644
31645         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
31646         (futimens): New function, which uses futimes if available.
31647         (futimens, utimens): Support timespec==NULL, with same semantics
31648         as utime and utimens.
31649         * lib/utimens.h (futimens): New decl.
31650
31651 2004-11-23  Jim Meyering  <jim@meyering.net>
31652
31653         * lib/getopt_.h: Remove trailing blanks.
31654
31655 2004-11-23  Jim Meyering  <jim@meyering.net>
31656
31657         * lib/__fpending.c: Add comment.
31658
31659 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
31660
31661         * modules/canonicalize (Depends-on): Add xreadlink.
31662         Problem reported by James Youngman.
31663
31664 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31665
31666         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
31667         New macros.
31668         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
31669         optopt): Use them instead of invoking ## directly; otherwise, the
31670         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
31671
31672 2004-11-19  Bruno Haible  <bruno@clisp.org>
31673
31674         * lib/strtok_r.c: Move comments from here...
31675         * lib/strtok_r.h: ... to here.
31676
31677 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31678
31679         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
31680         implementations that mishandle size_t overflow.
31681
31682 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
31683
31684         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
31685         might fail.  Problem reported by Yoann Vandoorselaere.
31686         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
31687         implementations that mishandle size_t overflow.
31688
31689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31690
31691         * modules/canon-host (Depends-on): Add strdup.
31692
31693 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31694
31695         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
31696
31697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31698
31699         * lib/canon-host.c: Include "strdup.h".
31700         (canon_host): Use getaddrinfo if available, so that IPv6 works.
31701         Use strdup instead of malloc/strcpy to duplicate strings.
31702
31703         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
31704         (human_space_before_unit): New constant.
31705         * lib/human.c (human_readable): Support it.
31706
31707         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
31708         (xgetcwd): Set errno correctly when failing.
31709         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
31710         the failure is actually due to a PATH_MAX problem.
31711
31712         Further getopt changes to make it more likely that glibc will
31713         buy the changes back.
31714         * lib/getopt.c (POSIXLY_CORRECT): New constant.
31715         (getopt): Use it, so to preserve glibc semantic
31716         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
31717         when compiling for libc.
31718         * lib/getopt_.h (__getopt_argv_const): Bring it back.
31719         (getopt_long, getopt_long_only): Use it.
31720
31721         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31722         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
31723         (getopt): Argv is now char * const *, as per standard.
31724         (_getopt_internal_r, _getopt_internal): Argv is now char **,
31725         not char *__getopt_argv_const *.
31726         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31727         _getopt_long_only_r): Likewise.
31728         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
31729         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31730         _getopt_long_r, _getopt_long_only_r): Likewise.
31731         * lib/getopt_.h (__getopt_argv_const): Remove.
31732         (getopt): Argv is now char * const *, as per standard.
31733
31734         * lib/getdate.y (tORDINAL): New token.
31735         (day, relunit): Allow it for relative times.
31736         (relative_time_table): Use tORDINAL for ordinals.
31737
31738 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31739
31740         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
31741         Document that "second" isn't allowed as an ordinal number.
31742
31743 2004-11-16  Jim Meyering  <jim@meyering.net>
31744
31745         * modules/closeout (Depends-on): Add fpending.
31746
31747 2004-11-15  Jim Meyering  <jim@meyering.net>
31748
31749         * lib/closeout.c: Include "__fpending.h" once again.
31750         Include <stdbool.h>.
31751         (close_stdout): Don't fail just because stdout was closed initially,
31752         since some programs don't write to stdout in the normal course of
31753         operation (other than --version and --help), and we don't want this
31754         function to make e.g. `touch file >&-' fail.
31755         But do fail if it was closed and someone has tried to write to it.
31756         E.g., `printf foo >&-' must fail.
31757
31758 2004-11-13  Jim Meyering  <jim@meyering.net>
31759
31760         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
31761
31762 2004-11-12  Simon Josefsson  <jas@extundo.com>
31763
31764         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
31765         small doc fix is still pending.
31766
31767 2004-11-11  Simon Josefsson  <jas@extundo.com>
31768
31769         * modules/strtok_r: New file.
31770
31771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31772         strtok_r.
31773
31774 2004-11-11  Simon Josefsson  <jas@extundo.com>
31775
31776         * m4/strtok_r.m4: New file.
31777
31778         * m4/getopt.m4: Replace opterr.
31779
31780 2004-11-11  Simon Josefsson  <jas@extundo.com>
31781
31782         * lib/strtok_r.h, strtok_r.c: New file.
31783
31784 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31785
31786         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
31787         of replacing opterr, getopt, etc.  This should handle the
31788         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
31789
31790 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
31791
31792         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
31793         we can stop lying to compilers about the constness of argv when we
31794         are compiled outside glibc.
31795         (getopt, getopt_long, getopt_long_only): Use it.
31796         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
31797         _getopt_internal, getopt): Likewise.
31798         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
31799         _getopt_long_only_r): Likewise.
31800         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
31801         _getopt_long_r, _getopt_long_only_r): Likewise.
31802
31803         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
31804         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
31805         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
31806         the other external symbols.
31807         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
31808         declaration, since the above renaming now works around collisions.
31809
31810 2004-11-11  Jim Meyering  <jim@meyering.net>
31811
31812         * lib/linebreak.c: Remove trailing blanks.
31813         * lib/alloca_.h: Likewise.
31814         * lib/acosl.c: Likewise.
31815         * lib/euidaccess.c: Likewise.
31816         * lib/allocsa.h: Likewise.
31817
31818 2004-11-10  Simon Josefsson  <jas@extundo.com>
31819
31820         * m4/getaddrinfo.m4: New file.
31821
31822 2004-11-10  Simon Josefsson  <jas@extundo.com>
31823
31824         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
31825
31826 2004-11-10  Simon Josefsson  <jas@extundo.com>
31827
31828         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31829         getaddrinfo.
31830
31831         * modules/getaddrinfo: New file.
31832
31833 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31834
31835         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
31836
31837 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31838
31839         * lib/mktime.c (SHR): New macro, which is a portable
31840         substitute for >> that should work even on Crays.
31841         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
31842         Problem reported by Mark D. Baushke in
31843         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
31844         * lib/getdate.y (SHR): Likewise.
31845         (tm_diff): Use it.
31846         * lib/strftime.c (SHR): Likewise.
31847         (tm_diff): Use it.
31848         * lib/quotearg.c (struct quoting_options): Use unsigned int for
31849         quote_these_too, so that right shifts are well defined.  All uses
31850         changed.
31851
31852 2004-11-10  Jim Meyering  <jim@meyering.net>
31853
31854         Ensure that no close failure goes unreported.
31855         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
31856         return early when it seems there's nothing to flush.
31857         Don't include __fpending.h.
31858
31859 2004-11-10  Jim Meyering  <jim@meyering.net>
31860
31861         * modules/closeout (Depends-on): Remove fpending.
31862
31863 2004-11-10  Jim Meyering  <jim@meyering.net>
31864
31865         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
31866
31867 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31868
31869         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
31870         gl_FUNC_STRFTIME.
31871         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
31872         and AC_REQUIRE when possible, to avoid duplicate checks.
31873         Check for <wchar.h>.
31874
31875 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
31876
31877         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
31878
31879 2004-11-09  Bruno Haible  <bruno@clisp.org>
31880
31881         * m4/sockpfaf.m4: New file.
31882
31883 2004-11-05  Bruno Haible  <bruno@clisp.org>
31884
31885         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
31886         Reported by Mark D. Baushke <mdb@cvshome.org>.
31887
31888 2004-11-04  Bruno Haible  <bruno@clisp.org>
31889
31890         2004-09-11  Bruno Haible  <bruno@clisp.org>
31891                 * allocsa.valgrind: New file.
31892         2004-02-06  Bruno Haible  <bruno@clisp.org>
31893                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
31894                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
31895                 Reported by Christopher Seip <chris.seip@hp.com>.
31896
31897 2004-11-04  Bruno Haible  <bruno@clisp.org>
31898
31899         * modules/allocsa (Files): Add lib/allocsa.valgrind.
31900         (Makefile.am): Distribute it.
31901
31902 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31903
31904         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
31905         with errno == ERANGE if the buffer is too small.
31906         Problem reported by Mark D. Baushke.
31907
31908 2004-11-03  Albert Chin  <china@thewrittenword.com>
31909             Paul Eggert  <eggert@cs.ucla.edu>
31910
31911         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
31912         equivalent, substitute $ac_type for equivalent type rather than
31913         blindly using uint32_t *always* which won't work if uint32_t is not
31914         available.  Define _UINT32_T to work around typedef of uint32_t if
31915         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
31916         2.5.1.
31917
31918 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31919
31920         * m4/jm-macros.m4: Sync from coreutils.
31921         (gl_MACROS): Check for mbrlen, for pathchk.
31922         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
31923
31924 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31925
31926         * lib/xreadlink.c (MAXSIZE): New macro.
31927         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
31928         size does not exceed MAXSIZE.  Avoid cast.
31929         As suggested by Mark D. Baushke in
31930         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
31931         if readlink fails with buffer size just under MAXSIZE, try again
31932         with MAXSIZE.
31933
31934 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31935
31936         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
31937
31938 2004-11-02  Derek R. Price  <derek@ximbiot.com>
31939         and  Paul Eggert  <eggert@cs.ucla.edu>
31940
31941         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
31942         (get_date): Overparenthesize to avoid GCC warning.
31943
31944 2004-11-02  Bruno Haible  <bruno@clisp.org>
31945
31946         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
31947         returns void.
31948
31949 2004-11-02  Bruno Haible  <bruno@clisp.org>
31950
31951         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
31952         function returns void.
31953
31954 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
31955
31956         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
31957         fflush_unlocked, flockfile, funlockfile, funlockfile,
31958         fputs_unlocked, putc_unlocked.
31959
31960 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
31961
31962         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
31963         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
31964         already declared.
31965
31966 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31967
31968         * modules/getdate (Files): Add doc/getdate.texi.
31969         (Depends-on): Add setenv, xalloc.
31970
31971 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31972
31973         * lib/getdate.y: Add support for TZ="foo" within a date string.
31974         Fix some bugs near time_t boundaries.  Reject dates with
31975         out-of-range components, e.g., "Sept 31".
31976         Include <stdlib.h>, "setenv.h", "xalloc.h".
31977         (ISDIGIT_LOCALE): Remove; unused.
31978         Note that the TZ and time functions used here are not reentrant.
31979         (mktime_ok, get_tz): New functions.
31980         (TZBUFSIZE): New constant.
31981         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
31982         This requires that we sometimes generate our own TZ="XXX..." setting.
31983
31984 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31985
31986         * doc/getdate.texi: New file, from coreutils with modifications for
31987         the new TZ parsing.
31988
31989 2004-10-27  Derek R. Price  <derek@ximbiot.com>
31990
31991         * lib/mktime.c (not_equal_tm): Remove redundant check.
31992
31993 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31994
31995         * modules/regex (lib_SOURCES): Add regex.c.
31996         Reported by James Youngman in
31997         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
31998
31999 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32000
32001         * lib/getdate.y: Use Bison 1.875 features, and some minor
32002         code cleanups.  This change does not affect semantics.
32003         Don't include <stdlib.h>; no longer needed.
32004         Don't include unlocked-io.h; only the "#if TEST" code uses
32005         stdio, and performance isn't crucial there.
32006         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
32007         Bison 1.875 features as described below.
32008         All uses of "PC." replaced by "pc->".
32009         (YYSTYPE): Add a forward declaration.
32010         (yylex, yyerror): Use full prototypes in forward decls.
32011         Use "%pure-parser" rather than obsolescent "%pure_parser".
32012         Use %parse-param and %lex-param instead of obsolescent
32013         YYPARSE_PARAM and YYLEX_PARAM.
32014         (meridian_table, month_and_day_table, time_units_table,
32015         relative_time_table, time_zone_table, military_table,
32016         lookup_zone, lookup_word, get_date):
32017         Use NULL instead of 0 where appropriate.
32018         (to_hour): Avoid abort (), to avoid a dependency on
32019         stdlib.h.
32020         (yyerror, yylex): Now accepts parser_control * arg.
32021         (main) [TEST]: Use '\0' rather than 0 for char.
32022
32023 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32024
32025         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
32026
32027 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
32028
32029         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
32030         It's now the caller's responsibility to handle the case where
32031         !HAVE_GETPAGESIZE && !defined getpagesize.
32032
32033         * lib/mktime.c (leapyear): Arg is long int, not int.
32034
32035 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32036
32037         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
32038
32039 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
32040
32041         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
32042         missing.  Problem reported by James Youngman.
32043
32044 2004-10-16  Simon Josefsson  <jas@extundo.com>
32045
32046         * gnulib-tool: Fix comments.  Fix parse problem.
32047         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
32048
32049 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32050
32051         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
32052         implementation of getopt_long.  Problem reported by Alexander Taler in:
32053         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
32054
32055 2004-10-15  Bruno Haible  <bruno@clisp.org>
32056
32057         * gnulib-tool: Untabify. Initialize supplied_libname.
32058         (func_usage): More homogenous output.
32059         (func_modules_transitive_closure, func_modules_to_filelist,
32060         func_emit_lib_Makefile_am): New functions.
32061         (func_import): New function, extracted from big case statement. Use
32062         func_get_license, func_modules_transitive_closure,
32063         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
32064         opt_lgpl. Don't use test -a, as it's not portable.
32065         (func_create_testdir): Use func_modules_transitive_closure,
32066         func_modules_to_filelist, func_emit_lib_Makefile_am.
32067
32068 2004-10-15  Bruno Haible  <bruno@clisp.org>
32069
32070         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
32071
32072 2004-10-15  Bruno Haible  <bruno@clisp.org>
32073
32074         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
32075         the portions belonging to each module.
32076         Suggested by Derek Robert Price <derek@ximbiot.com>.
32077
32078 2004-10-12  Simon Josefsson  <jas@extundo.com>
32079
32080         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
32081         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
32082         to real functions.
32083
32084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32085
32086         * modules/vsnprintf: New file.
32087
32088 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32089
32090         * m4/vsnprintf.m4: New file.
32091
32092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32093
32094         * lib/vsnprintf.h: New file.
32095         * lib/vsnprintf.c: New file.
32096
32097 2004-10-11  Bruno Haible  <bruno@clisp.org>
32098
32099         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
32100         vsnprintf.
32101
32102 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
32103
32104         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
32105
32106 2004-10-07  Bruno Haible  <bruno@clisp.org>
32107
32108         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
32109         fits into the provided buffer.
32110
32111 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
32112
32113         * lib/diacrit.c, diacrit.h: Add GPL notice.
32114
32115         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
32116         notice.
32117         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
32118         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
32119         This avoids a potential constant-folding bug.
32120
32121 2004-10-05  Bruno Haible  <bruno@clisp.org>
32122
32123         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
32124         for the declaration of strsep.
32125
32126 2004-10-05  Bruno Haible  <bruno@clisp.org>
32127
32128         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
32129
32130 2004-10-04  Simon Josefsson  <jas@extundo.com>
32131
32132         * modules/memmem: New file.
32133         * tests/test-memmem.c: New file.
32134         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
32135
32136 2004-10-04  Simon Josefsson  <jas@extundo.com>
32137
32138         * m4/memmem.m4: New file.
32139
32140 2004-10-04  Simon Josefsson  <jas@extundo.com>
32141
32142         * lib/memmem.h: New file.
32143         * lib/memmem.c: New file, taken from glibc.
32144
32145 2004-10-04  Simon Josefsson  <jas@extundo.com>
32146
32147         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
32148         '#ifdef USE_UNLOCKED_IO'.
32149
32150 2004-10-04  Simon Josefsson  <jas@extundo.com>
32151
32152         * config/srclist.txt: Add memmem from glibc.
32153
32154 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32155
32156         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
32157
32158         * modules/argmatch, modules/argp, modules/closeout, modules/error,
32159         modules/exclude, modules/getdate, modules/getline,
32160         modules/getndelim2, modules/getpass, modules/getpass-gnu,
32161         modules/getusershell, modules/linebuffer, modules/md5,
32162         modules/mountlist, modules/posixtm, modules/readtokens,
32163         modules/readutmp, modules/regex, modules/sha1,
32164         modules/version-etc, modules/yesno:
32165         Remove dependency on unlocked-io.
32166
32167 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32168
32169         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
32170
32171         * m4/unlocked-io.m4: Add copyright notice.
32172         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
32173
32174 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32175
32176         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
32177         * lib/xmalloc.c (xmemdup): Likewise.
32178         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
32179         XFREE): Remove these long-obsolescent macros.
32180         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
32181         * lib/xstrdup.c: Remove.
32182
32183         * lib/regex.c (re_comp): Cast gettext return value to char *,
32184         Problem reported by Martin Neitzel via Mark D. Baushke.
32185
32186 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
32187
32188         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
32189         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
32190         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
32191         regex.c, sha1.c, version-etc.c, yesno.c:
32192         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
32193         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
32194         the includer's responsibility.
32195
32196         Sync from coreutils.
32197
32198         * lib/modechange.c (mode_compile): Don't decrement a pointer that
32199         points to the start of a string, as the C Standard says the
32200         resulting behavior is undefined.
32201
32202         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
32203         simple -> simple_backups, numbered_existing ->
32204         numbered_existing_backups, numbered -> numbered_backups
32205         to avoid shadowing problems.  All uses changed.
32206         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
32207         * lib/backupfile.c (check_extension, numbered_backup):
32208         Rename locals to avoid shadowing 'basename'.
32209         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
32210         once.
32211
32212         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
32213         * lib/.cvsignore: Add getopt.h.
32214
32215 2004-10-04  Bruno Haible  <bruno@clisp.org>
32216
32217         * modules/README: New file.
32218         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
32219         not a module.
32220
32221 2004-10-02  Jim Meyering  <jim@meyering.net>
32222
32223         * lib/dirfd.h, getpagesize.h: Add copyright notice.
32224
32225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32226
32227         * modules/strsep: New file.
32228
32229 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32230
32231         * m4/strsep.m4: New file.
32232
32233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
32234
32235         * lib/strsep.h: New file.
32236         * lib/strsep.c: New file.
32237
32238 2004-10-01  Simon Josefsson  <jas@extundo.com>
32239
32240         * lib/snprintf.c (snprintf): Handle size==0.
32241
32242 2004-10-01  Simon Josefsson  <jas@extundo.com>
32243             Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
32246         (snprintf): Declare 'args'.
32247
32248 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
32249
32250         * lib/snprintf.c: Remove comments as to why each header is needed.
32251
32252 2004-10-01  Bruno Haible  <bruno@clisp.org>
32253
32254         * MODULES.html.sh: Add strsep.
32255
32256 2004-09-30  Simon Josefsson  <jas@extundo.com>
32257
32258         * modules/snprintf: New file.
32259
32260 2004-09-30  Simon Josefsson  <jas@extundo.com>
32261
32262         * m4/snprintf.m4: New file.
32263
32264 2004-09-30  Simon Josefsson  <jas@extundo.com>
32265
32266         * lib/snprintf.h, lib/snprintf.c: New files.
32267
32268 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32269
32270         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
32271         (hol_entry_help): Never translate an empty string.
32272         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
32273         * lib/argp.h (OPTION_NO_TRANS): New option.
32274
32275 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32276
32277         * modules/argp (Maintainer): Replace Simon Josefsson
32278         by Sergey Poznyakoff.
32279
32280 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32281
32282         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
32283         changes merged back into glibc.
32284
32285 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
32286
32287         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
32288
32289 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
32290
32291         * lib/xvasprintf.c: Include xalloc.h.
32292         (xvasprintf): Use xalloc_die, not xmalloc_die.
32293
32294 2004-09-29  Bruno Haible  <bruno@clisp.org>
32295
32296         * modules/alloca-opt: New file, derived from modules/alloca.
32297         * modules/allocsa: Depend on alloca-opt instead of alloca.
32298         * modules/setenv: Likewise.
32299         * modules/vasnprintf: Likewise.
32300         * MODULES.html.sh: Add alloca-opt.
32301
32302 2004-09-28  Simon Josefsson  <jas@extundo.com>
32303
32304         * gnulib-tool: New parameter --lgpl, to asseert that modules are
32305         LGPL, and to replace license template from GPL to LGPL.
32306
32307 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32308
32309         * modules/dummy: Change license to LGPL.
32310
32311 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
32312
32313         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
32314
32315 2004-09-24  Simon Josefsson  <jas@extundo.com>
32316
32317         * modules/minmax (License): Change from GPL to LGPL.
32318
32319 2004-09-23  Simon Josefsson  <jas@extundo.com>
32320
32321         * gnulib-tool (--import): Typo.
32322
32323 2004-09-23  Simon Josefsson  <jas@extundo.com>
32324
32325         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
32326
32327 2004-09-22  Bruno Haible  <bruno@clisp.org>
32328
32329         * modules/*: Add 'License' field.
32330         * gnulib-tool: Accept --extract-license option.
32331         (func_get_license): New function.
32332
32333 2004-09-21  Bruno Haible  <bruno@clisp.org>
32334
32335         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
32336         Reported by Simon Josefsson.
32337
32338 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32339
32340         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
32341         gl_AC_TYPE_LONG_LONG.
32342
32343 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32344
32345         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
32346
32347 2004-09-18  Simon Josefsson  <jas@extundo.com>
32348         and  Paul Eggert  <eggert@cs.ucla.edu>
32349
32350         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
32351         calls with autoreconf.  Define GL_LIB.
32352
32353 2004-09-14  Karl Berry  <karl@gnu.org>
32354
32355         * config/srclist.txt: unsync setenv.c, sigh.
32356
32357 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32358
32359         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
32360         Problem reported by Bruno Haible in:
32361         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
32362
32363 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32364
32365         * config/srclist.txt: Comment out argp-pvh.c.
32366
32367 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
32368
32369         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
32370         in case some system header has #define'd it.  Problem reported by
32371         Soeren D. Schulze in
32372         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
32373
32374 2004-09-09  Karl Berry  <karl@gnu.org>
32375
32376         * regex.[ch]: delete from the root.  These were supposed to be
32377                 synced with emacs cvs, but this has not happened for about
32378                 a year, and anyway nothing else uses emacs regex.[ch].
32379                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
32380                 lib/regex[.ch] is untouched.
32381
32382 2004-09-09  Bruno Haible  <bruno@clisp.org>
32383
32384         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
32385
32386 2004-09-09  Bruno Haible  <bruno@clisp.org>
32387
32388         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
32389         modifications.
32390         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
32391
32392 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32393
32394         * modules/xvasprintf: New file.
32395         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
32396
32397 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
32398
32399         * lib/xvasprintf.h: New file.
32400         * lib/xvasprintf.c: New file.
32401         * lib/xasprintf.c: New file.
32402
32403 2004-09-08  Bruno Haible  <bruno@clisp.org>
32404
32405         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
32406
32407 2004-09-08  Bruno Haible  <bruno@clisp.org>
32408
32409         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
32410         length is > INT_MAX.
32411         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
32412         more.
32413
32414 2004-09-08  Bruno Haible  <bruno@clisp.org>
32415
32416         * lib/stdint_.h: New file, taken from GNU clisp.
32417
32418 2004-09-08  Bruno Haible  <bruno@clisp.org>
32419             Oskar Liljeblad  <oskar@osk.mine.nu>
32420
32421         * modules/stdint: New file.
32422         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
32423
32424 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32425
32426         Import from coreutils.
32427         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
32428         strings on unbounded length.  alloca's performance benefits aren't
32429         that important here.
32430         (V_STRDUP): Remove.
32431         (parse_with_separator): New function, with most of the internals
32432         of the old parse_user_spec.  Allow user to omit both user and group,
32433         for compatibility with FreeBSD.
32434         Clone only the user name, not the entire spec.
32435         Do not set *uid, *gid unless entirely successful.
32436         Avoid memory leak in some failing cases.
32437         Fix regression for USER.GROUP reported by Dmitry V. Levin in
32438         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
32439         (parse_user_spec): Rewrite to use parse_with_separator.
32440
32441 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32442
32443         * modules/userspec: Don't depend on alloca.
32444
32445 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32446
32447         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
32448
32449 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32450
32451         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
32452         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
32453         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
32454
32455 2004-08-16  Simon Josefsson  <jas@extundo.com>
32456
32457         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
32458         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
32459         Add --dry-run for --import.
32460         Let user provided command line parameters override configure.ac
32461         settings.
32462
32463 2004-08-12  Simon Josefsson  <jas@extundo.com>
32464
32465         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
32466         as discussed with Paul Eggert in threads rooted at
32467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
32468         and
32469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
32470         Before, the test was empty, and relied on ELIDE_CODE in source
32471         code.)
32472         (gl_PREREQ_GETOPT): New macro.
32473         (gl_GETOPT): Use them.
32474
32475 2004-08-12  Simon Josefsson  <jas@extundo.com>
32476
32477         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
32478         * lib/getopt_.h: Renamed from getopt.h.
32479
32480 2004-08-12  Simon Josefsson  <jas@extundo.com>
32481
32482         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
32483         Change default library name from libfoo to libgnu.
32484         Now, if you have a configure.ac that says:
32485                 gl_SOURCE_BASE(gl)
32486                 gl_M4_BASE(gl/m4)
32487                 gl_MODULES(error getopt etcetera)
32488                 gl_INIT
32489         you can import all you need by running:
32490                 ../gnulib/gnulib-tool --import
32491
32492         * modules/getopt (Files): Rename getopt.h to getopt_.h.
32493         (Makefile.am): Rewrite, use logic from argz.
32494         (Include): Use <getopt.h> instead of "getopt.h".
32495
32496 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         * modules/argp (Files): Add m4/unlocked-io.m4.
32499         (Depends-on): Add extensions.
32500
32501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32502
32503         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
32504         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
32505         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
32506         Check for program_invocation_name, program_invocation_short_name,
32507         flockfile, funlockfile, features.h, _getopt_long_only_r.
32508
32509 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32510
32511         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
32512         its complicated substitute.
32513         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
32514         and program_invocation_name.
32515         (__argp_basename) [!_LIBC]: Remove; the only use was
32516         replaced by its body.
32517         (__argp_short_program_name): Change condition from
32518         !defined __argp_short_program_name to
32519         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
32520         to match argp-namefrob.h.
32521         (__argp_failure): Don't assume strerror_r returns char *.
32522         * lib/argp-parse.c (N_): Define unconditionally.
32523         (argp_default_options): Fill out initializers with 0 to avoid
32524         gcc warnings.
32525
32526 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
32527
32528         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
32529         getopt1.c.
32530
32531 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32532
32533         Merge from coreutils.
32534
32535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
32536
32537         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
32538         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
32539
32540 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32541
32542         Merge from coreutils.
32543
32544         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
32545         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
32546         for Reliant Unix 5.43.
32547
32548         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
32549         (union fooround): Use uintmax_t, not long int.
32550         The rest is a merge from libc:
32551         [defined _LIBC]: Include <shlib-compat.h>.
32552         (_obstack) [defined _LIBC]: Remove after 2.3.4.
32553
32554         * lib/settime.c (settime): Recode to avoid warning with
32555         Sun Forte C 6U2.
32556
32557         * lib/strverscmp.c: Convert to UTF-8.
32558
32559 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
32560
32561         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
32562         m4/uintmax_t.m4.
32563
32564 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32565
32566         * modules/xalloc-die: New file.
32567         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
32568
32569         * modules/md5 (Files): Add m4/uint32_t.m4.
32570         * modules/sha1: Renamed from modules/sha.
32571         (Files):
32572         Rename lib/sha.h to lib/sha1.h.
32573         Rename lib/sha.c to lib/sha1.c.
32574         Rename m4/sha.m4 to m4/sha1.m4.
32575         (lib_SOURCES): Likewise.
32576         (configure.ac): Rename gl_SHA to gl_SHA1.
32577         (Include): sha.h -> sha1.h.
32578
32579 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32580
32581         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
32582         * m4/sha1.m4: Renamed from sha.m4.
32583         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
32584
32585 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
32586
32587         * lib/obstack.h (obstack_empty_p):
32588         Don't assume that chunk->contents is suitably aligned.
32589         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
32590         Likewise. Problem reported by Benno in
32591         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
32592
32593         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
32594         readable.  This could be improved further but it'd take some work.
32595
32596 2004-08-08  Simon Josefsson  <jas@extundo.com>
32597
32598         * modules/xgethostname (Depends-on): Remove exit and error (not
32599         used).
32600
32601         * modules/getpass-gnu: Add getpass.h.
32602         (Depends-on): Add stdbool.
32603         * modules/getpass: Add getpass.h.
32604
32605 2004-08-08  Simon Josefsson  <jas@extundo.com>
32606
32607         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
32608         Check getpass declaration.
32609
32610 2004-08-08  Simon Josefsson  <jas@extundo.com>
32611
32612         * lib/xgethostname.c: Don't include error.h (not used).
32613
32614         * lib/getpass.h: Add.
32615         * lib/getpass.c: Include getpass.h first.
32616
32617 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32618
32619         * lib/xalloc-die.c: New file.
32620         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
32621         All uses removed.
32622         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
32623         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
32624         xalloc-die.c.
32625         (_, N_, xalloc_die): Move to xalloc-die.c.
32626         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
32627         so that we needn't mess with xalloc_msg_memory_exhausted.
32628
32629         * lib/sha1.h: Renamed from sha.h.
32630         (SHA1_H): Renamed from _SHA_H.
32631         (sha1_ctx): Renamed from sha_ctx.
32632         (sha1_init_ctx): Renamed from sha_init_ctx.
32633         (sha1_process_block): Renamed from sha_process_block.
32634         (sha1_process_bytes): Renamed from sha_process_bytes.
32635         (sha1_finish_ctx): Renamed from sha_finish_ctx.
32636         (sha1_read_ctx): Renamed from sha_read_ctx.
32637         (sha1_stream): Renamed from sha_stream.
32638         (sha1_buffer): Renamed from sha_buffer.
32639         * lib/sha1.c: Likewise; renamed from sha.c.
32640         Do not include <sys/types.h>.
32641         Include <stddef.h> rather than <stdlib.h>.
32642
32643 2004-08-08  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
32646         FILESYSTEM_PREFIX_LEN.
32647         * lib/progreloc.c: Likewise.
32648         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
32649
32650 2004-08-06  Simon Josefsson  <jas@extundo.com>
32651
32652         * modules/progname (Depends-on): Don't depend on stdbool.
32653
32654 2004-08-06  Simon Josefsson  <jas@extundo.com>
32655
32656         * modules/getsubopt: New file.
32657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32658         getsubopt.
32659
32660 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32661
32662         More merge from coreutils.
32663
32664         * m4/utimens.m4, m4/utimecmp.m4: New files.
32665         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
32666         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
32667         prereq.m4, sha.m4: Import changes from coreutils.
32668
32669 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32670
32671         More merge from coreutils.
32672         * modules/raise, modules/readtokens0, modules/utimens:
32673         * modules/utimecmp, module/xnanosleep: New files.
32674         * modules/strftime: Add lib/strftime.h.
32675         Change include from <time.h> to "strftime.h".
32676         * modules/yesno: Add lib/yesno.h.
32677         * modules/backupfile: Remove lib/addext.c.
32678         * modules/euidaccess: Add stat-macros.h.
32679         * modules/canonicalize, modules/euidaccess,
32680         modules/filemode, modules/lchown, modules/makepath,
32681         modules/rmdir, modules/stat: Likewise.
32682
32683 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32684
32685         Merge from tar.
32686         * lib/argp-help.c (make_hol, hol_append): Don't assume that
32687         SIZE_MAX is a valid preprocessor constant.
32688         (__argp_basename): Change from "#ifndef _LIBC"
32689         to "#ifndef __argp_short_program_name", so that
32690         we don't compile these functions for tar.
32691
32692         More merges from coreutils.
32693         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
32694         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
32695         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
32696         * lib/addext.c: Remove; no longer needed.
32697         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
32698         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
32699         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
32700         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
32701         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
32702         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
32703         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
32704         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
32705         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
32706         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32707         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
32708         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
32709         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
32710         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
32711         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
32712         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
32713         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
32714         Import changes from coreutils.
32715
32716 2004-08-05  Simon Josefsson  <jas@extundo.com>
32717
32718         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
32719
32720 2004-08-05  Simon Josefsson  <jas@extundo.com>
32721
32722         * m4/getsubopt.m4: New file.
32723
32724 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32725
32726         Merge from coreutils.
32727
32728         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
32729         * m4/getcwd-path-max.m4: New files.
32730
32731         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
32732         FILESYSTEM_PREFIX_LEN ->
32733         FILE_SYSTEM_PREFIX_LEN.
32734         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
32735         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
32736         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
32737         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
32738
32739         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
32740         prerequisite modules now handle the DOS stuff.
32741         Don't check for unistd.h.
32742
32743 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32744
32745         Merge from coreutils.
32746
32747         * lib/.gdb-history: Remove; this doesn't belong here.
32748
32749         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
32750         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
32751         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
32752         * lib/getcwd.c: New files.
32753
32754         * lib/dirname.h: Include <stdbool.h>.
32755         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
32756         for consistency with POSIX terminology.  All uses changed.
32757         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
32758         (strip_trailing_slashes): Use bool for booleans.
32759         * lib/stripslash.c (strip_trailing_slashes): Likewise.
32760
32761         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
32762         sometimes returns a positive errno value even when it succeeds.
32763         (print_errno_message) [!LIBC]: Fall back on strerror if
32764         __strerror_r fails.
32765
32766         * lib/path-concat.c (mempcpy): Don't define if a system header defines
32767         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
32768         (longest_relative_suffix): New function.
32769         (path_concat): Use it.  Assume first argument is not NULL.
32770         Port to DOS.  Omit redundant separators.
32771         Report an error instead of returning NULL.
32772         Use mempcpy instead of memcpy.
32773         (xpath_concat): Remove: not declared or used.
32774
32775         * lib/same.h: Include <stdbool.h>
32776         (same_name): Return bool, not int.
32777         * lib/same.c (same_name): Likewise.
32778         (errno): Don't declare; we assume C89 or better now.
32779
32780         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
32781         if not already defined.
32782
32783         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
32784         * lib/dup-safer.c (errno): Likewise.
32785
32786 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32787
32788         Merge from coreutils.
32789         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
32790         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
32791         * modules/path-concat: Don't depend on strdup.
32792
32793 2004-08-03  Simon Josefsson  <jas@extundo.com>
32794
32795         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
32796         * lib/progname.h: Don't include stdbool.h.
32797
32798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32799
32800         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
32801         * MODULES.html.sh (func_all_modules): Remove fatal.
32802
32803 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
32806
32807 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
32808
32809         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
32810         working.
32811
32812 2004-08-02  Simon Josefsson  <jas@extundo.com>
32813
32814         * lib/getsubopt.h: New file, with comments from Bruno Haible.
32815         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
32816         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
32817
32818 2004-08-01  Simon Josefsson  <jas@extundo.com>
32819
32820         * lib/xgetdomainname.c: Include stdlib.h, for free().
32821
32822 2004-07-19  Bruno Haible  <bruno@clisp.org>
32823
32824         * MODULES.html.sh (func_all_modules): Add dummy.
32825
32826 2004-07-16  Simon Josefsson  <jas@extundo.com>
32827
32828         * modules/dummy: New file.
32829
32830 2004-07-16  Simon Josefsson  <jas@extundo.com>
32831
32832         * lib/dummy.c: New file.
32833
32834 2004-07-16  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/backupfile.h: Add extern "C" for C++.
32837         * lib/closeout.h: Likewise.
32838         * lib/copy-file.h: Likewise.
32839         * lib/findprog.h: Likewise.
32840         * lib/full-write.h: Likewise.
32841         * lib/pathname.h: Likewise.
32842         * lib/progname.h: Likewise.
32843         * lib/stpcpy.h: Likewise.
32844         * lib/stpncpy.h: Likewise.
32845         * lib/strcase.h: Likewise.
32846         * lib/strstr.h: Likewise.
32847         * lib/xalloc.h: Likewise.
32848
32849         * lib/mbswidth.h: Add extern "C" for C++.
32850         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
32851
32852 2004-07-13  Robert Millan  <robertmh@gnu.org>
32853
32854         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
32855
32856 2004-07-09  Simon Josefsson  <jas@extundo.com>
32857
32858         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
32859         failed without this.)
32860
32861 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32862
32863         * modules/chown (Files): Add lib/fchown-stub.c, since
32864         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
32865
32866 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32867
32868         * lib/fchown-stub.c: New file.
32869
32870 2004-06-24  Jim Meyering  <jim@meyering.net>
32871
32872         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
32873
32874 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32875
32876         * modules/argz: Omit "#include".
32877
32878         * MODULES.html.sh (func_all_modules): Add calloc, to match
32879         2004-06-01 addition of calloc module.
32880
32881 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32882
32883         * m4/argz.m4: New file, which is autoupdated from libtool.
32884
32885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32886
32887         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
32888         libtool.
32889
32890 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32891
32892         * config/srclist-update: Don't insist on "USA." before the
32893         close-comment, as libtool omits the period and puts the */ on a
32894         separate line.
32895         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
32896         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
32897
32898 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
32899
32900         * modules/argz: New file.
32901         * MODULES.html.sh (func_all_modules): Add argz.
32902
32903 2004-06-12  Jim Meyering  <jim@meyering.net>
32904         and  Paul Eggert  <eggert@cs.ucla.edu>
32905
32906         * modules/hash (Files): Add lib/xalloc.h.
32907         * modules/pipe (Depends-on): Add wait-process.
32908         * modules/stat (Depends-on): Add xalloc.
32909         * modules/userspec (Files): Add lib/userspec.h.
32910         * modules/xstrto
32911
32912         Upgrade from gettext-0.13.
32913         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
32914         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
32915         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
32916
32917 2004-06-10  Jim Meyering  <jim@meyering.net>
32918
32919         * lib/calloc.c: New file.
32920
32921 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32922
32923         * lib/getdate.y (yylex): Allow space between sign and number.
32924         Problem reported by Dan Jacobson.
32925
32926 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32927
32928         Merge from coreutils CVS.
32929
32930         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
32931         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
32932         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
32933         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
32934         xstrtol.m4: Fix copyright date and/or serial number.
32935
32936         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
32937         See if we need an fchown replacement.
32938         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
32939         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
32940         and use the replacement function if we detect either defect.
32941
32942         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
32943         gl_UTIMECMP.
32944
32945 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32946         and  Jim Meyering  <jim@meyering.net>
32947
32948         Merge from coreutils CVS.
32949
32950         * lib/stat-macros.h: New file, with contents from file-type.h
32951         and coreutils' system.h.
32952         * lib/file-type.c: Include "stat-macros.h".
32953         * lib/file-type.h (file_type): Move all macro definitions to new file,
32954         stat-macros.h.
32955
32956         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
32957         Wrap old code with this conditional.
32958         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
32959         function that does not dereference symlinks.
32960         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
32961
32962         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
32963         dependency problems.
32964         (xreadlink): Accept new arg SIZE, for efficiency.
32965         All decls and uses changed.
32966         * lib/xreadlink.h: Include <stddef.h>, for size_t.
32967
32968         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
32969         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
32970
32971         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
32972         sysexits.h.
32973
32974 2004-06-01  Jim Meyering  <jim@meyering.net>
32975
32976         * m4/calloc.m4: New file.
32977
32978 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32979
32980         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
32981         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
32982         Also, fix a typo in a diagnostic.
32983
32984 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32985
32986         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
32987         or AC_FUNC_REALLOC.
32988
32989 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32990
32991         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
32992         macros to be defined.
32993         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
32994         the allocator returns NULL because the requested size is zero.
32995
32996 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32997
32998         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
32999         var.  Add comment explaining why libc still defines it.  This
33000         merges the following patch from glibc:
33001         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
33002
33003 2004-05-20  Andreas Schwab  <schwab@suse.de>
33004
33005         * m4/free.m4: Replace free if it not known to work, not the other
33006         way round.
33007
33008 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33009
33010         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
33011         present in glibc since revision 1.1 of this file.
33012         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
33013         obstack_alignment_mask, obstack_alloc, obstack_base,
33014         obstack_blank, obstack_blank_fast, obstack_chunk_size,
33015         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
33016         obstack_grow0, obstack_init, obstack_int_grow,
33017         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
33018         obstack_next_free, obstack_object_size, obstack_ptr_grow,
33019         obstack_ptr_grow_fast, obstack_room): Remove declarations of
33020         nonexistent functions.
33021
33022 2004-05-18  Karl Berry  <karl@gnu.org>
33023
33024         * config/srclist.txt: break link for vasnprintf.c.
33025
33026 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33027
33028         Port obstack to the AS/400, where pointers are 16 bytes wide and
33029         you cannot cast an integer to a valid pointer.  This patch is
33030         currently waiting to be integrated into glibc; see
33031         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
33032
33033         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
33034         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
33035         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
33036         (struct obstack): temp member is now a union of a pointer and
33037         an integer, instead of an integer.  All integer uses changed.
33038         This does not affect the physical layout of struct obstack,
33039         except on hosts (like the AS/400) where the size or alignment of
33040         void * is greater than that of ptrdiff_t.
33041         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
33042         __STDC__)]: Store temporary in pointer member of union, not
33043         integer member.
33044         * lib/obstack.c: Include <stddef.h>, for offsetof.
33045         (struct fooalign): Remove; it doesn't need a name.
33046         (union fooround): Change double to long double, and add void *.
33047         (DEFAULT_ALIGNMENT): Use offsetof to compute.
33048         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
33049         not a macro.  Hence the values are always int; so remove all
33050         casts-to-int in uses.
33051
33052 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33053
33054         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
33055         we can get this patch merged into glibc.
33056
33057 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33058             Paul Eggert  <eggert@cs.ucla.edu>
33059
33060         * m4/argp: Depend on alloca.
33061
33062 2004-05-17  Derek R. Price  <derek@ximbiot.com>
33063             Paul Eggert  <eggert@cs.ucla.edu>
33064
33065         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
33066         freecoding.
33067
33068 2004-05-17  Bruno Haible  <bruno@clisp.org>
33069
33070         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
33071         precision that consists of a '.' followed by an empty digit string.
33072         Patch by Tor Lillqvist <tml@iki.fi>.
33073
33074 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33075
33076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
33077         for backward compatibility with older code.  We need our own
33078         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
33079         it under some other name, and our alloca.h will define it.
33080
33081 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33082             Derek Price  <derek@ximbiot.com>
33083
33084         * lib/alloca.c: Include <alloca.h>, to get our interface.
33085         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
33086         include <alloca.h> first.  Use C89 prototype for alloca; this
33087         requires including <stddef.h> for size_t.  Use extern "C" if C++.
33088         Use #elif for simplicity, since we can assume C89 now.
33089         Don't try to source the system alloca.h since it will not be found
33090         and to prevent recursively including its replacement.
33091         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
33092         * lib/regex.c: Likewise.
33093
33094 2004-05-16  Derek Price  <derek@ximbiot.com>
33095             Paul Eggert  <eggert@cs.ucla.edu>
33096
33097         getline cleanup.  This changes the getndelim2 API: both order of
33098         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
33099         no delimiter).
33100
33101         * lib/getline.c: Don't include stddef.h or stdio.h, since our
33102         interface does that.
33103         (getline): Always use getdelim, so that we don't have two
33104         copies of this code.
33105         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
33106         if available.
33107         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
33108         (GETNDELIM2_MAXIMUM): New macro.
33109         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
33110         instead of the old practice of delim2==0.  All callers changed.
33111         Return -1 on overflow, instead of returning junk.
33112         Do not set *linesize unless allocation succeeds.
33113         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
33114         that we include sys/types.h.
33115         * lib/getnline.h: Likewise.
33116         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
33117         (getndelim2): Reorder arguments.
33118         * lib/getnline.c (getnline, getndelim):
33119         Don't discard the NMAX argument.
33120         (getnline): Invoke getndelim, to avoid code duplication.
33121         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
33122         of (size_t) -1 by callers of the getnline family.
33123
33124 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33125
33126         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
33127         Check for gettimeofday.
33128         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
33129         Check for settimeofday, stime.
33130
33131 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33132
33133         * lib/nanosleep.c (suspended): Change its type from int to
33134         sig_atomic_t volatile.
33135         (first_call): Make it private to rpl_nanosleep, and have it
33136         be zero initially as that's a bit faster.
33137         (my_usleep): Round up fractional times instead of truncating them,
33138         as this is the usual meaning for 'sleep'.
33139
33140         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
33141         doesn't work.
33142         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
33143         (ENOSYS): Define if not defined.
33144         (settime): Fall back on stime if it exists and settimeofday fails.
33145         But don't bother with fallbacks if a method fails with errno == EPERM.
33146
33147 2004-05-11  Jim Meyering  <jim@meyering.net>
33148
33149         Prior to this change, the save_cwd caller required read access to the
33150         current directory on most systems (ones with the fchdir function).
33151
33152         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
33153         fails, try write-only, and finally, resort to using xgetcwd.
33154
33155 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33156
33157         * lib/obstack.c, obstack.h: Import changes from libc.
33158
33159 2004-04-28  Bruno Haible  <bruno@clisp.org>
33160
33161         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
33162         also implicitly appends .exe to executables.
33163         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
33164         accepts Windows pathnames.
33165         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33166         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33167         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
33168         Treat Cygwin like Windows, since it now accepts Windows pathnames.
33169         Reported by Derek Robert Price <derek@ximbiot.com>.
33170
33171 2004-04-21  Karl Berry  <karl@gnu.org>
33172
33173         * config/srclist.txt (localcharset.c): break sync.
33174
33175 2004-04-20  Paul Eggert  <eggert@twinsun.com>
33176
33177         * m4/host-os.m4: Add a copyright notice.
33178
33179 2004-04-20  Jim Meyering  <jim@meyering.net>
33180
33181         Change UTILS_ to gl_ in AC_DEFINE'd names.
33182         Change utils_- and jm_-prefixed variables, too.
33183         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
33184         UTILS_FUNC_MKDIR_TRAILING_SLASH.
33185         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
33186
33187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
33188         Don't emit trailing blanks.
33189         Also rename jm_-prefixed variables to have gl_ prefix.
33190
33191         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
33192         Also rename jm_-prefixed variables to have gl_ prefix.
33193
33194         * m4/jm-macros.m4: Reflect the renamings.
33195         * m4/prereq.m4: Likewise.
33196
33197 2004-04-20  Jim Meyering  <jim@meyering.net>
33198
33199         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
33200         memory.
33201
33202 2004-04-20  Jim Meyering  <jim@meyering.net>
33203             Bruno Haible  <bruno@clisp.org>
33204
33205         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
33206         memory when realloc fails.
33207
33208 2004-04-19  Jim Meyering  <jim@meyering.net>
33209
33210         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
33211         now that readutmp.c may call `free (0)'.
33212
33213 2004-04-19  Bruno Haible  <bruno@clisp.org>
33214
33215         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
33216         * m4/inttypes_h.m4: Likewise.
33217         * m4/stdint_h.m4: Likewise.
33218         * m4/intmax_t.m4: Likewise.
33219         * m4/uintmax_t.m4: Likewise.
33220
33221 2004-04-18  Jim Meyering  <jim@meyering.net>
33222
33223         * m4/prereq.m4: Don't forbid jm_ prefix.
33224
33225         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
33226         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
33227         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
33228         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
33229         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
33230         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
33231         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
33232         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
33233         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
33234         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
33235         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
33236         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
33237         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
33238         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
33239         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
33240         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
33241         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
33242         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
33243         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
33244
33245 2004-04-18  Jim Meyering  <jim@meyering.net>
33246
33247         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
33248         failure, don't leak memory and do call END_UTMP_ENT.
33249
33250 2004-04-16  Jim Meyering  <jim@meyering.net>
33251
33252         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
33253         coreutils' stat program.
33254         (gl_PREREQ): Don't require jm_PREREQ_STAT.
33255
33256 2004-04-11  Paul Eggert  <eggert@twinsun.com>
33257
33258         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
33259         C89.
33260         (CHAR_BIT): Remove, since we assume C89.
33261         Include <stdint.h> if available, as per current Autoconf CVS advice.
33262
33263 2004-03-31  Jim Meyering  <jim@meyering.net>
33264
33265         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
33266         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
33267         * m4/xalloc.m4: Likewise.
33268
33269 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33270
33271         Merge from coreutils.
33272
33273         * m4/inttostr.m4: New file.
33274         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
33275         Require AM_STDBOOL_H and gl_TIMESPEC instead.
33276         Require gl_CLOCK_TIME.
33277         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
33278
33279 2004-03-30  Paul Eggert  <eggert@twinsun.com>
33280
33281         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
33282         not bool, to be more consistent with Unix conventions.
33283         Suggested by Bruno Haible.
33284
33285         Merge from coreutils.
33286
33287         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
33288         * lib/umaxtostr.c: New files.
33289
33290         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
33291         the usual <time.h> dance.
33292         (get_date): Change signature to support fractional time stamps.
33293         All callers changed.
33294         * lib/getdate.y: Include "getdate.h" first, as we can now
33295         assume C89 and don't need to worry about 'const'.
33296         Similarly, include "unlocked-io.h" near start, not in middle.
33297         Include <limits.h>.
33298         (textint.value): Use long int rather than int.
33299         (textint.digits): Use size_t rather than int.
33300         (BILLION, LOG10_BILLION): New constants.
33301         (parser_control): New member rel_ns.  Members day_ordinal,
33302         time_zone, month, day, hour, minutes, rel_year, rel_month,
33303         rel_day, rel_hour, rel_minutes, rel_seconds
33304         are now long int, not int.  Member seconds is now struct timespec,
33305         not int.  New member timespec_seen.  Members dates_seen, days_seen,
33306         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
33307         not int.
33308         (%union.intval): Now long int, not int.
33309         New member timespec.
33310         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
33311         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
33312         (spec): Now is a timespec or an item list.
33313         (timespec, items): New nonterminals.
33314         (time, rel, relunit, number, get_date):
33315         Add support for fractional seconds.
33316         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
33317         (gmtime, localtime, mktime): Remove decls; not needed with C89.
33318         (to_hour): First arg is now long int, not int.
33319         (to_year): Returns long int, not int.
33320         Don't treat year -70 like 70.
33321         (tm_diff): Returns long int, not int.
33322         (lookup_word): Use bool instead of int when appropriate.
33323         (yylex): Use size_t for count, not int.
33324         Detect overflow when parsing large integer constants.
33325         Add support for fractions.
33326         (get_date): Make pointers 'const' if possible.
33327         Use more-portable code to detect integer overflow.
33328         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
33329         Don't use ctime; it's not reliable if the year has >4 digits.
33330
33331         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
33332         This is for compatibility with BSD.
33333
33334         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
33335         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
33336         From coreutils' system.h.
33337
33338         * lib/userspec.c: Don't include "posixver.h".
33339         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
33340         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
33341         compatible extension.  Simplify code by removing a boolean int
33342         that was always nonzero if a string was nonnull.
33343
33344 2004-03-30  Jim Meyering  <jim@meyering.net>
33345
33346         Merge from coreutils.
33347
33348         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
33349         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
33350         on some systems one must include <grp.h> before it.
33351         Reported by Christian Krackowizer.
33352
33353 2004-03-30  Jim Meyering  <jim@meyering.net>
33354
33355         Merge from coreutils.
33356
33357         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
33358
33359         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
33360         an empty input stream.
33361
33362         * lib/readtokens.c: Include <stdbool.h>.
33363         (readtoken): Use `size_t' rather than int/long.
33364         All callers adjusted.
33365         Use `bool' rather than `int' where appropriate.
33366         Use memset rather than an explicit loop.
33367         Use x2nrealloc rather than xrealloc.
33368         Allow the use of `\0' as a delimiter.
33369         (readtokens): Likewise.
33370         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
33371
33372 2004-03-30  Jim Meyering  <jim@meyering.net>
33373
33374         * m4/realloc.m4: Remove file, since now it does no more than
33375         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
33376         the `configure.ac' section of module/realloc.
33377         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
33378
33379 2004-03-30  Bruno Haible  <bruno@clisp.org>
33380
33381         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
33382         nonnull.
33383
33384 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33385
33386         Merge changes to getloadavg.c from coreutils and Emacs.
33387
33388         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
33389         Define to an expression, not to the empty string.
33390         Include cloexec.h and xalloc.h.
33391         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
33392         Use set_cloexec_flag rather than rolling our own.
33393         * lib/cloexec.c, lib/cloexec.h: New files.
33394
33395 2004-03-29  Paul Eggert  <eggert@twinsun.com>
33396
33397         * m4/cloexec.m4: New file.
33398
33399 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33400
33401         * lib/getopt.h: Sync with libc CVS.
33402
33403 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33404             Bruno Haible  <bruno@clisp.org>
33405
33406         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
33407         mbswidth.
33408
33409 2004-03-18  Paul Eggert  <eggert@twinsun.com>
33410             Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/mbswidth.h: Include <wchar.h> only if
33413         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
33414         <wchar.h>.
33415         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
33416
33417 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33418
33419         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
33420         Sync with libc CVS.
33421         * lib/getopt_int.h: New file, also synced from libc.
33422
33423 2004-03-09  Paul Eggert  <eggert@twinsun.com>
33424
33425         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
33426         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
33427         Bring back getopt.c, getopt.h, getopt1.c.
33428
33429 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33430
33431         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
33432         All uses changed.  Check for sa_sigaction member; this fixes
33433         a bug first reported by Jason Andrade in
33434         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33435
33436 2004-03-07  Paul Eggert  <eggert@twinsun.com>
33437
33438         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
33439         '#if' expressions.  Unlike the code it replaces, it does not
33440         depend on (defined _SC_PAGESIZE).  However, it does depend on
33441         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
33442         first reported by Jason Andrade in
33443         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
33444
33445 2004-02-25  Simon Josefsson  <jas@extundo.com>
33446
33447         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
33448
33449 2004-02-25  Simon Josefsson  <jas@extundo.com>
33450
33451         * lib/strdup.h: New file.
33452         * lib/strdup.c: Include it.
33453         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
33454         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
33455
33456 2004-02-23  Karl Berry  <karl@gnu.org>
33457
33458         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
33459         (from fencepost.gnu.org:/gd/gnuorg).
33460
33461 2004-02-23  Karl Berry  <karl@gnu.org>
33462
33463         * config/srclistvars.sh (GNUORG) [karl]: redefine.
33464         * config/srclist.txt: add maintain/standards documents.
33465
33466 2004-02-18  Bruno Haible  <bruno@clisp.org>
33467
33468         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
33469         Reported by Derek Robert Price <derek@ximbiot.com>.
33470
33471 2004-02-16  Karl Berry  <karl@gnu.org>
33472
33473         * config/mkinstalldirs, install-sh: update from automake.
33474
33475 2004-02-06  Karl Berry  <karl@gnu.org>
33476
33477         * m4/po.m4: update from gettext 0.14.1.
33478
33479 2004-02-06  Karl Berry  <karl@gnu.org>
33480
33481         * lib/config.charset: update from gettext 0.14.1.
33482
33483 2004-02-05  Paul Eggert  <eggert@twinsun.com>
33484
33485         Add comments and code, prompted by suggestions from Bruno Haible
33486         for sh-quote.
33487         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
33488         describing the enum quoting_style values.
33489         * lib/quotearg.c (quotearg_alloc): New function.
33490         (quotearg_buffer_restyled): Treat lone { and } as special.
33491         Treat = as special.  Work around bug with older shells
33492         that "see" a '\' that is really the 2nd byte of a multibyte char.
33493         Quote empty string with shell_quoting_style.
33494
33495 2004-02-03  Bruno Haible  <bruno@clisp.org>
33496
33497         * m4/pipe.m4: New file, from GNU gettext.
33498
33499 2004-02-03  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/pipe.h: New file, from GNU gettext.
33502         * lib/pipe.c: New file, from GNU gettext.
33503
33504 2004-01-27  Bruno Haible  <bruno@clisp.org>
33505
33506         * m4/execute.m4: New file, from GNU gettext.
33507
33508 2004-01-27  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/execute.h: New file, from GNU gettext.
33511         * lib/execute.c: New file, from GNU gettext.
33512         * lib/w32spawn.h: New file, from GNU gettext.
33513
33514 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33515
33516         Merge from diffutils.
33517
33518         * lib/file-type.c (file_type): Add typed memory objects.
33519         * lib/file-type.h (S_TYPEISTMO): New macro.
33520
33521         * lib/c-stack.h (c_stack_action): Remove argv argument.
33522         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
33523         (die): Don't calculate message unless segv_action returns.
33524         (get_stack_location, min_address_from_argv, max_address_from_argv,
33525         volatile stack_base, volatile_stack_size): Remove.
33526         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
33527         that every segmentation violation is a stack overflow.  (Ouch!)
33528         See Debian bug 136249 (still outstanding) for more info about why
33529         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
33530
33531 2004-01-24  Paul Eggert  <eggert@twinsun.com>
33532
33533         Exit-status fix from coreutils.
33534
33535         Use exit_failure consistently in place of EXIT_FAILURE,
33536         so that program exit statuses are consistent on failure.
33537
33538         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
33539         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
33540         * lib/argmatch.h: Comment fix to match the above.
33541         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
33542         Now a macro referring to exit_failure, instead of a separate
33543         variable.  Include "exitfail.h" to get it.
33544         * lib/xstrtol.h: Include "exitfail.h".
33545         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
33546
33547         * lib/long-options.c (parse_long_options): Use prototype
33548         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
33549         for clarity.
33550
33551 2004-01-21  Jim Meyering  <jim@meyering.net>
33552
33553         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
33554         so as not to conflict with a different-sized __mktime_internal
33555         function in GNU libc.
33556         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
33557         Problem building statically-linked `ls' reported by Michael Brunnbauer.
33558
33559 2004-01-20  Karl Berry  <karl@gnu.org>
33560
33561         * config/config.guess: update from config.
33562
33563         * config/srclistvars.sh: GNUWWWLICENSES for karl.
33564
33565 2004-01-20  Bruno Haible  <bruno@clisp.org>
33566
33567         Safer stack allocation.
33568         * lib/setenv.c: Include allocsa.h.
33569         (alloca): Remove fallback definition.
33570         (freea): Remove macro.
33571         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
33572         instead of freea.
33573
33574 2004-01-20  Bruno Haible  <bruno@clisp.org>
33575
33576         * m4/eealloc.m4: New file, from GNU gettext.
33577
33578 2004-01-20  Bruno Haible  <bruno@clisp.org>
33579
33580         * m4/allocsa.m4: New file, from GNU gettext.
33581
33582 2004-01-20  Bruno Haible  <bruno@clisp.org>
33583
33584         * lib/xallocsa.h: New file, from GNU gettext.
33585         * lib/xallocsa.c: New file, from GNU gettext.
33586
33587 2004-01-20  Bruno Haible  <bruno@clisp.org>
33588
33589         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
33590
33591 2004-01-20  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
33594         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
33595         specially.
33596
33597 2004-01-20  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
33600         patch.
33601
33602 2004-01-20  Bruno Haible  <bruno@clisp.org>
33603
33604         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
33605
33606 2004-01-20  Bruno Haible  <bruno@clisp.org>
33607
33608         * lib/eealloc.h: New file.
33609
33610 2004-01-20  Bruno Haible  <bruno@clisp.org>
33611
33612         * lib/binary-io.h: Avoid warnings on Cygwin.
33613
33614 2004-01-20  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/allocsa.h: New file, from GNU gettext.
33617         * lib/allocsa.c: New file, from GNU gettext.
33618
33619 2004-01-18  Karl Berry  <karl@gnu.org>
33620
33621         * doc/gpl.texi, doc/lgpl.texi: new files.
33622
33623 2004-01-18  Karl Berry  <karl@gnu.org>
33624
33625         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
33626         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
33627
33628 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33629
33630         Merge from coreutils.
33631
33632         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
33633         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
33634         (gl_DEFAULT_POSIX2_VERSION): Move
33635         the documentation from 'configure' into 'config.hin',
33636         so that 'configure --help' isn't burdened by it and
33637         we don't have to worry about its formatting there.
33638         Reword the documentation so that it's more succinct
33639         and can be run together into a single paragraph.
33640         * m4/same.m4 (gl_SAME): Check for pathconf.
33641
33642 2004-01-15  Paul Eggert  <eggert@twinsun.com>
33643
33644         Merge from coreutils.
33645
33646         * lib/posixver.c: Include posixver.h.
33647
33648         * lib/same.c: Include <stdbool.h>, <limits.h>.
33649         (_POSIX_NAME_MAX): Define if not defined.
33650         (MIN): New macro.
33651         (same_name): If file names are silently truncated, report
33652         that the file names are the same if they are the same after
33653         the silent truncation.
33654
33655         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
33656         conversion function.
33657         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
33658         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
33659         longer needed.
33660
33661 2004-01-15  Jim Meyering  <jim@meyering.net>
33662
33663         Merge from coreutils.
33664
33665         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
33666         if no library is required.
33667         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
33668         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
33669         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
33670         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
33671         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
33672         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
33673         value, $ac_cv_search_crypt, if it's "none required".
33674         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
33675         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
33676         not gl_FUNC_GETLOADAVG.
33677         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
33678         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
33679
33680 2004-01-15  Jim Meyering  <jim@meyering.net>
33681
33682         Merge from coreutils.
33683
33684         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
33685         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
33686         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
33687
33688         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
33689         optional configure-time default.
33690
33691         * lib/version-etc.c (version_etc_copyright): Update copyright date.
33692
33693         * lib/xreadlink.c (xreadlink): Correct outdated comment.
33694
33695 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
33696
33697         Merge from coreutils.
33698
33699         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
33700         value, $ac_cv_search_nanosleep, if it's "none required".
33701
33702 2004-01-14  Paul Eggert  <eggert@twinsun.com>
33703
33704         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
33705         with like-named macro in fnmatch.c.
33706         (EXT): Use an internal constant instead.
33707
33708         Merge fnmatch patches from glibc.
33709         * lib/fnmatch.c (mbsinit): Remove define.
33710         Add libc_hidden_ver (__fnmatch, fnmatch).
33711         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
33712         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
33713
33714 2004-01-14  Karl Berry  <karl@gnu.org>
33715
33716         * config/install-sh: update from automake.
33717
33718 2004-01-13  Karl Berry  <karl@gnu.org>
33719
33720         * config/install-sh: update from automake.
33721
33722 2004-01-09  Karl Berry  <karl@gnu.org>
33723
33724         * config/install-sh: update from automake.
33725
33726 2004-01-05  Karl Berry  <karl@gnu.org>
33727
33728         * config/config.{sub,guess}: update from config.
33729
33730 2003-12-31  Karl Berry  <karl@gnu.org>
33731
33732         * config/depcomp: update from automake.
33733
33734 2003-12-14  Karl Berry  <karl@gnu.org>
33735
33736         * lib/config.charset: update from gettext-runtime.
33737
33738 2003-12-03  Paul Eggert  <eggert@twinsun.com>
33739
33740         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
33741         Bug reported by Alfred M. Szmidt.
33742
33743 2003-12-03  Bruno Haible  <bruno@clisp.org>
33744
33745         * m4/gettext.m4: Upgrade from gettext-0.13.
33746         * m4/po.m4: Upgrade from gettext-0.13.
33747         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
33748         * m4/intmax.m4: New file, from gettext-0.13.
33749         * m4/printf-posix.m4: New file, from gettext-0.13.
33750
33751 2003-11-29  Karl Berry  <karl@gnu.org>
33752
33753         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
33754
33755 2003-11-25  Paul Eggert  <eggert@twinsun.com>
33756             Bruno Haible  <bruno@clisp.org>
33757
33758         * lib/printf-parse.h: Don't include sys/types.h.
33759         (ARG_NONE): New macro.
33760         (char_directive): Change type of *arg_index fields to size_t.
33761         * lib/printf-parse.c: Don't include sys/types.h.
33762         (SSIZE_MAX): Remove macro.
33763         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
33764         Remove unnecessary overflow check.
33765         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
33766         fields.
33767
33768 2003-11-25  Bruno Haible  <bruno@clisp.org>
33769
33770         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
33771
33772 2003-11-25  Bruno Haible  <bruno@clisp.org>
33773
33774         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
33775         gt_TYPE_SSIZE_T.
33776
33777 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33778
33779         * modules/alloca: Remove dependency on xalloc.
33780
33781 2003-11-24  Paul Eggert  <eggert@twinsun.com>
33782
33783         * lib/alloca.c: Remove dependency on xalloc module.
33784         (xalloc_die): Remove.
33785         (memory_full) [!defined emacs]: New macro.
33786         [!defined emacs]: Don't include xalloc.h.
33787         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
33788         address arithmetic overflows.  Change datatypes a bit to avoid
33789         unnecessary casts.
33790
33791 2003-11-22  Jim Meyering  <jim@meyering.net>
33792
33793         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
33794         s/size/size_t/.
33795
33796 2003-11-21  Karl Berry  <karl@gnu.org>
33797
33798         * config/config.{sub,guess}: update from config.
33799
33800 2003-11-18  Karl Berry  <karl@gnu.org>
33801
33802         * config/config.{sub,guess}: update from config.
33803
33804         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
33805
33806 2003-11-17  Paul Eggert  <eggert@twinsun.com>
33807
33808         * README: Mention that S+T cannot overflow if S is the size of
33809         an existing object and T is sufficiently small.
33810
33811 2003-11-17  Jim Meyering  <jim@meyering.net>
33812
33813         On systems without utime and without a utimes function capable of
33814         dealing with a NULL struct utimbuf* argument, this utime replacement
33815         could -- in unusual circumstances -- leak a file descriptor.
33816         * lib/utime.c: Include <unistd.h> and <errno.h>.
33817         (utime_null): Be sure to close `fd' and to preserve errno.
33818         Reported by Geoff Collyer via Arnold Robbins.
33819
33820 2003-11-17  Bruno Haible  <bruno@clisp.org>
33821
33822         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
33823         (Depends-on): Add xsize.
33824
33825 2003-11-17  Bruno Haible  <bruno@clisp.org>
33826
33827         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
33828
33829 2003-11-17  Bruno Haible  <bruno@clisp.org>
33830
33831         * lib/vasnprintf.c (alloca): Remove fallback definition.
33832         (freea): Remove definition.
33833         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
33834         Reported by Paul Eggert.
33835
33836 2003-11-16  Paul Eggert  <eggert@twinsun.com>
33837             Bruno Haible  <bruno@clisp.org>
33838
33839         Protect against address arithmetic overflow.
33840         * lib/printf-args.h: Include stddef.h.
33841         (arguments): Change type of field 'count' to size_t.
33842         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
33843         'unsigned int' where appropriate.
33844         * lib/printf-parse.h: Include sys/types.h.
33845         (char_directive): Change type of *arg_index fields to ssize_t.
33846         (char_directives): Change type of fields 'count', max_*_length to
33847         size_t.
33848         * lib/printf-parse.c: Include sys/types.h and xsize.h.
33849         (SSIZE_MAX): Define fallback value.
33850         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
33851         instead of 'int' where appropriate. Check a_allocated, d_allocated
33852         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
33853         * lib/vasnprintf.c: Include xsize.h.
33854         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
33855         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
33856         overflow. Avoid wraparound when converting a width or precision from
33857         decimal to binary.
33858
33859 2003-11-16  Bruno Haible  <bruno@clisp.org>
33860
33861         Update from GNU gettext.
33862         * lib/printf-parse.c: Generalize to it can be compiled for wide
33863         strings.
33864         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
33865         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
33866         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
33867         SNPRINTF): New macros.
33868         Don't include <alloca.h> if the file is used inside libintl.
33869         (local_wcslen): New function, for Solaris 2.5.1.
33870         (VASNPRINTF): Use it instead of wcslen.
33871
33872 2003-11-16  Bruno Haible  <bruno@clisp.org>
33873
33874         * lib/xsize.h (xmax): New function.
33875         (xsum, xsum3, xsum4): Declare as "pure" functions.
33876
33877 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33878
33879         * modules/xalloc (Files): Undo latest change, since xalloc.h
33880         no longer needs SIZE_MAX or PTRDIFF_MAX.
33881
33882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33883
33884         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
33885         gl_PTRDIFF_MAX.
33886
33887 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33888
33889         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
33890         "return", to pacify some unknown compiler.  Problem reported
33891         by Joerg Schilling.
33892
33893 2003-11-12  Paul Eggert  <eggert@twinsun.com>
33894
33895         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
33896         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
33897         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
33898         heuristic is just as accurate as far as we know, and it removes a
33899         dependency on size_max.m4 and ptrdiff_max.m4.
33900
33901 2003-11-11  Bruno Haible  <bruno@clisp.org>
33902
33903         * modules/xsize (Files): Add m4/size_max.m4.
33904         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
33905
33906 2003-11-11  Bruno Haible  <bruno@clisp.org>
33907
33908         * m4/size_max.m4: New file.
33909         * m4/ptrdiff_max.m4: New file.
33910         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
33911         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
33912         (gl_XALLOC): Invoke it.
33913
33914 2003-11-11  Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
33917         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
33918         defined.
33919
33920 2003-11-10  Paul Eggert  <eggert@twinsun.com>
33921
33922         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
33923         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
33924         rejected some allocations of exactly SIZE_MAX - 2 bytes.
33925         From Bruno Haible.
33926         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
33927         not (size_t) -1, since it's defined here.
33928
33929 2003-11-09  Karl Berry  <karl@gnu.org>
33930
33931         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
33932
33933 2003-11-06  Paul Eggert  <eggert@twinsun.com>
33934
33935         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
33936         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
33937         Reject sizes of exactly SIZE_MAX bytes.
33938         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
33939         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
33940
33941 2003-11-05  Bruno Haible  <bruno@clisp.org>
33942
33943         * lib/xsize.h: Include limits.h, to avoid a possible collision with
33944         SIZE_MAX defined in <limits.h> on Solaris.
33945
33946 2003-11-04  Jim Meyering  <jim@meyering.net>
33947
33948         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
33949         variable names, rather than @VAR@.
33950         * modules/poll: Likewise.
33951
33952 2003-11-04  Bruno Haible  <bruno@clisp.org>
33953
33954         * modules/xsize: New file.
33955         * modules/linebreak: Depend on xsize.
33956         * MODULES.html.sh (func_all_modules): Add xsize.
33957
33958 2003-11-04  Bruno Haible  <bruno@clisp.org>
33959
33960         * m4/xsize.m4: New file.
33961
33962 2003-11-04  Bruno Haible  <bruno@clisp.org>
33963
33964         * lib/xsize.h: New file.
33965         * lib/linebreak.c: Include xsize.h.
33966         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
33967         argument for overflow.
33968         Suggested by Paul Eggert.
33969
33970 2003-11-03  Karl Berry  <karl@gnu.org>
33971
33972         * config/config.{guess,sub}: update from config.
33973
33974 2003-11-03  Jim Meyering  <jim@meyering.net>
33975
33976         * modules/userspec (lib_SOURCES): Add userspec.h.
33977         (Include): Add "userspec.h".
33978         Improve description.
33979
33980 2003-11-03  Jim Meyering  <jim@meyering.net>
33981
33982         * lib/userspec.c: Include "userspec.h".
33983         * lib/userspec.h: New file.
33984
33985 2003-11-03  Bruno Haible  <bruno@clisp.org>
33986
33987         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
33988
33989 2003-11-03  Bruno Haible  <bruno@clisp.org>
33990
33991         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
33992         available, to avoid (extremely rare) race condition.
33993         Suggested by Paul Eggert.
33994
33995 2003-11-02  Karl Berry  <karl@gnu.org>
33996
33997         * config/srclist.txt (vasprintf.c): sync broken, sigh.
33998
33999 2003-10-31  Paul Eggert  <eggert@twinsun.com>
34000
34001         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
34002         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
34003         (read_filesystem_list): Set and use me_type_malloced.
34004         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
34005         whatever the type happens to be), for brevity and consistency.
34006         Check for size calculation overflow on Alphas running OSF/1.
34007
34008 2003-10-31  Jim Meyering  <jim@meyering.net>
34009
34010         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
34011
34012         * lib/linebuffer.c: Include <string.h> for declaration of memset.
34013
34014 2003-10-30  Paul Eggert  <eggert@twinsun.com>
34015             Bruno Haible  <bruno@clisp.org>
34016
34017         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
34018         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
34019
34020 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34021
34022         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
34023         netbsd*-gnu*.  Suggested by Robert Millan.
34024
34025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34026
34027         * modules/group-member: Depend on stdbool.
34028
34029 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34030
34031         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
34032
34033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34034
34035         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
34036         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
34037         after the 'gnu' in these cases.  This fixes some bugs in the
34038         previous change, and is based on suggestions by Robert Millan.
34039
34040 2003-10-29  Paul Eggert  <eggert@twinsun.com>
34041
34042         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
34043         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
34044         no longer needed.
34045         * lib/quotearg.c (quotearg_n_options): Use it.
34046         * lib/group-member.c: Include <stdbool.h>.
34047         (free_group_info): Arg is now const *; don't free arg.
34048         (get_group_info): Now returns bool and accepts struct group_info *,
34049         rather than returning a malloc'ed struct group_info *.
34050         All uses changed.  Check for overflow in internal size calculation.
34051
34052         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
34053         rather than xmalloc/xrealloc.
34054         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
34055         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
34056         conformance bug: the old code used a pointer after freeing the
34057         storage that it addressed.
34058         * lib/hash.c (hash_initialize): Simplify the code by using
34059         xalloc_oversized rather than doing it by hand.
34060         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
34061         the buffer preserved.  Use free and xmalloc instead.
34062         * lib/quotearg.c (quotearg_n_options): Likewise.
34063         Use a simpler test for size overflow.  Don't use xalloc_oversized
34064         because unsigned int might be wider than size_t (!); this suggests
34065         that we should switch from unsigned int to size_t for slot numbers.
34066
34067 2003-10-28  Paul Eggert  <eggert@twinsun.com>
34068
34069         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
34070         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
34071         NetBSD kernels.  Requested by Richard Stallman.
34072
34073 2003-10-27  Paul Eggert  <eggert@twinsun.com>
34074
34075         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
34076         to allocate the returned structure.  Do not allocate a subarray,
34077         as x2nrealloc will do that.
34078         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
34079         instead of xnrealloc.
34080         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
34081
34082 2003-10-27  Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/stdbool_.h: Better support for BeOS.
34085
34086 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34087
34088         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
34089         now uses inline.
34090
34091 2003-10-26  Paul Eggert  <eggert@twinsun.com>
34092
34093         * lib/xalloc.h (xalloc_oversized): New static inline function, for
34094         callers that want to do their own size-overflow checking.  Include
34095         <stdbool.h>, since xalloc_oversized returns bool.
34096         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
34097         to use xalloc_oversized.
34098
34099         Add two functions x2realloc, x2nrealloc, for programs that grow
34100         arrays dynamically by doubling their sizes.
34101         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
34102         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
34103         New functions.
34104
34105         Port to C99 semantics for 'inline' of external functions.
34106         Bug reported by Bruno Haible.
34107         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
34108         with the old contents of xnmalloc.
34109         (xnmalloc, xmalloc): Use it.
34110         (xnrealloc_inline): New static inline function,
34111         with the old contents of xnrealloc.
34112         (xnrealloc, xrealloc): Use it.
34113
34114         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
34115         that.
34116
34117 2003-10-26  Karl Berry  <karl@gnu.org>
34118
34119         * config/srclist.txt (COPYING.DOC): no longer available from
34120         /gd/gnuorg; don't know where the ultimate source is.
34121
34122 2003-10-25  Paul Eggert  <eggert@twinsun.com>
34123
34124         Fix several address-calculation bugs in the hash modules,
34125         plus some minor code cleanup.
34126
34127         * lib/hash.h: Include <stdbool.h>, for bool.
34128         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
34129         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
34130         hash_get_n_entries, hash_get_max_bucket_length,
34131         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
34132         hash_rehash): Use size_t rather than unsigned.
34133         * lib/hash.c (struct hash_table, hash_get_n_buckets,
34134         hash_get_n_buckets_used, hash_get_n_entries,
34135         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
34136         hash_get_entries, hash_do_for_each, hash_string, is_prime,
34137         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
34138         Likewise.
34139         (SIZE_MAX): Define if not defined.
34140         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
34141         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
34142         hash_print):
34143         Use const * when possible.
34144         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
34145         (check_tuning): Fix bug: if tuning parameters were very close to
34146         0 or 1, rounding errors could have caused subscript violations.
34147         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
34148         (hash_initialize): Add 'fail:' label
34149         to free table and return NULL, and use it to simplify code.
34150         Use calloc rather than clearing the storage ourself.
34151         (hash_initialize, hash_rehash): Check for arithmetic overflow in
34152         buffer size calculations.
34153         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
34154         Include <stddef.h>, for size_t.
34155         * lib/hash-pjw.c (hash_pjw): Likewise.
34156         Switch to method described by Bruno Haible.
34157         Include <limits.h>, for CHAR_BIT.
34158         (SIZE_BITS): New macro.
34159
34160 2003-10-23  Paul Eggert  <eggert@twinsun.com>
34161
34162         * m4/getline.m4 (AM_FUNC_GETLINE):
34163         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
34164         hosts.  Problem reported by Derek Robert Price in
34165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
34166         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
34167         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
34168
34169 2003-10-21  Paul Eggert  <eggert@twinsun.com>
34170
34171         * lib/getndelim2.c (getndelim2): When size calculation overflows,
34172         ceiling the allocation at NMAX bytes rather than silently
34173         discarding input bytes before NMAX is reached.  This makes
34174         a difference only if NMAX exceeds SIZE_MAX / 2.
34175
34176         * lib/obstack.c: Merge from glibc.
34177         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
34178         Add libc_hidden_def (_obstack_newchunk).
34179         (_obstack_free) [! defined _LIBC]: Remove.
34180         [defined _LIBC]: Make a strong alias from obstack_free, rather than
34181         a clone of the function body.
34182         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
34183         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
34184
34185         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
34186         glibc.
34187         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
34188         arg to memcpy.
34189
34190         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
34191         (obstack_ptr_grow_fast, obstack_int_grow_fast):
34192         Don't use lvalue casts, as GCC plans to remove support for them
34193         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
34194         was also present in the non-GCC version, indicating that this
34195         code had always been buggy and had never been widely used.
34196         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
34197         Use the fast variant of each macro, rather than copying the
34198         definiens of the fast variant; that way, we'll be more likely to
34199         catch future bugs in the fast variants.
34200
34201 2003-10-20  Bruno Haible  <bruno@clisp.org>
34202
34203         * modules/wait-process: New file.
34204         * MODULES.html.sh (func_all_modules): Add wait-process.
34205
34206 2003-10-20  Bruno Haible  <bruno@clisp.org>
34207
34208         * m4/wait-process.m4: New file.
34209
34210 2003-10-20  Bruno Haible  <bruno@clisp.org>
34211
34212         * lib/wait-process.h: New file, from GNU gettext.
34213         * lib/wait-process.c: New file, from GNU gettext.
34214
34215 2003-10-19  Jim Meyering  <jim@meyering.net>
34216
34217         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
34218         HPUX 10.20.
34219
34220 2003-10-18  Karl Berry  <karl@gnu.org>
34221
34222         * config/config.guess: update from config.
34223
34224 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34225
34226         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
34227         (getgroups): First arg is int, not size_t.
34228         Don't let 'free' mangle errno.
34229
34230 2003-10-16  Paul Eggert  <eggert@twinsun.com>
34231
34232         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
34233
34234 2003-10-16  Karl Berry  <karl@gnu.org>
34235
34236         * config/config.{guess,sub}: update from config.
34237
34238 2003-10-16  Jim Meyering  <jim@meyering.net>
34239
34240         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
34241         memcpy.
34242
34243 2003-10-15  Paul Eggert  <eggert@twinsun.com>
34244
34245         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
34246         (SIZE_MAX): Remove.
34247         (new_exclude, add_exclude_file): Initial size no longer needs to
34248         be a power of 2.
34249         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
34250         our own address arithmetic overflow checking.
34251
34252         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
34253         (fnmatch): Do not alloca more than 2000 wide characters;
34254         instead, use malloc for large buffers.
34255         Check for address arithmetic overflow, and return -1
34256         with errno set to ENOMEM in that case.
34257         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
34258         (NEW_PATTERN): Do not alloca more than 8000 bytes;
34259         instead, return -1.  Check for address arithmetic overflow.
34260
34261 2003-10-14  Paul Eggert  <eggert@twinsun.com>
34262
34263         Handle invalid suffixes and overflow independently, so that
34264         callers can treat them independently as needed.  Fix some bugs in
34265         suffix handling, e.g., "100k@" was not diagnosed as an invalid
34266         suffix for a human-readable blocksize.  The major caller-visible
34267         change is the addition of a new
34268         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
34269         that both overflow and suffix chars were found.
34270
34271         * lib/human.c (humblock): Don't check separately for invalid suffix
34272         char; that is xstrtoumax's job (now that its bug is fixed).
34273         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
34274         INTMAX_MAX]: New macros.
34275         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
34276         TYPE_MAXIMUM): New macros.
34277         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
34278         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
34279         if overflow occurs, as it's what __strtol does and it's more useful
34280         in practice.
34281         (__xstrtol): If __strtol reports some error other than ERANGE,
34282         reflect it to the caller as LONGINT_INVALID.  If it reports
34283         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
34284         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
34285         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
34286         value.
34287         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
34288         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
34289         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
34290         [defined UINTMAX_MAX]: New macros.
34291
34292 2003-10-14  Bruno Haible  <bruno@clisp.org>
34293
34294         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
34295
34296 2003-10-14  Bruno Haible  <bruno@clisp.org>
34297
34298         * m4/sig_atomic_t: New file, from GNU gettext.
34299         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
34300
34301 2003-10-14  Bruno Haible  <bruno@clisp.org>
34302
34303         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
34304         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
34305         Also use volatile where needed.
34306
34307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34308
34309         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
34310         Change maintainer from Bruno Haible to 'all'.
34311
34312 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34313
34314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
34315
34316 2003-10-12  Paul Eggert  <eggert@twinsun.com>
34317
34318         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
34319         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
34320         and define in terms of the other primitives.
34321         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
34322         (SIZE_MAX): Define if not already defined.
34323         (array_size_overflow): New function.
34324         (xalloc_die): Abort instead of exiting if 'error' returns.
34325         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
34326         (xmalloc, xrealloc): Use them.
34327         (xcalloc): Check for address arithmetic overflow.
34328         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
34329         a bit faster than strcpy.
34330
34331 2003-10-10  Simon Josefsson  <jas@extundo.com>
34332
34333         * modules/argp (Depends-on): Add restrict and strcase.
34334
34335 2003-10-10  Simon Josefsson  <jas@extundo.com>
34336
34337         * m4/argp.m4: Add AC_C_INLINE.
34338
34339 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34340
34341         Merge getpass from libc, plus a few fixes.
34342
34343         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
34344         Include <stdbool.h>.
34345         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
34346         __fsetlocking to empty.
34347         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
34348         do include <bits/libc-lock.h>.
34349         Do not include <fcntl.h>; not needed.
34350         [_LIBC]: Include <wchar.h>.
34351         (NOTCANCEL_MODE): New macro.
34352         (flockfile, funlockfile) [_LIBC]: New macros.
34353         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
34354         [!_LIBC]: New macros.
34355         (call_fclose): New function.
34356         (getpass): Use it.  Save tty stream separately; this simplifies the
34357         code and makes it more reliable if stdin happens to equal stdout.
34358         Invoke __fsetlocking on tty.
34359         Handle thread cancellation if needed.
34360         Namespace cleanup (use __tcgetattr, __getline).
34361         Use bool for Booleans.
34362         [USE_IN_LIBIO]: Handle wide streams.
34363         [!_LIBC]: Unconditionally do the fseek, since we don't know what
34364         stream might go where.
34365
34366         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
34367         doesn't have to include <stdio.h> before us.
34368         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
34369         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
34370         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
34371         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
34372         if not declared, so that we can use getpass.c code from libc without
34373         rewriting it.
34374         (flockfile, ftrylockfile, funlockfile): New macros.
34375
34376 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34377
34378         * modules/getpass: Depend on stdbool.
34379
34380 2003-10-08  Paul Eggert  <eggert@twinsun.com>
34381
34382         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
34383
34384 2003-10-07  Karl Berry  <karl@gnu.org>
34385
34386         * config/config.{guess,sub}: update from config.
34387
34388 2003-10-06  Jim Meyering  <jim@meyering.net>
34389             Bruno Haible  <bruno@clisp.org>
34390
34391         This lets translators provide better translations for the
34392         "Written by ..." part of --version output.
34393         * lib/version-etc.h: Include stdarg.h.
34394         (version_etc_copyright): Declare as readonly.
34395         (version_etc): Make this function variadic with a NULL-terminated list
34396         of author name strings.
34397         (version_etc_va): New declaration.
34398         * lib/version-etc.c: Include stdarg.h, stdlib.h.
34399         (version_etc_copyright): Declare as readonly.
34400         (version_etc_va): New function. Provide a different translatable string
34401         for each possible number of authors < 10. Abbreviate when there are 10
34402         authors or more.
34403         (version_etc): Make this function variadic. Call version_etc_va.
34404         Suggestion from Gary V. Vaughan.
34405
34406         * lib/long-options.h (parse_long_options): Change prototype: the
34407         authors string is moved to the end and becomes variadic.
34408         * lib/long-options.c: Include stdarg.h.
34409         (parse_long_options): Make this function variadic, too.
34410         Call version_etc_va, not version_etc.
34411
34412 2003-10-06  Bruno Haible  <bruno@clisp.org>
34413
34414         * modules/version-etc-2: Remove file.
34415         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
34416
34417 2003-10-06  Bruno Haible  <bruno@clisp.org>
34418
34419         * modules/fatal-signal: New file.
34420         * MODULES.html.sh (func_all_modules): Add fatal-signal.
34421
34422 2003-10-06  Bruno Haible  <bruno@clisp.org>
34423
34424         * m4/fatal-signal.m4: New file.
34425         * m4/signalblocking.m4: New file, from GNU gettext.
34426
34427 2003-10-06  Bruno Haible  <bruno@clisp.org>
34428
34429         * lib/version-etc-2.h: Remove file.
34430         * lib/version-etc-2.c: Remove file.
34431
34432 2003-10-06  Bruno Haible  <bruno@clisp.org>
34433
34434         * lib/fatal-signal.h: New file, from GNU gettext.
34435         * lib/fatal-signal.c: New file, from GNU gettext.
34436
34437 2003-10-05  Paul Eggert  <eggert@twinsun.com>
34438
34439         * README: Rework advice for preventing empty .o files.
34440         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
34441         not <sys/types.h>.
34442
34443 2003-10-04  Karl Berry  <karl@gnu.org>
34444
34445         * lib/argp*: update from libc.
34446
34447 2003-10-04  Karl Berry  <karl@gnu.org>
34448
34449         * config/config.{guess,sub}: update from config.
34450
34451 2003-10-02  Bruno Haible  <bruno@clisp.org>
34452
34453         * modules/lchown (Include): Add lchown.h.
34454         * modules/time_r (Include): Use "..." syntax.
34455         * modules/xgetdomainname (Include): Add xgetdomainname.h.
34456
34457 2003-10-01  Simon Josefsson  <jas@extundo.com>
34458
34459         * MODULES.html.sh (func_all_modules): Move gethostname from section
34460         'based on' to section 'lacking' POSIX:2001.
34461
34462 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
34463
34464         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
34465         to output mode on the same stream.
34466
34467 2003-09-29  Paul Eggert  <eggert@twinsun.com>
34468
34469         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
34470         Fix arg typo in previous patch.
34471
34472 2003-09-28  Jim Meyering  <jim@meyering.net>
34473
34474         * lib/error.c: Correct cpp indentation.
34475
34476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34477
34478         * modules/free: New file.
34479
34480 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34481
34482         * m4/free.m4: New file.
34483
34484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
34485
34486         * lib/minmax.h (MIN, MAX)
34487         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
34488         Omit the special code that used __typeof__, since we worry that
34489         it could be more trouble than it's worth.  See:
34490         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
34491         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
34492
34493         * lib/free.c: New file.
34494
34495 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
34496
34497         Trivial fixes to Makefile.am parts of module listings.
34498         * modules/strstr: Append strstr.h to lib_SOURCES.
34499         * modules/strcase: Likewise, for strcase.h.
34500
34501 2003-09-27  Karl Berry  <karl@gnu.org>
34502
34503         * config/mkinstalldirs: update from automake.
34504
34505 2003-09-26  Paul Eggert  <eggert@twinsun.com>
34506
34507         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
34508         (error_tail): Do not loop, reallocating temporary buffer, since
34509         the output cannot contain more wide characters than the input
34510         contains bytes, the size must be big enough already.  This avoids
34511         one potential size overflow calculation.  Check for size overflow
34512         when calculating temporary buffer size.  Free temporary buffer
34513         when done, if it was allocated with malloc; this plugs a memory
34514         leak.  Remove casts from void * to pointers, that are no longer
34515         needed now that we're assuming C89 or better.
34516
34517         Merge error changes from glibc.
34518
34519         * lib/error.c, error.h: Update copyright notice header to match glibc.
34520         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
34521         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
34522         Disable cancellation while printing error.
34523         * lib/error.h: Prepend __ to parameter names.
34524
34525 2003-09-26  Jim Meyering  <jim@meyering.net>
34526
34527         * lib/error.c (error_tail): Move some declarations
34528         into inner scope where the local variables are used.
34529
34530 2003-09-26  Bruno Haible  <bruno@clisp.org>
34531
34532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
34533         stpncpy().
34534         Don't define stpncpy through config.h; it's now done through stpncpy.h.
34535
34536 2003-09-26  Bruno Haible  <bruno@clisp.org>
34537
34538         * lib/stpncpy.h (gnu_stpncpy): New declaration.
34539         (stpncpy): Define as alias for gnu_stpncpy.
34540         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
34541
34542 2003-09-25  Simon Josefsson  <jas@extundo.com>
34543
34544         * lib/xgetdomainname.h: New file.
34545         * lib/xgetdomainname.c: New file.
34546
34547 2003-09-25  Simon Josefsson  <jas@extundo.com>
34548             Bruno Haible  <bruno@clisp.org>
34549
34550         * modules/getdomainname: New file.
34551         * modules/xgetdomainname: New file.
34552         * MODULES.html.sh (func_all_modules): Add getdomainname,
34553         xgetdomainname.
34554
34555 2003-09-25  Simon Josefsson  <jas@extundo.com>
34556             Bruno Haible  <bruno@clisp.org>
34557
34558         * m4/getdomainname.m4: New file.
34559
34560 2003-09-25  Simon Josefsson  <jas@extundo.com>
34561             Bruno Haible  <bruno@clisp.org>
34562
34563         * lib/getdomainname.h: New file.
34564         * lib/getdomainname.c: New file.
34565
34566 2003-09-25  Karl Berry  <karl@gnu.org>
34567
34568         * lib/argp-fmtstream.c, argp-help.c: update from libc.
34569
34570 2003-09-25  Karl Berry  <karl@gnu.org>
34571
34572         * config/install-sh: update from automake.
34573
34574 2003-09-25  Bruno Haible  <bruno@clisp.org>
34575
34576         * modules/version-etc-2: New file, from modules/version-etc with
34577         modifications.
34578         * MODULES.html.sh (func_all_modules): Add version-etc-2.
34579
34580 2003-09-25  Bruno Haible  <bruno@clisp.org>
34581
34582         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
34583         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
34584
34585 2003-09-24  Simon Josefsson  <jas@extundo.com>
34586
34587         * modules/xgethostname: Add xgethostname.h.
34588
34589 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34590
34591         * lib/linebuffer.c (freebuffer): Don't free the argument, just
34592         the buffer associated with the argument.  Bug reported by
34593         Simon Josefsson.
34594
34595 2003-09-24  Paul Eggert  <eggert@twinsun.com>
34596
34597         * README: Document assumptions that 'int' is at least 32 bits
34598         wide, that integer arithmetic is 2's complement without overflow,
34599         that there are no holes in integer values, that adding sizes of
34600         two nonoverlapping objects can't overflow, and that all-bits-zero
34601         yields scalar zero.  Fix spelling and capitalization typos.
34602
34603 2003-09-19  Karl Berry  <karl@gnu.org>
34604
34605         * lib/argp.h: update from libc.
34606
34607 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34608
34609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
34610         to avoid spurious warnings like "AC_RUN_IFELSE was called before
34611         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
34612
34613 2003-09-17  Paul Eggert  <eggert@twinsun.com>
34614
34615         * gnulib-tool: Use "test -h", not "test -L", for portability
34616         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
34617         (tags_regexp): Remove, since \| doesn't conform to POSIX.
34618         (sed_extract_prog): Issue s commands one-by-one, rather than
34619         using \| in one s command.
34620
34621 2003-09-16  Paul Eggert  <eggert@twinsun.com>
34622
34623         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
34624         input error, instead of returning NULL the next time we are called
34625         (and therefore losing track of errno).
34626
34627 2003-09-16  Bruno Haible  <bruno@clisp.org>
34628
34629         * gnulib-tool (func_create_testdir): Warn about duplicated
34630         dependencies.
34631
34632 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34633
34634         * modules/argmatch, modules/fatal, modules/obstack,
34635         modules/xalloc, modules/xgethostname: Sort dependencies by
34636         importance, not alphabetically.
34637
34638 2003-09-15  Paul Eggert  <eggert@twinsun.com>
34639
34640         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
34641         fails, so that the caller gets the proper errno.
34642
34643         * lib/readutmp.c (read_utmp): Likewise.
34644         Check for fstat error.  Close stream and free storage
34645         when failing.
34646
34647 2003-09-14  Karl Berry  <karl@gnu.org>
34648
34649         * config/srclist.txt (strdup.c): disable for c89 changes.
34650
34651 2003-09-14  Jim Meyering  <jim@meyering.net>
34652
34653         * lib/getloadavg.c: Correct cpp indentation.
34654         * lib/strdup.c: Likewise.
34655         * lib/vasnprintf.c: Likewise.
34656
34657 2003-09-14  Bruno Haible  <bruno@clisp.org>
34658
34659         * modules/fwriteerror: New file.
34660         * MODULES.html.sh (func_all_modules): Add fwriteerror.
34661
34662 2003-09-14  Bruno Haible  <bruno@clisp.org>
34663
34664         * lib/fwriteerror.h: New file.
34665         * lib/fwriteerror.c: New file.
34666
34667 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34668
34669         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
34670         modules/xgethostname, modules/xalloc: Depend on exit.
34671
34672 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34673
34674         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
34675
34676         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
34677         and AC_MINIX, too, so that their extensions are available.
34678
34679         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
34680         This macro has been superseded by gl_BACKUPFILE.
34681
34682         More patches to assume C89 or better.
34683
34684         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
34685
34686         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
34687         unconditionally.
34688         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
34689         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
34690         Include <string.h>, <stdlib.h> unconditionally.
34691         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
34692         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
34693         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
34694         headers or for string.h.
34695         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
34696         or strtoul.
34697
34698         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
34699         headers.
34700         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
34701         * m4/userspec.m4 (gl_USERSPEC): Likewise.
34702         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
34703         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
34704         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34705         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
34706         memcpy, memset.
34707         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
34708         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
34709         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
34710         strtol.
34711         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
34712         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
34713         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
34714         strtoul.
34715
34716 2003-09-12  Paul Eggert  <eggert@twinsun.com>
34717
34718         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
34719         * lib/obstack.c [!defined _LIBC]: Likewise.
34720         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
34721         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
34722         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
34723
34724         More changes to assume C89 or better.
34725
34726         * lib/error.c (error_tail): Assume vprintf.
34727
34728         * lib/argmatch.c (getenv): Remove decl.
34729         * lib/progreloc.c (get_full_program_name): Define via prototype.
34730         * lib/setenv.c (clearenv): Likewise.
34731         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
34732         needed.
34733         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
34734         (malloc, memcpy): Remove decls.
34735         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
34736         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
34737         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34738         (memcpy): Remove macro.
34739         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
34740         (__P): Remove.  All uses removed.
34741         (PTR): Remove.  All uses changed to void *.
34742         (CHAR_BIT, NULL): Remove.
34743         (spaces, zeros, memset_space, memset_zero)
34744         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
34745         Remove.
34746         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
34747         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
34748         Define with prototype.
34749         Remove now-unnecessary prototype decl.
34750         (extra_args_spec): Assume ANSI C.  All uses changed.
34751         (extra_args_spec_iso): Remove.
34752         (my_strftime, emacs_strftimeu): Define via prototype.
34753         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
34754         unconditionally.
34755         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
34756         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
34757         (strtoul, strtol): Remove decls.
34758         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
34759         LONG_MAX): Remove.
34760         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
34761         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
34762         (LOCALE_PARAM_PROTO): New macro.
34763         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
34764         (INTERNAL (strtol), strtol): Define with a prototype.
34765         (PARAMS): Remove.  All uses removed.
34766         * lib/tempname.c: Include <string.h> unconditionally.
34767         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
34768         * lib/xgethostname.c (main): Define with a prototype.
34769         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
34770         Include <stdlib.h> unconditionally.
34771         (calloc, malloc, realloc, free): Remove decls.
34772         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
34773         Include <stdlib.h> unconditionally.  Sort include file names.
34774         (strtod): Remove.
34775         (xstrtod): Define with a prototype.
34776         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
34777         (strtol, strtoul): Remove decls.
34778
34779 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34780
34781         More patches to assume C89 or better.
34782         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
34783         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
34784         string.h, memchr, STDC_HEADERS.
34785
34786 2003-09-11  Paul Eggert  <eggert@twinsun.com>
34787
34788         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
34789         Include <stdlib.h>, <string.h> unconditionally.
34790         Remove now-unnecessary cast to char *.
34791         * lib/strnlen.c: Include <string.h> unconditionally.
34792         * lib/yesno.c (yesno): Define with a prototype.
34793
34794 2003-09-11  Bruno Haible  <bruno@clisp.org>
34795
34796         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
34797
34798 2003-09-10  Jim Meyering  <jim@meyering.net>
34799
34800         * lib/error.c: Correct indentation of cpp directives.
34801
34802 2003-09-10  Bruno Haible  <bruno@clisp.org>
34803
34804         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
34805         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
34806         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
34807         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
34808         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
34809         <stdlib.h> and <string.h> checks.
34810         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
34811         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
34812
34813 2003-09-10  Bruno Haible  <bruno@clisp.org>
34814
34815         * lib/strcspn.c: Include <string.h> unconditionally.
34816         * lib/strpbrk.c: Include <string.h> unconditionally.
34817         * lib/strstr.c: Include <string.h> unconditionally.
34818         * lib/unicodeio.c: Include <string.h> unconditionally.
34819         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
34820         * lib/unsetenv.c: Likewise.
34821         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
34822         * lib/yesno.c: Include <stdlib.h> unconditionally.
34823         (rpmatch): Add prototype.
34824
34825 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34826
34827         More patches to assume C89 or better.
34828         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
34829         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
34830         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
34831         or for string.h.
34832         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
34833         stdlib.h.
34834         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
34835         C headers.
34836         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
34837         string.h.
34838         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
34839         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
34840         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
34841         or for string.h.
34842         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
34843         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
34844         C headers.
34845         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
34846         memcpy.
34847         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
34848         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
34849         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
34850         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
34851         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
34852         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
34853         string.h, free.
34854         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
34855         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
34856         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
34857         C headers, or for string.h.
34858         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
34859         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
34860         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
34861         headers, memory.h, stdlib.h, string.h, strings.h.
34862         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
34863         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
34864         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
34865         strchr.
34866         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
34867         headers, memory.h, string.h.
34868         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
34869         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
34870         free.
34871         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
34872         headers.
34873         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
34874         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
34875         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
34876         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
34877         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
34878
34879 2003-09-09  Paul Eggert  <eggert@twinsun.com>
34880
34881         More K&R removal.
34882
34883         * lib/acosl.c (main): Use a prototype.
34884         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
34885         tanl.c: Likewise.
34886
34887         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
34888
34889         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
34890         (getopt, etopt_long, getopt_long_only, _getopt_internal)
34891         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
34892         with a prototype.
34893         * lib/getopt.c (const): Remove macro.
34894         Include <string.h> unconditionally.
34895         (my_index): Remove; all uses changed to strchr.
34896         (strlen): Remove decl.
34897         (exchange): Remove forward decl; no longer needed.
34898         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
34899         Define with prototype.
34900         * lib/getopt1.c (const): Remove macro.
34901         (getopt_long, getopt_long_only, main): Define with prototype.
34902
34903         * lib/getugroups.c: Include <string.h> unconditionally.
34904
34905         * lib/getusershell.c: Include <stdlib.h> unconditionally.
34906         (getusershell, setusershell, endusershell, readname, main):
34907         Define with prototypes.
34908
34909         * lib/group-member.c: Include group-member.h first.
34910         Include <stdlib.h> unconditionally.
34911
34912         * lib/hard-locale.c: Include hard-locale.h first.
34913         Include <stdlib.h>, <string.h> unconditionally.
34914
34915         * lib/hash.c (free, malloc): Remove decls.
34916         Include <stdlib.h> unconditionally.
34917
34918         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
34919         (getenv): Do not declare.
34920
34921         * lib/idcache.c: Include <string.h> unconditionally.
34922
34923         * lib/long-options.c: Include long-options.h first, to test interface.
34924         Include <stdlib.h> unconditionally.
34925
34926         * lib/makepath.c: Include makepath.h first, to test interface.
34927         Include <stdlib.h> and <string.h> unconditionally.
34928
34929         * lib/linebuffer.c: Include <stdlib.h>.
34930         (free): Remove decl.
34931
34932         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
34933         stddef.h. rpl_malloc returns void *, not char *.
34934         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
34935         prototype.
34936
34937         * lib/md5.h: Include <limits.h> unconditionally.
34938         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
34939         (__P): Remove; all uses removed.
34940         * lib/md5.c: Include "md5.h" first.
34941         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
34942         md5_buffer, md5_process_bytes, md5_process_block):
34943         Define with prototypes.
34944         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
34945         * lib/sha.c: Include "sha.h" first.
34946         Include <stdlib.h>, <string.h> unconditionally.
34947
34948         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
34949         * lib/memcmp.c (__ptr_t): Likewise.
34950         * lib/memrchr.c (__ptr_t): Likewise.
34951         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
34952         Include <string.h> unconditionally.
34953         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
34954         * lib/memchr.c: Include <stdlib.h> unconditionally.
34955         * lib/memchr.c (LONG_MAX): Remove.
34956         * lib/memrchr.c (LONG_MAX): Likewise.
34957         * lib/memchr.c (__memchr): Define via a prototype.
34958         * lib/memrchr.c (__memrchr): Likewise.
34959         * lib/memcmp.c (__P): Remove, and remove all uses.
34960         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
34961         Remove forward decls; no longer needed.
34962         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
34963         Use types required by C89 in prototype.
34964
34965         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
34966         * lib/savedir.c: Likewise.
34967         * lib/mkdir.c (free): Remove decl.
34968         * lib/rmdir.c (rmdir): Define with a prototype.
34969         * lib/savedir.c: Include savedir.h first, to test interface.
34970
34971         * lib/mktime.c (STDC_HEADERS): Remove.
34972         Include <stdlib.h>, <string.h> unconditionally.
34973
34974         * lib/modechange.c: Include <stdlib.h> unconditionally.
34975         (malloc): Remove decl.
34976
34977         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
34978         (free): Remove decl.
34979
34980         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
34981         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
34982         (This type really should be intptr_t, but that's a C99ism.)
34983         (_obstack_memcpy): Remove: all uses changed to memcpy.
34984         Include <string.h> unconditionally.
34985         (struct obstack): Assume __STDC__ for types of members
34986         chunkfun, freefun, extra_arg.
34987         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
34988         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
34989         obstack_begin, obstack_specify_allocation,
34990         obstack_specify_allocation_with_arg, obstack_chunkfun,
34991         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
34992         Remove unprototyped decls and the macros that use them.
34993         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
34994         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
34995         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
34996         (defined __STDC__ && __STDC__)]:
34997         Remove nonprototyped code.
34998         Include <stdlib.h> unconditionally.
34999         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
35000         _obstack_allocated_p, _obstack_free, obstack_free,
35001         _obstack_memory_used, print_and_abort):
35002         Define using prototypes.
35003         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
35004         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
35005         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
35006         obstack_next_free, obstack_object_size, obstack_room) [0]:
35007         Remove unused, unprototyped code.
35008
35009         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
35010
35011         * lib/physmem.c (physmem_total, physmem_available, main): Define
35012         with prototypes.
35013
35014         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
35015         (main): Define with a prototype.
35016
35017         * lib/posixver.c (getenv): Remove decl.
35018
35019         * lib/putenv.c (malloc): Returns void *, not char *.
35020         Include <string.h> unconditionally.
35021         (strchr, memcpy, NULL): Do not define.
35022
35023         * lib/readtokens.c: Include readtokens.h first, to test interface.
35024         Include <stdlib.h>, <string.h> unconditionally.
35025         (init_tokenbuffer): Define with a prototype.
35026
35027         * lib/regex.c (PARAMS): Remove.  All uses removed.
35028         All uses of _RE_ARGS removed, too.
35029         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
35030         unconditionally.
35031         (bzero): Assume memset exists.
35032         (memcmp, memcpy, NULL): Remove.
35033         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
35034         char, or assignments to local vars of type signed char.
35035         (init_syntax_once, PREFIX(extract_number_and_incr),
35036         PREFIX(print_partial_compiled_pattern),
35037         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
35038         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
35039         PREFIX(regex_grow_registers), PREFIX(regex_compile),
35040         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
35041         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
35042         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
35043         wcs_compile_range, byte_compile_range, truncate_wchar,
35044         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
35045         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
35046         count_mbs_length, wcs_re_match_2_internal,
35047         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
35048         PREFIX(alt_match_null_string_p),
35049         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
35050         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
35051         regfree, PREFIX(extract_number)): Define with prototype.  Remove
35052         now-unnecessary declaration, if any.
35053         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
35054         regcomp, regexec):
35055         Remove now-unnecessary casts among pointer types.
35056         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
35057
35058         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
35059         (free): Remove decl.
35060
35061         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
35062
35063         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
35064         (free): Remove decl.
35065
35066         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
35067         * lib/xgetcwd.c: Likewise.
35068
35069         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
35070         (free): Remove decl.
35071
35072         * lib/strchrnul.c (strchrnul): Define with a prototype.
35073         Fix bug: c_in was not converted to char before searching.
35074
35075         The following changes are not K&R related:
35076
35077         * lib/group-member.h: Include <sys/types.h>, so that this file is
35078         self-contained.
35079         * lib/makepath.h: Likewise.
35080
35081         * lib/getusershell.c (readname, default_index, line_size, readname):
35082         Use size_t, not int, for sizes.
35083         (readname): If the size overflows, report an error instead of
35084         looping forever.
35085
35086 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35087
35088         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
35089         libc.
35090
35091 2003-09-09  Paul Eggert  <eggert@twinsun.com>
35092
35093         * README: New section: portability guidelines.
35094
35095 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35096
35097         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
35098         C89 spec.
35099
35100 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
35101
35102         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
35103
35104 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35105
35106         Assume C89 or better; remove K&R cruft.
35107         A few of these changes were first proposed by Derek Robert Price
35108         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
35109
35110         * lib/addext.c: Include <string.h> unconditionally.
35111         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
35112         Don't declare getenv or malloc.
35113
35114         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
35115         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
35116         (NULL): Remove.
35117         (find_stack_direction, alloca): Use prototypes.
35118
35119         * lib/atexit.c (atexit): Define using a prototype.
35120
35121         * lib/basename.c, dirname.c, stripslash.c:
35122         Include <string.h> unconditionally.
35123
35124         * lib/bcopy.c: Include <stddef.h>.
35125         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
35126
35127         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
35128
35129         * lib/error.h (error, error_at_line, error_print_progname)
35130         [! (defined (__STDC__) && __STDC__)]: Remove decls.
35131         * lib/error.c: Include error.h first, to check interface.
35132         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35133         (VA_START): Remove; all uses changeed to va_start.
35134         (exit, strerror): Remove decls.
35135         (error_print_progname): Prototype uncondionally.
35136         Don't include <errno.h>; no longer needed.
35137         (private_strerror): Remove.
35138         (error_tail): Always define.
35139         (error, error_at_line): Assume C89 or better; always use prototypes.
35140         * lib/fatal.c: Include "fatal.h" first, to test interface.
35141         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
35142         (VA_START): Remove; all uses changed to va_start.
35143         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
35144         this case.
35145         (exit): Remove decl.
35146         (fatal): Prototype unconditionally.  Assume va_start works.
35147         Abort at end, to pacify gcc.
35148
35149         * lib/euidaccess.c (main): Define with a prototype.
35150
35151         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
35152
35153         * lib/exitfail.c: Include <stdlib.h> unconditionally.
35154
35155         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
35156         prototypes.
35157         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
35158         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
35159         (getenv): Remove decl.
35160         (fnmatch): Define using a prototype.
35161         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
35162         (FCT): Define using a prototype.
35163
35164         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
35165
35166         * lib/gethostname.c: Include <stddef.h>.
35167         (gethostname): Define with prototype.  Length is size_t, not int.
35168
35169 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35170
35171         Assume C89 or better; remove K&R cruft.
35172         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
35173         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
35174         string.h, getenv, malloc.
35175         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
35176         headers.
35177         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
35178         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
35179         do not check for strerror.
35180         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
35181         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
35182         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
35183         do not check for doprnt or vprintf.
35184         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
35185         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
35186
35187 2003-09-08  Paul Eggert  <eggert@twinsun.com>
35188
35189         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
35190         getversion.c should have been removed then, but was accidentally
35191         preserved.
35192
35193         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
35194         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
35195
35196 2003-09-08  Karl Berry  <karl@gnu.org>
35197
35198         * config/config.sub, config.guess, srclistvars.sh: update from savannah
35199                 config, forget about prep.
35200
35201         * config/depcomp, missing: update from automake.
35202
35203 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35204
35205         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
35206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35207
35208 2003-09-07  Paul Eggert  <eggert@twinsun.com>
35209
35210         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
35211         copy_tm_result.  Bug reported by Simon Josefsson in
35212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
35213
35214 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35215
35216         * m4/time_r.m4: New file.
35217         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
35218         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
35219         is. Check for timegm declaration.
35220         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
35221         Do not check for gmtime_r.
35222         Replace mktime if __mktime_internal does not exist and if mktime
35223         hasn't been replaced already.
35224
35225 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35226
35227         * lib/time_r.c, lib/time_r.h: New files.
35228
35229         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
35230         __localtime_r.
35231         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
35232         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
35233
35234         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
35235         __gmtime_r.
35236         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
35237         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
35238         Include <time_r.h>.
35239
35240         * lib/timegm.c: Switch to glibc implementation, with the following
35241         changes:
35242         [defined HAVE_CONFIG_H]: Include <config.h>.
35243         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
35244         (__mktime_internal) [!defined _LIBC]: New decl.
35245         (__gmtime_r) [!defined _LIBC]: New macro and function.
35246         (timegm): Use a prototype, since gnulib assumes C89.
35247         Do not bother declaring tmp to be const, as it's not really usefu.
35248         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
35249         (timegm): Declare only if HAVE_DECL_TIMEGM.
35250
35251 2003-09-06  Paul Eggert  <eggert@twinsun.com>
35252
35253         * MODULES.html.sh (func_all_modules): Add time_r.
35254         * modules/time_r: New file.
35255         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
35256         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
35257
35258 2003-09-03  Paul Eggert  <eggert@twinsun.com>
35259
35260         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
35261         Bug reported by Lute Kamstra in
35262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
35263
35264         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
35265         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
35266         course with correspondingly smaller numbers for tomorrow and
35267         yesterday.  From Tadayoshi Funaba.  Originally installed into
35268         sh-utils on 1999-08-07, but the patch got lost (I guess during the
35269         coreutils merge?).
35270
35271 2003-08-31  Simon Josefsson  <jas@extundo.com>
35272
35273         * modules/timegm: New file.
35274         * MODULES.html.sh (func_all_modules): Add timegm.
35275
35276 2003-08-31  Simon Josefsson  <jas@extundo.com>
35277
35278         * m4/timegm.m4: New file.
35279
35280 2003-08-31  Simon Josefsson  <jas@extundo.com>
35281
35282         * lib/timegm.h: New file.
35283         * lib/timegm.c: New file.  Based on
35284         wget-1.8.2/src/http.c:mktime_from_utc.
35285
35286 2003-08-31  Karl Berry  <karl@gnu.org>
35287
35288         * lib/argp.h: update from libc.
35289
35290 2003-08-28  Bruno Haible  <bruno@clisp.org>
35291
35292         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
35293         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
35294         followed by '#define fnmatch fnmatch_posix' gives an error.
35295
35296 2003-08-28  Bruno Haible  <bruno@clisp.org>
35297
35298         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
35299         warning on QNX, which defines O_BINARY to 000000.
35300
35301 2003-08-27  Jim Meyering  <jim@meyering.net>
35302
35303         * m4/mkstemp.m4: Require that the system mkstemp be able to create
35304         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
35305         would fail after 32.  Reported by Danny Levinson.  Details here:
35306         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
35307
35308 2003-08-24  Bruno Haible  <bruno@clisp.org>
35309
35310         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
35311         MSVC7 <stdio.h> is included later.
35312
35313 2003-08-22  Simon Josefsson  <jas@extundo.com>
35314
35315         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
35316
35317 2003-08-20  Karl Berry  <karl@gnu.org>
35318
35319         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
35320
35321 2003-08-20  Bruno Haible  <bruno@clisp.org>
35322
35323         * modules/progname: New file.
35324         * MODULES.html.sh (func_all_modules): Add progname.
35325
35326 2003-08-20  Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/progname.h: New file, from GNU gettext.
35329         * lib/progname.c: New file, from GNU gettext.
35330         * lib/progreloc.c: New file, from GNU gettext.
35331
35332 2003-08-19  Jim Meyering  <jim@meyering.net>
35333
35334         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
35335         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
35336
35337 2003-08-19  Bruno Haible  <bruno@clisp.org>
35338
35339         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
35340         more.
35341
35342 2003-08-19  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/xstrdup.c: Assume <string.h> exists.
35345
35346 2003-08-18  Paul Eggert  <eggert@twinsun.com>
35347
35348         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
35349         in makefile rules.
35350
35351 2003-08-18  Jim Meyering  <jim@meyering.net>
35352
35353         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
35354         * m4/lib-ld.m4: Likewise.
35355
35356 2003-08-18  Jim Meyering  <jim@meyering.net>
35357
35358         * lib/setenv.h: Indent nested cpp directive.
35359         * lib/vasnprintf.c: Remove trailing blanks.
35360
35361 2003-08-17  Simon Josefsson  <jas@extundo.com>
35362
35363         * modules/xstrndup: New file.
35364         * MODULES.html.sh (func_all_modules): Add xstrndup.
35365
35366 2003-08-17  Simon Josefsson  <jas@extundo.com>
35367
35368         * modules/argp: Fix autoconf macro name. Add more dependencies.
35369
35370 2003-08-17  Simon Josefsson  <jas@extundo.com>
35371
35372         * m4/xstrndup.m4: New file.
35373
35374 2003-08-17  Simon Josefsson  <jas@extundo.com>
35375
35376         * m4/argp.m4: New file.
35377
35378 2003-08-17  Simon Josefsson  <jas@extundo.com>
35379             Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/xstrndup.h: New file.
35382         * lib/xstrndup.c: New file.
35383
35384 2003-08-17  Bruno Haible  <bruno@clisp.org>
35385
35386         * modules/strndup (Files, Include): Add lib/strndup.h.
35387
35388 2003-08-17  Bruno Haible  <bruno@clisp.org>
35389
35390         * modules/euidaccess (Files): Add lib/euidaccess.h.
35391
35392 2003-08-17  Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/strndup.h: New file.
35395
35396 2003-08-17  Bruno Haible  <bruno@clisp.org>
35397
35398         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
35399         like AC_GNU_SOURCE.
35400         * modules/extensions (configure.ac): Comment out the invocation of
35401         gl_USE_SYSTEM_EXTENSIONS.
35402
35403 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35404
35405         Merges from coreutils, etc.
35406         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
35407         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
35408         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
35409         fixing a typo.
35410         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
35411         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
35412
35413 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35414
35415         Document merge from coreutils.
35416         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
35417         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
35418         * modules/utime: Add m4/utimes-null.m4.
35419
35420 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35421
35422         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
35423         space, undoing this 2003-08-12 change:
35424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35425
35426 2003-08-16  Paul Eggert  <eggert@twinsun.com>
35427
35428         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
35429         strtoul.c from libc, undoing this 2003-08-12 change:
35430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
35431
35432 2003-08-16  Jim Meyering  <jim@meyering.net>
35433
35434         Merges from coreutils.
35435         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
35436         prefix.  Adjust cache variables similarly.  Create 500 rather than
35437         just 300 files, to exercise bug on Darwin6.5, too.
35438         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
35439         $missing_dir.
35440         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
35441         AM_SYS_POSIX_TERMIOS.
35442         Reported by mkc@mathdogs.com.
35443         Also change use of $am_cv_sys_posix_termios
35444         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
35445         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
35446         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
35447         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
35448         in /proc/mounts until it finds one with matching device number.  This
35449         is unnecessary when the FILE argument *is* a mount point.  No stat call
35450         is necessary in that case.  So, disable the statvfs-testing code on
35451         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
35452         as RedHat bug# 84846.
35453         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35454         to 1MB, so as not to render systems with no stack size limit (e.g.,
35455         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35456         Include <unistd.h>.  On some systems,
35457         it is required for the definition of _SC_PAGESIZE.
35458
35459 2003-08-16  Jim Meyering  <jim@meyering.net>
35460
35461         Merge from coreutils.
35462         * lib/xstrtoimax.c: #else #if -> #elif.
35463         * lib/xstrtoumax.c: Likewise.
35464
35465 2003-08-16  Jim Meyering  <jim@meyering.net>
35466
35467         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
35468         * m4/utimes.m4: Removed.
35469         * m4/utimes-null.m4: Renamed from utimes.m4.
35470
35471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
35472         to 1MB, so as not to render systems with no stack size limit (e.g.,
35473         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
35474         Include <unistd.h>.  On some systems,
35475         it is required for the definition of _SC_PAGESIZE.
35476
35477 2003-08-16  Jim Meyering  <jim@meyering.net>
35478         and Paul Eggert  <eggert@cs.ucla.edu>
35479
35480         Merges from coreutils, etc.
35481
35482         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
35483         using the latest version from cvs.  This avoids problems with #line
35484         directives using a vendor (Sun) compiler.
35485         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
35486         Don't set GETGROUPS_LIB here; now it's
35487         done via getgroups.m4's wrapper function.
35488         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
35489         rather than just in sh-util/configure.in, so that the
35490         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
35491         same.
35492         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
35493         AC_FUNC_GETLOADAVG where to find getloadavg.c.
35494         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
35495         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
35496         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
35497         Remove code that is now done by the newly-required macros.
35498         Append $(EXEEXT) to DF_PROG.
35499         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
35500         Do not invoke or require the following here,
35501         since prereq.m4 or some gnulib .m4 now does this for us:
35502         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
35503         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
35504         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
35505         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
35506         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
35507         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
35508         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
35509         AC_FUNC_OBSTACK.
35510         Do not replace the following functions, as this is now the job
35511         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
35512         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
35513         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
35514         atexit getpass, strdup, getpagesize.
35515         Replace 'raise'.
35516         Do not check for the following functions, as this is now the job
35517         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
35518         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
35519         setregid.
35520         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
35521         Check for sys/sysctl.h.
35522         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
35523         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
35524         of checking for ssize_t ourselves.
35525
35526         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
35527         Require every macro that gnulib/modules/* suggests for us.
35528         (jm_PREREQ_ADDEXT): New macro.
35529         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
35530         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
35531
35532         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
35533         (gl_PHYSMEM): Use it.
35534         Also check for `table' function.
35535         Check for new headers and functions.
35536         Add check for sys/sysmp.h.
35537         With suggestions from Kaveh Ghazi.
35538         Ignore headers that are present but cannot be compiled.  This
35539         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
35540         C 5.4.
35541
35542 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35543
35544         Document merge from coreutils.
35545         * modules/userspec: Depend on posixver.
35546         * modules/strftime: Depend on tzset.
35547
35548 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35549
35550         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
35551         rather than tab, after '#' in shell-script copyright notices.
35552         Suggested by Bruno Haible.
35553
35554 2003-08-15  Paul Eggert  <eggert@twinsun.com>
35555
35556         * config/srclist-update: Use three spaces, rather than tab, after '#'
35557         in shell-script copyright notices.  Suggested by Bruno Haible.
35558         Remove unnecessary parenthesization in regular expression.
35559
35560 2003-08-15  Jim Meyering  <jim@meyering.net>
35561
35562         Merge from coreutils.
35563         * lib/xgethostname.c: Include <stdlib.h>.
35564         (xghostname): Don't exit for anything other than memory-related
35565         failure; just return NULL.
35566         * lib/userspec.c: Include "posixver.h".
35567         (parse_user_spec): Accept `.' as a separator only
35568         in pre-POSIX-200112 mode.
35569         * lib/strtoimax.c: Use #elif rather than #else #if.
35570         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
35571         Remove function, now that we can rely on a working tzset function.
35572         [!_LIBC]: Ensure that the required autoconf test has been run.
35573         [!defined _NL_CURRENT && HAVE_STRFTIME]:
35574         Use underlying_strftime for %r.
35575         * lib/sha.c: Merge in some clean-up and optimization changes from
35576         glibc.
35577         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
35578         Ensure that it is a multiple of 64.
35579         Rearrange loop exit tests so as to avoid performing an
35580         additional fread after encountering an error or EOF.
35581         * lib/realloc.c: Update copyright date.
35582
35583 2003-08-15  Jim Meyering  <jim@meyering.net>
35584         and Paul Eggert  <eggert@twinsun.com>
35585
35586         Merge from coreutils.
35587         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
35588         member but strut utmpx does not.  Needed for AIX 4.3.3.
35589         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
35590
35591 2003-08-15  Jim Meyering  <jim@meyering.net>
35592         and Paul Eggert  <eggert@cs.ucla.edu>
35593
35594         Merges from coreutils, etc.
35595         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
35596         Require gl_FUNC_TZSET_CLOBBER.
35597         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
35598         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
35599         members.
35600
35601 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35602
35603         Help the merge from coreutils.
35604         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
35605         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
35606         * m4/tzset.m4: Use it too.
35607
35608 2003-08-14  Paul Eggert  <eggert@twinsun.com>
35609
35610         * modules/tzset: New file.
35611
35612 2003-08-14  Jim Meyering  <jim@meyering.net>
35613
35614         Merges from coreutils.
35615         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
35616         variable names, rather than @FNMATCH_H@.
35617         * modules/alloca: Likewise for $(ALLOCA_H).
35618
35619         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
35620         the three copies of the literal target, `fnmatch.h'.
35621         * modules/alloca (alloca.h): Likewise.
35622
35623 2003-08-14  Jim Meyering  <jim@meyering.net>
35624
35625         Merge from coreutils.
35626         * m4/tzset.m4: New file.
35627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
35628         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
35629         otherwise, AIX 5.1 systems would end up using the latter.
35630         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
35631         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
35632         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
35633         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
35634
35635 2003-08-14  Jim Meyering  <jim@meyering.net>
35636
35637         Merge from coreutils.
35638         * lib/obstack.h: Whitespace changes.
35639         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
35640         and xcalloc return values.
35641         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
35642         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
35643         hang on OSF/1 5.1 for DIR on both local and remote file systems.
35644         Reported by (and fix confirmed by) Nelson H. F. Beebe.
35645         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35646         error from mntctl.
35647         Use mntctl's return value to drive the entry-processing loop, since
35648         we can't rely on the value of the vmt_length member in the last
35649         entry.  On some systems doing so could result in exhausting
35650         virtual memory.  Based in part on a patch from Mike Jetzer.
35651
35652 2003-08-14  Jim Meyering  <jim@meyering.net>
35653         and Paul Eggert  <eggert@twinsun.com>
35654
35655         Merges from coreutils, plus other fixes.
35656         * lib/physmem.c: Merge in portability changes from gcc/libiberty
35657         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
35658         for credits and details.  Thanks to Kaveh Ghazi for helping
35659         to keep these files in sync.
35660         (ARRAY_SIZE): Define it.
35661         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
35662         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
35663         (memcasecmp): Don't assume size_t fits in unsigned int.
35664         Remove casts and duplicate code.
35665         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
35666         (memcpy): Remove definition.
35667         Merge in some clean-up and optimization changes from glibc.
35668         [BLOCKSIZE]: Move definition to top of file.
35669         Ensure that it is a multiple of 64.
35670         Rearrange loop exit tests so as to avoid performing an
35671         additional fread after encountering an error or EOF.
35672         * lib/md5.h (md5_uintptr): Define.
35673         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
35674         return to the initial working directory.  Preserve errno
35675         for caller.
35676         * lib/idcache.c: Include "xalloc.h".
35677         (xmalloc, xrealloc): Remove decls.
35678         (getuser): Remove casts no longer required in C89.
35679         * lib/human.c: Include stdio.h, for sprintf.
35680         * lib/group-member.c: Include "xalloc.h".
35681         (xmalloc, xrealloc): Remove decls.
35682         (get_group_info): Remove casts no longer required in C89.
35683         * lib/getusershell.c (readname): Remove casts no longer required in
35684         C89.
35685         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
35686         * lib/getline.c: Whitespace fix, from coreutils.
35687
35688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35689
35690         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
35691         Check for isascii.
35692
35693         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35694         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35695         Undo previous (whitespace-only) change.
35696
35697 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35698
35699         * lib/exclude.c: Include <ctype.h>
35700         (IN_CTYPE_DOMAIN): New macro.
35701         (is_space): New fn.
35702         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
35703         and empty lines.
35704
35705         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35706         Undo previous (whitespace-only) change.
35707
35708 2003-08-13  Paul Eggert  <eggert@twinsun.com>
35709
35710         * config/srclist-update: Change update back to the old behavior,
35711         leaving whitespace alone.  Use one 'sed' command rather than a
35712         pipeline.
35713         (fixlicense): Now a variable, not a function.
35714         (remove_trailing_blanks): Remove.
35715         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
35716         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35717         Undo previous (whitespace-only) change.
35718
35719 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35720
35721         Merge from coreutils.
35722         * modules/euidaccess: Add lib_SOURCES, include for new
35723         file euidaccess.h
35724
35725 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35726
35727         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
35728         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
35729         Normalize leading white space and remove trailing white space.
35730
35731         Merge from coreutils
35732         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
35733
35734         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
35735         0.12.1.  These files are now being upgraded automatically by
35736         ../config/srclist-update.
35737
35738 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35739
35740         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
35741         Normalize leading white space and remove trailing white space.
35742         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
35743         notice, as per ../config/srclist-update.
35744
35745         Merge from coreutils.
35746         * lib/euidaccess.h: New file.
35747         * lib/euidaccess.c: Include it.
35748         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
35749         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
35750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
35751
35752 2003-08-12  Paul Eggert  <eggert@twinsun.com>
35753
35754         * config/srclist-update: Add copyright notice.
35755         (remove_id_lines, remove_trailing_blanks): New constants.
35756         (fixfile): Use them to normalize spacing a bit in copied files.
35757         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
35758         Normalize leading white space and remove trailing white space.
35759
35760         * config/texinfo.tex: Sync with texinfo.
35761
35762         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
35763         strtoul.c from libc, to merge coreutils whitespace changes.
35764
35765         * config/srclist.txt: Get the following m4 files from gettext:
35766         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
35767         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
35768         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
35769         wint_t.m4.
35770
35771 2003-08-12  Karl Berry  <karl@gnu.org>
35772
35773         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
35774         been made.
35775
35776 2003-08-11  Paul Eggert  <eggert@twinsun.com>
35777
35778         * modules/gnu-source, m4/gnu-source.m4:
35779         Remove; we're assuming Autoconf 2.54 or later now.
35780         Suggested by Bruno Haible.
35781         * MODULES.html.sh (func_all_modules): Remove gnu-source.
35782
35783 2003-08-11  Bruno Haible  <bruno@clisp.org>
35784
35785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
35786
35787 2003-08-11  Bruno Haible  <bruno@clisp.org>
35788
35789         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
35790         (vasnprintf): Use it instead of wcslen.
35791
35792 2003-08-11  Bruno Haible  <bruno@clisp.org>
35793
35794         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
35795         value to ensure that _Bool promotes to int. Use #define for _Bool when
35796         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
35797
35798 2003-08-10  Karl Berry  <karl@gnu.org>
35799
35800         * lib/regex.h: update from libc (whitespace fix).
35801
35802 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35803
35804         Merge some files from coreutils.  These changes were
35805         originally made by Jim Meyering.
35806         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
35807         many older Unixes require this.
35808         * lib/alloca.c (alloca): Remove cast to argument of free;
35809         no longer needed in C89.
35810         * lib/alloca_.h, regex.h: Fix white space to match
35811         what GNU indent does.
35812
35813 2003-08-09  Paul Eggert  <eggert@twinsun.com>
35814
35815         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
35816         apparently Emacs's Unicode mode got confused before my 2003-08-05
35817         checkin.
35818
35819 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35820
35821         * m4/extensions.m4: New file.
35822         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
35823         Require gl_USE_SYSTEM_EXTENSIONS.
35824         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
35825         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
35826
35827 2003-08-08  Paul Eggert  <eggert@twinsun.com>
35828
35829         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
35830         * modules/extensions, modules/gnu-source: New files.
35831         * modules/timespec, modules/unlocked-io: Depend on extensions.
35832
35833 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35834
35835         * modules/restrict: New file.
35836         * MODULES.html.sh (func_all_modules): Add restrict.
35837         * modules/regex: Depend on restrict.
35838
35839 2003-08-07  Paul Eggert  <eggert@twinsun.com>
35840
35841         * m4/restrict.m4: New file.
35842         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
35843
35844 2003-08-07  Bruno Haible  <bruno@clisp.org>
35845
35846         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
35847         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
35848
35849 2003-08-07  Bruno Haible  <bruno@clisp.org>
35850
35851         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
35852         makes the module 'getndelim2' compatible with the module 'getline'.
35853
35854 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35855
35856         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
35857         byte with "\201" to avoid glitches when editing that source file
35858         with multi-gnome-terminal.
35859
35860 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35861
35862         * lib/bumpalloc.h: Remove.
35863
35864 2003-08-05  Paul Eggert  <eggert@twinsun.com>
35865
35866         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
35867         * modules/bumpalloc: Remove.
35868
35869 2003-08-04  Paul Eggert  <eggert@twinsun.com>
35870
35871         * lib/getloadavg.c: Change copyright notice and spacing to conform to
35872         GNU coding style.
35873
35874         Merge from coreutils.
35875         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
35876         1. From glibc.
35877         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
35878         from Karl Berry, implemented by Jim Meyering.
35879         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
35880         from Dmitry V. Levin.
35881         Remove anachronistic cast of xrealloc.
35882         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
35883         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
35884         type. Otherwise, it wouldn't compile with at least /bin/cc on
35885         ymp-cray-unicos9.0.2.X.
35886         Combine two mostly-identical uses of alloca into one.
35887         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
35888
35889 2003-08-04  Dave Love  <d.love@dl.ac.uk>
35890
35891         [From Emacs.]
35892
35893         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
35894         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
35895         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
35896         obsolete NLIST_NAME_UNION.
35897         [__GNU__]: Undef BSD and FSCALE.
35898         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
35899
35900 2003-08-03  Paul Eggert  <eggert@twinsun.com>
35901
35902         * lib/stdbool_.h (_Bool): Make it signed char, instead of
35903         an enum type, so that it's guaranteed to promote to int.  See:
35904         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
35905
35906 2003-08-03  Karl Berry  <karl@gnu.org>
35907
35908         * config/depcomp: update from automake.
35909
35910 2003-07-31  Paul Eggert  <eggert@twinsun.com>
35911
35912         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
35913         (strerror): Don't assume that a printable int fits in 14 bytes.
35914
35915 2003-07-31  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/getpass-gnu: New file.
35918         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
35919
35920 2003-07-31  Bruno Haible  <bruno@clisp.org>
35921
35922         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
35923
35924 2003-07-24  Karl Berry  <karl@gnu.org>
35925
35926         * config/missing: update from automake.
35927
35928 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
35929             Bruno Haible  <bruno@clisp.org>
35930
35931         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
35932         * lib/getline.c (getline, getdelim): Likewise.
35933         Remove _GNU_SOURCE define; now it's defined in config.h through
35934         m4/getline.m4.
35935
35936 2003-07-23  Karl Berry  <karl@gnu.org>
35937
35938         * config/config.sub: update from prep.
35939
35940 2003-07-22  Paul Eggert  <eggert@twinsun.com>
35941
35942         * modules/xalloc (Depends-on): Add exitfail.
35943         * modules/xmemcoll: Likewise.
35944
35945 2003-07-22  Paul Eggert  <eggert@twinsun.com>
35946
35947         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
35948         over-parenthesization in macros.
35949
35950         Sync with coreutils.
35951
35952         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
35953         required by C99.
35954
35955         Use `exit_failure' for xalloc and xmemcoll instead of their own
35956         private exit-failure variables.
35957         * lib/xalloc.h (xalloc_exit_failure): Remove.
35958         * lib/xmalloc.c: Likewise.  Include exitfail.h.
35959         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
35960         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
35961         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
35962         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
35963
35964 2003-07-20  Jim Meyering  <jim@meyering.net>
35965
35966         * modules/closeout (Depends-on): Add exitfail.
35967         Suggestion from Bruno Haible.
35968
35969 2003-07-19  Karl Berry  <karl@gnu.org>
35970
35971         * config/config.sub: update from prep.
35972
35973 2003-07-18  Paul Eggert  <eggert@twinsun.com>
35974
35975         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
35976         Remove.
35977         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
35978         to test that it can stand by itself.  Include "exitfail.h".
35979         Clients should set exit_failure instead.
35980         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
35981
35982 2003-07-18  Bruno Haible  <bruno@clisp.org>
35983
35984         * modules/getndelim2: New file.
35985         * modules/getline: Share files with module getndelim2.
35986         * modules/getnline: Depend on getndelim2 instead of sharing files with
35987         it. Add getnline.c to lib_SOURCES.
35988         * MODULES.html.sh (func_all_modules): Add getndelim2.
35989
35990 2003-07-18  Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/getndelim2.m4: New file.
35993         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
35994         invoke gl_PREREQ_GETNDELIM2.
35995         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
35996         gl_PREREQ_GETNDELIM2.
35997         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
35998         gl_GETNDELIM2.
35999
36000 2003-07-18  Bruno Haible  <bruno@clisp.org>
36001
36002         * lib/getndelim2.h: New file.
36003         * lib/getndelim2.c: Make into a module of its own. Include config.h,
36004         getndelim2.h.
36005         (getndelim2): Make non-static. Change return type to ssize_t.
36006         * lib/getline.h: Change argument names.
36007         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
36008         * lib/getnline.c: Include getndelim2.h.
36009
36010 2003-07-18  Andreas Schwab  <schwab@suse.de>
36011
36012         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
36013
36014 2003-07-17  Karl Berry  <karl@gnu.org>
36015
36016         * config/config.sub: update from prep.
36017
36018 2003-07-17  Bruno Haible  <bruno@clisp.org>
36019
36020         * modules/getnline: New file.
36021         * modules/getline: Add lib/getndelim2.c to source file list.
36022         * MODULES.html.sh (func_all_modules): Add getnline.
36023
36024 2003-07-17  Bruno Haible  <bruno@clisp.org>
36025
36026         * m4/getnline.m4: New file.
36027
36028 2003-07-17  Bruno Haible  <bruno@clisp.org>
36029
36030         * m4/Makefile.am.in: Remove file.
36031         * m4/Makefile.am: Remove file.
36032         * m4/Makefile.in: Remove file.
36033
36034 2003-07-17  Bruno Haible  <bruno@clisp.org>
36035
36036         * lib/getnline.h: New file.
36037         * lib/getnline.c: New file.
36038         * lib/getndelim2.c: New file, extracted from getline.c.
36039         (getndelim2): Renamed from getdelim2, with added nmax argument.
36040         * lib/getline.c: Include getndelim2.c.
36041         (getdelim2): Moved out to getndelim2.c.
36042         (getline, getdelim): Update.
36043
36044 2003-07-17  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/Makefile.am: Remove file.
36047         * lib/Makefile.in: Remove file.
36048
36049 2003-07-17  Bruno Haible  <bruno@clisp.org>
36050
36051         * configure.in: Remove file.
36052         * Makefile.in: Remove file.
36053
36054 2003-07-17  Bruno Haible  <bruno@clisp.org>
36055
36056         * MODULES.html.sh: Put the </BODY> right before </HTML>.
36057
36058 2003-07-16  Karl Berry  <karl@gnu.org>
36059
36060         * config/srclist-update: was running fixlicense twice, which caused
36061                 texinfo.tex to be nullified for some reason.  Simplify,
36062                 $gplsrc is no longer needed as far as I can see?
36063
36064 2003-07-16  Jim Meyering  <jim@meyering.net>
36065
36066         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
36067
36068 2003-07-15  Paul Eggert  <eggert@twinsun.com>
36069
36070         * config/srclist.txt: Get the following files from gettext-runtime/intl
36071         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
36072         ref-del.sin.  From Bruno Haible.
36073         * config/srclist-update (fixfile): Change grep pattern again, since the
36074         previous fix didn't work (there was another trailing $).  Use
36075         '[$]' to escape the $s.
36076
36077 2003-07-15  Karl Berry  <karl@gnu.org>
36078
36079         * lib/vasnprintf.c: update from gettext.
36080
36081 2003-07-15  Karl Berry  <karl@gnu.org>
36082
36083         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
36084         gets expanded when surrounded by '$'.
36085
36086 2003-07-15  Jim Meyering  <jim@meyering.net>
36087
36088         * modules/save-cwd: Don't depend on error.  From Derek Price.
36089
36090 2003-07-15  Jim Meyering  <jim@meyering.net>
36091
36092         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
36093
36094 2003-07-14  Simon Josefsson  <jas@extundo.com>
36095
36096         * modules/mempcpy: New file.
36097         * MODULES.html.sh (func_all_modules): Add mempcpy.
36098
36099 2003-07-14  Simon Josefsson  <jas@extundo.com>
36100
36101         * m4/mempcpy.m4: New file.
36102
36103 2003-07-14  Simon Josefsson  <jas@extundo.com>
36104
36105         * lib/mempcpy.h: New file.
36106         * lib/mempcpy.c: New file.
36107
36108 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36109
36110         * modules/getdate, modules/posixtm: Depend on mktime.
36111
36112 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36113
36114         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
36115         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
36116         unicodeio.c, unicodeio.h, unlocked-io.h:
36117         Switch from LGPL to GPL.
36118
36119 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36120
36121         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
36122         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
36123         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
36124         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
36125         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
36126         updated automatically by ../config/srclist-update.  This changes
36127         their license from LPGL to GPL.
36128
36129 2003-07-14  Paul Eggert  <eggert@twinsun.com>
36130
36131         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
36132         assumed to refer to the root of the most recent stable gettext version.
36133         * config/srclistvars.sh: Add defaults for eggert.
36134         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
36135         Match "This program" as well as "The program".  This is needed
36136         for gettext.
36137
36138 2003-07-14  Jim Meyering  <jim@meyering.net>
36139
36140         Don't emit diagnostics.  Let callers do that.
36141         * lib/save-cwd.c: Don't include "error.h".
36142         (save_cwd): Don't call error.  Ensure that errno is valid
36143         when returning nonzero.
36144
36145         * lib/save-cwd.h (restore_cwd): Update prototype.
36146         * lib/save-cwd.c (restore_cwd): Remove two parameters.
36147         Simplify.  Don't call error upon failure.  Let callers do that.
36148         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
36149         when auditing is enabled.  But don't bother updating the #if.
36150
36151 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
36152
36153         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
36154         it breaks C++ compilation.
36155         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
36156
36157 2003-07-10  Simon Josefsson  <jas@extundo.com>
36158
36159         * modules/strchrnul (Makefile.am): Add strchrnul.h.
36160
36161 2003-07-10  Jim Meyering  <jim@meyering.net>
36162
36163         * m4/clock_time.m4: Remove trailing blank.
36164         * m4/intmax_t.m4: Likewise.
36165
36166 2003-07-10  Jim Meyering  <jim@meyering.net>
36167
36168         * lib/vasnprintf.c: Remove trailing blanks.
36169         Make cpp indentation consistent.
36170
36171 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36172
36173         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
36174         posixver.c, strftime.c, strnlen.c, strverscmp.c:
36175         Switch from LGPL to GPL.
36176
36177 2003-07-09  Paul Eggert  <eggert@twinsun.com>
36178
36179         * config/srclist.txt: Sort sublists.  Add
36180         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
36181         that differ from gnulib for one reason or another; we'd like this list
36182         to be smaller but for now let's document what we have.
36183
36184 2003-07-08  Paul Eggert  <eggert@twinsun.com>
36185
36186         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
36187         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
36188         and sweeter "eval x=$x".
36189         * config/srclist.txt: Get lib/argp* from glibc.
36190
36191 2003-07-07  Paul Eggert  <eggert@twinsun.com>
36192
36193         * lib/mktime.c: Fix some boundary cases and remove need for floating
36194         point.
36195
36196         Issue a compile-time diagnostic if time_t is floating point, or if
36197         two's complement arithmetic is not in effect, or if arithmetic
36198         right shift does not propagate the sign.  These assumptions were
36199         all in the original code but they weren't checked.
36200
36201         (TIME_T_MIDPOINT, verify): New macros.
36202         (__isleap): Remove; it has integer overflow problems.
36203         (leapyear): New function, without those problems.
36204         (ydhms_tm_diff): Remove; splitting into two parts.
36205         (ydhms_diff): New function, containing the arithmetic part of
36206         the old ydhms_tm_diff function.  Issue a compile-time
36207         diagnostic if we are not using C99 integer division.
36208         Avoid casts when possible.
36209         (guess_time_tm): New function, containing the checking part of
36210         the old ydhms_tm_diff function.  Return the new value, rather than
36211         the difference between it and the old.  Accept a new argument T
36212         so that *T specifies the old value.  Check for overflow in the result.
36213
36214         (__mktime_internal): Use a time_t offset, not a long int offset.
36215         This undoes the 2003-06-04 change, which is no longer needed now
36216         that we have better overflow checking.
36217         (localtime_offset): Likewise.
36218
36219         (__mktime_internal): Avoid harmful overflow on hosts where time_t
36220         and long are 64-bit but int is only 32-bit.
36221         (ydhms_diff): Use long int to store year1 and yday1.
36222         Issue a compile-time diagnostic if long int is not wide enough.
36223
36224         (__mktime_internal): Use long int to store adjusted year and yday.
36225         Use plain C rather than preprocessor commands, if that doesn't
36226         affect efficiency.
36227         Check for overflow (and try to repair) after each probe
36228         rather than checking only at the very end.  This avoids some bugs
36229         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
36230         does not equal GMT offset at maximum time).
36231         Use integer to check for overflow rather than floating point; this
36232         is more portable to non-IEEE hosts, and is a tad faster.
36233         When we detect that we are oscillating between two values,
36234         don't check whether tm_isdst has the requested value, since
36235         we already know the answer.  When tm_isdst has the wrong value,
36236         use a different heuristic to find the right one, based on the
36237         extreme values actually observed in practice in tz2003a,
36238         rather than the (overly optimistic) "previous 3 calendar quarters".
36239
36240         (not_equal_tm, print_tm, check_result): Use "const T" rather than
36241         "T const" to accommodate glibc style.
36242         (check_result): Use less-confusing report format.  "long" -> "long int.
36243         (main): Likewise.
36244         Don't loop if the iteration overflows time_t.
36245         Allow a negative step in the iteration.
36246
36247 2003-07-06  Karl Berry  <karl@gnu.org>
36248
36249         * config/depcomp: update from automake.
36250         * config/config.sub: update from prep.
36251
36252 2003-07-03  Karl Berry  <karl@gnu.org>
36253
36254         * config/config.guess: update from prep.
36255
36256 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36257
36258         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
36259         xreadlink.c now includes it unconditionally.
36260
36261 2003-07-01  Paul Eggert  <eggert@twinsun.com>
36262
36263         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
36264         having it depend on HAVE_SYS_TYPES_H.
36265
36266 2003-07-01  Bruno Haible  <bruno@clisp.org>
36267
36268         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
36269         <sys/types.h> should be sufficient.
36270         Reported by Paul Eggert.
36271
36272 2003-06-26  Karl Berry  <karl@gnu.org>
36273
36274         * config/depcomp: update from automake.
36275
36276 2003-06-26  Bruno Haible  <bruno@clisp.org>
36277
36278         * modules/human: Depend on module stdbool.
36279
36280 2003-06-25  Bruno Haible  <bruno@clisp.org>
36281
36282         * modules/readlink: New file.
36283         * modules/xreadlink: Depend on it.
36284         * MODULES.html.sh (func_all_modules): Add readlink.
36285
36286 2003-06-25  Bruno Haible  <bruno@clisp.org>
36287
36288         * m4/readlink.m4: New file.
36289
36290 2003-06-25  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/readlink.c: New file.
36293
36294 2003-06-22  Karl Berry  <karl@gnu.org>
36295
36296         * config/srclist.txt: update mkinstalldirs from automake.
36297         * config/mkinstalldirs: update.
36298
36299 2003-06-22  Bruno Haible  <bruno@clisp.org>
36300
36301         Portability to mingw32.
36302         * m4/ssize_t.m4: New file, from GNU gettext.
36303         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
36304         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
36305
36306 2003-06-22  Bruno Haible  <bruno@clisp.org>
36307
36308         * modules/safe-read: Add m4/ssize_t.m4.
36309         * modules/xreadlink: Add m4/ssize_t.m4.
36310
36311 2003-06-20  Bruno Haible  <bruno@clisp.org>
36312
36313         Assume C89, so PARAMS isn't needed.
36314         * lib/unicodeio.h (PARAMS): Remove.
36315         * lib/unicodeio.c: Don't use PARAMS.
36316
36317 2003-06-18  Karl Berry  <karl@gnu.org>
36318
36319         * config/config.{guess,sub}: update from prep.
36320
36321 2003-06-18  Jim Meyering  <jim@meyering.net>
36322
36323         Merge changes from coreutils.
36324         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
36325         Remove explicit declarations of xmalloc and realloc.
36326         Include xalloc.h.
36327         (read_utmp): Remove anachronistic cast of xmalloc.
36328
36329 2003-06-17  Paul Eggert  <eggert@twinsun.com>
36330
36331         Assume C89, so PARAMS isn't needed.
36332         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
36333         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
36334         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
36335         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
36336         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
36337         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
36338         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
36339         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
36340         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
36341         lib/xstrtod.h, lib/xstrtol.h: Likewise.
36342         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
36343         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
36344         no longer needed. Anyway, config.h should always be included before any
36345         other file.
36346
36347 2003-06-11  Simon Josefsson  <jas@extundo.com>
36348
36349         * modules/sysexits: New file.
36350         * MODULES.html.sh (func_all_modules): Add sysexits.
36351
36352 2003-06-11  Simon Josefsson  <jas@extundo.com>
36353
36354         * lib/sysexit_.h: New file.
36355
36356 2003-06-11  Derek Price  <derek@ximbiot.com>
36357
36358         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
36359         necessary.
36360
36361 2003-06-11  Bruno Haible  <bruno@clisp.org>
36362
36363         * m4/sysexits.m4: New file.
36364
36365 2003-06-10  Simon Josefsson  <jas@extundo.com>
36366
36367         * lib/argp.h: New file, from glibc.
36368         * lib/argp-ba.c: New file, from glibc.
36369         * lib/argp-eexst.c: New file, from glibc.
36370         * lib/argp-fmtstream.c: New file, from glibc.
36371         * lib/argp-fmtstream.h: New file, from glibc.
36372         * lib/argp-fs-xinl.c: New file, from glibc.
36373         * lib/argp-help.c: New file, from glibc.
36374         * lib/argp-namefrob.h: New file, from glibc.
36375         * lib/argp-parse.c: New file, from glibc.
36376         * lib/argp-pv.c: New file, from glibc.
36377         * lib/argp-pvh.c: New file, from glibc.
36378         * lib/argp-xinl.c: New file, from glibc.
36379
36380 2003-06-10  Simon Josefsson  <jas@extundo.com>
36381
36382         * modules/strchrnul: New file.
36383
36384 2003-06-10  Simon Josefsson  <jas@extundo.com>
36385
36386         * modules/argp: New file.
36387
36388 2003-06-10  Simon Josefsson  <jas@extundo.com>
36389
36390         * m4/strchrnul.m4: New file.
36391
36392 2003-06-10  Simon Josefsson  <jas@extundo.com>
36393
36394         * lib/strchrnul.h: New file.
36395         * lib/strchrnul.c: New file.
36396
36397 2003-06-10  Bruno Haible  <bruno@clisp.org>
36398
36399         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
36400
36401 2003-06-07  Karl Berry  <karl@gnu.org>
36402
36403         * config/config.{guess,sub}: update from prep.
36404
36405 2003-06-07  Jim Meyering  <jim@meyering.net>
36406
36407         * modules/strtod: Use $(...) notation, not @...@ for
36408         AC_REPLACE'd variables.
36409         * modules/localcharset: Likewise.
36410
36411 2003-06-07  Jim Meyering  <jim@meyering.net>
36412
36413         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
36414         in place of my name in the copyright comment.
36415         Remove definition and uses of __P.
36416
36417         From coreutils.
36418         * lib/stat.c: Don't declare xmalloc explicitly.
36419         Instead, include "xalloc.h".
36420         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
36421         xrealloc, and xcalloc return values.
36422         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
36423         Improve comment.
36424         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
36425
36426 2003-06-07  Bruno Haible  <bruno@clisp.org>
36427
36428         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
36429         avoid AC_CONFIG_LINKS.
36430         * modules/fnmatch (Makefile.am): Use explicit creation rule for
36431         fnmatch.h, to avoid AC_CONFIG_LINKS.
36432         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
36433
36434 2003-06-07  Bruno Haible  <bruno@clisp.org>
36435
36436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
36437         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
36438         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36439         directory.
36440         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
36441         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
36442         directory.
36443
36444 2003-06-06  Jim Meyering  <jim@meyering.net>
36445
36446         Merge from coreutils.
36447         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
36448         Consolidate declarations and initializations of *_base* locals.
36449
36450         Merge from coreutils.
36451         This avoids a core dump on systems without GNU putenv,
36452         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
36453         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
36454         (unsetenv): New static function, from GNU libc.
36455         (rpl_putenv): Use it.
36456
36457         * lib/modechange.c: Remove trailing blanks.
36458
36459         Merge from coreutils.
36460         * lib/fsusage.c: Remove declaration of statfs.
36461         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
36462
36463         * lib/posixtm.c: Include <stdbool.h> unconditionally.
36464
36465 2003-06-06  Jim Meyering  <jim@meyering.net>
36466
36467         * lib/stdbool_.h: Renamed from stdbool.h.in.
36468
36469 2003-06-06  Jim Meyering  <jim@meyering.net>
36470             Bruno Haible  <bruno@clisp.org>
36471
36472         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
36473         Adjust Makefile.am snippet not to redirect directly to target.
36474         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
36475
36476 2003-06-05  Paul Eggert  <eggert@twinsun.com>
36477
36478         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
36479         mismatch, look in future quarters as well as past.  This fixes a
36480         bug when processing fall-backwards gaps immediately after a long
36481         period of daylight-saving time.
36482
36483         * lib/mktime.c: Assume freestanding C89 or better.
36484         (HAVE_LIMITS_H): Remove.  Assume it's 1.
36485         (__P): Remove; not used.
36486         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
36487         (mktime, not_equal_tm, print_tm, check_result,
36488         main): Use prototypes.  Use const * where appropriate.
36489         (main): Fix typo in testing code that uncovered by above changes.
36490         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
36491
36492 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36493
36494         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
36495         locale.h, localeconv.  This merges changes from coreutils.
36496
36497         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
36498         It can be removed after the next Autoconf is released.
36499         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
36500         needed.
36501
36502 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36503
36504         * lib/mktime.c: Fix Debian bug 177940
36505         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
36506         (localtime_offset): Now long int, not time_t, because we want it
36507         to be guaranteed to be signed.  All uses changed.
36508         (__mktime_internal): If overflow would occur when adding offset,
36509         don't add it.
36510
36511         Merge 'human' changes from coreutils.  Rewrite to support
36512         locale-specific notations like thousands separators.
36513         * lib/human.c: Simplify authorship notice.
36514         Include human.h immediately after config.h.
36515         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
36516         <limits.h>: Do not include, since human.h does.
36517         (SIZE_MAX, UINTMAX_MAX): New macros.
36518         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
36519         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
36520         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
36521         (power_letter): Renamed from suffixes.
36522         (generate_suffix_backwards): Remove.
36523         (adjust_value): Now takes int style (because of human.h changes)
36524         and long double value (for greater precision on some platforms).
36525         (group_number): New function.
36526         (human_readable): Use it.  Use integer options, not enum.
36527         Put the options before the sizes in the arg list.
36528         Support all the new options.
36529         The old human_readable function has been removed;
36530         use inttostr.h instead.
36531         (human_readable, default_block_size, humblock):
36532         Use uintmax_t, not int, for block sizes.
36533         (human_readable_inexact, block_size_types): Remove.
36534         (block_size_opts): New constant.
36535         (human_options): Renamed from human_block_size, with new signature
36536         that allows block sizes up to UINTMAX_MAX.  All callers changed.
36537         * lib/human.h: Add copyright and authorship notice.
36538         Include <limits.h> and <stdbool.h> unconditionally.
36539         (PARAMS): Remove.  All uses removed.
36540         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
36541         (enum human_inexact_style): Remove tag; now a nameless enum.
36542         (human_floor, human_ceiling, human_round_to_even): Now have
36543         values 2, 0, 1 rather than -1, 1, 0.
36544         (human_group_digits, human_suppress_point_zero, human_autoscale,
36545         human_base_1024, human_SI, human_B): New constants.
36546         (human_readable_inexact, human_block_size): Remove.
36547         (human_readable): Size args are now uintmax_t, not int.
36548         (human_options): New decl.
36549
36550         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
36551         unnecessary now that we assume C89 or better.  This change
36552         imported from coreutils.
36553
36554         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36555         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
36556         in the 2003-05-30 sync from glibc.
36557
36558         .h files should stand alone, but we shouldn't include <sys/types.h>
36559         if we can get away with just <stddef.h>.
36560
36561         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
36562         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
36563         rather than <sys/types.h>, as we merely need size_t.
36564         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
36565         to get size_t.
36566         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
36567         Include <stdio.h>, to get FILE.
36568         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
36569         memcasecmp.h has included <stddef.h> and all we need is size_t.
36570         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
36571         our interface, instead of including <sys/types.h>
36572
36573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
36574
36575         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
36576         now, as glibc mktime is buggy on non-glibc systems.
36577
36578 2003-06-03  Karl Berry  <karl@gnu.org>
36579
36580         * config/config.sub: update from prep.
36581
36582 2003-06-02  Paul Eggert  <eggert@twinsun.com>
36583
36584         [from coreutils]
36585         Fix some minor time-related bugs with POSIX time arguments.
36586         Some valid time stamps were being rejected (notably -1, and
36587         time stamps before 1900 on 64-bit hosts).  And some invalid
36588         time stamps were being accepted, e.g. September 31.
36589
36590         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
36591         that we can return (time_t) -1 successfully.
36592         * lib/posixtm.c: Likewise.
36593         [HAVE_STDBOOL_H]: Include <stdbool.h>.
36594         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
36595         (t): Remove static var.
36596         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
36597         of static var.  All uses changed.
36598         (year): Do not reject years before 1900; they can occur with
36599         64-bit time_t.
36600         (posix_time_parse): Do not check for out-of-range components;
36601         that is now the caller's responsibility, since our checks were
36602         only approximations.
36603         (posixtime): Use mktime to check for out-of-range components,
36604         since it knows them exactly.
36605         If mktime returns (time_t) -1, check whether an error actually occurred
36606         by invoking localtime on -1.
36607         (main) [TEST_POSIXTIME]: Check for input data errors, and report
36608         posixtime failures better.
36609         Improve the test data (in comments only).
36610
36611 2003-06-02  Karl Berry  <karl@gnu.org>
36612
36613         * config/mkinstalldirs (version): new variable.
36614         (--version): new option.
36615         (usage): improve message.
36616
36617 2003-05-30  Karl Berry  <karl@gnu.org>
36618
36619         * lib/mktime.c: update from libc.
36620
36621 2003-05-30  Bruno Haible  <bruno@clisp.org>
36622
36623         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
36624         * config/config.rpath: Upgrade to gettext-0.12.1.
36625
36626 2003-05-30  Bruno Haible  <bruno@clisp.org>
36627
36628         * m4/gettext.m4: Upgrade to gettext-0.12.1.
36629         * m4/nls.m4: New file, from gettext-0.12.1.
36630         * m4/po.m4: New file, from gettext-0.12.1.
36631         * m4/progtest.m4: Upgrade to gettext-0.12.1.
36632
36633 2003-05-30  Bruno Haible  <bruno@clisp.org>
36634
36635         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
36636         * lib/localcharset.h: Likewise.
36637         * lib/localcharset.c: Likewise.
36638
36639 2003-05-29  Karl Berry  <karl@gnu.org>
36640
36641         * config/config.rpath: update from gettext.
36642
36643 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36644
36645         Assume the headers required for C89 freestanding compilers.
36646         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
36647         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
36648         * m4/human.m4 (gl_HUMAN): Likewise.
36649         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
36650         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
36651         * m4/userspec.m4 (gl_USERSPEC): Likewise.
36652         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
36653         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36654         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
36655
36656 2003-05-28  Paul Eggert  <eggert@twinsun.com>
36657
36658         Assume the headers required for C89 freestanding compilers.
36659         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
36660         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
36661         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
36662         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
36663         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
36664         define, since <limits.h> is guaranteed to do that.
36665         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
36666         * lib/exclude.c: Include <stdbool.h> unconditionally.
36667         * lib/tempname.c: Include <stddef.h> unconditionally.
36668         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
36669         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
36670         <stddef.h> does that.
36671         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
36672         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
36673         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
36674         needed.
36675         * lib/xstrtol.c: Likewise.
36676         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
36677         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
36678
36679         * lib/addext.c (addext): Use assignment rather than cast, to avoid
36680         warnings on some platforms.
36681
36682         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
36683         arbitrarily.
36684
36685 2003-05-26  Jim Meyering  <jim@meyering.net>
36686
36687         Merge in a change from coreutils:
36688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
36689         that is guaranteed to be `no'.  Use `no_such_member' to indicate
36690         that condition, rather than `-1' which is slightly misleading.
36691         Change the name of the cache variable to have the gl_ prefix.
36692         Prompted by a patch from Richard Dawe for DJGPP.
36693
36694 2003-05-24  Karl Berry  <karl@gnu.org>
36695
36696         * config/config.guess: update from prep.
36697
36698 2003-05-22  Karl Berry  <karl@gnu.org>
36699
36700         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
36701
36702 2003-05-20  Karl Berry  <karl@gnu.org>
36703
36704         * config/config.guess: update from prep.
36705
36706 2003-05-18  Karl Berry  <karl@gnu.org>
36707
36708         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
36709         might actually be set by the user.
36710
36711         * config/depcomp, install-sh, mdate-sh: update from automake.
36712
36713 2003-05-17  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
36716         invalid expansion for AC_EGREP_CPP.
36717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
36718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36719         Suggested by Akim Demaille <akim@epita.fr> in
36720         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
36721
36722 2003-05-12  Jim Meyering  <jim@meyering.net>
36723
36724         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
36725         the space-padded-by-default conversion specifiers, %e, %k, %l.
36726
36727 2003-05-12  Bruno Haible  <bruno@clisp.org>
36728
36729         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
36730         the string is longer than 4 KB.
36731
36732 2003-05-11  Karl Berry  <karl@gnu.org>
36733
36734         * config/config.{guess,sub}: update from prep.
36735
36736 2003-05-09  Bruno Haible  <bruno@clisp.org>
36737
36738         * modules/error: Add m4/strerror_r.m4 to file list.
36739
36740 2003-05-03  Bruno Haible  <bruno@clisp.org>
36741
36742         Upgrade to Unicode-4.0.
36743         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
36744         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
36745         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
36746         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
36747         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
36748         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
36749         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
36750         Change width of U+E0100..U+E01EF from 1 to 0.
36751
36752 2003-04-25  Jim Meyering  <jim@meyering.net>
36753
36754         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
36755         of type size_t, not int.
36756
36757 2003-04-25  Bruno Haible  <bruno@clisp.org>
36758
36759         * lib/copy-file.c: Include <stddef.h>, for size_t.
36760
36761 2003-04-21  Paul Eggert  <eggert@twinsun.com>
36762
36763         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
36764         code which expansion is under static control.  Patch imported from
36765         Akim Demaille's patch to Bison; see
36766         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
36767
36768 2003-04-14  Bruno Haible  <bruno@clisp.org>
36769
36770         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
36771
36772 2003-04-11  Jim Meyering  <jim@meyering.net>
36773
36774         Merge changes from Coreutils.
36775
36776         2003-03-22  Jim Meyering  <jim@meyering.net>
36777
36778         * lib/strftime.c (widen): Cast alloca return value to proper type.
36779
36780         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
36781
36782         From GNU libc.
36783         * lib/strftime.c (my_strftime): Handle very large width
36784         specifications for numeric values correctly.  Improve checks for
36785         overflow.
36786
36787         2003-01-19  Jim Meyering  <jim@meyering.net>
36788
36789         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
36790         definitions.
36791         (nl_get_alt_digit) [! defined my_strftime]: Define.
36792         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
36793         _nl_get_alt_digit and _nl_get_walt_digit.
36794
36795         * lib/strftime.c (my_strftime): Merge in locale-related changes from
36796         libc. These changes have no effect outside of _LIBC.
36797
36798 2003-04-10  Bruno Haible  <bruno@clisp.org>
36799
36800         * modules/findprog: New file.
36801         * MODULES.html.sh (func_all_modules): Add it.
36802
36803 2003-04-10  Bruno Haible  <bruno@clisp.org>
36804
36805         * m4/findprog.m4: New file.
36806         * m4/eaccess.m4: New file.
36807
36808 2003-04-10  Bruno Haible  <bruno@clisp.org>
36809
36810         * lib/findprog.h: New file, from GNU gettext.
36811         * lib/findprog.c: New file, from GNU gettext.
36812
36813 2003-04-05  Jim Meyering  <jim@meyering.net>
36814
36815         Merge changes from Coreutils.
36816
36817         * lib/exclude.h (PARAMS): Remove definition and uses.
36818         * lib/exclude.c: Remove uses of `PARAMS'.
36819
36820         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
36821         Add test-cases for DOS filenames. Declare program_name.
36822         (main): Set up program_name.  Patch by Rich Dawe.
36823
36824         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
36825         error from mntctl.
36826         Use mntctl's return value to drive the entry-processing loop, since
36827         we can't rely on the value of the vmt_length member in the last
36828         entry.  On some systems doing so could result in exhausting
36829         virtual memory.  Based in part on a patch from Mike Jetzer.
36830
36831 2003-04-04  Bruno Haible  <bruno@clisp.org>
36832
36833         * modules/linebreak: New file.
36834         * MODULES.html.sh (func_all_modules): Add it.
36835
36836 2003-04-04  Bruno Haible  <bruno@clisp.org>
36837
36838         * m4/linebreak.m4: New file.
36839
36840 2003-04-04  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/linebreak.h: New file, from GNU gettext.
36843         * lib/linebreak.c: New file, from GNU gettext with slight
36844         modifications.
36845         * lib/lbrkprop.h: New file, from GNU gettext.
36846
36847 2003-04-03  Bruno Haible  <bruno@clisp.org>
36848
36849         * modules/utf8-ucs4: New file.
36850         * modules/utf16-ucs4: New file.
36851         * modules/ucs4-utf8: New file.
36852         * modules/ucs4-utf16: New file.
36853         * MODULES.html.sh (func_all_modules): Add them.
36854
36855 2003-04-03  Bruno Haible  <bruno@clisp.org>
36856
36857         * m4/utf-ucs4.m4: New file.
36858         * m4/ucs4-utf.m4: New file.
36859
36860 2003-04-03  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/utf8-ucs4.h: New file, from GNU gettext.
36863         * lib/utf16-ucs4.h: New file, from GNU gettext.
36864         * lib/ucs4-utf8.h: New file, from GNU gettext.
36865         * lib/ucs4-utf16.h: New file, from GNU gettext.
36866
36867 2003-04-02  Bruno Haible  <bruno@clisp.org>
36868
36869         * modules/binary-io: New file.
36870         * MODULES.html.sh (func_all_modules): Add it.
36871
36872 2003-04-02  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/binary-io.h: New file, from GNU gettext.
36875
36876 2003-04-01  Bruno Haible  <bruno@clisp.org>
36877
36878         * modules/pathname: New file.
36879         * MODULES.html.sh (func_all_modules): Add it.
36880
36881 2003-04-01  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/pathname.h: New file, from GNU gettext.
36884         * lib/concatpath.c: New file, from GNU gettext.
36885
36886 2003-03-30  Bruno Haible  <bruno@clisp.org>
36887
36888         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
36889
36890 2003-03-30  Bruno Haible  <bruno@clisp.org>
36891
36892         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
36893         function chown() doesn't exist.
36894
36895 2003-03-28  Bruno Haible  <bruno@clisp.org>
36896
36897         * modules/copy-file: New file.
36898         * MODULES.html.sh (func_all_modules): Add it.
36899
36900 2003-03-28  Bruno Haible  <bruno@clisp.org>
36901
36902         * m4/copy-file.m4: New file.
36903
36904 2003-03-28  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/copy-file.h: New file, from GNU gettext.
36907         * lib/copy-file.c: New file, from GNU gettext.
36908
36909 2003-03-18  Jim Meyering  <jim@meyering.net>
36910
36911         * lib/quote.c (quote_n): Fix typo in comment.
36912
36913 2003-03-18  Bruno Haible  <bruno@clisp.org>
36914
36915         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
36916         checking.
36917         * m4/onceonly_2_57.m4: Likewise.
36918
36919 2003-03-17  Bruno Haible  <bruno@clisp.org>
36920
36921         * m4/onceonly.m4: Require autoconf 2.54 or newer.
36922         (m4_quote): Remove macro.
36923         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
36924
36925 2003-03-14  Jim Meyering  <jim@meyering.net>
36926
36927         Merge changes from Coreutils.
36928         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
36929         to be const, in order to avoid warnings.
36930         (obstack_room): Likewise.
36931         (obstack_empty_p): Likewise.
36932
36933 2003-03-14  Bruno Haible  <bruno@clisp.org>
36934
36935         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
36936         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
36937
36938 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36939
36940         Merge changes from Bison.
36941         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
36942         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
36943         when compiling Bison 1.875's `bitset bset = obstack_alloc
36944         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
36945         * lib/hash.c: Include <stdbool.h> unconditionally.
36946
36947 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36948
36949         * m4/onceonly.m4 (m4_quote): New macro.
36950         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
36951         Quote AC_FOREACH variable-expansions properly.
36952
36953 2003-03-13  Paul Eggert  <eggert@twinsun.com>
36954
36955         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
36956
36957 2003-03-09  Paul Eggert  <eggert@twinsun.com>
36958
36959         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
36960         Reported by Bruce Becker; see:
36961         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
36962
36963 2003-03-03  Paul Eggert  <eggert@twinsun.com>
36964             Bruno Haible  <bruno@clisp.org>
36965
36966         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
36967         Reported by John Hughes, see
36968         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
36969
36970 2003-02-20  Bruno Haible  <bruno@clisp.org>
36971
36972         * MODULES.html.sh (func_all_modules): Add poll.
36973
36974 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36975
36976         * modules/poll: New file.
36977
36978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36979
36980         * lib/poll_.h: New file.
36981         * lib/poll.c: New file.
36982
36983 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
36984
36985         * m4/poll.m4: New file.
36986
36987 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36988
36989         * modules/mathl: New file.
36990
36991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
36992
36993         * lib/mathl.h: New file.
36994         * lib/acosl.c: New file.
36995         * lib/asinl.c: New file.
36996         * lib/atanl.c: New file.
36997         * lib/ceill.c: New file.
36998         * lib/cosl.c: New file.
36999         * lib/expl.c: New file.
37000         * lib/floorl.c: New file.
37001         * lib/frexpl.c: New file.
37002         * lib/ldexpl.c: New file.
37003         * lib/logl.c: New file.
37004         * lib/sincosl.c: New file.
37005         * lib/sinl.c: New file.
37006         * lib/sqrtl.c: New file.
37007         * lib/tanl.c: New file.
37008         * lib/trigl.c: New file.
37009         * lib/trigl.h: New file.
37010
37011 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
37012
37013         * m4/mathl.m4: New file.
37014
37015 2003-02-18  Bruno Haible  <bruno@clisp.org>
37016
37017         * MODULES.html.sh (func_all_modules): Add mathl.
37018
37019 2003-02-17  Bruno Haible  <bruno@clisp.org>
37020
37021         * modules/mkdtemp: New module.
37022         * MODULES.html.sh (func_all_modules): Add it.
37023
37024 2003-02-17  Bruno Haible  <bruno@clisp.org>
37025
37026         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
37027
37028 2003-02-17  Bruno Haible  <bruno@clisp.org>
37029
37030         * lib/mkdtemp.h: New file, from GNU gettext.
37031         * lib/mkdtemp.c: New file, from GNU gettext.
37032
37033 2003-02-02  Jim Meyering  <jim@meyering.net>
37034
37035         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
37036         e.g. glibc-2.2.93.
37037
37038 2003-01-31  Bruno Haible  <bruno@clisp.org>
37039
37040         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
37041         'rpl_rename'.
37042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
37043         'rpl_strnlen'.
37044         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
37045         'rpl_strtod'.
37046         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
37047         'rpl_utime'.
37048
37049 2003-01-31  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/rename.c: #undef rename before defining rpl_rename.
37052         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
37053
37054 2003-01-30  Bruno Haible  <bruno@clisp.org>
37055
37056         * modules/vasnprintf, modules/vasprintf: New modules.
37057         * MODULES.html.sh (func_all_modules): Add them.
37058
37059 2003-01-30  Bruno Haible  <bruno@clisp.org>
37060
37061         * m4/signed.m4: New file, from GNU gettext.
37062         * m4/longdouble.m4: New file, from GNU gettext.
37063         * m4/wchar_t.m4: New file, from GNU gettext.
37064         * m4/wint_t.m4: New file, from GNU gettext.
37065         * m4/vasnprintf.m4: New file.
37066         * m4/vasprintf.m4: New file.
37067
37068 2003-01-30  Bruno Haible  <bruno@clisp.org>
37069
37070         * lib/printf-args.h: New file, from GNU gettext.
37071         * lib/printf-args.c: New file, from GNU gettext.
37072         * lib/printf-parse.h: New file, from GNU gettext.
37073         * lib/printf-parse.c: New file, from GNU gettext.
37074         * lib/vasnprintf.h: New file, from GNU gettext.
37075         * lib/vasnprintf.c: New file, from GNU gettext.
37076         * lib/asnprintf.c: New file, from GNU gettext.
37077         * lib/vasprintf.h: New file, from GNU gettext with modifications.
37078         * lib/vasprintf.c: New file, from GNU gettext.
37079         * lib/asprintf.c: New file, from GNU gettext.
37080
37081 2003-01-29  Bruno Haible  <bruno@clisp.org>
37082
37083         * modules/stpncpy: New module.
37084         * MODULES.html.sh (func_all_modules): Add it.
37085
37086 2003-01-29  Bruno Haible  <bruno@clisp.org>
37087
37088         * m4/stpncpy.m4: New file.
37089
37090 2003-01-29  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/stpncpy.h: New file, from GNU gettext with modifications.
37093         * lib/stpncpy.c: New file, from GNU gettext with modifications.
37094
37095 2003-01-28  Bruno Haible  <bruno@clisp.org>
37096
37097         * modules/c-ctype: New module.
37098         * MODULES.html.sh (func_all_modules): Add it.
37099
37100 2003-01-28  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
37103         Paul Eggert.
37104         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
37105         Paul Eggert.
37106
37107 2003-01-27  Bruno Haible  <bruno@clisp.org>
37108
37109         * modules/xsetenv: New module.
37110         * MODULES.html.sh (func_all_modules): Add it.
37111
37112 2003-01-27  Bruno Haible  <bruno@clisp.org>
37113
37114         * lib/xsetenv.h: New file, from GNU gettext.
37115         * lib/xsetenv.c: New file, from GNU gettext.
37116
37117 2003-01-23  Jim Meyering  <jim@meyering.net>
37118
37119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
37120         from working on systems without dirfd (at least Irix and OSF1/Tru64).
37121
37122 2003-01-23  Bruno Haible  <bruno@clisp.org>
37123
37124         * modules/minmax: New module.
37125         * MODULES.html.sh (func_all_modules): Add it.
37126
37127 2003-01-23  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
37130         Eggert.
37131
37132 2003-01-22  Bruno Haible  <bruno@clisp.org>
37133
37134         * modules/exit: New module.
37135         * MODULES.html.sh (func_all_modules): Add it.
37136
37137 2003-01-22  Bruno Haible  <bruno@clisp.org>
37138
37139         * lib/exit.h: New file, from GNU gettext.
37140
37141 2003-01-19  Bruno Haible  <bruno@clisp.org>
37142
37143         * gnulib-tool: Recognize option --extract-maintainer.
37144         (func_get_maintainer): New function.
37145         * modules/*: Add Maintainer entry.
37146
37147 2003-01-16  Jim Meyering  <jim@meyering.net>
37148
37149         * m4/regex.m4: The `regex' struct is both input and output.
37150         Initialize it before each use.  Patch by Tim Waugh.
37151
37152 2003-01-16  Bruno Haible  <bruno@clisp.org>
37153
37154         * MODULES.html.sh: Add a table of contents. Add the module name as
37155         leftmost column. Add hyperlinks.
37156
37157 2003-01-15  Bruno Haible  <bruno@clisp.org>
37158
37159         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
37160
37161 2003-01-15  Bruno Haible  <bruno@clisp.org>
37162
37163         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
37164         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
37165         suffix.
37166
37167 2003-01-15  Bruno Haible  <bruno@clisp.org>
37168
37169         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
37170
37171 2003-01-15  Bruno Haible  <bruno@clisp.org>
37172
37173         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
37174         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
37175
37176 2003-01-14  Jim Meyering  <jim@meyering.net>
37177
37178         * lib/same.c (same_name): Tweak a comment.
37179
37180 2003-01-14  Bruno Haible  <bruno@clisp.org>
37181
37182         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
37183         when a string comparison is sufficient.
37184
37185 2003-01-14  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
37188         'unsigned int'.
37189
37190 2003-01-14  Bruno Haible  <bruno@clisp.org>
37191
37192         * lib/hash-pjw.c: Add comment about low quality of this function.
37193
37194 2003-01-13  Bruno Haible  <bruno@clisp.org>
37195
37196         * modules/stpcpy: Distribute lib/stpcpy.h.
37197         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
37198
37199 2003-01-13  Bruno Haible  <bruno@clisp.org>
37200
37201         * modules/*: Add a description.
37202         * modules/strpbrk: Fix Makefile.am snippet.
37203         * modules/strtoimax: Fix dependencies.
37204         * modules/strtoumax: Likewise.
37205
37206 2003-01-13  Bruno Haible  <bruno@clisp.org>
37207
37208         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
37209         * modules/alloca (Makefile.am): All object files depend on alloca.h.
37210         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
37211
37212 2003-01-13  Bruno Haible  <bruno@clisp.org>
37213
37214         * gnulib-tool (func_create_testdir): Store config/* files in the main
37215         directory.
37216         * config.rpath: Move to ...
37217         * config/config.rpath: ... here.
37218         * modules/gettext: Contains config/config.rpath, not config.rpath.
37219         * modules/iconv: Likewise.
37220
37221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37222
37223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37224         to avoid collisions with libcurses and libreadline.
37225
37226         * m4/getstr.m4: Remove.
37227         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
37228
37229 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37230
37231         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37232         to avoid collisions with libcurses and libreadline.
37233
37234         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
37235         * lib/getstr.h, getstr.c: Remove.
37236         * lib/getline.c: Include "getline.h", to check interface.
37237         Move body of old getstr.c here: this defines MIN_CHUNK and
37238         declares getdelim2, which is renamed from getstr.
37239         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
37240
37241         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
37242         All uses changed.
37243         * lib/linebuffer.h: Likewise.
37244         (readline): Remove backward-compatibility macro.
37245
37246 2003-01-12  Paul Eggert  <eggert@twinsun.com>
37247
37248         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
37249         to avoid collisions with libcurses and libreadline.
37250         * getstr: Remove.
37251         * MODULES.html.sh: Remove getstr.
37252         * modules/getline: Depend on unlocked-io, not getstr.
37253
37254 2003-01-12  Jim Meyering  <jim@meyering.net>
37255
37256         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
37257
37258 2003-01-10  Bruno Haible  <bruno@clisp.org>
37259
37260         * modules/alloca: Change Makefile.am requirements. Simplify Include
37261         requirements. Add lib/alloca_.h to file list.
37262
37263 2003-01-10  Bruno Haible  <bruno@clisp.org>
37264
37265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
37266
37267 2003-01-10  Bruno Haible  <bruno@clisp.org>
37268
37269         * lib/alloca_.h: New file.
37270         * lib/getdate.y: Unconditionally include alloca.h.
37271         * lib/makepath.c: Likewise.
37272         * lib/setenv.c: Likewise.
37273         * lib/userspec.c: Likewise.
37274
37275 2003-01-09  Karl Berry  <karl@gnu.org>
37276
37277         * MODULES.html.sh: include `dirname $0` in PATH, to find
37278         gnulib-tool.
37279
37280 2003-01-09  Bruno Haible  <bruno@clisp.org>
37281
37282         * modules/stdbool: Change configure.ac, Makefile.am requirements.
37283         Simplify Include requirements. Add lib/stdbool.h.in to file list.
37284
37285 2003-01-09  Bruno Haible  <bruno@clisp.org>
37286
37287         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
37288
37289 2003-01-09  Bruno Haible  <bruno@clisp.org>
37290
37291         * lib/stdbool.h.in: New file.
37292
37293 2003-01-09  Bruno Haible  <bruno@clisp.org>
37294
37295         * gnulib-tool (func_all_modules): Ignore files ending in ~.
37296         * MODULES.html.sh: Likewise.
37297
37298 2003-01-08  Jim Meyering  <jim@meyering.net>
37299
37300         * lib/full-write.c: Undefine and define-away `const' after inclusion
37301         of errno.h, not before.  Suggestion from Bruno Haible.
37302
37303 2003-01-08  Bruno Haible  <bruno@clisp.org>
37304
37305         * modules/full-read: Depend on full-write.
37306
37307 2003-01-08  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/safe-read.c: Include specification header first, to ensure its
37310         selfcontainedness.
37311         * lib/full-write.c: Likewise.
37312
37313 2003-01-07  Jim Meyering  <jim@meyering.net>
37314
37315         * lib/full-write.c: Rework so that it may serve to define full_read,
37316         too.
37317         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
37318
37319 2003-01-07  Bruno Haible  <bruno@clisp.org>
37320
37321         * lib/strtoimax.c: Include <stdint.h> as an alternative to
37322         <inttypes.h>.
37323         * lib/xstrtol.h: Likewise.
37324         * lib/xstrtoimax.c: Likewise.
37325         * lib/xstrtoumax.c: Likewise.
37326         * lib/human.h: Likewise.
37327
37328         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
37329         on systems that have <inttypes.h> but not <stdint.h>.
37330
37331 2003-01-07  Bruno Haible  <bruno@clisp.org>
37332
37333         * MODULES.html.sh: Add copyright notice.
37334         (missed_files): Omit CVS directory entries.
37335         (func_module): Make it work with sed-3.02.
37336         * MODULES.txt: Remove file.
37337
37338 2003-01-06  Jim Meyering  <jim@meyering.net>
37339
37340         * lib/version-etc.c: Update year in translatable copyright string.
37341
37342 2003-01-03  Karl Berry  <karl@gnu.org>
37343
37344         * config/config.{guess,sub}: update from prep.
37345
37346 2003-01-02  Karl Berry  <karl@gnu.org>
37347
37348         * doc/COPYING.DOC: belatedly updated to 1.2.
37349
37350 2003-01-01  Karl Berry  <karl@gnu.org>
37351
37352         * gnulib-tool (func_verify_module): report module name $module in
37353         error message, not $1.
37354         * gnulib-tool (create-testdir): don't complain if destdir couldn't
37355         be created, only if it doesn't exist.
37356         * gnulib-tool (last_checkin_date): don't expand the $Date here.
37357
37358 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37359
37360         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
37361
37362 2002-12-31  Paul Eggert  <eggert@twinsun.com>
37363
37364         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
37365         memcmp if strcoll doesn't work.
37366
37367 2002-12-31  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/utime.c (utime_null): No need to call ftruncate if the file was
37370         nonempty.
37371
37372 2002-12-31  Bruno Haible  <bruno@clisp.org>
37373
37374         * lib/memcoll.c (STRCOLL): New macro.
37375         (memcoll): Use it.
37376
37377 2002-12-31  Bruno Haible  <bruno@clisp.org>
37378
37379         * lib/localcharset.h: New file.
37380         * lib/localcharset.c: Include it.
37381         * lib/unicodeio.c: Likewise.
37382
37383 2002-12-31  Bruno Haible  <bruno@clisp.org>
37384
37385         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
37386         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
37387
37388 2002-12-31  Bruno Haible  <bruno@clisp.org>
37389
37390         * lib/getline.h: Include <stddef.h>, for size_t.
37391
37392         * lib/unicodeio.h: Include <stddef.h>, for size_t.
37393         * lib/unicodeio.c: Don't include <stddef.h>.
37394
37395 2002-12-31  Bruno Haible  <bruno@clisp.org>
37396
37397         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
37398         HAVE_TM_ZONE.
37399
37400 2002-12-24  Karl Berry  <karl@gnu.org>
37401
37402         * config/config.guess: update from prep.
37403
37404 2002-12-24  Bruno Haible  <bruno@clisp.org>
37405
37406         General infrasructure.
37407         * m4/README: Rewritten.
37408         * m4/onceonly.m4: New file.
37409         * m4/onceonly_2_57.m4: New file.
37410
37411         Module atexit.
37412         * m4/atexit.m4: New file.
37413
37414         Module strtod.
37415         * m4/strtod.m4: New file.
37416
37417         Module strtol.
37418         * m4/strtol.m4: New file.
37419
37420         Module strtoul.
37421         * m4/strtoul.m4: New file.
37422
37423         Module memchr.
37424         * m4/memchr.m4: New file.
37425
37426         Module memcmp.
37427         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
37428         (jm_FUNC_MEMCMP): Invoke it.
37429
37430         Module memcpy.
37431         * m4/memcpy.m4: New file.
37432
37433         Module memmove.
37434         * m4/memmove.m4: New file.
37435
37436         Module memset.
37437         * m4/memset.m4: New file.
37438
37439         Module strcspn.
37440         * m4/strcspn.m4: New file.
37441
37442         Module strpbrk.
37443         * m4/strpbrk.m4: New file.
37444
37445         Module strstr.
37446         * m4/strstr.m4: New file.
37447
37448         Module strerror.
37449         * m4/strerror.m4: New file.
37450
37451         Module mktime.
37452         * m4/mktime.m4: Renamed from jm-mktime.m4.
37453         (gl_PREREQ_MKTIME): New macro.
37454         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
37455
37456         Module malloc.
37457         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
37458         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
37459         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
37460
37461         Module realloc.
37462         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
37463         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
37464         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
37465
37466         Module strftime.
37467         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
37468         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
37469         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
37470         gl_TM_GMTOFF.
37471         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
37472
37473         Module xalloc.
37474         * m4/xalloc.m4: New file.
37475
37476         Module alloca.
37477         * m4/alloca.m4: New file.
37478
37479         Module putenv.
37480         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
37481         (jm_FUNC_PUTENV): Invoke it.
37482
37483         Module setenv.
37484         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
37485         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
37486         when invoked twice.
37487         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
37488         gt_FUNC_SETENV.
37489
37490         Module memrchr.
37491         * m4/memrchr.m4: New file.
37492
37493         Module stpcpy.
37494         * m4/stpcpy.m4: New file.
37495
37496         Module strcase.
37497         * m4/strcase.m4: New file.
37498
37499         Module strdup.
37500         * m4/strdup.m4: New file.
37501
37502         Module strnlen.
37503         * m4/strnlen.m4: New file.
37504
37505         Module strndup.
37506         * m4/strndup.m4: New file.
37507
37508         Module xstrtod.
37509         * m4/xstrtod.m4: New file.
37510
37511         Module xstrtol.
37512         * m4/xstrtol.m4: New file.
37513
37514         Module getdate.
37515         * m4/getdate.m4: New file.
37516
37517         Module unlocked-io.
37518         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
37519         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
37520         * m4/jm-glibc-io.m4n: Remove file.
37521
37522         Module long-options.
37523         * m4/long-options.m4: New file.
37524
37525         Module md5.
37526         * m4/md5.m4: New file.
37527
37528         Module sha.
37529         * m4/sha.m4: New file.
37530
37531         Module getstr.
37532         * m4/getstr.m4: New file.
37533
37534         Module getline.
37535         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
37536         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
37537         <sys/types.h>, for size_t. Use the function name gnu_getline, not
37538         simply getline. Infoke gl_PREREQ_GETLINE.
37539
37540         Module obstack.
37541         * m4/obstack.m4: New file.
37542
37543         Module hash.
37544         * m4/hash.m4: New file.
37545
37546         Module readtokens.
37547         * m4/readtokens.m4: New file.
37548
37549         Module strverscmp.
37550         * m4/strverscmp.m4: New file.
37551
37552         Module stdbool.
37553         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
37554         OSF/1.
37555
37556         Module strtoll.
37557         * m4/strtoll.m4: New file.
37558
37559         Module strtoull.
37560         * m4/strtoull.m4: New file.
37561
37562         Module strtoimax.
37563         * m4/strtoimax.m4: New file.
37564
37565         Module strtoumax.
37566         * m4/strtoumax.m4: New file.
37567
37568         Module xstrtoimax.
37569         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
37570         jm_AC_PREREQ_XSTRTOIMAX.
37571         Moved the strtol prerequisites to strtol.m4.
37572         Moved the strtoll prerequisites to strtoll.m4.
37573         Moved the strtoimax prerequisites to strtoimax.m4.
37574
37575         Module xstrtoumax.
37576         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
37577         jm_AC_PREREQ_XSTRTOUMAX.
37578         Moved the strtoul prerequisites to strtoul.m4.
37579         Moved the strtoull prerequisites to strtoull.m4.
37580         Moved the strtoumax prerequisites to strtoumax.m4.
37581
37582         Module chown.
37583         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
37584         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
37585
37586         Module dup2.
37587         * m4/dup2.m4: New file.
37588
37589         Module ftruncate.
37590         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
37591         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
37592
37593         Module getgroups.
37594         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
37595         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
37596
37597         Module gettimeofday.
37598         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
37599         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
37600         gl_PREREQ_GETTIMEOFDAY.
37601
37602         Module mkdir.
37603         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
37604         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
37605
37606         Module mkstemp.
37607         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
37608         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
37609         jm_AC_TYPE_UINTMAX_T.
37610         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
37611
37612         Module stat.
37613         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
37614         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
37615
37616         Module lstat.
37617         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
37618         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
37619
37620         Module timespec.
37621         * m4/timespec.m4 (gl_TIMESPEC): New macro.
37622         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
37623         * m4/st_mtim.m4: Indentation.
37624
37625         Module nanosleep.
37626         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
37627         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
37628         gl_PREREQ_NANOSLEEP.
37629
37630         Module regex.
37631         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
37632         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
37633         (gl_REGEX): New macro.
37634
37635         Module rename.
37636         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
37637         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
37638
37639         Module rmdir.
37640         * m4/rmdir.m4: New file.
37641
37642         Module utime.
37643         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
37644         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
37645         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
37646
37647         Module dirname.
37648         * m4/dirname.m4: New file.
37649
37650         Module getopt.
37651         * m4/getopt.m4: New file.
37652
37653         Module unistd-safer.
37654         * m4/unistd-safer.m4: New file.
37655
37656         Module fnmatch.
37657         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
37658         declaration.
37659         (gl_PREREQ_FNMATCH_EXTRA): New macro.
37660         (gl_FUNC_FNMATCH_POSIX): New macro.
37661         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
37662         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
37663         simply fnmatch.
37664
37665         Module exclude.
37666         * m4/exclude.m4: New file.
37667
37668         Module human.
37669         * m4/human.m4: New file.
37670
37671         Module acl.
37672         * m4/acl.m4: Nop.
37673
37674         Module backupfile.
37675         * m4/backupfile.m4: New file.
37676         * m4/d-ino.m4: Indentation.
37677
37678         Module fsusage.
37679         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
37680         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
37681         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
37682
37683         Module dirfd.
37684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
37685         requirements.
37686
37687         Module euidaccess.
37688         * m4/euidaccess.m4: New file.
37689
37690         Module file-type.
37691         * m4/file-type.m4: New file.
37692
37693         Module fileblocks.
37694         * m4/fileblocks.m4: New file.
37695
37696         Module filemode.
37697         * m4/filemode.m4: New file.
37698
37699         Module isdir.
37700         * m4/isdir.m4: New file.
37701
37702         Module lchown.
37703         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
37704         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
37705
37706         Module makepath.
37707         * m4/makepath.m4: New file.
37708
37709         Module modechange.
37710         * m4/modechange.m4: New file.
37711
37712         Module mountlist.
37713         * m4/mountlist.m4: New file.
37714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
37715         Indentation.
37716
37717         Module path-concat.
37718         * m4/path-concat.m4: New file.
37719
37720         Module pathmax.
37721         * m4/pathmax.m4: New file.
37722
37723         Module same.
37724         * m4/same.m4: New file.
37725
37726         Module save-cwd.
37727         * m4/save-cwd.m4: New file.
37728
37729         Module savedir.
37730         * m4/savedir.m4: New file.
37731
37732         Module xgetcwd.
37733         * m4/xgetcwd.m4: New file.
37734         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
37735
37736         Module xreadlink.
37737         * m4/xreadlink.m4: New file.
37738
37739         Module safe-read.
37740         * m4/safe-read.m4: New file.
37741
37742         Module safe-write.
37743         * m4/safe-write.m4: New file.
37744
37745         Module closeout.
37746         * m4/closeout.m4: New file.
37747
37748         Module stdio-safer.
37749         * m4/stdio-safer.m4: New file.
37750
37751         Module getpass.
37752         * m4/getpass.m4: New file.
37753
37754         Module getugroups.
37755         * m4/getugroups.m4: New file.
37756
37757         Module group-member.
37758         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
37759         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
37760
37761         Module idcache.
37762         * m4/idcache.m4: New file.
37763
37764         Module userspec.
37765         * m4/userspec.m4: New file.
37766
37767         Module gettime.
37768         * m4/clock_time.m4: New file.
37769         * m4/gettime.m4: New file.
37770
37771         Module settime.
37772         * m4/settime.m4: New file.
37773
37774         Module posixtm.
37775         * m4/posixtm.m4: New file.
37776
37777         Module gethostname.
37778         * m4/gethostname.m4: New file.
37779
37780         Module canon-host.
37781         * m4/canon-host.m4: New file.
37782
37783         Module gettext.
37784         * m4/codeset.m4: New file, from gettext-0.11.5.
37785         * m4/gettext.m4: New file, from gettext-0.11.5.
37786         * m4/glibc21.m4: New file, from gettext-0.11.5.
37787         * m4/iconv.m4: New file, from gettext-0.11.5.
37788         * m4/intdiv0.m4: New file, from gettext-0.11.5.
37789         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
37790         * m4/inttypes.m4: New file, from gettext-0.11.5.
37791         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
37792         * m4/isc-posix.m4: New file, from gettext-0.11.5.
37793         * m4/lcmessage.m4: New file, from gettext-0.11.5.
37794         * m4/lib-ld.m4: New file, from gettext-0.11.5.
37795         * m4/lib-link.m4: New file, from gettext-0.11.5.
37796         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
37797         * m4/progtest.m4: New file, from gettext-0.11.5.
37798         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
37799         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
37800         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
37801
37802         Module localcharset.
37803         * m4/localcharset.m4: New file.
37804
37805         Module hard-locale.
37806         * m4/hard-locale.m4: New file.
37807
37808         Module mbswidth.
37809         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
37810         onceonly macros.
37811         * m4/mbrtowc.m4: Add comment.
37812
37813         Module memcasecmp.
37814         * m4/memcasecmp.m4: New file.
37815
37816         Module memcoll.
37817         * m4/memcoll.m4: New file.
37818
37819         Module unicodeio.
37820         * m4/unicodeio.m4: New file.
37821
37822         Module rpmatch.
37823         * m4/rpmatch.m4: New file.
37824
37825         Module yesno.
37826         * m4/yesno.m4: New file.
37827
37828         Module exitfail.
37829         * m4/exitfail.m4: New file.
37830
37831         Module c-stack.
37832         * m4/c-stack.m4 (gl_C_STACK): New macro.
37833         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
37834
37835         Module error.
37836         * m4/error.m4 (gl_ERROR): New macro.
37837         (jm_PREREQ_ERROR): Use onceonly macros.
37838
37839         Module fatal.
37840         * m4/fatal.m4: New file.
37841
37842         Module getloadavg.
37843         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
37844         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
37845
37846         Module getpagesize.
37847         * m4/getpagesize.m4: New file.
37848
37849         Module getusershell.
37850         * m4/getusershell.m4: New file.
37851
37852         Module physmem.
37853         * m4/physmem.m4: New file.
37854
37855         Module posixver.
37856         * m4/posixver.m4: New file.
37857
37858         Module quotearg.
37859         * m4/quotearg.m4: New file.
37860
37861         Module quote.
37862         * m4/quote.m4: New file.
37863
37864         Module readutmp.
37865         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
37866
37867         Module sig2str.
37868         * m4/sig2str.m4: New file.
37869
37870         Other.
37871         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
37872         ulonglong.m4.
37873         * m4/intmax_t.m4: New file.
37874         * m4/d-type.m4: Indentation.
37875         * m4/jm-macros.m4: Update.
37876         * m4/prereq.m4 (jm_PREREQ): Update.
37877         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
37878         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
37879         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
37880         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
37881         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
37882         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
37883         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
37884         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
37885         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
37886         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
37887         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
37888         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
37889         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
37890         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
37891         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
37892         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
37893         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
37894         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
37895         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
37896
37897 2002-12-24  Bruno Haible  <bruno@clisp.org>
37898
37899         * MODULES.txt: Update according to m4/ changes.
37900
37901         Module gettext.
37902         * config.rpath: New file, from gettext-0.11.5.
37903
37904         * modules/*: New module descriptions.
37905         * gnulib-tool: New file.
37906         * MODULES.html.sh: New file.
37907
37908 2002-12-21  Karl Berry  <karl@gnu.org>
37909
37910         * doc/fdl.texi: update to version 1.2.
37911
37912 2002-12-19  Karl Berry  <karl@gnu.org>
37913
37914         * config/config.guess: update from prep.
37915
37916 2002-12-18  Bruno Haible  <bruno@clisp.org>
37917
37918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
37919         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
37920
37921 2002-12-17  Bruno Haible  <bruno@clisp.org>
37922
37923         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
37924         stdlib.h, string.h.
37925
37926 2002-12-17  Bruno Haible  <bruno@clisp.org>
37927
37928         * lib/canon-host.c (strdup): Remove unused declaration.
37929
37930         * lib/fsusage.c: Include full_read.h.
37931         (get_fs_usage): Use full_read instead of safe_read.
37932
37933         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
37934
37935 2002-12-12  Karl Berry  <karl@gnu.org>
37936
37937         * config/config.guess: update from prep.
37938
37939 2002-12-11  Bruno Haible  <bruno@clisp.org>
37940
37941         * m4/setenv.m4: New file, from gettext-0.11.5.
37942
37943 2002-12-11  Bruno Haible  <bruno@clisp.org>
37944
37945         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
37946         not unsetenv().
37947         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
37948         modifications:
37949
37950         2002-12-11  Bruno Haible  <bruno@clisp.org>
37951
37952                 * setenv.c (alloca): Fall back to malloc.
37953                 (freea): New macro.
37954                 (setenv): Use freea() to free memory allocated with alloca().
37955
37956         2002-11-13  Bruno Haible  <bruno@clisp.org>
37957
37958                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
37959                 function declarations.
37960                 * unsetenv.c (unsetenv): Likewise.
37961
37962         2002-03-04  Bruno Haible  <bruno@clisp.org>
37963
37964                 Portability to AIX 4.3.3.
37965                 * unsetenv.c: New file, extracted from setenv.c.
37966                 * setenv.c: Move the unsetenv() function to unsetenv.c.
37967
37968         2001-12-20  Bruno Haible  <bruno@clisp.org>
37969
37970                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
37971                 use malloc instead. For SunOS 4.
37972
37973         2001-12-11  Bruno Haible  <bruno@clisp.org>
37974
37975                 * setenv.c: Declare alloca.
37976                 (compar_fn_t): New typedef.
37977                 (KNOWN_VALUE, STORE_VALUE): Use it.
37978
37979         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
37980         setenv.h.
37981
37982 2002-12-10  Paul Eggert  <eggert@twinsun.com>
37983
37984         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
37985         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
37986         Choose values that are less likely to collide with system fnmatch
37987         options.
37988         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
37989         defined (e.g., a pure POSIX system).
37990         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
37991         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
37992
37993 2002-12-06  Paul Eggert  <eggert@twinsun.com>
37994
37995         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
37996         a pain in practice to deal with generated m4 files.  This change
37997         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
37998
37999         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
38000         and jm-glibc-io.m4, as they are no longer a special case.
38001         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
38002         kludge and the auto-generation stuff.  Check only whether the
38003         functions are declared, not whether they exist, since older hosts
38004         that don't declare the functions can't use the optimization anyway.
38005
38006 2002-12-06  Jim Meyering  <jim@meyering.net>
38007
38008         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
38009
38010         Merge in changes from libc's misc/error.c, in preparation
38011         for the merge of gnulib's changes back into libc.
38012
38013         * lib/error.c (_): Define only if not already defined.
38014         Move definition to follow all #include directives.
38015         Include unlocked-io.h only if !_LIBC.
38016         [_LIBC]: Include <libio/libioP.h>.
38017         [USE_IN_LIBIO]: Include <libio/iolibio.h>
38018         (fflush): Tweak definition to use INTUSE.
38019         (putc): Define.
38020
38021 2002-12-05  Paul Eggert  <eggert@twinsun.com>
38022
38023         * lib/alloca.c [defined emacs]: Include "lisp.h".
38024         (xalloc_die) [defined emacs]: New macro.
38025         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
38026         [! defined emacs]: Include <xalloc.h>.
38027         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
38028         (pointer): Typedef to POINTER_TYPE *.
38029         (malloc): Remove decl; we now always use xmalloc.
38030         (alloca): Use old-style definition, since Emacs needs this.
38031         Check for arithmetic overflow when computing combined size.
38032
38033 2002-12-04  Paul Eggert  <eggert@twinsun.com>
38034
38035         Do not generate unlocked-io.h automatically, since it's easier to
38036         maintain it by hand.
38037
38038         * lib/unlocked-io.h: New file, from GNU diffutils,
38039         but with proper copyright notice and attribution.
38040         * lib/gen-uio: Remove.
38041         * lib/Makefile.am: Add copyright notice.
38042         (libfetish_a_SOURCES): Add unlocked-io.h.
38043         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
38044         (DISTCLEANFILES, io_functions): Remove macros.
38045         (EXTRA_DIST): Remove gen_uio.
38046         (unlocked-io.h): Remove rule.
38047
38048 2002-12-04  Jim Meyering  <jim@meyering.net>
38049
38050         Reflect the fact that stat.c and lstat.c are no longer generated.
38051         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
38052         (DISTCLEANFILES): Likewise.
38053         (EXTRA_DIST): Likewise.
38054         (all_local): Don't depend on stat.c or lstat.c.
38055         (stat.c, lstat.c): Remove rules.
38056         (EXTRA_DIST): Remove xstat.in.
38057
38058         * lib/xstat.in: Remove file.  Contents moved into stat.c.
38059         * lib/stat.c: New file.  Contents mostly from xstat.in.
38060         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
38061         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
38062
38063         * lib/safe-read.c: Rework so that it may serve to define safe_write,
38064         too.
38065         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
38066
38067 2002-12-03  Jim Meyering  <jim@meyering.net>
38068
38069         * lib/safe-read.c, safe-write.c: Change variable names and comments,
38070         but not semantics, to minimize the differences between these two files.
38071         (safe_read): Change comment to mention SAFE_READ_ERROR.
38072
38073         * lib/safe-read.c (IS_EINTR): Define.
38074         (safe_read): Use IS_EINTR in place of in-function cpp directives.
38075
38076 2002-12-02  Jim Meyering  <jim@meyering.net>
38077
38078         * lib/safe-read.c (EINTR): Define.
38079         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38080         (INT_MAX): Provide fallback.
38081         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
38082
38083         * lib/safe-read.h (SAFE_READ_ERROR): Define.
38084
38085 2002-12-02  Bruno Haible  <bruno@clisp.org>
38086
38087         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
38088         Define, taken from safe-read.c.
38089         (INT_MAX): Provide fallback.
38090         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
38091         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
38092
38093         * lib/safe-read.c (EINTR): Remove definition.
38094         (safe_read): Don't use EINTR if it is absent.
38095
38096 2002-12-01  Jim Meyering  <jim@meyering.net>
38097
38098         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
38099         zero.
38100         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
38101
38102 2002-11-27  Paul Eggert  <eggert@twinsun.com>
38103
38104         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
38105         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
38106         with `if (! (value < limit)) abort ();', for readability.
38107
38108 2002-11-26  Karl Berry  <karl@gnu.org>
38109
38110         * lib/strdup.c: copy from libc again, with jim's ok.
38111         * lib/.cppi-disable: re-add strdup.c
38112
38113 2002-11-25  Karl Berry  <karl@gnu.org>
38114
38115         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
38116         instead of "strtol.c".
38117
38118 2002-11-25  Karl Berry  <karl@gnu.org>
38119
38120         * config/install-sh: update from automake for variable quoting, $0 in
38121         error msgs, etc.
38122
38123         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
38124         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
38125         entry.
38126
38127 2002-11-25  Jim Meyering  <jim@meyering.net>
38128
38129         * lib/mktime.c: Sync from libc, now that it has the latest fix.
38130
38131 2002-11-24  Karl Berry  <karl@gnu.org>
38132
38133         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
38134         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
38135
38136 2002-11-24  Jim Meyering  <jim@meyering.net>
38137
38138         Update from coreutils:
38139
38140         * lib/mktime.c: Merge in changes from libc.
38141
38142         Avoid a link-time failure on some Linux systems.
38143         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
38144         (otherwise).
38145         (__mon_yday): Declare with the STATIC attribute.
38146         (__mktime_internal): Likewise.
38147         Based on a report from Greg Schafer.
38148
38149 2002-11-23  Jim Meyering  <jim@meyering.net>
38150
38151         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
38152         Use `unsigned', not `int', as type of index.
38153
38154         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
38155
38156         * lib/fsusage.c: Remove unneeded parentheses around operands of
38157         `defined'.
38158
38159 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38160
38161         * lib/quotearg.h: Allow multiple inclusion by surrounding with
38162         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
38163         so that we can be included first.
38164         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
38165         * lib/quotearg.c: Include quotearg.h immediately after config.h.
38166         No need to include stddef.h or sys/types.h any more.
38167         Surround local include files with "", not "<>".
38168         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
38169         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
38170         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
38171         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
38172         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
38173         (ISPRINT): Remove; no longer needed now that we assume C89.
38174
38175         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
38176         Preserve errno.
38177
38178         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
38179         quotearg_char): Use SIZE_MAX rather than
38180         (size_t) -1 when we are talking about "infinity".
38181
38182         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
38183
38184 2002-11-22  Paul Eggert  <eggert@twinsun.com>
38185
38186         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
38187         hint that one should use `if (! x) abort ();' rather than `assert
38188         (x);', and anyway it's one less thing to worry about configuring.
38189         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
38190         hash_rehash, hash_insert): Use abort rather than assert.
38191
38192 2002-11-22  Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/safe-read.h: Assume C89. Add comments.
38195         (safe_read): Change return type to size_t.
38196         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
38197         byte counts > SSIZE_MAX correctly.
38198         * lib/safe-write.h: New file.
38199         * lib/safe-write.c: New file.
38200         * lib/full-read.h: New file.
38201         * lib/full-read.c: New file.
38202         * lib/full-write.h: Assume C89. Add comments.
38203         * lib/full-write.c: Include safe-write.h.
38204         (full_write): Rewritten to use safe_write.
38205         Suggested by Jim Meyering and Paul Eggert.
38206
38207 2002-11-21  Jim Meyering  <jim@meyering.net>
38208
38209         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
38210
38211         Merge in changes from the coreutils.
38212
38213         2002-09-25  Paul Eggert  <eggert@twinsun.com>
38214         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
38215         <stdint.h>.
38216         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
38217         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
38218         int.  Work more efficiently if X is the same width as uintmax_t.
38219         Do not compare X to -1, to avoid bogus compiler warning.
38220         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
38221         Don't assume that f_frsize and f_bsize are the same type.
38222
38223         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
38224         warning on FreeBSD.
38225
38226         * lib/makepath.c (make_path): Restore umask *before* creating the final
38227         component.
38228         (make_path): Minor reformatting.
38229
38230         * lib/xmalloc.c: Adjust to work with new autoconf macros,
38231         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
38232         HAVE_MALLOC/HAVE_REALLOC.
38233
38234         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
38235         dummy ones.  At least on GNU/Linux systems, `auto' means something
38236         else.
38237         From Michael Stone.
38238
38239 2002-11-21  Bruno Haible  <bruno@clisp.org>
38240
38241         Remove case insensitive option matching.
38242         * lib/argmatch.h (argcasematch): Remove declaration.
38243         (ARGCASEMATCH): Remove macro.
38244         (__xargmatch_internal): Remove case_sensitive argument.
38245         (XARGMATCH): Update.
38246         (XARGCASEMATCH): Remove macro.
38247         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
38248         case_sensitive argument.
38249         (argcasematch): Remove function.
38250         (__xargmatch_internal): Remove case_sensitive argument.
38251         (main): Use XARGMATCH instead of XARGCASEMATCH.
38252
38253         * lib/xmalloc.c: Change compile-time error message. Add comment about
38254         required autoconf version.
38255
38256 2002-11-20  Paul Eggert  <eggert@twinsun.com>
38257
38258         Merge argmatch cleanups from Bison.  Assume C89.
38259
38260         * lib/argmatch.c: Include config.h here, not in argmatch.h.
38261         Include stdlib.h, for EXIT_FAILURE.
38262         Always include <string.h>, since we assume C89.
38263         (EXIT_FAILURE): Remove pre-C89 bug workaround.
38264         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
38265         Include <stddef.h> instead, since it's all we need for size_t.
38266         (PARAMS): Remove.  All uses removed.
38267         (ARRAY_CARDINALITY): Do not bother to #undef.
38268         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
38269         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38270         Remove unnecessary parentheses.
38271         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
38272         Insert necessary parentheses.
38273         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
38274         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
38275
38276 2002-11-19  Bruno Haible  <bruno@clisp.org>
38277
38278         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
38279         * lib/mbswidth.h: Include <stddef.h>, for size_t.
38280
38281         * lib/mbswidth.h (PARAMS): Remove macro.
38282         (mbswidth, mbsnwidth): Use ANSI C function declarations.
38283         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
38284
38285         * lib/gcd.h (PARAMS): Remove macro.
38286         (gcd): Use ANSI C function declarations.
38287         * lib/gcd.c (gcd): Likewise.
38288
38289 2002-11-15  Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/strcspn.c: Include <stddef.h>.
38292         (strcspn): Use ANSI C function declaration. Change return type to
38293         size_t. Use NULL.
38294         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
38295         (strpbrk): Use NULL.
38296         * lib/strpbrk.h (PARAMS): Remove macro.
38297         (strpbrk): Use ANSI C function declaration.
38298         * lib/strstr.c: Don't include <sys/types.h>.
38299         * lib/strstr.h (PARAMS): Remove macro.
38300         (strstr): Use ANSI C function declarations.
38301
38302 2002-11-14  Karl Berry  <karl@gnu.org>
38303
38304         * config/mkinstalldirs: `do' on separate line, instead of
38305         `for var; do'.
38306
38307 2002-11-06  Bruno Haible  <bruno@clisp.org>
38308
38309         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
38310         * lib/gcd.c (gcd): Likewise.
38311
38312 2002-11-05  Bruno Haible  <bruno@clisp.org>
38313
38314         * lib/gcd.h: New file, from gettext-0.11.5.
38315         * lib/gcd.c: New file, from gettext-0.11.5.
38316
38317 2002-11-05  Bruno Haible  <bruno@clisp.org>
38318
38319         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38320         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38321         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38322         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
38323
38324         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
38325         <libintl.h>.
38326         * lib/makepath.c: Include gettext.h instead of <locale.h> and
38327         <libintl.h>.
38328
38329         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
38330         * lib/human.c: Include gettext.h instead of <libintl.h>.
38331         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
38332         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
38333         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
38334         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
38335         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
38336         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
38337         (textdomain): Remove definition.
38338         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
38339
38340         * lib/long-options.c: Remove include of <libintl.h> and definition of
38341         _.
38342         * lib/same.c: Remove include of <libintl.h> and definition of _.
38343
38344 2002-11-04  Owen Taylor  <otaylor@redhat.com>
38345
38346         * lib/config.charset: A few additions for Solaris.
38347
38348 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38349
38350         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
38351         * lib/localcharset.c (locale_charset): Declare as extern "C".
38352
38353 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
38354
38355         * lib/config.charset: msdos in uk_UA uses CP1125.
38356
38357 2002-11-04  Bruno Haible  <bruno@clisp.org>
38358
38359         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
38360         * lib/strcase.h: New file, from GNU gettext-0.11.5.
38361         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
38362         * lib/strstr.h: New file, from GNU gettext-0.11.5.
38363         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
38364
38365 2002-11-04  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/localcharset.c (locale_charset): Don't return an empty string.
38368
38369 2002-11-04  Bruno Haible  <bruno@clisp.org>
38370
38371         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
38372         aliases.
38373
38374 2002-11-04  Bruno Haible  <bruno@clisp.org>
38375
38376         * lib/config.charset: Update for newest glibc. Add canonical names
38377         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
38378
38379 2002-11-04  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/config.charset: Add support for NetBSD.
38382
38383 2002-11-04  Bruno Haible  <bruno@clisp.org>
38384
38385         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
38386
38387 2002-11-01  Bruno Haible  <bruno@clisp.org>
38388
38389         * configure.in: Add AC_CONFIG_AUX_DIR call.
38390         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
38391         test/Makefile.
38392         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
38393
38394 2002-09-28  Karl Berry  <karl@gnu.org>
38395
38396         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
38397         installed automake until the next release, since changes have been
38398         made.
38399
38400 2002-09-25  Karl Berry  <karl@gnu.org>
38401
38402         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
38403         * lib/getopt*: copy from libc/posix.
38404         * lib/gettext.h: copy from gettext.
38405         * lib/.cppi-disable: add strdup.c, gettext.h.
38406
38407 2002-09-25  Karl Berry  <karl@gnu.org>
38408
38409         * config/srclist.txt: enable gettext.h check.
38410         * config/config.{guess,sub}: update from prep.
38411         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
38412                 from automake 1.6.3.
38413         See srclist*.
38414
38415 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
38416
38417         * regex.c (PATFETCH): Remove the translating fetch.
38418         (PATFETCH_RAW): Rename to PATFETCH.
38419         (set_image_of_range): New fun.
38420         (SET_RANGE_TABLE_WORK_AREA): Use it.
38421         (regex_compile): Don't translate the pattern chars so eagerly.
38422         Only do it when inserting an `exactn' bytecode or when handling
38423         a char-range.
38424         (mutually_exclusive_p): Avoid empty statement.
38425
38426 2002-07-06  Jim Meyering  <meyering@lucent.com>
38427
38428         * m4/README: Don't mention Makefile.am.in.
38429         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
38430
38431 2002-07-01  Jim Meyering  <meyering@lucent.com>
38432
38433         * lib/c-stack.c: Include sys/time.h.
38434         From Volker Borchert.
38435
38436 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38437
38438         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
38439
38440 2002-06-26  Paul Eggert  <eggert@twinsun.com>
38441
38442         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
38443         New macro.  Use it uniformly instead of
38444         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
38445         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
38446         reported by Vin Shelton.
38447
38448 2002-06-22  Paul Eggert  <eggert@twinsun.com>
38449
38450         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
38451         Do not assume SA_SIGINFO behavior.
38452         Bug reported by Jim Meyering on NetBSD 1.5.2.
38453
38454 2002-06-22  Jim Meyering  <meyering@lucent.com>
38455
38456         * m4/c-stack.m4: New file, from diffutils-2.8.2.
38457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
38458
38459         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
38460         now that configure.ac uses AC_GNU_SOURCE.
38461         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
38462         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
38463
38464         Update to latest tools.  Suggestions from Paul Eggert.
38465         * m4/stdbool.m4: New file, from diffutils-2.8.2.
38466         * m4/gnu-source.m4: Update from diffutils-2.8.2.
38467         * m4/fnmatch.m4: Likewise.
38468         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
38469         to AC_HEADER_STDBOOL
38470
38471 2002-06-22  Jim Meyering  <meyering@lucent.com>
38472
38473         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
38474         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
38475
38476 2002-06-22  Jim Meyering  <meyering@lucent.com>
38477
38478         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
38479
38480         * lib/exitfail.c, exitfail.h: Likewise.
38481         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
38482
38483         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
38484         of fnmatch.h.
38485         (EXTRA_DIST): Add fnmatch_loop.c.
38486         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
38487
38488         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
38489         * lib/fnmatch.c: Update from diffutils-2.8.2.
38490         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
38491         * lib/fnmatch.h: Remove file.
38492
38493 2002-06-21  Jim Meyering  <meyering@lucent.com>
38494
38495         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
38496         * m4/mbrtowc.m4: Likewise.
38497
38498         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
38499         * m4/mbswidth.m4: Reflect name change:
38500         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
38501         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38502
38503         * m4/lib-link.m4: Update from gettext-0.11.2.
38504         * m4/gettext.m4: Likewise.
38505
38506         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
38507         From Alfred M. Szmidt.
38508
38509 2002-06-18  Paul Eggert  <eggert@twinsun.com>
38510
38511         * lib/file-type.h: Report an error if neither S_ISREG nor
38512         S_IFREG is defined, instead of using a test specific to glibc
38513         2.2.  This should be safe, since POSIX requires S_ISREG and
38514         Unix Version 7 had S_IFREG.  We don't need to check for
38515         <sys/types.h> since we don't use any symbols that it defines.
38516
38517 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
38518
38519         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
38520         $@-t, so that each temporary file name is unique and valid in the first
38521         8 characters, for operation under DOS.
38522
38523 2002-06-15  Paul Eggert  <eggert@twinsun.com>
38524
38525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
38526
38527 2002-06-15  Jim Meyering  <meyering@lucent.com>
38528
38529         Work even with DJGPP 2.03, which lacks support for symlinks.
38530         From Richard Dawe.
38531         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
38532         is defined.
38533         * lib/lchown.c (S_ISLNK): Likewise.
38534
38535 2002-06-15  Jim Meyering  <meyering@lucent.com>
38536
38537         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
38538         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
38539         have been included before this file.
38540
38541 2002-06-14  Jim Meyering  <meyering@lucent.com>
38542
38543         * lib/file-type.h: Use the version from diffutils-2.8.2.
38544         * lib/file-type.c: Likewise.
38545
38546 2002-06-07  Jim Meyering  <meyering@lucent.com>
38547
38548         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
38549         They're needed at least for NetBSD 1.5.2.
38550         ($statxfs_includes): Include those same headers.
38551         ($statxfs_includes): Include sys/vfs.h if available.
38552         ($statxfs_includes): Likewise for sys/statvfs.h.
38553         Check for the following members in both structs statfs and statvfs:
38554         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
38555
38556 2002-06-01  Jim Meyering  <meyering@lucent.com>
38557
38558         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
38559         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
38560
38561 2002-05-28  Jim Meyering  <meyering@lucent.com>
38562
38563         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
38564         Reported by Volker Borchert.
38565
38566 2002-05-27  Jim Meyering  <meyering@lucent.com>
38567
38568         Fix a problem seen only on nonconforming systems whereby ls.c's
38569         use of localtime, and then of gettimeofday would cause trouble:
38570         the localtime call used to initialize rpl_gettimeofday's save
38571         mechanism would clobber ls's current local time information so
38572         that in any long listing the first file would always be listed
38573         with date 1970-01-01.  Analysis by Volker Borchert.
38574
38575         * lib/gettimeofday.c (localtime): Undefine.
38576         (rpl_localtime): New function.
38577
38578 2002-05-27  Jim Meyering  <meyering@lucent.com>
38579
38580         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
38581         localtime.
38582
38583         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
38584         use the replacement function; it wouldn't resolve at link time.
38585         Reported by Volker Borchert.
38586
38587 2002-05-22  Jim Meyering  <meyering@lucent.com>
38588
38589         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
38590         file-type.h.
38591         * lib/file-type.h: New file.
38592         * lib/file-type.c (file_type): New file/function.  Extracted from
38593         diffutils.
38594
38595 2002-04-30  Jim Meyering  <meyering@lucent.com>
38596
38597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
38598
38599 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38600
38601         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
38602
38603 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38604
38605         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
38606         Do not check for alloca.h (no longer used) or stdbool.h (was never
38607         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
38608
38609 2002-04-29  Paul Eggert  <eggert@twinsun.com>
38610
38611         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
38612
38613 2002-04-29  Jim Meyering  <meyering@lucent.com>
38614
38615         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
38616         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
38617         Use AC_FUNC_STRNLEN here instead.
38618
38619         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
38620         With autoconf-2.53a, it's part of AC_PROG_CC.
38621
38622 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38623
38624         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
38625         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
38626
38627 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38628
38629         * lib/sig2str.h, lib/sig2str.c: New files.
38630         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
38631
38632 2002-04-28  Paul Eggert  <eggert@twinsun.com>
38633
38634         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
38635         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
38636         of 127, since 64 is the largest conceivable number for ancient
38637         nonstandard hosts.
38638         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
38639
38640 2002-04-28  Jim Meyering  <meyering@lucent.com>
38641
38642         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
38643
38644 2002-04-24  Jim Meyering  <meyering@lucent.com>
38645
38646         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
38647         (jm_PREREQ): Use it.
38648
38649         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
38650         mach/mach.h fcntl.h.
38651         Check for this function: setlocale.
38652
38653 2002-04-24  Jim Meyering  <meyering@lucent.com>
38654
38655         * lib/gettext.h: New file, from Gettext.
38656         * lib/Makefile.am (INCLUDES): Remove -I../intl.
38657         (libfetish_a_SOURCES): Add gettext.h.
38658
38659 2002-04-16  Jim Meyering  <meyering@lucent.com>
38660
38661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
38662         ut_pid, ut_id, ut_exit.
38663
38664 2002-04-16  Jim Meyering  <meyering@lucent.com>
38665
38666         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
38667         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
38668         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
38669
38670 2002-04-12  Jim Meyering  <meyering@lucent.com>
38671
38672         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
38673         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
38674         existence of the getmntinfo function.  Needed for Darwin 5.3.
38675
38676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
38677         This is necessary at least on Darwin 5.3.
38678
38679         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
38680         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
38681         strnlen.o in the library, and that makes some versions of ranlib
38682         object.
38683
38684 2002-04-12  Jim Meyering  <meyering@lucent.com>
38685
38686         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
38687
38688 2002-04-09  Jim Meyering  <meyering@lucent.com>
38689
38690         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
38691         to be more precise.  Rather than saying we're checking whether the
38692         function `works', say what we're testing.
38693         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
38694         Reported by Bruno Haible.
38695
38696 2002-03-10  Jim Meyering  <meyering@lucent.com>
38697
38698         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
38699         Suggestion from Santiago Vila.
38700
38701 2002-03-08  Jim Meyering  <meyering@lucent.com>
38702
38703         * lib/rename.c: Mention that this wrapper is needed also on
38704         mips-dec-ultrix4.4 systems.
38705
38706 2002-03-02  Jim Meyering  <meyering@lucent.com>
38707
38708         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
38709         not HAVE_CLOCK_SETTIME.
38710
38711 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38712
38713         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
38714         Check for clock_settime.
38715
38716 2002-02-27  Paul Eggert  <eggert@twinsun.com>
38717
38718         * lib/nanosleep.h: Rename to....
38719         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
38720
38721         * lib/gettime.c: New file.
38722         * lib/settime.c: New file.
38723         * lib/stime.c: Remove.
38724
38725         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
38726         timespec.h.  Remove nanosleep.h.
38727
38728 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38729
38730         * m4/acl.m4: New file.
38731         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
38732         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
38733
38734 2002-02-25  Paul Eggert  <eggert@twinsun.com>
38735
38736         * lib/acl.c, lib/acl.h: New files.
38737         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
38738
38739 2002-02-24  Jim Meyering  <meyering@lucent.com>
38740
38741         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
38742         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
38743         cause trouble.  Reported by Nelson Beebe.
38744
38745 2002-02-23  Paul Eggert  <eggert@twinsun.com>
38746
38747         * lib/path-concat.c (xpath_concat): Reorder code to pacify
38748         compilers that don't know that xalloc_die never returns.
38749
38750 2002-02-20  Jim Meyering  <meyering@lucent.com>
38751
38752         * lib/getdate.c: Regenerate using bison-1.33.
38753
38754 2002-02-17  Jim Meyering  <meyering@lucent.com>
38755
38756         * config/config.guess (main): Don't use `head -1'; it's no longer
38757         portable. Use `sed 1q' instead.
38758
38759 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
38760
38761         * m4/codeset.m4: Upgrade to gettext-0.11.
38762         * m4/gettext.m4: Upgrade to gettext-0.11.
38763         * m4/glibc21.m4: Upgrade to gettext-0.11.
38764         * m4/iconv.m4: Upgrade to gettext-0.11.
38765         * m4/isc-posix.m4: Upgrade to gettext-0.11.
38766         * m4/lcmessage.m4: Upgrade to gettext-0.11.
38767         * m4/lib-ld.m4: New file, from gettext-0.11.
38768         * m4/lib-link.m4: New file, from gettext-0.11.
38769         * m4/lib-prefix.m4: New file, from gettext-0.11.
38770         * m4/progtest.m4: Upgrade to gettext-0.11.
38771
38772 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38773
38774         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
38775         (jm_PREREQ): Use it.
38776
38777 2002-02-15  Paul Eggert  <eggert@twinsun.com>
38778
38779         * lib/posixver.c, lib/posixver.h: New files.
38780         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38781
38782 2002-02-02  Paul Eggert  <eggert@twinsun.com>
38783             Bruno Haible  <bruno@clisp.org>
38784
38785         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
38786         (fwrite_success_callback): New declaration.
38787         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
38788         print_unicode_char. Call failure callback instead of error.
38789         (fwrite_success_callback): New function.
38790         (exit_failure_callback): New function.
38791         (fallback_failure_callback): New function.
38792         (print_unicode_char): Call unicode_to_mb.
38793
38794 2002-01-26  Jim Meyering  <meyering@lucent.com>
38795
38796         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
38797         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
38798
38799 2002-01-26  Jim Meyering  <meyering@lucent.com>
38800
38801         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
38802
38803 2002-01-22  Paul Eggert  <eggert@twinsun.com>
38804
38805         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
38806
38807 2002-01-22  Jim Meyering  <meyering@lucent.com>
38808
38809         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
38810         Otherwise, some versions of automake would omit the rule that makes
38811         Makefile from Makefile.in.
38812
38813 2002-01-21  Paul Eggert  <eggert@twinsun.com>
38814
38815         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
38816         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
38817         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
38818         (memcoll): Set errno to zero if there is no error.
38819
38820         * lib/quotearg.c (quotearg_buffer_restyled):
38821         Fix bug with quoting buffers containing NUL when backslashing escapes.
38822         This bug was exposed by the other changes in this patch.
38823         (quotearg_n_options): New arg ARGSIZE.
38824         All callers changed.
38825         (quoting_options_from_style): New function.
38826         (quotearg_n_style): Use it.
38827         (quotearg_n_style_mem): New function.
38828
38829         * lib/quotearg.h (quotearg_n_style_mem): New function.
38830
38831 2002-01-19  Jim Meyering  <meyering@lucent.com>
38832
38833         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
38834         Remove useless quotes: DF_PROG="df".
38835         * m4/strnlen.m4: New file.
38836
38837 2002-01-16  Paul Eggert  <eggert@twinsun.com>
38838
38839         * lib/backupfile.c (ISDIGIT): Comment fix.
38840         * lib/getdate.y (ISDIGIT): Likewise.
38841         * lib/posixtm.c (ISDIGIT, year): Likewise.
38842         * lib/strverscmp.c (ISDIGIT): Likewise.
38843         * lib/userspec.c (ISDIGIT): Likewise.
38844
38845 2002-01-16  Jim Meyering  <meyering@lucent.com>
38846
38847         * lib/getdate.y: Add three semicolons, each just before a closing
38848         brace. Bison (as of version 1.31) no longer papers over that mistake.
38849
38850 2002-01-05  Jim Meyering  <meyering@lucent.com>
38851
38852         * lib/version-etc.c (version_etc_copyright): Update copyright year.
38853
38854 2001-12-19  Paul Eggert  <eggert@twinsun.com>
38855
38856         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
38857         not silently exit merely because the output buffer happens to
38858         have nothing pending.
38859
38860 2001-12-18  Paul Eggert  <eggert@twinsun.com>
38861
38862         See the big note in ../ChangeLog.
38863         * lib/human.c (suffixes): Prefer K to k for 1024.
38864         (generate_suffix_backwards): New function.
38865         (human_readable_inexact): Use it.
38866         * lib/xstrtol.c (__xstrtol): If there is no number but there
38867         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
38868         Accept 'K' as well as 'k'.
38869
38870 2001-12-15  Jim Meyering  <meyering@lucent.com>
38871
38872         * lib/regex.h (__restrict_arr): Update from libc.
38873
38874         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
38875         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
38876         (STREQ): Define.
38877
38878 2001-12-14  Jim Meyering  <meyering@lucent.com>
38879
38880         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
38881         Suggestion from Bruno Haible.
38882
38883 2001-12-10  Jim Meyering  <meyering@lucent.com>
38884
38885         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
38886         xrealloc, Instead, include "xalloc.h".
38887         (initbuffer): Don't cast xmalloc return value to char*.
38888         (readline): Reword comment.
38889         Don't cast xrealloc return value to char*
38890         Return NULL, not 0.
38891
38892 2001-12-09  Jim Meyering  <meyering@lucent.com>
38893
38894         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
38895         about `signed and unsigned type in conditional expression'.
38896         * lib/posixtm.c (posix_time_parse): Likewise.
38897
38898         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
38899
38900         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
38901         to avoid a pedantic warning.
38902
38903         * lib/getstr.c: Don't include assert.h.
38904         (getstr): Remove warning-evoking assertions.
38905         Return -1 if offset parameter is out of bounds.
38906         Change the type of a local from int to size_t.
38907
38908         * lib/strftime.c (my_strftime_localtime_r): Include this function
38909         definition in the `#if ! HAVE_TM_GMTOFF' block.
38910
38911         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
38912         Include xalloc.h instead.
38913
38914 2001-12-02  Jim Meyering  <meyering@lucent.com>
38915
38916         * lib/tempname.c: Don't declare getenv, thus reverting the change of
38917         2001-11-18.  It's no longer necessary, now that stdlib.h is always
38918         included.
38919
38920         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
38921         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
38922
38923 2001-11-30  Akim Demaille  <akim@epita.fr>
38924
38925         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
38926         before being defined.
38927
38928 2001-11-27  Paul Eggert  <eggert@twinsun.com>
38929
38930         * lib/quotearg.h (quotearg_n, quotearg_n_style):
38931         First arg is int, not unsigned.
38932         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
38933         (SIZE_MAX, UINT_MAX): New macros.
38934         (quotearg_n_options): Abort if N is negative.
38935         Avoid overflow check on hosts where size_t is 64 bits and int
38936         is 32 bits, as overflow is impossible there.
38937         Fix off-by-one typo that caused unnecessary reallocation.
38938
38939 2001-11-27  Jim Meyering  <meyering@lucent.com>
38940
38941         * lib/tempname.c: Merge with version from libc.
38942         * lib/regex.c: Likewise.
38943
38944         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
38945         systems for which STDC_HEADERS is 0, it was not included, resulting in
38946         a warning about an integer-to-pointer conversion problem with getenv.
38947         Reported by Volker Borchert.
38948
38949 2001-11-26  Jim Meyering  <meyering@lucent.com>
38950
38951         * lib/gtod.h: Remove file.
38952         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
38953         * lib/gettimeofday.c: Don't include gtod.h.
38954         (GTOD_init): Remove function.
38955         (rpl_gettimeofday): Do its job here instead, rather than aborting.
38956         Suggestion from Volker Borchert.
38957
38958 2001-11-23  Jim Meyering  <meyering@lucent.com>
38959
38960         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
38961         it.
38962         * lib/hash.c (struct hash_table): Define it here instead.
38963
38964 2001-11-22  Jim Meyering  <meyering@lucent.com>
38965
38966         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
38967
38968 2001-11-20  Jim Meyering  <meyering@lucent.com>
38969
38970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
38971         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
38972
38973 2001-11-19  Jim Meyering  <meyering@lucent.com>
38974
38975         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
38976         directory.  Use "conftestXXXXXX" as the template.
38977         Suggestion from Paul Eggert.
38978
38979         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
38980         immediately, so the test doesn't mistakenly hit the max-open-files
38981         limit.
38982
38983 2001-11-18  Paul Eggert  <eggert@twinsun.com>
38984
38985         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
38986         (TEMPORARIES): New macro.
38987         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
38988         removes an artificial limitation (e.g. HP-UX 10.20, where
38989         TMP_MAX is 17576).
38990
38991 2001-11-18  Jim Meyering  <meyering@lucent.com>
38992
38993         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
38994
38995 2001-11-18  Jim Meyering  <meyering@lucent.com>
38996
38997         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
38998         on SunOS 4.
38999
39000         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
39001         files will be created before anything else.
39002
39003 2001-11-17  Paul Eggert  <eggert@twinsun.com>
39004
39005         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
39006         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
39007
39008 2001-11-17  Jim Meyering  <meyering@lucent.com>
39009
39010         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
39011         Prompted by a report from Bob Proulx.
39012
39013         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
39014         Instead, require UTILS_FUNC_MKSTEMP.
39015
39016 2001-11-17  Jim Meyering  <meyering@lucent.com>
39017
39018         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
39019         Now, that's done as part of AC_FUNC_STRTOD.
39020
39021 2001-11-17  Jim Meyering  <meyering@lucent.com>
39022
39023         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
39024         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
39025         rather than group writable.  Patch by Juan F. Codagnone.
39026
39027         * lib/readtokens.c: Remove explicit declarations of xmalloc and
39028         xrealloc, Instead, include "xalloc.h".
39029
39030         * lib/mountlist.c: Include unlocked-io.h after all system headers.
39031         Remove explicit declarations of xmalloc, xrealloc,
39032         and xstrdup.  Instead, include "xalloc.h".
39033
39034         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
39035         unlocked-io.h.
39036         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
39037         Likewise.
39038         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
39039
39040         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
39041         Reported by Padraig Brady.
39042
39043         * lib/mkstemp.c: #undef mkstemp.
39044         Include config.h.
39045         (rpl_mkstemp): Rename from mkstemp.
39046         Protoize.
39047
39048 2001-11-16  Jim Meyering  <meyering@lucent.com>
39049
39050         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
39051         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
39052         determine the amount of total physical memory, use pstat_getstatic.
39053         HPUX-11 doesn't define _SC_PHYS_PAGES.
39054         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
39055         If sysconf couldn't be used to determine the amount of available
39056         physical memory, use both pstat_getstatic and pstat_getdynamic.
39057         Based on a patch from Bob Proulx.
39058
39059 2001-11-10  Jim Meyering  <meyering@lucent.com>
39060
39061         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
39062         (jm_PREREQ): Use it.
39063
39064 2001-11-09  Jim Meyering  <meyering@lucent.com>
39065
39066         * m4/jm-macros.m4: Require autoconf-2.52f.
39067         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
39068         Use these AC_-prefixed names, not the AM_-prefixed ones.
39069
39070         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
39071
39072 2001-11-05  Jim Meyering  <meyering@lucent.com>
39073
39074         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
39075
39076 2001-11-04  Jim Meyering  <meyering@lucent.com>
39077
39078         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
39079         $DEFS.
39080
39081 2001-11-03  Jim Meyering  <meyering@lucent.com>
39082
39083         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
39084         of AC_DEFUN.
39085
39086         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
39087         know the name of the variable in the macro definition.
39088
39089 2001-11-03  Jim Meyering  <meyering@lucent.com>
39090
39091         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
39092         in argmatch_to_argument call.
39093
39094         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
39095         argument.
39096
39097         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
39098         e.g., a fault due to an attempt to free a NULL pointer.
39099
39100 2001-11-01  Jim Meyering  <meyering@lucent.com>
39101
39102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
39103         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
39104
39105 2001-11-01  Jim Meyering  <meyering@lucent.com>
39106
39107         * lib/dirfd.c, lib/dirfd.h: New files.
39108         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
39109
39110         * lib/hash.c (hash_print) [TESTING]: Clean up.
39111
39112 2001-10-22  Paul Eggert  <eggert@twinsun.com>
39113
39114         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
39115         to avoid a warning if -Wall.
39116
39117 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
39118
39119         * README: New file
39120         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
39121         (per RMS's instructions, this is now the canonical source)
39122         * lgpl/, gpl/: New directories.
39123
39124 2001-10-21  Paul Eggert  <eggert@twinsun.com>
39125
39126         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
39127
39128 2001-10-21  Jim Meyering  <meyering@lucent.com>
39129
39130         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
39131         this code would end up calling gettext even in packages built
39132         with --disable-nls.
39133         * lib/getopt.c (_): Likewise.
39134         * lib/regex.c (_): Likewise.
39135
39136 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39137
39138         * m4/error.m4 (jm_PREREQ_ERROR):
39139         Do not invoke AC_CHECK_FUNCS with strerror_r, as
39140         AC_FUNC_STRERROR_R does that.
39141         Check for strerror declaration.
39142
39143         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
39144         are supposed to have them these days.
39145         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
39146         Merge changes from latest Autoconf CVS.
39147         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
39148         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
39149         POSIX decided to standardize on the int flavor of strerror_r.
39150
39151 2001-10-20  Paul Eggert  <eggert@twinsun.com>
39152
39153         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
39154         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
39155         Use strerror_r that is only a macro, even if it is not a function.
39156         (strerror): Check for HAVE_DECL_STRERROR before declaring.
39157         (private_strerror): Use prototypes, not old-style function definition.
39158         (print_errno_message): New function.
39159         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
39160         char*-flavored one.
39161         (error_tail, error, error_at_line): Use it.
39162
39163 2001-10-11  Jim Meyering  <meyering@lucent.com>
39164
39165         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
39166         and quote_n (1, ... to avoid clobbering a buffer.
39167
39168 2001-10-05  Jim Meyering  <meyering@lucent.com>
39169
39170         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
39171         hash-pjw.h.
39172         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
39173         * lib/hash-pjw.h: New file.
39174
39175 2001-09-30  Jim Meyering  <meyering@lucent.com>
39176
39177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
39178         `struct fsstat' has the `f_fstypename' member.
39179         Use that to define FS_TYPE, which is now used to make
39180         the getfsstat link test tighter.
39181
39182 2001-09-30  Jim Meyering  <meyering@lucent.com>
39183
39184         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
39185         Include <sys/ucred.h>, for Apple Darwin.
39186         Include sys/mount.h and sys/fs_types.h only if available.
39187         (FS_TYPE): Define.
39188         (read_filesystem_list): Use FS_TYPE.
39189
39190 2001-09-29  Paul Eggert  <eggert@twinsun.com>
39191
39192         * lib/exclude.c (excluded_filename): 0 -> false, since it's
39193         a boolean context.
39194
39195 2001-09-29  Jim Meyering  <meyering@lucent.com>
39196
39197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39198         [one-argument getmntent function]): Include stdio.h before mntent.h.
39199         SunOS 4.1.x needs it for the declaration of `FILE'.
39200         Patch by Volker Borchert.
39201
39202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
39203         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
39204         sys/fs_types.h, and make the link-test for getfsstat guard #include
39205         directives with appropriate #if HAVE_*_H tests so that we can
39206         detect getfsstat on Apple Darwin1.3.7 systems.
39207         Reported by Nelson Beebe.
39208         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
39209
39210 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39211
39212         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39213         #defines strtoimax.  Also treat the other strto* functions
39214         like strtoimax.
39215
39216         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39217         Check for strtoul and strtoumax,
39218         as those declarations are made even in the signed case.
39219         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
39220         Likewise, for strtol and strtoimax.
39221
39222 2001-09-28  Paul Eggert  <eggert@twinsun.com>
39223
39224         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
39225         #defines strtoimax.  Also treat the other strto* functions
39226         like strtoimax.
39227
39228         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
39229         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
39230         (strtoimax, strtoumax): Do not declare if already defined as a macro.
39231
39232 2001-09-26  Jim Meyering  <meyering@lucent.com>
39233
39234         Most macros in unlocked-io.h had the wrong number of arguments.
39235         * lib/gen-uio: New script.
39236         (USE_UNLOCKED_IO): Define to 1 if not already defined.
39237         * lib/unlocked-io.hin: Remove file.
39238         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
39239         rather than trying to embed it here.
39240         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
39241         Reported by Padraig Brady.
39242
39243 2001-09-25  Volker Borchert  <bt@teknon.de>
39244
39245         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
39246         `result'.
39247
39248 2001-09-24  Jim Meyering  <meyering@lucent.com>
39249
39250         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
39251
39252 2001-09-23  Jim Meyering  <meyering@lucent.com>
39253
39254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
39255         instead of the mere test for existence of mntent.h.  The latter
39256         would get a false-positive on AIX 3.4 systems.
39257         In the outer getmntent if-block, don't die if neither of the getmntent
39258         tests succeeds.  Instead, just fall through and continue with the
39259         remaining tests.
39260
39261 2001-09-23  Jim Meyering  <meyering@lucent.com>
39262
39263         * lib/mountlist.c: Remove useless parentheses in #if directives.
39264         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
39265         the deprecated MOUNTED symbol is no longer defined in mntent.h.
39266
39267 2001-09-22  Jim Meyering  <meyering@lucent.com>
39268
39269         * m4/gettext.m4: New file.  From gettext.
39270         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
39271         * m4/progtest.m4: Likewise
39272         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
39273         * m4/glibc21.m4: Likewise.
39274
39275         * m4/libintl.m4: Remove.  No longer used.
39276
39277 2001-09-22  Jim Meyering  <meyering@lucent.com>
39278
39279         * lib/localcharset.c: Update from latest gettext.
39280         * lib/config.charset: Likewise.
39281
39282 2001-09-20  Jim Meyering  <meyering@lucent.com>
39283
39284         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
39285         strtoimax.
39286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
39287         strtoumax.
39288
39289 2001-09-20  Jim Meyering  <meyering@lucent.com>
39290
39291         * lib/xstrtol.c (strtoimax): Guard declaration with
39292         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
39293         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
39294         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
39295         (strtoumax): Likewise, for completeness (it wasn't necessary).
39296
39297 2001-09-17  Paul Eggert  <eggert@twinsun.com>
39298
39299         * lib/strtoimax.c (HAVE_LONG_LONG):
39300         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
39301         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
39302         to work around bug in IBM C compiler.
39303
39304 2001-09-17  Jim Meyering  <meyering@lucent.com>
39305
39306         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
39307         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
39308         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
39309         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
39310         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
39311         whenever the right hand side need not be expanded by the shell.
39312
39313 2001-09-16  Paul Eggert  <eggert@twinsun.com>
39314
39315         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
39316         library.  It's not correct, as some older glibcs are buggy.
39317         fnmatch wasn't fixed until glibc 2.2.
39318
39319         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
39320         special shell magic here.
39321
39322 2001-09-16  Jim Meyering  <meyering@lucent.com>
39323
39324         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
39325         * m4/jm-macros.m4: Require it.
39326
39327 2001-09-16  Jim Meyering  <meyering@lucent.com>
39328
39329         * lib/mkdir.c: New file.
39330
39331 2001-09-15  Jim Meyering  <meyering@lucent.com>
39332
39333         * m4/jm-macros.m4: Check for help2man.
39334
39335 2001-09-11  Jim Meyering  <meyering@lucent.com>
39336
39337         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
39338         The body, by Paul Eggert, was moved here from configure.in.
39339         * m4/jm-macros.m4: Require UTILS_HOST_OS.
39340
39341 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39342
39343         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
39344         (jm_PREREQ): Use it.
39345
39346 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39347
39348         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
39349         Use ssize_t, not int, to store result of readlink.
39350         Check for ssize_t overflow as well as size_t overflow,
39351         as POSIX says the result of readlink is implementation-defined
39352         when ssize_t overflows.
39353         Remove unnecessary cast to char*.
39354         Use free+malloc instead of realloc, as the storage doesn't need
39355         to be preserved and it's clearer and can be more efficient that way.
39356         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
39357         * lib/xreadlink.h (xreadlink): Update prototype.
39358
39359 2001-09-04  Paul Eggert  <eggert@twinsun.com>
39360
39361         * lib/xgetcwd.c: Revert some of the previous change; intead,
39362         fix the HAVE_GETCWD_NULL code to behave more like the
39363         !HAVE_GETCWD_NULL code used to.
39364
39365         Include "xalloc.h".
39366         (xgetcwd): Do not return NULL when memory is exhausted; instead,
39367         invoke xalloc_die.
39368
39369 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39370
39371         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
39372         sys/param.h, as pathmax.h includes them.
39373
39374 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39375
39376         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
39377         (jm_PREREQ_XGETCWD): New macro.
39378
39379         * m4/getcwd.m4: New file.
39380
39381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39382
39383         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
39384         like the HAVE_GETCWD_NULL code.
39385         Include pathmax.h if not HAVE_GETCWD.
39386         Do not include xalloc.h.
39387         (INITIAL_BUFFER_SIZE): New symbol.
39388         Do not use xmalloc / xrealloc, since the caller is responsible for
39389         handling errors.  Preserve errno around `free' during failure.
39390         Do not overrun buffer when using getwd.
39391
39392 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39393
39394         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
39395         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
39396         getcwd (NULL, 0).
39397
39398 2001-09-03  Paul Eggert  <eggert@twinsun.com>
39399
39400         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
39401         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
39402         spotted by Jim Meyering.
39403
39404 2001-09-03  Jim Meyering  <meyering@lucent.com>
39405
39406         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
39407         failure.
39408
39409 2001-09-02  Jim Meyering  <meyering@lucent.com>
39410
39411         * lib/error.c: Update from GNU libc.
39412
39413 2001-09-01  Jim Meyering  <meyering@lucent.com>
39414
39415         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
39416         Used by df.
39417
39418 2001-09-01  Jim Meyering  <meyering@lucent.com>
39419
39420         * lib/xreadlink.c: New file.
39421         * lib/xreadlink.h: New file.
39422         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
39423         xreadlink.h.
39424
39425         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
39426         doesn't conflict with sparc Solaris 7's definition in
39427         /usr/include/sys/int_types.h.
39428
39429         * lib/exclude.c: Use `""', not `<>' to #include non-system header
39430         files.
39431         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
39432         and strncasecmp as r-values.  Unixware didn't have declarations.
39433
39434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39435
39436         * lib/xstrtol.h: Add copyright notice.
39437         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
39438         LONGINT_INVALID_SUFFIX_CHAR.
39439
39440 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39441
39442         * lib/xstrtol.c (strtoimax): New decl.
39443
39444 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39445
39446         * lib/xgetcwd.c: Don't include pathmax.h.
39447         Include stdlib.h and unistd.h if available.
39448         Include xalloc.h.
39449         (xmalloc, xstrdup, free): Remove decls.
39450         (xgetcwd): Don't assume sizes fit in unsigned.
39451         Check for overflow when computing sizes.
39452         Simplify reallocation code.
39453
39454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39455
39456         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
39457         a directory's st_size can have an arbitrary value, so the old
39458         usage could waste an arbitrary amount of memory.  All uses
39459         changed.
39460         * lib/savedir.h: Update prototype.
39461
39462 2001-08-31  Paul Eggert  <eggert@twinsun.com>
39463
39464         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
39465
39466         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
39467         old strtoimax.c.
39468
39469         Also, make the following further changes to make this file's
39470         configuration more similar to that of strtol.c:
39471         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
39472         (strtoumax, uintmax_t, strtoull, strtol): Remove.
39473         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
39474         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
39475         changed to signed values.
39476
39477         And make the following changes as well:
39478         Fix copyright notice, as 1999 was missing.
39479         (verify): New macro.
39480         (strtoimax): Check sizes at compile-time, not run-time.
39481         Prefer strtol to strtoll if both work.
39482         (main): Remove; it was not that useful and was a pain to maintain.
39483
39484         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
39485
39486 2001-08-31  Jim Meyering  <meyering@lucent.com>
39487
39488         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
39489         Use an initial, malloc'd, buffer of length 128 rather than
39490         a statically allocated one of length 1024.
39491
39492 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39493
39494         Simplify code, partly by assuming autoconf 2.52 semantics.
39495
39496         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
39497
39498         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
39499         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
39500         All uses removed.
39501         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
39502         Move AC_REQUIRE to next-to-top level, to avoid confusion.
39503         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
39504         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
39505         jm_AC_HEADER_INTTYPES_H.
39506         * m4/jm-macros.m4 (jm_MACROS): Likewise.
39507
39508         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
39509
39510         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
39511         Quote first arg of AC_DEFUN.
39512         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
39513         since they are needed to parse the include file even if we need
39514         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
39515         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
39516         but with opposite signedness.
39517
39518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39519
39520         Merge 'exclude' changes from tar 1.13.22.
39521         This fixes one or two unlikely storage allocation overflow bugs,
39522         but doesn't change user-visible behavior otherwise.
39523
39524 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39525
39526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
39527         (jm_PREREQ_EXCLUDE): New macro.
39528
39529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39530
39531         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
39532         tm to be declared.
39533
39534 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39535
39536         * lib/hash.c: Remove '2001' from copyright notice.
39537
39538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39539
39540         * lib/full-write.h: New file.
39541         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
39542         * lib/full-write.c: Correct credits, as cccp.c no longer
39543         exists and anyway it was so heavily changed from the old cccp
39544         code as to be unrecognizable.  Include full-write.h.
39545         (full_write) Return size_t, with short writes meaning failure.
39546         All callers changed.  This fixes a bug with large buffers
39547         on 64-bit hosts.
39548         * lib/utime.c: Include full-write.h.
39549
39550 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39551
39552         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
39553         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
39554         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
39555         Include if available.
39556         (<xalloc.h>): Include
39557         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
39558         (verify): New macro.  Use it to verify that EXCLUDE macros do not
39559         collide with FNM macros.
39560         (struct patopts): New struct.
39561         (struct exclude): Use it, as exclude patterns now come with options.
39562         (new_exclude): Support above changes.
39563         (new_exclude, add_exclude_file):
39564         Initial size must now be a power of two to simplify overflow checking.
39565         (free_exclude, fnmatch_no_wildcards): New function.
39566         (excluded_filename): No longer requires options arg, as the options
39567         are determined by add_exclude.  Now returns bool, not int.
39568         (excluded_filename, add_exclude):
39569         Add support for the fancy new exclusion options.
39570         (add_exclude, add_exclude_file): Now takes int options arg.
39571         Check for arithmetic overflow when computing sizes.
39572         (add_exclude_file): xrealloc might modify errno, so don't
39573         realloc until after errno might be used.
39574
39575         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
39576         New macros.
39577         (free_exclude): New decl.
39578         (add_exclude, add_exclude_file): Now takes int options arg.
39579         (excluded_filename): No longer requires options arg, as the options
39580         are determined by add_exclude.  Now returns bool, not int.
39581
39582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
39583
39584         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
39585
39586 2001-08-27  Jim Meyering  <meyering@lucent.com>
39587
39588         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
39589
39590         * lib/version-etc.c (N_): Remove definition.
39591         Revert most of last change.
39592         Instead, simply don't mark the `Copyright...' string for translation.
39593         Based on advice from Paul Eggert.
39594
39595         * lib/strtoxmax.c: Tweak comment.
39596
39597 2001-08-26  Jim Meyering  <meyering@lucent.com>
39598
39599         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
39600
39601         * m4/xstrtoimax.m4: New file.
39602         * m4/xstrtoumax.m4: Add comments explaining why we
39603         AC_REPLACE_FUNCS(strtol).
39604
39605 2001-08-26  Jim Meyering  <meyering@lucent.com>
39606
39607         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
39608         of copyright with `%s' so translators don't get an untranslated
39609         message in 2002.
39610         (COPYRIGHT_YEAR): Define.
39611         (version_etc): Use fprintf rather than fputs.
39612         Suggestion from Ulrich Drepper.
39613
39614         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
39615
39616         * lib/strtoll.c: New file, from GNU libc.
39617         * lib/xstrtoimax.c: New file.
39618
39619         * lib/xstrtol.h: Add xstrtoimax.
39620         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
39621         * lib/strtoimax.c: New file.  Likewise, but first define
39622         STRTOUXMAX_SIGNED.
39623
39624         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
39625         ...
39626         * lib/strtoxmax.c: ... then renamed to this.
39627
39628 2001-08-18  Paul Eggert  <eggert@twinsun.com>
39629
39630         * m4/inttypes.m4: Add AC_PREREQ(2.13).
39631         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
39632         (jm_AC_TYPE_INTMAX_T): New macro.
39633         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
39634
39635         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
39636
39637         * m4/longlong.m4: Renamed from ulonglong.m4.
39638         * m4/inttypes.m4: Renamed from inttypes_h.m4.
39639         * m4/uintmax_t.m4: Removed.
39640
39641 2001-08-13  Paul Eggert  <eggert@twinsun.com>
39642
39643         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
39644         Port to Solaris 8, where 'sed' requires a space after the 'r'
39645         command, and where sh dislikes "$/".  Clean up the spacing a bit.
39646         Redirect output to $tmp just once.
39647
39648 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
39649
39650         * lib/addext.c (<errno.h>): Include.
39651         (errno): Declare if not defined.
39652         (addext): Work correctly when pathconf returns -1 and leaves
39653         errno alone because there is no limit.  Also, work even if
39654         pathconf returns a value greater than SIZE_MAX.
39655
39656 2001-08-12  Jim Meyering  <meyering@lucent.com>
39657
39658         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
39659         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
39660         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
39661         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
39662         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
39663         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
39664         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
39665         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
39666         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
39667         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
39668         utime.m4, utimes.m4, xstrtoumax.m4:
39669         Quote the first argument in each use of AC_DEFUN.
39670
39671 2001-08-12  Jim Meyering  <meyering@lucent.com>
39672
39673         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
39674         Simply `return getcwd (NULL, 0);'.
39675         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
39676         Use 1300 as initial value for length, not PATH_MAX.
39677
39678         * lib/pathmax.h: Clean up cpp syntax.
39679
39680 2001-08-12  Jim Meyering  <meyering@lucent.com>
39681
39682         * lib/gettimeofday.c: New file.
39683         * lib/gtod.h: New file.
39684         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
39685
39686 2001-08-05  Jim Meyering  <meyering@lucent.com>
39687
39688         * m4/jm-macros.m4: Require autoconf-2.52.
39689
39690 2001-08-04  Jim Meyering  <meyering@lucent.com>
39691
39692         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
39693         stmt, to get in sync with glibc.
39694
39695 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39696
39697         The following changes are from gettext 0.10.39 as maintained by
39698         Bruno Haible.
39699
39700         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
39701         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
39702         with inverted sense.  All uses changed.
39703
39704         * lib/mbswidth.c: Don't include <limits.h>.
39705         Include <stdlib.h> and <string.h> unconditionally.
39706         (iswcntrl, mbsinit, ISCNTRL): New macros.
39707         (mbsnwidth): Use K&R style function declarations.
39708         Don't bother checking for MB_LEN_MAX == 1, since the compiler
39709         can optimize it when MB_CUR_MAX == 1.
39710         The width of control characters is zero, not 1.
39711
39712 2001-08-03  Paul Eggert  <eggert@twinsun.com>
39713
39714         The following changes are from gettext 0.10.39 as maintained by
39715         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
39716
39717         * m4/codeset.m4: Upgrade to serial AM1.
39718         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
39719         all uses changed.  Quote first arg of AC_DEFUN.
39720         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
39721
39722         * m4/iconv.m4: Upgrade to serial AM2.
39723         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
39724         Add --with-libconv-prefix.
39725         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
39726         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
39727         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
39728         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
39729         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
39730
39731         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
39732         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
39733         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
39734         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
39735         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
39736         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
39737         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39738         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
39739         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
39740
39741         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
39742         string.h any more.
39743
39744         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
39745         not the default value.
39746
39747         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
39748         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
39749         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
39750         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
39751         Also check for iswcntrl, used for wcwidth fallback.
39752         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
39753         to Autoconf 2.13.
39754
39755 2001-08-03  Jim Meyering  <meyering@lucent.com>
39756
39757         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
39758         as it was in the original.  Reported by Paul Eggert.
39759
39760 2001-07-16  Jim Meyering  <meyering@lucent.com>
39761
39762         * m4/gettimeofday.m4: New file.
39763         Prompted by a report from Bernhard Baehr.
39764
39765 2001-07-15  Jim Meyering  <meyering@lucent.com>
39766
39767         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
39768         stuff. Now it's in ../Makefile.cfg.
39769
39770 2001-07-15  Jim Meyering  <meyering@lucent.com>
39771
39772         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
39773         (BUILT_SOURCES): Add unlocked-io.h.
39774         (io_functions): Define.
39775         (unlocked-io.h): New rule.
39776         (DISTCLEANFILES): Add unlocked-io.h.
39777         (all-local): Depend on unlocked-io.h, to ensure it is created.
39778
39779         * lib/unlocked-io.hin: New file
39780
39781         * lib/regex.c: Update from glibc.
39782
39783 2001-07-05  Jim Meyering  <meyering@lucent.com>
39784
39785         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
39786         recommendation.
39787         (libfetish_a_SOURCES): Put all .h files here instead.
39788         Remove a thus-exposed (better checks in automake) duplicate and
39789         two unnecessary .h files.
39790
39791 2001-07-04  Jim Meyering  <meyering@lucent.com>
39792
39793         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
39794         that generates jm-glibc-io.m4 so that it doesn't trigger any make
39795         distcheck failure.
39796
39797 2001-07-02  Jim Meyering  <meyering@lucent.com>
39798
39799         The following changes were prompted by suggestions from Bruno Haible.
39800
39801         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
39802         is now generated.
39803         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
39804         definition of EXTRA_DIST.
39805         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
39806         ensure that the generated file is created/updated whenever the list
39807         of $(unlocked_functions) is changed.
39808         (jm-glibc-io.m4): New rule.
39809         (unlocked-io.h): New rule -- currently unused.
39810
39811 2001-06-24  Jim Meyering  <meyering@lucent.com>
39812
39813         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
39814         unmatched right bracket, rather than kludging it with an extra,
39815         falsely-matching quote in a comment.  Patch by Akim Demaille.
39816
39817 2001-06-11  Jim Meyering  <meyering@lucent.com>
39818
39819         * lib/regex.c: Update from GNU libc.
39820
39821 2001-05-27  Jim Meyering  <meyering@lucent.com>
39822
39823         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
39824         Check for ut_type in struct utmp.
39825
39826 2001-05-27  Jim Meyering  <meyering@lucent.com>
39827
39828         * lib/readutmp.h (UT_TYPE): Define.
39829
39830 2001-05-24  Jim Meyering  <meyering@lucent.com>
39831
39832         * lib/argmatch.c: Include "quote.h".
39833         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
39834         quote function.  Reported by Göran Uddeborg.
39835
39836 2001-05-22  Jim Meyering  <meyering@lucent.com>
39837
39838         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
39839         now that we use the package-supplied version unconditionally.
39840         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
39841
39842 2001-05-21  Jim Meyering  <meyering@lucent.com>
39843
39844         * m4/regex.m4: Change a couple backticks to single quotes to avoid
39845         shell syntax errors.
39846
39847 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39848
39849         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
39850
39851 2001-05-20  Paul Eggert  <eggert@twinsun.com>
39852
39853         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
39854         Don't bother to check library strftime, since
39855         we'll be using our own my_strftime function anyway.
39856         Define my_strftime instead of strftime.
39857
39858 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
39859
39860         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
39861         which is not yet declared.
39862
39863 2001-05-15  Jim Meyering  <meyering@lucent.com>
39864
39865         * m4/regex.m4: Use proper quoting so brackets appear in the test
39866         program.
39867         Reported by, and with help from, Bruno Haible.
39868
39869 2001-05-13  Jim Meyering  <meyering@lucent.com>
39870
39871         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
39872         undefined.
39873
39874 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39875
39876         dirname code cleanup.  base_name now behaves more compatibly
39877         with POSIX basename when given file names that have trailing
39878         slashes, and similarly for dir_name.  Add new primitives
39879         base_len and dir_len.  Put the directory-name-related decls
39880         into dirname.h.
39881
39882         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
39883         * lib/backupfile.c (base_name): Likewise.
39884         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
39885         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
39886         * lib/makepath.c (strip_trailing_slashes): Likewise.
39887         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
39888         ISSLASH): Likewise.
39889         * lib/rename.c (strip_trailing_slashes): Likewise.
39890         * lib/same.c (base_name): Likewise.
39891         * lib/stripslash.c (ISSLASH): Likewise.
39892
39893         * lib/addext.c: Include <dirname.h> after size_t is defined.
39894         * lib/backupfile.c: Likewise.
39895
39896         * lib/addext.c (addext): Use base_len to trim redundant
39897         trailing slashes instead of doing it ourselves.
39898         But do not trim the last slash if it is not redundant.
39899
39900         * lib/backupfile.c (find_backup_file_name,
39901         max_backup_version): Use base_len instead of rolling it ourselves.
39902         Handle the case of "" and (on DOS) "C:" correctly.
39903
39904         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
39905         needed. Include <string.h>, <dirname.h>.
39906         (base_name): Allow file names ending in slashes, other than names
39907         that are all slashes.  In this case, return the basename followed
39908         by the slashes.  This is more general, and can be used in places
39909         where the original base_name purposely had an assertion failure.
39910         (base_len): New function.
39911
39912         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
39913         Do not include <assert.h>; no longer needed.
39914         Include xalloc.h.
39915         (memrchr): Remove decl.
39916         (dir_name_r): Remove.
39917         (dir_len): Renamed from dirlen.  All callers changed.
39918         Rewrite in terms of base_name, for simplicity and consistency.
39919         (dir_name): Never return NULL.  All callers changed.
39920         Do not include <stdlib.h> in test program; no longer needed.
39921         return 0; is fine for test program.
39922
39923         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
39924         New macros.
39925         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
39926
39927         * lib/path-concat.c (path_concat): Use base_len to compute
39928         base length, not strlen; this means we cannot rely on memcpy
39929         to null-terminate.
39930
39931         * lib/same.c (STREQ): Remove.
39932         (same_name): Handle the case where the basename ends in trailing '/'.
39933
39934         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
39935         a slash was stripped.  Do not strip the last slash after a
39936         file system prefix.
39937
39938 2001-05-11  Paul Eggert  <eggert@twinsun.com>
39939
39940         * lib/Makefile.am (libfetish_a_SOURCES):
39941         Add strftime.c, since we now compile it on all hosts.
39942
39943         * lib/strftime.c (my_strftime):
39944         Define to nstrftime if emacs, but only if my_strftime is not defined.
39945         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
39946         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
39947         Add one more extra argument: a nanoseconds value.
39948         All uses changed.
39949         (ns): New macro.
39950         (my_strftime function): Add %N format.
39951         (emacs_strftimeu): Renamed from emacs_strftime,
39952         with extra ut argument.
39953
39954 2001-05-09  Paul Eggert  <eggert@twinsun.com>
39955
39956         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
39957
39958 2001-04-21  Jim Meyering  <meyering@lucent.com>
39959
39960         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
39961         doesn't interfere.
39962
39963 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
39964
39965         * m4/ftruncate.m4: Check for chsize.
39966         Link with ftruncate.o unconditionally if ftruncate is missing.
39967         This was required when cross-compiling to i586-mingw32msvc.
39968
39969 2001-04-08  Jim Meyering  <meyering@lucent.com>
39970
39971         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
39972         recomputed; that's necessary when the offset spans a DST transition.
39973         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
39974
39975 2001-04-02  Jim Meyering  <meyering@lucent.com>
39976
39977         * lib/regex.h, regex.c: Update from GNU libc.
39978
39979 2001-03-24  Jim Meyering  <meyering@lucent.com>
39980
39981         * m4/jm-macros.m4: Require autoconf-2.49d.
39982
39983 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
39984
39985         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
39986
39987 2001-03-19  Paul Eggert  <eggert@twinsun.com>
39988
39989         * lib/version-etc.c (version_etc_copyright): Update to 2001.
39990
39991 2001-03-17  Jim Meyering  <meyering@lucent.com>
39992
39993         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
39994         now that the version in autoconf is equivalent.
39995         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
39996
39997         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
39998         Suggestion from Akim Demaille.
39999
40000         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
40001         (jm_PREREQ_TEMPNAME): New function.
40002
40003 2001-03-16  Paul Eggert  <eggert@twinsun.com>
40004
40005         * lib/tempname.c (uint64_t): Define to uintmax_t if
40006         not defined, and if UINT64_MAX is not defined.
40007         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
40008         Reported by John David Anglin.
40009
40010 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
40011
40012         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
40013         resolve alias if codeset is empty.
40014         * lib/config.charset (BeOS): Use wildcard syntax.
40015
40016 2001-03-13  Jim Meyering  <meyering@lucent.com>
40017
40018         * lib/path-concat.c (path_concat)
40019         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
40020         concatenating e.g., `C:' and `foo'.
40021         From Bruno Haible.
40022
40023 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40024
40025         * lib/localcharset.c (locale_charset): Don't use
40026         setlocale(LC_CTYPE,NULL). Don't return NULL.
40027         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
40028
40029 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
40030
40031         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
40032         support for DOS/DJGPP.
40033
40034 2001-03-01  Paul Eggert  <eggert@twinsun.com>
40035
40036         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
40037         lacks mkstemp.  Compile our own tempname.c if we compile our own
40038         mkstemp.c, as mkstemp relies on tempname.
40039
40040 2001-03-01  Jim Meyering  <meyering@lucent.com>
40041
40042         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
40043         AH_VERBATIM really does output its argument verbatim.
40044
40045 2001-02-28  Paul Eggert  <eggert@twinsun.com>
40046
40047         * lib/Makefile.am (libfetish_a_SOURCES):
40048         Add dup-safer.c, fopen-safer.c.
40049         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
40050
40051         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
40052         * lib/unistd-safer.h: New files.
40053
40054 2001-02-25  Paul Eggert  <eggert@twinsun.com>
40055
40056         The mkstemp replacement is taken from glibc 2.2.2, with some
40057         portability fixes for use outside glibc, as follows:
40058
40059         * lib/tempname.c (struct_stat64): New macro.
40060         (direxists, __gen_tempname): Use it.
40061         This avoids a portability problem with Solaris 8.
40062
40063         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
40064         (<stddef.h>, <stdint.h>, <string.h>):
40065         Include only if STDC_HEADERS || _LIBC.
40066         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
40067         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
40068         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
40069         (__set_errno): Define this macro if <errno.h> doesn't.
40070         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
40071         Define these macros if <stdio.h> doesn't.
40072         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
40073         Define these macros if <sys/stat.h>
40074         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
40075         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
40076         __xstat64): Define if not _LIBC.
40077         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
40078         (__gen_tempname): Invoke gettimeofday only if
40079         HAVE_GETTIMEOFDAY || _LIBC;
40080         otherwise, fall back on plain "time".
40081         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
40082
40083         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
40084
40085         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
40086
40087 2001-02-18  Paul Eggert  <eggert@twinsun.com>
40088
40089         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
40090
40091 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40092
40093         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
40094         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
40095         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
40096         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
40097
40098 2001-02-17  Paul Eggert  <eggert@twinsun.com>
40099
40100         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
40101         Remove workaround macros for hosts that have mbrtowc but not
40102         mbstate_t, as we now insist on proper declarations for both
40103         before using mbrtowc.
40104
40105 2001-02-17  Jim Meyering  <meyering@lucent.com>
40106
40107         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
40108         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
40109         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
40110         UnixWare 7.1.1.
40111
40112         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
40113         rather than AC_CACHE_VAL.
40114
40115 2001-02-17  Jim Meyering  <meyering@lucent.com>
40116
40117         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
40118         around included file name.
40119
40120         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
40121
40122         * lib/strftime.c: Update from GNU libc (the only changes were to
40123         comments).
40124
40125 2001-02-17  Jim Meyering  <meyering@lucent.com>
40126
40127         * lib/regex.c: Update from libc.
40128
40129 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
40130
40131         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
40132         clash.
40133
40134 2001-02-16  Paul Eggert  <eggert@twinsun.com>
40135
40136         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
40137         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
40138         Reported by Mark Hounschell via Paul Eggert.
40139
40140 2001-02-07  Jim Meyering  <meyering@lucent.com>
40141
40142         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
40143
40144 2001-02-05  Jim Meyering  <meyering@lucent.com>
40145
40146         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
40147         it includes the patch required for `large file' support with at least
40148         HP-UX's 10.20 /bin/cc.
40149
40150 2001-02-03  Jim Meyering  <meyering@lucent.com>
40151
40152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
40153         AS_IF, now that it works once again (mysteriously).
40154         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40155
40156 2001-01-30  Jim Meyering  <meyering@lucent.com>
40157
40158         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
40159         * m4/chown.m4: Rename conftestchown to conftest.chown.
40160         * m4/rename.m4: s/conftestdir/conftest.d1/ and
40161         s/conftestdir2/conftest.d2/.
40162         * m4/utimes.m4: s/conftestdata/conftest.data/
40163         Inspired by Pavel Roskin's change in autoconf.
40164
40165 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
40166
40167         * lib/config.charset: Update for FreeBSD 4.2.
40168
40169 2001-01-27  Jim Meyering  <meyering@lucent.com>
40170
40171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
40172         a use of AS_IF.
40173         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
40174
40175 2001-01-26  Jim Meyering  <meyering@lucent.com>
40176
40177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
40178         quotearg.c includes it.
40179
40180 2001-01-26  Jim Meyering  <meyering@lucent.com>
40181
40182         * lib/quotearg.c: Include stddef.h.
40183         * lib/quote.c: Include stddef.h.
40184         Reported by Axel Kittenberger.
40185
40186         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
40187         line in double quotes so that it evokes a better diagnostic.
40188         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
40189         Reported by Axel Kittenberger.
40190
40191 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
40192
40193         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
40194         as if it was a `charset'.
40195
40196 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40197
40198         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
40199         has const.
40200
40201 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
40202
40203         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
40204         to avoid a warning.  Add back 'const' to inptr.
40205
40206 2001-01-20  Jim Meyering  <meyering@lucent.com>
40207
40208         Be sure that headers are checked before used in code compiled
40209         for the type checks.
40210         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
40211         In place of that, invoke jm_CHECK_ALL_TYPES.
40212         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
40213         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
40214         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
40215         The check for ssize_t was mistakenly run before the test for unistd.h.
40216
40217         The configure-time check for stdbool.h was missing.
40218         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
40219         (jm_PREREQ_HASH): New function.
40220
40221 2001-01-17  Jim Meyering  <meyering@lucent.com>
40222
40223         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
40224         for autoconf-2.49c.
40225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
40226
40227 2001-01-16  Jim Meyering  <meyering@lucent.com>
40228
40229         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
40230         From Bruno Haible.
40231
40232 2001-01-14  Jim Meyering  <meyering@lucent.com>
40233
40234         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
40235         foo and bar.  Create conftestdir/ in the script, not in the C code.
40236         Remove directories in the script, not in the C code.
40237         Remove conftestdir{,2} before trying to create the directory.
40238         Make the entire configure script fail if the mkdir fails.
40239
40240 2001-01-14  Jim Meyering  <meyering@lucent.com>
40241
40242         * lib/rename.c: New file.  From Volker Borchert.
40243         Include stdlib.h, string.h or strings.h, and xalloc.h.
40244         Use strip_trailing_slashes rather than open-coding it.
40245
40246 2001-01-03  Paul Eggert  <eggert@twinsun.com>
40247
40248         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
40249
40250 2001-01-03  Jim Meyering  <meyering@lucent.com>
40251
40252         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
40253         of local `inptr' to avoid warning with some system declarations of
40254         iconv.
40255
40256 2001-01-02  Volker Borchert  <bt@teknon.de>
40257
40258         * m4/rename.m4: New file.
40259         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
40260
40261 2001-01-01  Jim Meyering  <meyering@lucent.com>
40262
40263         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
40264         even on systems with utmpx.h.  It's necessary for the declaration of
40265         utmp's ut_user member.  Reported by Andreas Jaeger.
40266
40267         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
40268         available. They are required for the declarations of getgrgid and
40269         getpwuid resp.
40270         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
40271         Reported by Andreas Jaeger.
40272
40273 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
40274
40275         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
40276         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
40277         so `make install' also works in VPATH builds.
40278
40279 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
40280
40281         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
40282         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
40283         can be used in subdirectories.
40284
40285 2000-12-29  Paul Eggert  <eggert@twinsun.com>
40286
40287         * lib/modechange.c: Do not assume that mode_t uses the
40288         traditional octal encoding.  E.g. "chmod 1 FOO" should set
40289         the other-execute bit of FOO even if S_IXOTH != 1.
40290
40291         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
40292         WOTH, XOTH, ALLM): New macros.
40293         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
40294          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
40295         Use them.
40296         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
40297         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
40298         (mode_compile):
40299         No need to use uintmax_t; unsigned long is long enough.
40300         Don't bother to get suffix since we don't use it.
40301
40302 2000-12-26  Jim Meyering  <meyering@lucent.com>
40303
40304         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
40305         better with autoheader.
40306
40307 2000-12-24  Jim Meyering  <meyering@lucent.com>
40308
40309         * lib/hash.c (is_prime): Return explicit boolean values.
40310         (hash_get_first): Return NULL to appease Irix5.6's 89.
40311         Reported by Nelson Beebe.
40312
40313 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
40314
40315         * lib/localcharset.c (locale_charset): Add support for Win32.
40316
40317 2000-12-18  Paul Eggert  <eggert@twinsun.com>
40318
40319         * lib/physmem.h, lib/physmem.c: New files.
40320
40321         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
40322         (noinst_HEADERS): Add physmem.h.
40323
40324         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
40325         't' for compatibility with Solaris 8 sort.
40326
40327 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
40328
40329         * lib/config.charset: Add support for BeOS.
40330
40331 2000-12-17  Jim Meyering  <meyering@lucent.com>
40332
40333         * m4/dos.m4 (jm_AC_DOS): New file and macro.
40334         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
40335
40336 2000-12-16  Jim Meyering  <meyering@lucent.com>
40337
40338         This bug had a serious impact on chown: `chown N:M FILE' (for integer
40339         N and M) would have treated it like `chown N:N FILE'.
40340
40341         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
40342
40343 2000-12-16  Jim Meyering  <meyering@lucent.com>
40344
40345         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
40346         SHELLS_FILE to a file name that's useful on djgpp systems.
40347         Include stdlib.h.
40348         (ADDITIONAL_DEFAULT_SHELLS): Define.
40349         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
40350         Based mostly on a patch from Prashant TR.
40351
40352 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
40353
40354         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
40355         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
40356         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
40357
40358 2000-12-08  Andreas Schwab  <schwab@suse.de>
40359
40360         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
40361         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
40362
40363 2000-12-07  Jim Meyering  <meyering@lucent.com>
40364
40365         * lib/stripslash.c (ISSLASH): Define.
40366         (strip_trailing_slashes): Use ISSLASH rather than comparing against
40367         `/'.
40368         From Prashant TR.
40369
40370         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
40371         (dir_name_r): Declare this function as static.
40372         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
40373         manifest itself on a name containing a mix of slashes and
40374         backslashes.
40375         Make this function work with names starting with a DOS-style
40376         drive letter and colon prefix.
40377         (dir_name): Append `.' if necessary.
40378         Based mostly on patches from Prashant TR and Eli Zaretskii.
40379
40380         * lib/dirname.h (dir_name_r): Remove prototype.
40381
40382 2000-12-06  Paul Eggert  <eggert@twinsun.com>
40383
40384         * m4/off_t-format.m4: Remove this file.
40385         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
40386
40387 2000-12-06  Jim Meyering  <meyering@lucent.com>
40388
40389         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
40390         replacement strtoull, we may well need the replacement strtoul, too.
40391         Check for declarations of strtoul and strtoull.
40392         Check for strtol.  Mainly as a cue to cause automake to include
40393         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
40394         Check for limits.h -- strtol.c needs it.
40395
40396 2000-12-05  Jim Meyering  <meyering@lucent.com>
40397
40398         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
40399
40400 2000-12-04  Jim Meyering  <meyering@lucent.com>
40401
40402         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
40403         Also include memory.h, stdlib.h, unistd.h if appropriate.
40404         Reported by Andreas Jaeger (conflicting declaration of malloc).
40405
40406 2000-12-02  Jim Meyering  <meyering@lucent.com>
40407
40408         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
40409         * m4/jm-macros.m4 (jm_MACROS): require it.
40410
40411 2000-12-02  Jim Meyering  <meyering@lucent.com>
40412
40413         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
40414
40415 2000-12-01  Paul Eggert  <eggert@twinsun.com>
40416
40417         * lib/memrchr.c: Include <config.h> before any system include file.
40418
40419 2000-11-30  Jim Meyering  <meyering@lucent.com>
40420
40421         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
40422
40423 2000-11-30  Jim Meyering  <meyering@lucent.com>
40424
40425         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
40426
40427 2000-11-29  Paul Eggert  <eggert@twinsun.com>
40428
40429         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
40430
40431 2000-11-26  Jim Meyering  <meyering@lucent.com>
40432
40433         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
40434
40435 2000-11-22  Paul Eggert  <eggert@twinsun.com>
40436
40437         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
40438         size of (size_t) -1; it's not portable.
40439
40440 2000-11-17  Jim Meyering  <meyering@lucent.com>
40441
40442         * lib/strstr.c: Update from GNU libc.
40443
40444 2000-11-17  Akim Demaille  <akim@epita.fr>
40445
40446         * lib/obstack.h: Formatting changes.
40447         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
40448         prevent type checking.
40449         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
40450         cast the value to (void *): assigning a `foo *' to a `void *'
40451         variable is valid.
40452         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
40453
40454 2000-11-16  Jim Meyering  <meyering@lucent.com>
40455
40456         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
40457
40458 2000-11-11  Jim Meyering  <meyering@lucent.com>
40459
40460         * lib/error.c: Add a couple #includes, merging from GNU libc version.
40461
40462 2000-11-10  Jim Meyering  <meyering@lucent.com>
40463
40464         * lib/obstack.h: Update from GNU libc.
40465         * lib/obstack.c: Likewise.
40466
40467 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
40468
40469         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
40470
40471 2000-11-06  Paul Eggert  <eggert@twinsun.com>
40472
40473         * lib/getusershell.c (setusershell): Use rewind rather than
40474         fseek/fseeko, to avoid configuration hassles with fseeko.
40475         Don't bother opening SHELLS_FILE if shellstream is NULL;
40476         it's not necessary.
40477
40478 2000-11-05  Jim Meyering  <meyering@lucent.com>
40479
40480         * lib/makepath.h (make_dir): Declare.
40481         * lib/makepath.c (make_dir): Remove `static' attribute.
40482         Tweak a comment.
40483
40484 2000-11-04  Jim Meyering  <meyering@lucent.com>
40485
40486         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
40487
40488 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
40489
40490         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
40491         last one in a bucket, advance to the next bucket.
40492
40493 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
40494
40495         * lib/fnmatch.c: Do not comment out all the code if we are using
40496         the GNU C library, because in some cases we are replacing buggy
40497         code in the GNU C library itself.
40498
40499 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
40500
40501         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
40502         (regex_compile): Catch bogus \(\1\).
40503
40504 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40505
40506         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
40507         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
40508         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
40509
40510 2000-10-30  Paul Eggert  <eggert@twinsun.com>
40511
40512         * lib/error.h, getline.h, modechange.h:
40513         Remove "2000" from Copyright line, as the file hasn't been
40514         changed this year other than in the copyright notice.
40515
40516         * lib/xalloc.h: Add "2000" to Copyright line, as this file
40517         was changed this year.
40518
40519 2000-10-29  Jim Meyering  <meyering@lucent.com>
40520
40521         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
40522         renaming.
40523         * m4/ls-mntd-fs.m4: Likewise
40524
40525 2000-10-29  Jim Meyering  <meyering@lucent.com>
40526
40527         * lib/xstat.in: Fix grammar in comment.
40528
40529 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
40530
40531         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
40532         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
40533         doesn't define __restrict_arr.
40534
40535 2000-10-28  Jim Meyering  <meyering@lucent.com>
40536
40537         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
40538         (jm_PREREQ_MEMCHR): New function.
40539
40540 2000-10-28  Jim Meyering  <meyering@lucent.com>
40541
40542         * lib/memchr.c: Update from libc.
40543         Adjust for portability:
40544         [HAVE_STDLIB_H]: Include stdlib.h.
40545         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
40546         Undef __memchr, too.
40547         [!weak_alias]: Define __memchr to memchr.
40548
40549         * lib/regex.c: Update from libc.
40550         * lib/regex.h: Likewise.
40551         * lib/getopt1.c: Likewise.
40552         * lib/memcmp.c: Likewise.
40553
40554         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
40555         Avoid using fseek, when possible -- it's broken by design.
40556         Patch by Ulrich Drepper.
40557
40558 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
40559
40560         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
40561         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
40562         Giving in to popular pressure to shut up the compiler with casts.
40563
40564 2000-10-26  Jim Meyering  <meyering@lucent.com>
40565
40566         * lib/strftime.c: Update from libc.
40567
40568 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
40569
40570         * regex.c: More `unsigned char' -> `re_char' changes.
40571         Also change several `int' into `re_wchar_t'.
40572         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
40573         (PUSH_FAILURE_POINTER): Don't cast any more.
40574         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
40575         We want GCC to complain, since this piece of code makes
40576         re_match non-reentrant, which *should* be fixed.
40577         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
40578         (EXTEND_BUFFER): Use RETALLOC.
40579         (SET_LIST_BIT): Don't cast.
40580         (re_wchar_t): New type.
40581         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
40582         that those two functions will always properly return.
40583         (IMMEDIATE_QUIT_CHECK): Cast to void.
40584         (analyse_first): Use recursion rather than an explicit stack.
40585         (re_compile_fastmap): Can't fail anymore.
40586         (re_search_2): Don't check re_compile_fastmap for failure.
40587         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
40588         Now also sets the new value (passed in a new argument).
40589         (re_match_2_internal): Use it.
40590         Also, use a new var `reg' of type size_t when looping through regs
40591         rather than reuse the inappropriate `mcnt'.
40592
40593 2000-10-25  Jim Meyering  <meyering@lucent.com>
40594
40595         * lib/obstack.c: Update from libc.
40596
40597 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
40598
40599         * regex.c (regex_compile): Change the way of handling a range from
40600         a char less than 256 to a char not less than 256.
40601
40602 2000-10-24  Andrew Innes  <andrewi@gnu.org>
40603
40604         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
40605         NT-Emacs only.
40606         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
40607         so that re_search functions only quit when callers expect them to.
40608
40609 2000-10-23  Jim Meyering  <meyering@lucent.com>
40610
40611         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
40612         wrong.  That set_locale call must not have any side effects.
40613         From Paul Eggert.
40614
40615 2000-10-22  Jim Meyering  <meyering@lucent.com>
40616
40617         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
40618         [CYCLIC]: Remove now-unused definition.
40619
40620         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
40621         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
40622         Suggestion from Ulrich Drepper.
40623
40624 2000-10-21  Jim Meyering  <meyering@lucent.com>
40625
40626         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
40627         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
40628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
40629
40630 2000-10-21  Jim Meyering  <meyering@lucent.com>
40631
40632         * lib/dirname.c (memrchr): Declare if necessary.
40633         (dir_name): Remove the restriction that there be no
40634         trailing slashes.  Now, this code skips past them, effectively
40635         ignoring them.
40636         [TEST_DIRNAME] (main): New unit tests.
40637
40638         * lib/memrchr.c: New file from GNU libc.
40639         Undef __memrchr, too.
40640         [!weak_alias]: Define __memrchr to memrchr.
40641         Guard weak_alias use with `#ifdef weak_alias'.
40642
40643 2000-10-21  Jim Meyering  <meyering@lucent.com>
40644
40645         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
40646         (dir_name): Use dir_name_r.
40647         * lib/dirname.h (dir_name_r): Declare it.
40648
40649 2000-10-17  Jim Meyering  <meyering@lucent.com>
40650
40651         * lib/quote.h (PARAMS): Define and use.
40652         Reported by Akim Demaille.
40653
40654         * lib/getopt.c: Update from libc.
40655
40656 2000-10-16  Jim Meyering  <meyering@lucent.com>
40657
40658         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
40659         setlocale.
40660         From Jan Fedak.
40661
40662 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
40663
40664         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
40665
40666 2000-09-25  Jim Meyering  <meyering@lucent.com>
40667
40668         * lib/md5.h (rol): Define (from GnuPG).
40669
40670         * lib/sha.c: Give credit (GnuPG) where due.
40671         (M): Use rol rather than open-coding it.
40672         Add a FIXME comment.
40673
40674 2000-09-21  Jim Meyering  <meyering@lucent.com>
40675
40676         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
40677         Reported by Michael Stone.
40678
40679 2000-09-20  Jim Meyering  <meyering@lucent.com>
40680
40681         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
40682         (noinst_HEADERS): Add sha.h.
40683         Based on code from Scott G. Miller and from GnuPG.
40684
40685 2000-09-18  Jim Meyering  <meyering@lucent.com>
40686
40687         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
40688         LIBS. Otherwise, everyone ends up linking with -lelf for some
40689         configurations.
40690         Reported by Mike Stone.
40691
40692 2000-09-15  Jim Meyering  <meyering@lucent.com>
40693
40694         * lib/regex.c: Update from libc.
40695
40696 2000-09-10  Jim Meyering  <meyering@lucent.com>
40697
40698         * lib/getopt.c (_getopt_internal): Update from glibc.
40699
40700 2000-09-09  Jim Meyering  <meyering@lucent.com>
40701
40702         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
40703         think it should be used as a general replacement for isascii.
40704         * lib/fnmatch.c: Likewise.
40705         * lib/mbswidth.c: Likewise
40706         * lib/regex.c: Likewise.
40707
40708         Don't use atoi.
40709         * lib/userspec.c: Include sys/param.h and limits.h.
40710         Include xstrtol.h.
40711         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
40712         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
40713         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
40714         UID, GID.  Check range.
40715
40716 2000-09-06  Jim Meyering  <meyering@lucent.com>
40717
40718         * lib/getopt.c (_getopt_internal): Update from glibc.
40719
40720 2000-08-30  Jim Meyering  <meyering@lucent.com>
40721
40722         * lib/strftime.c: Merge in changes from GNU libc.
40723
40724 2000-08-26  Jim Meyering  <meyering@lucent.com>
40725
40726         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
40727         * m4/fpending.m4: New file.
40728
40729 2000-08-26  Jim Meyering  <meyering@lucent.com>
40730
40731         * lib/closeout.c: Include "__fpending.h".
40732         (close_stdout_status): Return right away if there's nothing to flush.
40733
40734         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
40735         * lib/__fpending.c: New file.
40736         * lib/__fpending.h: New file.
40737
40738 2000-08-20  Jim Meyering  <meyering@lucent.com>
40739
40740         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
40741         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
40742         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
40743
40744 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
40745
40746         Improve fileutils installation on systems where running
40747         programs (like install) can't be unlinked.
40748         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
40749         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
40750
40751 2000-08-07  Paul Eggert  <eggert@twinsun.com>
40752
40753         Standardize on "memory exhausted" instead of "Memory exhausted"
40754         or "virtual memory exhausted".
40755         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
40756         "virtual memory exhausted".
40757         * lib/same.c (same_name): Invoke xalloc_die instead of printing
40758         our own message.
40759         * lib/userspec.c (parse_user_spec): Likewise.
40760         * lib/bumpalloc.h: comment fix
40761         * lib/same.c, userspec.c: Include xalloc.h.
40762
40763         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
40764         not char *const and pointing to a constant array.
40765         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
40766         (xrealloc): Comment fix.
40767
40768         * lib/userspec.c (parse_user_spec):
40769         Don't translate a message until just before returning,
40770         to avoid unnecessary translation.
40771
40772 2000-08-07  Jim Meyering  <meyering@lucent.com>
40773
40774         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
40775         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
40776         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
40777         getgroups.c, gethostname.c, getopt.h, group-member.c,
40778         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
40779         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
40780         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
40781         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
40782         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
40783         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
40784         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
40785         yesno.c: Back out Copyright date changes for each file with no change
40786         this year.  This eases coordination with other programs using the same
40787         source code modules.  From Paul Eggert.
40788
40789 2000-08-06  Paul Eggert  <eggert@twinsun.com>
40790
40791         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
40792         not char, for compatibility with glibc 2.1.3 strftime.c.
40793
40794 2000-08-03  Greg McGary  <greg@mcgary.org>
40795
40796         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
40797         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
40798         (EXTEND_BUFFER): Use them.
40799
40800 2000-08-01  Jim Meyering  <meyering@lucent.com>
40801
40802         * lib/dirname.c (ISSLASH): Define.
40803         (BACKSLASH_IS_PATH_SEPARATOR): Define.
40804         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
40805         both `\' and `/' may be use as path separators.
40806         Based on a patch from Prashant TR.
40807
40808 2000-07-31  Paul Eggert  <eggert@twinsun.com>
40809
40810         * lib/quotearg.c (quotearg_n_options): Don't make the initial
40811         slot vector a constant, since it might get modified.
40812
40813 2000-07-31  Jim Meyering  <meyering@lucent.com>
40814
40815         * lib/xmalloc.c: Use `virtual memory exhausted', not
40816         `Memory exhausted'.
40817         * lib/obstack.c (print_and_abort): Likewise.
40818
40819 2000-07-30  Paul Eggert  <eggert@twinsun.com>
40820
40821         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
40822         buffer, so that the caller can always quote one small
40823         component of a "memory exhausted" message in slot 0.
40824         From a suggestion by Jim Meyering.
40825
40826 2000-07-30  Jim Meyering  <meyering@lucent.com>
40827
40828         * lib/makepath.c (make_path): Quote the other instance, too.
40829
40830         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
40831         (STATIC_BUF_SIZE): Define.
40832         (quotearg_n_options): Use only statically allocated storage when
40833         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
40834         than STATIC_BUF_SIZE.
40835
40836 2000-07-29  Jim Meyering  <meyering@lucent.com>
40837
40838         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
40839         * lib/dirname.c (dir_name): Likewise.
40840
40841         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
40842         `/'.
40843
40844         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
40845         (dir_name): Assert that there are no trailing slashes.
40846
40847 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
40848
40849         * lib/mbswidth.h (mbswidth): Add a flags argument.
40850         (mbswidth): New declaration.
40851         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
40852         * lib/mbswidth.c (mbswidth): Add a flags argument.
40853         (mbsnwidth): New function.
40854
40855 2000-07-24  Jim Meyering  <meyering@lucent.com>
40856
40857         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
40858
40859 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40860
40861         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
40862
40863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40864
40865         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
40866         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
40867         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
40868         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
40869         invoke multibyte primitives.
40870
40871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40872
40873         * lib/quotearg.c:
40874         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
40875         so that mbstate_t is always defined.
40876
40877         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
40878         be 1 in at least one GCC installation, and this configuration
40879         error is likely to be common.  Ignoring MB_LEN_MAX hurts
40880         performance on hosts that have mbrtowc but have only unibyte
40881         locales, but I assume these hosts are rare.
40882
40883 2000-07-23  Paul Eggert  <eggert@twinsun.com>
40884
40885         * lib/mbswidth.c (_XOPEN_SOURCE):
40886         Don't define; this causes problems on Solaris 7.
40887         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
40888
40889 2000-07-23  Jim Meyering  <meyering@lucent.com>
40890
40891         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
40892         too: getgrgid, getpwuid, getuid.
40893
40894 2000-07-23  Jim Meyering  <meyering@lucent.com>
40895
40896         * lib/basename.c (base_name): Add an assertion.
40897
40898 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
40899
40900         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
40901         shadow its mbsinit function.
40902
40903 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
40904
40905         * lib/mbswidth.h: New file.
40906         * lib/mbswidth.c: New file.
40907         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
40908         (noinst_HEADERS): Add mbswidth.h.
40909
40910 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
40911
40912         * lib/config.charset: Add support for FreeBSD. Improve support for
40913         HP-UX and IRIX 6.
40914
40915 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
40916
40917         * m4/mbswidth.m4: New file.
40918         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
40919
40920 2000-07-15  Jim Meyering  <meyering@lucent.com>
40921
40922         * lib/makepath.c: Include quote.h.
40923         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
40924         corresponding argument in a `quote (...)' call.
40925         Give better diagnostics.
40926
40927         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
40928         (noinst_HEADERS): Add quote.h.
40929
40930         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
40931         from tar's src/misc.c.
40932         * lib/quote.h: New file.  Prototypes for same.
40933
40934 2000-07-14  Paul Eggert  <eggert@twinsun.com>
40935
40936         From a suggestion by Bruno Haible.
40937         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
40938         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
40939         to decide whether to define the BeOS workaround macro;
40940         this adjusts to the change to AC_MBSTATE_T.
40941
40942 2000-07-14  Jim Meyering  <meyering@lucent.com>
40943
40944         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
40945         jm_AC_TYPE_UINTMAX_T.
40946
40947 2000-07-13  Paul Eggert  <eggert@twinsun.com>
40948
40949         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
40950
40951         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
40952         quotearg_buffer_restyled): Add support for
40953         clocale_quoting_style.  Undo previous change to
40954         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
40955         and "{RIGHT QUOTATION MARK}" msgids.
40956
40957 2000-07-10  Paul Eggert  <eggert@twinsun.com>
40958
40959         From a suggestion by Bruno Haible.
40960         * m4/mbstate_t.m4 (AC_MBSTATE_T):
40961         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
40962         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
40963         and mbstate_t, to a single-part test that simply defines mbstate_t.
40964         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
40965         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
40966
40967 2000-07-10  Jim Meyering  <meyering@lucent.com>
40968
40969         * m4/strerror_r.m4: Mirror the correction made in autoconf.
40970
40971         * m4/gnu-source.m4: Output to confdefs.h directly.
40972         Suggestion from Akim Demaille.
40973
40974 2000-07-09  Paul Eggert  <eggert@twinsun.com>
40975
40976         The old behavior of quoting `like this' doesn't look good with
40977         newer, ISO-style fonts.  See:
40978         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
40979
40980         Instead, quote "like this" by default.  Let the translator
40981         tailor the locale-specific quoting behavior by providing
40982         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
40983
40984         * lib/quotearg.c (N_): New macro.
40985         (gettext_default): New function.
40986         (quotearg_buffer_restyled): Use
40987         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
40988         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
40989
40990 2000-07-09  Jim Meyering  <meyering@lucent.com>
40991
40992         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
40993         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
40994
40995         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
40996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
40997
40998 2000-07-09  Jim Meyering  <meyering@lucent.com>
40999
41000         * lib/Most files: Update copyright dates to include 2000.
41001
41002 2000-07-08  Jim Meyering  <meyering@lucent.com>
41003
41004         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
41005         if not defined.
41006         (xgethostname): Remove now-unnecessary #ifdef.
41007         Move declaration of `err' into loop where it's used.
41008
41009 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41010         and Bruno Haible  <haible@clisp.cons.org>
41011
41012         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
41013         only if the test for an object-type mbstate_t fails.  This
41014         prevents us from mistakenly reporting that mbstate_t is a
41015         system object type after we "#define mbstate_t int" to work
41016         around its lack.
41017
41018 2000-07-05  Paul Eggert  <eggert@twinsun.com>
41019         and Bruno Haible  <haible@clisp.cons.org>
41020
41021         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
41022
41023 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41024
41025         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
41026         to strerror_r.
41027         Include <ctype.h> for use of isalpha.
41028
41029 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41030
41031         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
41032         by allocating a larger buffer. Test the gethostname return value for
41033         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
41034         returns an error and ENAMETOOLONG isn't defined.
41035
41036 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
41037
41038         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
41039         dimension.
41040
41041 2000-07-04  Jim Meyering  <meyering@lucent.com>
41042
41043         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
41044         of the deprecated AC_CHECKING.
41045
41046 2000-07-04  Jim Meyering  <meyering@lucent.com>
41047
41048         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
41049         Reported by Bruno Haible.
41050
41051 2000-07-04  Jim Meyering  <meyering@lucent.com>
41052
41053         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
41054         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
41055         lacks mbrtowc.
41056
41057 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41058
41059         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
41060         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
41061
41062 2000-07-03  Paul Eggert  <eggert@twinsun.com>
41063         and Bruno Haible  <haible@clisp.cons.org>
41064
41065         * lib/quotearg.c (mbrtowc):
41066         Assign to *pwc, and return 1 only if result is nonzero.
41067         (iswprint): Use ISPRINT when substituting our own mbrtowc.
41068
41069 2000-07-03  Jim Meyering  <meyering@lucent.com>
41070
41071         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
41072
41073 2000-07-03  Jim Meyering  <meyering@lucent.com>
41074
41075         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
41076         This is necessary to get a definition of e.g., UTMP_FILE on
41077         HP-UX 10.20.
41078         From Bob Proulx.
41079
41080 2000-07-02  Jim Meyering  <meyering@lucent.com>
41081
41082         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
41083
41084         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
41085         AC_LIBOBJ(function_name).
41086         * m4/chown.m4: Likewise.
41087         * m4/fnmatch.m4: Likewise.
41088         * m4/ftruncate.m4: Likewise.
41089         * m4/getgroups.m4: Likewise.
41090         * m4/getline.m4: Likewise.
41091         * m4/group-member.m4: Likewise.
41092         * m4/jm-macros.m4: Likewise.
41093         * m4/lstat.m4: Likewise.
41094         * m4/malloc.m4: Likewise.
41095         * m4/memcmp.m4: Likewise.
41096         * m4/nanosleep.m4: Likewise.
41097         * m4/putenv.m4: Likewise.
41098         * m4/realloc.m4: Likewise.
41099         * m4/regex.m4: Likewise.
41100         * m4/stat.m4: Likewise.
41101         * m4/strftime.m4: Likewise.
41102
41103 2000-07-02  Jim Meyering  <meyering@lucent.com>
41104
41105         * lib/quotearg.c (mbstate_t): Don't define here.
41106
41107 2000-07-02  Jim Meyering  <meyering@lucent.com>
41108
41109         * lib/nanosleep.c (SIGCONT): Define if not already defined.
41110
41111 2000-07-01  Jim Meyering  <meyering@lucent.com>
41112
41113         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
41114
41115 2000-07-01  Jim Meyering  <meyering@lucent.com>
41116
41117         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
41118         problem.
41119
41120 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41121
41122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
41123         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
41124
41125 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
41126
41127         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
41128         per change in ../m4/ls-mntd-fs.m4.
41129         (read_filesystem_list): Ignore symbolic links.
41130
41131 2000-06-29  Jim Meyering  <meyering@lucent.com>
41132
41133         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
41134         for declaration of strcmp.
41135
41136         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
41137
41138         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
41139         Avoid warning by casting result to `char *' to remove `const'.
41140
41141 2000-06-28  Jim Meyering  <meyering@lucent.com>
41142
41143         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
41144         included by quotearg.c, for which we perform this test.  From
41145         Bruno Haible.
41146
41147 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41148
41149         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
41150         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
41151         <utmpx.h> exists, put readutmp.o into LIBOBJS.
41152
41153 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
41154
41155         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
41156
41157 2000-06-26  Paul Eggert  <eggert@twinsun.com>
41158
41159         savedir now sets errno on failure and invokes xmalloc to get memory.
41160         Fix a couple of other minor bugs while we're at it.
41161
41162         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
41163         (NAMLEN): Remove macro.
41164         (malloc, realloc): Remove decls.
41165         (stpcpy): Likewise.
41166         ("xalloc.h"): Include.
41167         (NAME_SIZE_DEFAULT): New macro.
41168         (savedir): Use xmalloc / xrealloc to allocate memory.
41169         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
41170         Skip "" directory entries.
41171         Use strlen to calculate directory entry length, since the old method
41172         is rarely used these days and isn't worth supporting.
41173         Don't use a pointer after freeing it.
41174         Check for integer overflow when calculating allocation size.
41175         Use memcpy to copy entries, instead of stpcpy.
41176         Set errno properly when returning NULL.
41177         Check for readdir error.
41178
41179 2000-06-26  Jim Meyering  <meyering@lucent.com>
41180
41181         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
41182
41183 2000-06-25  Jim Meyering  <meyering@lucent.com>
41184
41185         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
41186         Linux header bug when _XOPEN_SOURCE is defined to 500.
41187
41188 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41189
41190         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
41191         deficiency.
41192
41193 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
41194
41195         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
41196         Include xalloc.h.
41197         Don't include <stdlib.h>.  Don't declare malloc, realloc.
41198
41199 2000-06-24  Jim Meyering  <meyering@lucent.com>
41200
41201         * m4/strerror_r.m4: Revive this file -- to try out an experimental
41202         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
41203         for which strerror does return char*, but which lacks a conveniently
41204         accessible declaration of the function.  If the compile-test says
41205         strerror_r doesn't work, then resort to a `run'-test that works on
41206         BeOS and segfaults on DEC Unix.
41207
41208 2000-06-24  Jim Meyering  <meyering@lucent.com>
41209
41210         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
41211
41212 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41213
41214         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
41215         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
41216
41217 2000-06-23  Paul Eggert  <eggert@twinsun.com>
41218
41219         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
41220         (mbrtowc, mbstate_t): Define substitutes if
41221         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
41222         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
41223         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
41224
41225 2000-06-23  Jim Meyering  <meyering@lucent.com>
41226
41227         * m4/afs.m4: Add missing AC_MSG_RESULT.
41228         Reported by Bruno Haible.
41229
41230         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
41231         Suggestion from Bruno Haible.
41232
41233 2000-06-23  Jim Meyering  <meyering@lucent.com>
41234
41235         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
41236
41237 2000-06-21  Jim Meyering  <meyering@lucent.com>
41238
41239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
41240
41241 2000-06-21  Jim Meyering  <meyering@lucent.com>
41242
41243         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
41244         (noinst_HEADERS): Add getstr.h.
41245
41246         * lib/getline.c (getstr): Move into a separate file.
41247         * lib/getstr.c (getstr): New file, extracted from getline.c, with
41248         the following changes: new parameter, delim2; both delim[12]
41249         parameters have type `int', not `char'.  The latter would lose
41250         with 8-bit delimiters.
41251         * lib/getstr.h: New file.
41252
41253 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41254
41255         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
41256         than 1024, return a memory chunk of least possible size, instead
41257         of size PATH_MAX + 2. In the loop, increment the size proportionally.
41258         Use free/xmalloc instead of xrealloc to avoid copying for very long
41259         paths.
41260
41261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41262
41263         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
41264         the empty string.
41265
41266 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
41267
41268         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
41269         address, not strdup.  Include <stdlib.h> and don't declare free().
41270
41271 2000-06-19  Jim Meyering  <meyering@lucent.com>
41272
41273         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
41274
41275 2000-06-18  Jim Meyering  <meyering@lucent.com>
41276
41277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
41278
41279         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
41280         `checking whether...' message to be consistent with that of the
41281         lstat test.
41282
41283 2000-06-18  Jim Meyering  <meyering@lucent.com>
41284
41285         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
41286         Besides, these days every porting target provides a mkdir function.
41287
41288         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
41289         needed. (this snippet comes from src/system.h).
41290
41291 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
41292
41293         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
41294
41295 2000-06-15  Paul Eggert  <eggert@twinsun.com>
41296
41297         * lib/human.c (adjust_value): New function.
41298         (human_readable_inexact): Apply rounding style even when
41299         printing approximate values.
41300
41301 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41302
41303         * lib/human.c (human_readable_inexact): Allow an input block
41304         size that is not a multiple of the output block size, and vice versa.
41305         Reported by Piergiorgio Sartor.
41306
41307 2000-06-14  Paul Eggert  <eggert@twinsun.com>
41308
41309         * lib/getdate.y (get_date): Apply relative times after time
41310         zone indicator, not before.  Reported by Todd A. Jacobs.
41311
41312 2000-06-13  Jim Meyering  <meyering@lucent.com>
41313
41314         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
41315
41316         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
41317
41318 2000-06-12  Paul Eggert  <eggert@twinsun.com>
41319
41320         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
41321
41322 2000-06-12  Jim Meyering  <meyering@lucent.com>
41323
41324         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
41325         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
41326         optional argument.
41327         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
41328         the optional argument, `lib'.
41329
41330 2000-06-08  Jim Meyering  <meyering@lucent.com>
41331
41332         * m4/largefile.m4: Remove file (now that it's part of autoconf).
41333
41334 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41335
41336         Rewrite largefile configuration so that we don't need to run
41337         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
41338         AC_CANONICAL_HOST in configure.in -- jmm]
41339
41340         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
41341         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
41342         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
41343         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
41344         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
41345         All uses changed.
41346         Instead of inspecting the output of getconf, try to compile the
41347         test program without and with the macro definition.
41348         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
41349         for getconf.  Instead, check for the needed flags by compiling
41350         test programs.
41351
41352 2000-06-04  Paul Eggert  <eggert@twinsun.com>
41353
41354         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
41355
41356 2000-06-04  Jim Meyering  <meyering@lucent.com>
41357
41358         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
41359         SunOS 4.1.4 for which gid_t is an unsigned type.
41360
41361 2000-06-03  Jim Meyering  <meyering@lucent.com>
41362
41363         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
41364         now that autoconf requires that.
41365
41366         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
41367         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
41368         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
41369
41370 2000-06-03  Jim Meyering  <meyering@lucent.com>
41371
41372         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
41373
41374 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41375
41376         * m4/glibc21.m4: New file.
41377         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
41378
41379 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
41380
41381         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
41382         newer, don't install charset.alias.
41383         * lib/config.charset: Change the Linux/glibc rules so they become empty
41384         on glibc-2.1 or newer.
41385
41386 2000-06-02  Jim Meyering  <meyering@lucent.com>
41387
41388         * lib/mountlist.c: Back out last change.  Instead, do this...
41389         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
41390         me_dummy member using the same `ignore'-testing code.
41391         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
41392         fs_type strings.
41393         From Mark D. Roth.
41394
41395 2000-05-29  Jim Meyering  <meyering@lucent.com>
41396
41397         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
41398         mounts with the `ignore' attribute.  Based on a patch from
41399         Mark D. Roth.
41400
41401 2000-05-28  Jim Meyering  <meyering@lucent.com>
41402
41403         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
41404         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41405         * m4/stat.m4: Likewise.
41406         * m4/lstat.m4: Likewise.
41407         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
41408
41409         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
41410         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
41411
41412 2000-05-26  Jim Meyering  <meyering@lucent.com>
41413
41414         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
41415
41416 2000-05-24  Jim Meyering  <meyering@lucent.com>
41417
41418         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
41419         autoconf requires that.
41420         * m4/lib-check.m4: Likewise.
41421         * m4/jm-macros.m4: Likewise.
41422         * m4/strftime.m4: Likewise.
41423
41424         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
41425         AC_CHECK_DECLS, now that autoconf requires that.
41426
41427 2000-05-22  Jim Meyering  <meyering@lucent.com>
41428
41429         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41430         * m4/lstat.m4: Likewise.
41431
41432 2000-05-22  Jim Meyering  <meyering@lucent.com>
41433
41434         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
41435
41436 2000-05-20  Jim Meyering  <meyering@lucent.com>
41437
41438         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
41439         (jm_PREREQ): Use it.
41440
41441 2000-05-18  Jim Meyering  <meyering@lucent.com>
41442
41443         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
41444         back, too, since it may have been modified by allocate_entry.
41445         (hash_delete): Rewrite to use neither the assignment operator
41446         nor the comma operator in an if-expression.
41447
41448 2000-05-15  Paul Eggert  <eggert@twinsun.com>
41449
41450         * lib/closeout.c:
41451         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
41452         Remove; no longer needed.
41453         "quotearg.h": Add include.
41454         (file_name): Do not bother to explicitly initialize to NULL; it's less
41455         efficient on some hosts.
41456         (close_stdout_status): Remove test as to whether stdout was already
41457         closed; it breaks for the case "echo x | sort >&-".
41458         Quote file name colons.
41459         Do not assume that _("write error") lacks format strings.
41460
41461 2000-05-15  Jim Meyering  <meyering@lucent.com>
41462
41463         * lib/version-etc.c (version_etc_copyright): Update the copyright
41464         string used in all --version output.
41465
41466 2000-05-14  Jim Meyering  <meyering@lucent.com>
41467
41468         * lib/closeout.c (close_stdout_set_file_name): New function.
41469         (close_stdout_status): Use new file-scoped global.
41470         Return right away if fstat says the stdout file descriptor is invalid.
41471         * lib/closeout.h (close_stdout_set_file_name): Declare.
41472
41473 2000-05-10  Jim Meyering  <meyering@lucent.com>
41474
41475         * lib/closeout.c [default_exit_status]: New file-scoped variable.
41476         (close_stdout_set_status): New function.
41477         * lib/closeout.h (close_stdout_set_status): Declare.
41478
41479 2000-05-09  Jim Meyering  <meyering@lucent.com>
41480
41481         * m4/gettext.m4: Rename this...
41482         * m4/libintl.m4: ...to this.
41483
41484 2000-05-08  Jim Meyering  <meyering@lucent.com>
41485
41486         * lib/long-options.c: Don't include closeout.h.
41487         (parse_long_options): Don't call close_stdout for --version.
41488
41489 2000-05-06  Paul Eggert  <eggert@twinsun.com>
41490
41491         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
41492         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
41493         2.1.3 bug.  This avoids a clash when files like regex.c define
41494         _GNU_SOURCE.
41495
41496 2000-05-06  Jim Meyering  <meyering@lucent.com>
41497
41498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
41499         (AC_REPLACE_FUNCS): Add strnlen.
41500
41501         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
41502         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
41503
41504         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
41505         AC_SEARCH_LIBS call for nanosleep.
41506         (LIB_NANOSLEEP): Set and AC_SUBST.
41507
41508 2000-05-06  Jim Meyering  <meyering@lucent.com>
41509
41510         * lib/strnlen.c: Undefine __strnlen and strnlen.
41511         [!weak_alias]: Define __strnlen to strnlen.
41512
41513         * lib/atexit.c: New file, from libiberty.
41514
41515 2000-05-06  Jim Meyering  <meyering@lucent.com>
41516
41517         * lib/closeout.c (close_stdout_status): Also check for errors on the
41518         stderr stream.
41519
41520 2000-05-05  Jim Meyering  <meyering@lucent.com>
41521
41522         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
41523         AC_SEARCH_LIBS call for clock_gettime.
41524         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
41525
41526         * m4/search-libs.m4: Update from autoconf.
41527
41528         su doesn't work on Solaris 2.6.
41529         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
41530         <shadow.h>.  Reported by Dragos Harabor.
41531
41532 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
41533
41534         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
41535         memcpy instead of xmalloc, xrealloc, path_concat.
41536         (locale_charset): Treat empty environment variables as absent.
41537         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
41538
41539 2000-05-04  Jim Meyering  <meyering@lucent.com>
41540
41541         * lib/getopt.c: Update from glibc.
41542         * lib/obstack.c: Likewise.
41543         * lib/obstack.h: Likewise.
41544         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
41545         file
41546
41547         * lib/regex.h: Likewise.
41548         * lib/strndup.c: Likewise.
41549         * lib/strnlen.c: New file, from glibc.
41550
41551 2000-05-03  Jim Meyering  <meyering@lucent.com>
41552
41553         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
41554
41555 2000-05-02  Paul Eggert  <eggert@twinsun.com>
41556
41557         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
41558         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
41559         compile-time test, rather than inspecting host and OS, to
41560         decide whether to define _LARGEFILE_SOURCE.
41561
41562 2000-05-01  Jim Meyering  <meyering@lucent.com>
41563
41564         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
41565
41566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
41567         Based on a patch from Bruno Haible.
41568
41569 2000-05-01  Jim Meyering  <meyering@lucent.com>
41570
41571         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
41572
41573 2000-04-29  Jim Meyering  <meyering@lucent.com>
41574
41575         * lib/path-concat.c: Declare strdup only if it's not defined.
41576         * lib/canon-host.c: Likewise.
41577
41578 2000-04-28  Jim Meyering  <meyering@lucent.com>
41579
41580         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
41581         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
41582         is included first, then limits.h is included by locale.h by libintl.h.
41583         From John David Anglin.
41584
41585 2000-04-25  Jim Meyering  <meyering@lucent.com>
41586
41587         * lib/makepath.c (S_IRWXUGO): Define.
41588         (make_path): Always perform explicit chmod if MODE specifies any
41589         of the `special' permission bits.  Prompted by a bug report against
41590         install from Mate Wierdl and Joost van Baal.
41591
41592 2000-04-18  Jim Meyering  <meyering@lucent.com>
41593
41594         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
41595         (jm_PREREQ): Use it.
41596
41597 2000-04-18  Jim Meyering  <meyering@lucent.com>
41598
41599         * lib/README: New file.
41600
41601         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
41602         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
41603
41604 2000-04-17  Jim Meyering  <meyering@lucent.com>
41605
41606         Get it right :-)
41607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
41608         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
41609         Suggestion from Akim Demaille.
41610
41611 2000-04-17  Jim Meyering  <meyering@lucent.com>
41612
41613         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
41614         the definition of it to rpl_strftime also defined-away the system's
41615         declaration.
41616
41617 2000-04-15  Jim Meyering  <meyering@lucent.com>
41618
41619         Use `C' to denote so-called `contiguous' files, the same way
41620         that tar does.
41621         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
41622         (ftypelet): Use S_ISCTG.
41623         From Michael Deutschmann.
41624
41625 2000-04-14  Jim Meyering  <meyering@lucent.com>
41626
41627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
41628         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
41629         clobbered.
41630
41631 2000-04-14  Jim Meyering  <meyering@lucent.com>
41632
41633         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
41634
41635 2000-04-13  Jim Meyering  <meyering@lucent.com>
41636
41637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
41638         AH_VERBATIM to insert required #ifndef into config.h.in.
41639         Suggestion from Akim Demaille.
41640
41641 2000-04-12  Jim Meyering  <meyering@lucent.com>
41642
41643         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
41644         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
41645         Christian Krackowizer.
41646
41647         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
41648         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
41649         (AC_SYS_LARGEFILE): Require.
41650         (AM_C_PROTOTYPES): Require.
41651
41652 2000-04-08  Jim Meyering  <meyering@lucent.com>
41653
41654         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
41655         names don't conflict.  Reported by Eli Zaretskii.
41656
41657 2000-04-07  Jim Meyering  <meyering@lucent.com>
41658
41659         * lib/putenv.c: Move inclusion of errno.h so it follows that of
41660         sys/types.h, to work around system header problems on AIX 3.2.5.
41661         From Bruno Haible.
41662
41663 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
41664
41665         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
41666         bug.  Deal with the different error behavior of Irix iconv.
41667
41668 2000-04-05  Paul Eggert  <eggert@twinsun.com>
41669
41670         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
41671         IRIX if the installer said otherwise.
41672
41673 2000-04-05  Jim Meyering  <meyering@lucent.com>
41674
41675         Portability tweaks required for ultrix4.3.
41676         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
41677         (jm_CHECK_DECLS): Add getutent to the list of functions.
41678         (_jm_DECL_HEADERS): Add utmpx.h.
41679         From John David Anglin.
41680
41681         * m4/strftime.m4: Back out the 2000-04-02 change.
41682         Instead of that change, simply undefine putenv in the test program.
41683
41684 2000-04-05  Jim Meyering  <meyering@lucent.com>
41685
41686         Portability tweaks required for ultrix4.3.
41687         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
41688         getutent.
41689         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
41690         * lib/canon-host.c: Declare strdup.
41691         * lib/path-concat.c: Likewise.
41692         From John David Anglin.
41693
41694 2000-04-04  Jim Meyering  <meyering@lucent.com>
41695
41696         Be more DOS 8.3-friendly.
41697         * lib/ref-add.sin: Renamed from ref-add.sed.in.
41698         * lib/ref-del.sin: Renamed from ref-del.sed.in.
41699         * lib/Makefile.am: Reflect renaming.
41700         Reported by Eli Zaretskii.
41701
41702         Use a temporary file name that won't clash with `charset.alias'
41703         in the DOS 8.3 name space.
41704         * lib/Makefile.am (charset_tmp): Define.
41705         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
41706         (uninstall-local): Likewise.
41707         Reported by Eli Zaretskii.
41708
41709 2000-04-03  Jim Meyering  <meyering@lucent.com>
41710
41711         * m4/gettext.m4: Fix typo in comment.
41712
41713         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
41714         textutils/configure.in).  Suggestion from Paul Eggert.
41715         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
41716
41717 2000-04-02  Paul Eggert  <eggert@twinsun.com>
41718
41719         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
41720         variable in the shell rather than using putenv, which isn't
41721         portable.  This avoids the configure-time inter-test dependency
41722         on the potentially-renamed putenv function.
41723
41724 2000-03-30  Paul Eggert  <eggert@twinsun.com>
41725
41726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
41727         before checking struct stat.st_blksize, so that
41728         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
41729
41730 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41731
41732         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
41733         since strftime.c uses HAVE_STRFTIME to decide whether to use
41734         the underlying strftime.
41735
41736 2000-03-29  Paul Eggert  <eggert@twinsun.com>
41737
41738         * lib/time/strftime.c (my_strftime): Make sure we call the system
41739         strftime, not ourselves, when invoking the underlying strftime.
41740
41741 2000-03-24  Jim Meyering  <meyering@lucent.com>
41742
41743         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
41744         (charset_alias): Define.
41745         (install-exec-local): Factor out common code.
41746         (uninstall-local): Split lines longer than 80.
41747         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
41748         (SUFFIXES): Define.
41749         (.sed.in.sed): New rule.  Don't redirect directly to $@.
41750         (CLEANFILES): Add ref-add.sed and ref-del.sed.
41751
41752 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
41753
41754         * lib/config.charset: Output a line containing "Packages using this
41755         file".
41756         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
41757         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
41758         ref-del.sed): New rules.
41759
41760 2000-03-17  Jim Meyering  <meyering@lucent.com>
41761
41762         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
41763         Otherwise, include <strings.h>
41764
41765 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
41766
41767         * lib/unicodeio.c (utf8_wctomb): New function.
41768         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
41769         format instead of in UCS-4 with platform dependent endianness.
41770
41771 2000-03-10  Jim Meyering  <meyering@lucent.com>
41772
41773         * m4/lib-check.m4: Look for getspnam in -lgen, too.
41774         From Marco Franzen.
41775
41776 2000-03-07  Paul Eggert  <eggert@twinsun.com>
41777
41778         * lib/savedir.c (savedir): Work even if directory size is
41779         negative; this can happen with some screwy NFS configurations.
41780
41781 2000-03-06  Jim Meyering  <meyering@lucent.com>
41782
41783         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
41784         if it's NULL (because we ran out of memory).  From Bruno Haible.
41785
41786 2000-03-05  Jim Meyering  <meyering@lucent.com>
41787
41788         * lib/localcharset.c ("path-concat.h"): Include.
41789         (get_charset_aliases): Use path_concat instead of ANSI string
41790         concatenation.
41791
41792         * lib/unicodeio.h (PARAMS): Define.
41793         Use it to guard prototype.
41794
41795 2000-03-04  Jim Meyering  <meyering@lucent.com>
41796
41797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
41798         for lib/localcharset.c.
41799
41800 2000-03-04  Jim Meyering  <meyering@lucent.com>
41801
41802         * lib/Makefile.am (install-exec-local): Create $(libdir) before
41803         installing into it.
41804         (uninstall-local): Uncomment this rule so `make distcheck' works
41805         once again.
41806
41807         * lib/unicodeio.c (<errno.h>): Include it.
41808         (errno): Declare if not defined.
41809
41810         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
41811
41812         * lib/config.charset: New version, incorporating remarks from a linux
41813         i18n mailing list.  From Bruno Haible.
41814
41815 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
41816
41817         * m4/codeset.m4: New file.
41818         * m4/iconv.m4: New file.
41819         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
41820
41821 2000-03-03  Jim Meyering  <meyering@lucent.com>
41822
41823         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
41824
41825 2000-03-02  Jim Meyering  <meyering@lucent.com>
41826
41827         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
41828         the messages come out on separate lines.
41829
41830         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
41831         rather than jm_CHECK_DECLARATIONS.
41832         * m4/decl.m4: Remove now-unused file.
41833
41834         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
41835         geteuid.
41836
41837 2000-03-02  Jim Meyering  <meyering@lucent.com>
41838
41839         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
41840
41841 2000-03-01  Jim Meyering  <meyering@lucent.com>
41842
41843         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
41844         * lib/unicodeio.c: Likewise.
41845
41846 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
41847
41848         * lib/config.charset: New file.
41849         * lib/localcharset.c: New file.
41850         * lib/unicodeio.h, lib/unicodeio.c: New files.
41851         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
41852         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
41853         (noinst_HEADERS): Add unicodeio.h.
41854         (all-local, install-exec-local, charset.alias): New targets.
41855
41856 2000-02-28  Paul Eggert  <eggert@twinsun.com>
41857
41858         * lib/quotearg.c (ALERT_CHAR): New macro.
41859         (quotearg_buffer_restyled): Use it.
41860
41861 2000-02-27  Jim Meyering  <meyering@lucent.com>
41862
41863         * m4/check-decl.m4: Add getenv to the list.
41864
41865 2000-02-27  Jim Meyering  <meyering@lucent.com>
41866
41867         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
41868         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
41869
41870         * lib/backupfile.c: Guard inclusion of stdlib.h with
41871         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
41872         Declare malloc if needed.
41873
41874         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
41875         `#ifndef HAVE_DECL..'
41876         now that autoconf always defines the HAVE_DECL_ symbols.
41877         * lib/human.c: Likewise.
41878         * lib/same.c: Likewise.
41879         * lib/strtoumax.c: Likewise.
41880
41881         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
41882         declaration check was not run.
41883         * lib/hash.c: Likewise.
41884         * lib/human.c: Likewise.
41885         * lib/same.c: Likewise.
41886         * lib/strtoumax.c: Likewise.
41887
41888         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
41889         `.', then first look up the entire `.'-containing string as a login
41890         name.
41891
41892 2000-02-23  Jim Meyering  <meyering@lucent.com>
41893
41894         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
41895         in place of my hack.
41896
41897 2000-02-18  Paul Eggert  <eggert@twinsun.com>
41898
41899         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
41900         (textint): New typedef.
41901         (parser_control): Member year changed from int to textint.
41902         All uses changed.
41903         (YYSTYPE): Removed; replaced by %union with int and textint members.
41904         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
41905         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
41906         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
41907         (tSNUMBER, tUNUMBER): Now of type <textintval>.
41908         (date, number, to_year): Use width of number in digits, not its value,
41909         to determine whether it's a 2-digit year, or a 2-digit time.
41910         (yylex): Store number of digits of numeric tokens.
41911         Reported by John Kendall.
41912
41913         (parser_control): Changed from struct parser_control to typedef (for
41914         consistency).  All uses changed.
41915
41916         (tID): Removed; not used.
41917         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
41918
41919 2000-02-14  Paul Eggert  <eggert@twinsun.com>
41920
41921         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
41922         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
41923
41924 2000-02-12  Jim Meyering  <meyering@lucent.com>
41925
41926         * lib/userspec.c (ISDIGIT): Define it.
41927         (isdigit): Remove definition.
41928         (is_number): Use ISDIGIT, not isdigit.
41929         <libintl.h>: Include.
41930         (_ and N_): Define.
41931         (parse_user_spec): Mark translatable strings.
41932
41933 2000-02-10  Jim Meyering  <meyering@lucent.com>
41934
41935         With these changes, nanosleep.[ch] are finally enough like the other
41936         lib/* replacement files to compile on a few more losing systems.
41937
41938         * lib/nanosleep.h: Don't include config.h.
41939         Remove prototype from declaration of nanosleep.
41940         (PARAMS): Remove now-unneeded definition.
41941         * lib/nanosleep.c: #undef nanosleep.
41942         (rpl_nanosleep): Rename from nanosleep.
41943
41944 2000-02-10  Jim Meyering  <meyering@lucent.com>
41945
41946         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
41947         gnu_nanosleep to rpl_nanosleep.
41948
41949 2000-02-09  Jim Meyering  <meyering@lucent.com>
41950
41951         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
41952         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
41953
41954 2000-02-08  Akim Demaille  <akim@epita.fr>
41955
41956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
41957         `[' and `]' and remove uses of `changequote'.
41958         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
41959         (AC_SYS_LARGEFILE): Likewise.
41960         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41961         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
41962         of changequote.
41963         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
41964         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
41965         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
41966         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
41967
41968 2000-02-05  Jim Meyering  <meyering@lucent.com>
41969
41970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
41971         Remove explicit use of AC_HEADER_TIME.  It is required by
41972         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
41973         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
41974         in autoconf whereby the expansion of the latter ended up preceding
41975         the expansion of its prerequisite, AC_HEADER_TIME.
41976         Reported by Volker Borchert.
41977
41978 2000-02-03  Jim Meyering  <meyering@lucent.com>
41979
41980         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
41981
41982 2000-02-03  Jim Meyering  <meyering@lucent.com>
41983
41984         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
41985         rather than with `#if HAVE_UTMPNAME'.
41986
41987 2000-02-02  Jim Meyering  <meyering@lucent.com>
41988
41989         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
41990         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
41991         Reported by Eli Zaretskii.
41992
41993 2000-02-01  Jim Meyering  <meyering@lucent.com>
41994
41995         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
41996
41997 2000-01-31  Jim Meyering  <meyering@lucent.com>
41998
41999         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
42000         functions.  Add the time.h and sys/time.h headers along with the
42001         AC_REQUIRE'ment of AC_HEADER_TIME.
42002
42003 2000-01-31  Jim Meyering  <meyering@lucent.com>
42004
42005         * lib/nanosleep.h (nanosleep): Guard declaration with
42006         `#if ! HAVE_DECL_NANOSLEEP'.
42007         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
42008         the declaration in that vendor's sys/timers.h.
42009         Reported by Christian Krackowizer.
42010
42011         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
42012         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
42013         (ISPRINT): Likewise.
42014         Reported by Tom Tromey.
42015
42016 2000-01-30  Jim Meyering  <meyering@lucent.com>
42017
42018         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
42019
42020         * m4/prereq.m4 (utmp_includes): Define.
42021         Check for ut_user and ut_name members in both struct utmpx
42022         and struct utmp.
42023
42024 2000-01-30  Jim Meyering  <meyering@lucent.com>
42025
42026         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
42027         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
42028         header files where only utmpx.ut_user is declared.
42029
42030         * lib/readutmp.h (UT_USER): Define.
42031
42032 2000-01-29  Jim Meyering  <meyering@lucent.com>
42033
42034         * m4/lib-check.m4: New file containing library-related checks from
42035         fileutils and sh-utils (textutils had none).
42036
42037 2000-01-28  Jim Meyering  <meyering@lucent.com>
42038
42039         * m4/perl.m4: Change format of warning message to look more like that
42040         from the missing script.  Suggestion from François Pinard.
42041
42042 2000-01-25  Jim Meyering  <meyering@lucent.com>
42043
42044         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
42045         well as time.h in the compile check.
42046         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
42047         Fix typo in cross-compiling case: s/yes/no/.
42048
42049 2000-01-23  Jim Meyering  <meyering@lucent.com>
42050
42051         * m4/jm-macros.m4: Move df-related tests here from
42052         fileutils/configure.in
42053
42054         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
42055         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
42056
42057         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
42058         s/space/ac_fsusage_space/.
42059         (jm_FILE_SYSTEM_USAGE): Take two parameters.
42060
42061         * m4/ftruncate.m4: New file (derived from part of
42062         fileutils/configure.in).
42063         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
42064         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
42065
42066         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
42067         AC_SUBST these here, rather than just in sh-util/configure.in, so
42068         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
42069         all the same.
42070         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
42071         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
42072         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
42073         (AC_SUBST(POW_LIBM)): Likewise.
42074         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
42075
42076 2000-01-23  Jim Meyering  <meyering@lucent.com>
42077
42078         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
42079         obstack.c.
42080
42081 2000-01-22  Jim Meyering  <meyering@lucent.com>
42082
42083         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
42084
42085         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
42086
42087         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
42088         configure.in
42089         (AC_CHECK_HEADERS): Likewise for sh-utils.
42090         (AC_CHECK_HEADERS): Likewise for textutils.
42091         Merge the three lists of headers.
42092
42093         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
42094         from fileutils' configure.in.
42095
42096         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
42097         code. Moved tests into their own function (_jm_DECL_HEADERS) in
42098         check-decl.m4.
42099
42100         * m4/check-decl.m4: Use #if rather than #ifdef.
42101         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
42102         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
42103         (_jm_DECL_HEADERS): Define new function.
42104         (jm_CHECK_DECLARATIONS): Require it.
42105
42106 2000-01-22  Jim Meyering  <meyering@lucent.com>
42107
42108         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
42109         [! HAVE_DECL_STRTOULL]: Declare strtoull.
42110         Required for some AIX systems.  Reported by Christian Krackowizer.
42111         [TESTING] (main): New function.
42112
42113         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
42114         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
42115         letters.
42116
42117         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
42118         iswprint.
42119
42120         * lib/strverscmp.c (ISDIGIT): Define.
42121         (strverscmp): Use ISDIGIT, not isdigit.
42122
42123 2000-01-19  Jim Meyering  <meyering@lucent.com>
42124
42125         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
42126         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
42127         defines `struct timespec' in <sys/time.h>
42128
42129         * m4/c-bs-a.m4: Remove uses of changequote altogether.
42130         Thanks to Akim for explaining.
42131
42132 2000-01-17  Paul Eggert  <eggert@twinsun.com>
42133
42134         * lib/nanosleep.c (nanosleep):
42135         Don't use SA_INTERRUPT to decide whether to call sigaction, as
42136         POSIX.1 doesn't require SA_INTERRUPT and some systems
42137         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
42138         it's been part of POSIX.1 since day 1 (in 1988).
42139
42140 2000-01-17  Jim Meyering  <meyering@lucent.com>
42141
42142         * lib/interlock: Remove unused file.  Reported by François Pinard.
42143
42144 2000-01-16  Paul Eggert  <eggert@twinsun.com>
42145
42146         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
42147         alert, backslash, formfeed, and vertical tab unnecessarily in
42148         shell quoting style.
42149
42150 2000-01-16  Jim Meyering  <meyering@lucent.com>
42151
42152         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
42153         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
42154         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
42155         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
42156
42157 2000-01-16  Jim Meyering  <meyering@lucent.com>
42158
42159         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
42160         because the latter didn't work.
42161
42162 2000-01-15  Jim Meyering  <meyering@lucent.com>
42163
42164         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
42165         (AC_REPLACE_FUNCS): Add memcpy and memset.
42166         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
42167         Add strpbrk.
42168         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
42169
42170 2000-01-12  Jim Meyering  <meyering@lucent.com>
42171
42172         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
42173         (jm_PREREQ): Use it.
42174         (jm_PREREQ_READUTMP): New macro.
42175         (jm_PREREQ): Use it.
42176
42177 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42178
42179         Quote multibyte characters correctly.
42180         * m4/c-bs-a.m4: New file.
42181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
42182         (jm_PREREQ): Use it.
42183
42184 2000-01-11  Paul Eggert  <eggert@twinsun.com>
42185
42186         * m4/uintmax_t.m4: Port to autoconf 2.13.
42187
42188 2000-01-08  Jim Meyering  <meyering@ascend.com>
42189
42190         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
42191         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
42192
42193 2000-01-04  Jim Meyering  <meyering@ascend.com>
42194
42195         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
42196         jm_STRUCT_DIRENT_D_TYPE.
42197         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
42198         jm_STRUCT_DIRENT_D_INO.
42199         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
42200         jm_STRUCT_UTIMBUF.
42201         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
42202         renamings.
42203         * m4/utime.m4: Likewise.
42204
42205         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
42206         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
42207
42208 2000-01-03  Paul Eggert  <eggert@twinsun.com>
42209
42210         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
42211         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
42212
42213 2000-01-02  Jim Meyering  <meyering@ascend.com>
42214
42215         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
42216         remember if this is necessary.
42217
42218 1999-12-26  Jim Meyering  <meyering@ascend.com>
42219
42220         * m4/jm-macros.m4: Use it here.
42221         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
42222
42223 1999-12-23  Jim Meyering  <meyering@ascend.com>
42224
42225         * m4/jm-macros.m4: Check for clock_gettime (moved from
42226         fileutils/configure.in)
42227         Check for gettimeofday.
42228
42229 1999-12-20  Jim Meyering  <meyering@ascend.com>
42230
42231         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
42232         autoconf-2.14a-1999-12-20.
42233
42234 1999-12-19  Jim Meyering  <meyering@ascend.com>
42235
42236         * m4/lstat-slash.m4: New file.
42237         * m4/jm-macros.m4: Use the new macro:
42238         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42239
42240 1999-12-07  Jim Meyering  <meyering@ascend.com>
42241
42242         * m4/perl.m4: Require that File::Compare be available, too.
42243         Too many systems seem to lack it.
42244
42245         * m4/strftime.m4: Add checks for most of the cpp macros tested in
42246         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
42247
42248 1999-11-18  Paul Eggert  <eggert@twinsun.com>
42249
42250         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
42251         problem with the QNX 4.25 shell, which doesn't propagate exit
42252         status of failed commands inside shell assignments.
42253
42254 1999-11-17  Jim Meyering  <meyering@ascend.com>
42255
42256         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
42257
42258 1999-11-07  Jim Meyering  <meyering@ascend.com>
42259
42260         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
42261
42262 1999-11-06  Jim Meyering  <meyering@ascend.com>
42263
42264         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
42265         * m4/jm-macros.m4 (jm_MACROS): Use it here.
42266
42267 1999-11-05  Jim Meyering  <meyering@ascend.com>
42268
42269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
42270         configure.in of textutils, fileutils, and sh-utils into this one
42271         (shared between those packages) file.
42272         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
42273         AC_STRUCT_ST_BLKSIZE.
42274
42275 1999-11-03  Jim Meyering  <meyering@ascend.com>
42276
42277         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
42278         of AC_CHECK_TYPE checks includes unistd.h.
42279         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
42280         Suggestion from Akim Demaille.
42281
42282 1999-10-30  Jim Meyering  <meyering@ascend.com>
42283
42284         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
42285         m4-quoted string.
42286         * m4/ls-mntd-fs.m4: Likewise.
42287         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
42288         * m4/jm-winsz1.m4: Likewise.
42289
42290         * m4/const.m4: Remove file, since the fix made it into the experimental
42291         version of autoconf.
42292         * m4/mktime.m4: Likewise.
42293
42294         * m4/check-type.m4: Remove file, now that the latest version of
42295         AC_CHECK_TYPE takes a third arg to specify additional #includes.
42296
42297         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
42298         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
42299         AC_CHECK_TYPE.
42300
42301 1999-10-04  Jim Meyering  <meyering@ascend.com>
42302
42303         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
42304
42305 1999-09-22  Paul Eggert  <eggert@twinsun.com>
42306
42307         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
42308         2.95.1 bug with HP-UX 10.20.
42309
42310 1999-09-17  Jim Meyering  <meyering@ascend.com>
42311
42312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
42313         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
42314         due to missing strdup (against sh-utils-2.0).
42315
42316 1999-08-29  Jim Meyering  <meyering@ascend.com>
42317
42318         * m4/jm-macros.m4: Require jm_BISON.
42319         * m4/bison.m4: New file.
42320
42321 1999-08-17  Paul Eggert  <eggert@twinsun.com>
42322
42323         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
42324         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
42325
42326 1999-08-05  Jim Meyering  <meyering@ascend.com>
42327
42328         * m4/getline.m4: Rename test file from conftestdata to conftest.data
42329         to avoid conflicts with `conftest' on 8+3 filesystems.
42330         Suggestion from Eli Zaretskii.
42331
42332 1999-08-04  Jim Meyering  <meyering@ascend.com>
42333
42334         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
42335         fileutils and sh-utils (textutils's getline test was inadequate).
42336         (AM_FUNC_GETLINE): Run this test.
42337         (AC_CHECK_FUNCS): Check for getdelim.
42338         Reported by Bob Proulx.
42339
42340 1999-08-02  Jim Meyering  <meyering@ascend.com>
42341
42342         * m4/jm-macros.m4: Add a comment.
42343
42344 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42345
42346         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
42347         <inttypes.h> defines strtoumax as a macro (and not as a
42348         function).
42349
42350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42351
42352         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
42353         that we can shift, multiply and divide unsigned long long
42354         values; Ultrix cc can't do it.
42355
42356 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42357
42358         * m4/mktime.m4: New file, which is a preview of what should appear
42359         in the next public autoconf release.
42360
42361 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42362
42363         * m4/lfs.m4: Remove this file.
42364         * m4/largefile.m4: New file.  It contains the old contents of
42365         lfs.m4, except that all names with prefix AC_LFS have been
42366         changed to use the prefix AC_SYS_LARGEFILE instead, to be
42367         compatible with future autoconf versions.  Also, some minor m4
42368         quoting problems have been fixed.
42369
42370 1999-08-01  Paul Eggert  <eggert@twinsun.com>
42371
42372         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
42373         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
42374         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
42375         and simplify the shell code.
42376
42377 1999-08-01  Jim Meyering  <meyering@ascend.com>
42378
42379         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
42380         m4.
42381
42382 1999-07-20  Jim Meyering  <meyering@ascend.com>
42383
42384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
42385
42386 1999-07-15  Jim Meyering  <meyering@ascend.com>
42387
42388         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
42389
42390 1999-05-22  Jim Meyering  <meyering@ascend.com>
42391
42392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
42393
42394 1999-05-20  Jim Meyering  <meyering@ascend.com>
42395
42396         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
42397         Add a colon after each `then' in case $4 is empty.
42398
42399 1999-05-16  Jim Meyering  <meyering@ascend.com>
42400
42401         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
42402
42403 1999-05-10  Jim Meyering  <meyering@ascend.com>
42404
42405         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
42406
42407         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
42408         AC_FUNC_MKTIME.
42409
42410 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
42411
42412         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
42413
42414 1999-05-04  Paul Eggert  <eggert@twinsun.com>
42415
42416         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
42417         not CPPFLAGS, so that linking works correctly in IRIX.
42418
42419 1999-04-30  Paul Eggert  <eggert@twinsun.com>
42420
42421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
42422
42423 1999-04-20  Paul Eggert  <eggert@twinsun.com>
42424
42425         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
42426         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
42427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
42428         jm_AC_TYPE_UNSIGNED_LONG_LONG.
42429         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
42430
42431         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
42432
42433 1999-04-20  Jim Meyering  <meyering@ascend.com>
42434
42435         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
42436         AC_REPLACE xstroull if necessary.  From Paul Eggert.
42437         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
42438
42439 1999-04-18  Jim Meyering  <meyering@ascend.com>
42440
42441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
42442         * m4/jm-macros.m4: Use it.
42443
42444 1999-04-06  Jim Meyering  <meyering@ascend.com>
42445
42446         * m4/strftime.m4: Remove test for %f.
42447
42448 1999-03-29  Jim Meyering  <meyering@ascend.com>
42449
42450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
42451         superset of the AC_TYPE_* checks in the textutils, fileutils,
42452         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
42453         AC_TYPE_PID_T.
42454
42455 1999-03-28  Jim Meyering  <meyering@ascend.com>
42456
42457         * m4/jm-macros.m4: Define GNU_PACKAGE here.
42458         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
42459         replaced e.g., in the *.sh files of the sh-utils.
42460
42461 1999-03-20  Jim Meyering  <meyering@ascend.com>
42462
42463         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
42464         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
42465         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
42466
42467 1999-03-19  Jim Meyering  <meyering@ascend.com>
42468
42469         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
42470
42471 1999-03-12  Jim Meyering  <meyering@ascend.com>
42472
42473         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
42474
42475 1999-03-07  Jim Meyering  <meyering@ascend.com>
42476
42477         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
42478         declared.
42479
42480 1999-02-17  Jim Meyering  <meyering@ascend.com>
42481
42482         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
42483         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
42484
42485 1999-02-07  Jim Meyering  <meyering@ascend.com>
42486
42487         * m4/group-member.m4: New file -- extracted from sh-utils'
42488         configure.in.
42489
42490         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
42491         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
42492
42493 1999-02-06  Jim Meyering  <meyering@ascend.com>
42494
42495         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
42496         * m4/fnmatch.m4: Likewise.
42497         * m4/getgroups.m4: Likewise.
42498         * m4/lstat.m4: Likewise.
42499         * m4/malloc.m4: Likewise.
42500         * m4/putenv.m4: Likewise.
42501         * m4/realloc.m4: Likewise.
42502         * m4/regex.m4: Likewise.
42503         * m4/stat.m4: Likewise.
42504         * m4/strftime.m4: Likewise.
42505         Suggestion from Alain Magloire.
42506
42507         * m4/chown.m4: Use `.$ac_objext', not `.o'.
42508         * m4/fnmatch.m4: Likewise.
42509         * m4/getgroups.m4: Likewise.
42510         * m4/getline.m4: Likewise.
42511         * m4/lstat.m4: Likewise.
42512         * m4/malloc.m4: Likewise.
42513         * m4/memcmp.m4: Likewise.
42514         * m4/putenv.m4: Likewise.
42515         * m4/realloc.m4: Likewise.
42516         * m4/regex.m4: Likewise.
42517         * m4/stat.m4: Likewise.
42518         * m4/strftime.m4: Likewise.
42519         Suggestion from Alain Magloire.
42520
42521         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
42522         an argument.
42523
42524         * m4/regex.m4: Add a run-time Test for proper operation of
42525         re_compile_pattern.
42526
42527 1999-01-31  Jim Meyering  <meyering@ascend.com>
42528
42529         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
42530
42531 1999-01-30  Jim Meyering  <meyering@ascend.com>
42532
42533         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
42534
42535         * m4/jm-mktime.m4: Make this a wrapper around the official
42536         AM_FUNC_MKTIME rather than my private copy, now that the official one
42537         is up to date.
42538         * m4/mktime.m4: Remove file.
42539
42540         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
42541         * m4/uptime.m4: Likewise.
42542         * m4/uintmax_t.m4: Likewise.
42543
42544 1999-01-28  Jim Meyering  <meyering@ascend.com>
42545
42546         * m4/jm-macros.m4: Use jm_AFS.
42547         * m4/afs.m4: New file (from fileutils' configure.in).
42548
42549         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
42550         * m4/chown.m4: Likewise.
42551         * m4/d-ino.m4: Likewise.
42552         * m4/d-type.m4: Likewise.
42553         * m4/fnmatch.m4: Likewise.
42554         * m4/getgroups.m4: Likewise.
42555         * m4/gettext.m4: Likewise.
42556         * m4/jm-mktime.m4: Likewise.
42557         * m4/jm-winsz2.m4: Likewise.
42558         * m4/lcmessage.m4: Likewise.
42559         * m4/ls-mntd-fs.m4: Likewise.
42560         * m4/malloc.m4: Likewise.
42561         * m4/memcmp.m4: Likewise.
42562         * m4/putenv.m4: Likewise.
42563         * m4/realloc.m4: Likewise.
42564         * m4/st_mtim.m4: Likewise.
42565         * m4/strftime.m4: Likewise.
42566
42567 1999-01-16  Jim Meyering  <meyering@ascend.com>
42568
42569         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
42570         (ARGMATCH_DIE_DECL): Define.
42571
42572 1999-01-12  Jim Meyering  <meyering@ascend.com>
42573
42574         * m4/Makefile.am.in: Rewrite to avoid using fmt.
42575         Reported by Lars Hecking.
42576
42577 1999-01-10  Jim Meyering  <meyering@ascend.com>
42578
42579         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
42580         gross kludge.
42581         * m4/inttypes_h.m4: Likewise.
42582         * m4/lstat.m4: Likewise.
42583         * m4/malloc.m4: Likewise.
42584         * m4/readdir.m4: Likewise.
42585         * m4/realloc.m4: Likewise.
42586         * m4/st_dm_mode.m4: Likewise.
42587         * m4/stat.m4: Likewise.
42588         * m4/utimbuf.m4: Likewise.
42589         * m4/utimes.m4: Likewise.
42590
42591         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
42592         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
42593         comments in config.h.in are meaningful.
42594
42595         * m4/jm-macros.m4: Require autoconf-2.13 here.
42596
42597         * m4/regex.m4: By default, don't use the included regex.c on systems
42598         with glibc 2.  Suggestion from Uli Drepper.
42599
42600 1999-01-02  Jim Meyering  <meyering@ascend.com>
42601
42602         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
42603
42604 1998-12-18  Jim Meyering  <meyering@ascend.com>
42605
42606         * m4/Makefile.am.in (Makefile.am): Simplify rule.
42607         Based on a suggestion from Lars Hecking.
42608
42609 1998-11-16  Paul Eggert  <eggert@twinsun.com>
42610
42611         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
42612
42613 1998-11-16  Jim Meyering  <meyering@ascend.com>
42614
42615         * m4/lfs.m4: Double-quote the `uname...` expression.
42616
42617 1998-11-14  Jim Meyering  <meyering@ascend.com>
42618
42619         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
42620         * m4/stat.m4: Likewise.
42621
42622 1998-11-03  Jim Meyering  <meyering@ascend.com>
42623
42624         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
42625         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
42626
42627 1998-10-18  Jim Meyering  <meyering@ascend.com>
42628
42629         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
42630
42631 1998-10-17  Jim Meyering  <meyering@ascend.com>
42632
42633         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
42634         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
42635         calls for those previously hard-coded headers.  Instead, take a new
42636         parameter.
42637         (jm_CHECK_DECLARATIONS): Reflect interface change.
42638         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
42639         (jm_CHECK_DECL_LOCALTIME_R): New macro.
42640
42641         * m4/mktime.m4: Test for spring-forward gap before long-running test.
42642
42643 1998-10-14  Jim Meyering  <meyering@ascend.com>
42644
42645         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
42646         instead of "TZ=America/Vancouver".  From Paul Eggert.
42647
42648 1998-10-11  Jim Meyering  <meyering@ascend.com>
42649
42650         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
42651         This adds a test for a recently added compatibility fix for mktime.c.
42652         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
42653
42654 1998-09-27  Jim Meyering  <meyering@ascend.com>
42655
42656         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
42657
42658         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
42659         ../configure.in, including a change from Gordon Matzigkeit to allow
42660         cross-compiling for the Hurd.
42661
42662         * m4/glibc.m4: New file/macro to test for the GNU C Library
42663         versions 1 and 2.  From Gordon Matzigkeit.
42664         Indent.
42665
42666 1998-09-21  Jim Meyering  <meyering@ascend.com>
42667
42668         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
42669
42670 1998-08-18  Paul Eggert  <eggert@twinsun.com>
42671
42672         Port nanosecond-resolution times to UnixWare 2.1.2 and
42673         pedantic Solaris 2.6.
42674
42675         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
42676         AC_STRUCT_ST_MTIM.
42677         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
42678         Generate name of ns member, instead of just 1 or undef.
42679         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
42680
42681 1998-08-15  Jim Meyering  <meyering@ascend.com>
42682
42683         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
42684         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
42685         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
42686         instead of jm_TYPE_SSIZE_T.
42687
42688 1998-08-12  Jim Meyering  <meyering@ascend.com>
42689
42690         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
42691
42692 1998-08-02  Jim Meyering  <meyering@ascend.com>
42693
42694         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
42695         in acconfig.h manually.
42696
42697 1998-07-31  Paul Eggert  <eggert@twinsun.com>
42698
42699         * m4/st_mtim.m4: New file.
42700
42701 1998-07-28  Jim Meyering  <meyering@ascend.com>
42702
42703         * m4/utimes.m4: Undef stat.
42704
42705 1998-07-25  Jim Meyering  <meyering@ascend.com>
42706
42707         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
42708         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
42709
42710 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
42711
42712         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
42713         uid and gid actually remain unchanged.
42714
42715 1998-07-07  Jim Meyering  <meyering@ascend.com>
42716
42717         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
42718
42719 1998-07-04  Jim Meyering  <meyering@ascend.com>
42720
42721         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
42722         to prove that this macro can be used in packages without regex.c.
42723
42724 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
42725
42726         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
42727         is to be used.
42728
42729 1998-07-03  Jim Meyering  <meyering@ascend.com>
42730
42731         * m4/gettext.m4: Add -lintl if it's found to be necessary.
42732
42733         * m4/gettext.m4: New file -- from gettext-0.10.35.
42734         * m4/lcmessage.m4: Likewise.
42735         * m4/progtest.m4: Likewise.
42736
42737         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
42738         * m4/jm-macros.m4: Require the new macro.
42739
42740 1998-06-29  Jim Meyering  <meyering@ascend.com>
42741
42742         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
42743         for the definition of NGROUPS (used in a system header included
42744         by sys/mount.h).
42745
42746 1998-06-28  Jim Meyering  <meyering@ascend.com>
42747
42748         * m4/ls-mntd-fs.m4: New file.
42749         * m4/fstypename.m4: New file.
42750
42751         * m4/jm-macros.m4: Require the new macro.
42752         * m4/jm-glibc-io.m4: New file.
42753
42754 1998-05-19  Jim Meyering  <meyering@ascend.com>
42755
42756         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
42757         * m4/lchown.m4: New file.
42758
42759         * m4/Makefile.am.in: New file.
42760         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
42761
42762 1998-05-14  Jim Meyering  <meyering@ascend.com>
42763
42764         * m4/Makefile.am (EXTRA_DIST): Add them.
42765         * m4/jm-macros.m4: New file.
42766         * m4/utimbuf.m4: New file.
42767
42768 1998-05-12  Jim Meyering  <meyering@ascend.com>
42769
42770         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
42771
42772 1998-05-11  Jim Meyering  <meyering@ascend.com>
42773
42774         * m4/isc-posix.m4: New file.
42775
42776 1998-05-10  Jim Meyering  <meyering@ascend.com>
42777
42778         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
42779
42780 1998-05-09  Jim Meyering  <meyering@ascend.com>
42781
42782         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
42783         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
42784         with automake.
42785
42786         * m4/ssize_t.m4: New file.
42787         * m4/mktime.m4: Remove file -- the new automake has this now.
42788
42789 1998-04-26  Jim Meyering  <meyering@ascend.com>
42790
42791         * m4/assert.m4: New file.
42792         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
42793
42794 1998-04-05  Jim Meyering  <meyering@ascend.com>
42795
42796         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
42797         (jm_PREREQ): Use it here.
42798
42799 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
42800
42801         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
42802         in acconfig.h.
42803
42804 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
42805
42806         * m4/prereq.m4: New file.
42807         * m4/error.m4: New file.
42808         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
42809
42810 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
42811
42812         * m4/getline.m4: Don't set am_cv_func_working_getline before the
42813         cache-check for the same variable -- that defeated the purpose of
42814         the test; the test program was never run.  This was a problem only
42815         on systems with losing getline functions -- HP-UX 10.20 is one.
42816         Reported by Bjorn Helgaas.
42817
42818 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
42819
42820         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
42821
42822 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
42823
42824         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
42825
42826         * m4/const.m4: New file.  Use an initializer in this declaration
42827         typedef int charset[2]; const charset x;
42828         Reported by Bob Glickstein.
42829
42830 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
42831
42832         * m4/chown.m4: Fix reversed types on -1 args to chown.
42833         From Kaveh Ghazi.
42834
42835 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
42836
42837         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
42838         Add lseek and memchr.
42839
42840         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
42841         T.E.Dickey <dickey@clark.net> said that some older preprocessors
42842         have a 20-character limit on names.
42843
42844 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
42845
42846         * m4/inttypes_h.m4: New file.
42847         * m4/uintmax_t.m4: New file.
42848         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
42849
42850
42851         -----
42852
42853         Local Variables:
42854         coding: utf-8
42855         End:
42856
42857         Copyright (C) 1997-2008 Free Software Foundation, Inc.
42858
42859         Copying and distribution of this file, with or without
42860         modification, are permitted provided the copyright notice
42861         and this notice are preserved.