d66c4e63dbebd2bf047076ba5b38f0515c866191
[gnulib.git] / ChangeLog
1 2007-12-24  Bruno Haible  <bruno@clisp.org>
2
3         Fix link error due to xalloc_die().
4         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
5         of xreadlink.
6         * lib/relocwrapper.c: Update comments.
7         * build-aux/install-reloc: Remove xreadlink.c from file list.
8         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
9         xreadlink.c.
10         Reported by Левашев Иван <octagram@bluebottle.com>.
11
12 2007-12-24  Bruno Haible  <bruno@clisp.org>
13
14         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
15         * lib/setenv.h: Remove file.
16         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
17         lib/setenv.h.
18         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
19         (Depends-on): Add stdlib.
20         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
21         gl_FUNC_UNSETENV.
22         (Include): Replace setenv.h with <stdlib.h>.
23         * modules/unsetenv: New file.
24         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
25         * lib/unsetenv.c: Include <stdlib.h> first.
26         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
29         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
30         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
32         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34         * doc/functions/unsetenv.texi: Update.
35         * modules/xsetenv (Depends-on): Add unsetenv.
36         * modules/getdate (Depends-on): Likewise.
37         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
38         * lib/xsetenv.c: Don't include setenv.h.
39         * lib/getdate.y: Likewise.
40         * lib/relocwrapper.c: Likewise.
41         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42         (Depends-on): Add stdlib.
43         * NEWS: Mention the changes.
44         Reported by Левашев Иван <octagram@bluebottle.com>.
45
46 2007-12-23  Bruno Haible  <bruno@clisp.org>
47
48         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49         indentation.
50
51 2007-12-23  Bruno Haible  <bruno@clisp.org>
52
53         * lib/c-strcasestr.c: Add more comments.
54         * lib/c-strstr.c: Likewise.
55         * lib/mbscasestr.c: Likewise.
56         * lib/mbsstr.c: Likewise.
57         * lib/strcasestr.c: Likewise.
58         * lib/memmem.c: Likewise.
59
60 2007-12-23  Bruno Haible  <bruno@clisp.org>
61
62         * tests/test-memmem.c: Include <string.h> first.
63
64 2007-12-22  Bruno Haible  <bruno@clisp.org>
65
66         * gnulib-tool (func_create_testdir): Change $auxdir while generating
67         the contents of $testsbase.
68         Reported by Ralf Wildenhues.
69
70 2007-12-22  Bruno Haible  <bruno@clisp.org>
71
72         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
73         two variables local_ldadd_before, local_ldadd_last.
74
75 2007-12-20  Eric Blake  <ebb9@byu.net>
76
77         Work around circular library issue when cross-compiling.
78         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
79         that progname.o does not need to pull in rpl_memcmp.
80
81 2007-12-19  Eric Blake  <ebb9@byu.net>
82
83         Fix memmem to avoid O(n^2) worst-case complexity.
84         * lib/memmem.c (knuth_morris_pratt): New function.
85         (memmem): Use it if first few naive iterations fail.
86         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
87         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
88         * modules/memchr (License): Likewise.
89         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
90         malloca.
91         * tests/test-memmem.c: Rewrite, borrowing ideas from
92         test-mbsstr1.c; the old version wouldn't even compile!
93         * modules/memmem-tests: New file.
94         * lib/string.in.h (rpl_memmem): Add declaration.
95         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
96         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97         REPLACE_MEMMEM.
98
99 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
100
101         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
102         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
103         before any system include files, and undef after them all.  This
104         should fix a problem on VMS reported by John E. Malmberg in
105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
106
107 2007-12-17  Eric Blake  <ebb9@byu.net>
108
109         Revert addition of verify, for BSD/OS.
110         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
111         can't handle large files, for the sake of obsolete platforms.
112         * modules/fseeko (Depends-on): Remove verify.
113         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
114         * doc/functions/ftello.texi (ftello): Likewise.
115         * doc/functions/fgetpos.texi (fgetpos): Likewise.
116         Reported by Larry Jones.
117
118 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
119
120         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
121         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
122
123 2007-12-17  Jim Meyering  <meyering@redhat.com>
124
125         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
126         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
127         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
128         * modules/getcwd (Depends-on): Add openat.
129         Reported by Petr Salinger.
130
131 2007-12-17  Bruno Haible  <bruno@clisp.org>
132
133         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
134         avoid a segmentation fault of the configure test on x86_64 systems.
135
136 2007-12-15  Jim Meyering  <meyering@redhat.com>
137
138         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
139
140 2007-12-13  Eric Blake  <ebb9@byu.net>
141
142         Another fseek test.
143         * tests/test-fseek.c (main): Also test ungetc handling.
144         * tests/test-fseeko.c (main): Likewise.
145         * modules/fseeko (Depends-on): Add verify.
146         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
147         large.
148         Reported by Larry Jones.
149
150         Fix fseeko on mingw.
151         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
152         seek.
153
154         Beef up fseek tests.
155         * tests/test-fseek.c (main): Also test eof handling.
156         * tests/test-fseeko.c (main): Likewise.
157         Reported by Larry Jones.
158
159 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
160
161         Fix fseeko on BSD-based platforms.
162         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
163         successful seek.
164
165 2007-12-12  Eric Blake  <ebb9@byu.net>
166
167         Allow circular dependency of separate libtests.a
168         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
169         when use_libtests.
170
171 2007-12-11  Eric Blake  <ebb9@byu.net>
172
173         Fix bug with -0.0L in previous patch.
174         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
175         * tests/test-isnan.c (main): Also test on zeroes.
176         * tests/test-isnanf.c (main): Likewise.
177         * tests/test-isnanl.h (main): Likewise.
178
179         Detect pseudo-denormals on x86 even when cross-compiling.
180         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
181         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
182         invalid bit patterns that happen to satisfy ==.
183
184         Avoid link failures with separate libtests.a.
185         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
186         last, to satisfy circular dependencies.
187
188 2007-12-11  Eric Blake  <ebb9@byu.net>
189         and Bruno Haible  <bruno@clisp.org>
190
191         Fix OpenBSD 4.0 <float.h> handling of long double.
192         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
193         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
194         * doc/headers/float.texi (float.h): Document OpenBSD bug.
195
196 2007-12-11  Jim Meyering  <meyering@redhat.com>
197
198         * users.txt: Add libvirt.
199
200         Support versions of autoconf prior to 2.59c.
201         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
202         if it is not already defined.
203
204 2007-12-09  Bruno Haible  <bruno@clisp.org>
205
206         Let 'gnulib-tool --import' collect sources needed for the tests in
207         tests/ rather than in lib/.
208         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
209         argument. If true, add rules to generate libtests.a, and put libtests.a
210         into $(LDADD). Consider source files in subdirectories and set
211         uses_subdirs.
212         (func_emit_initmacro_start, func_emit_initmacro_end,
213         func_emit_initmacro_done): Pass all arguments explicitly.
214         (func_import): Determine two module lists main_modules,
215         testsrelated_modules. Determine use_libtests. Determine two variables
216         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
217         instead of just sed_transform_lib_file. Determine two variables
218         main_files and testsrelated_files. Compute 'files' as the union of
219         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
220         func_add_or_update. In the generated gnulib-comp.m4, collect the
221         object files for tests/ in different variables than those for lib/.
222         Substitute LIBTESTS_LIBDEPS.
223         (func_create_testdir): Combine the uses_subdirs results from
224         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
225
226 2007-12-09  Bruno Haible  <bruno@clisp.org>
227
228         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
229         the build-aux directory.
230
231 2007-12-09  Bruno Haible  <bruno@clisp.org>
232
233         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
234         introduced on 2006-09-09.
235
236 2007-12-07  Jim Meyering  <meyering@redhat.com>
237
238         Let these macros work also with autoconf-2.59.
239         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
240         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
241         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
242
243 2007-12-06  Jim Meyering  <meyering@redhat.com>
244
245         Avoid a configure-time syntax error in gl_FUNC_ACL.
246         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
247         function in each branch, before testing the cache variable.
248
249 2007-12-04  Eric Blake  <ebb9@byu.net>
250
251         Make scripts executable.
252         * build-aux/config.guess: Add execute permissions.
253         * build-aux/config.sub: Likewise.
254         * build-aux/gendocs.sh: Likewise.
255
256         Fix frexp on mingw.
257         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
258         cross-compiling.
259         * doc/functions/frexp.texi (frexp): Document the bug.
260
261         Make cygwin fseeko check more reliable.
262         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
263         version numbers, rather than unrelated feature check.
264         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
265         * doc/functions/ftello.texi (ftello): Likewise.
266         Reported by Bruno Haible.
267
268         * m4/strerror.m4: Bump version number.
269
270 2007-12-03  Bruno Haible  <bruno@clisp.org>
271
272         * doc/functions/mprotect.texi: Mention the mingw problem.
273
274 2007-12-03  Eric Blake  <ebb9@byu.net>
275
276         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
277         REPLACE_STRERROR is initialized before this macro.
278
279 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
280
281         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
282         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
283         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
284         put -lsec in even for programs other than 'ls'.  This fixes a problem
285         for gettext reported by Bruno Haible in
286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
287         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
288         Add support for Solaris 10.  This isn't efficient, but should get the
289         job done for now.
290
291 2007-12-03  James Youngman  <jay@gnu.org>
292
293         * doc/regexprops-generic.texi: change "an close-group" to "a
294         close-group" and "illegal" to "not allowed".
295
296 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
297
298         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
299         pr_byname.h. Needed for the rare case when the maintainer has done
300         "make maintainer-clean" in the source directory and then attempts a
301         build outside the source directory.
302         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
303         scripts_byname.h.
304
305 2007-12-02  Martin Lambers <marlam@marlam.de>
306             Bruno Haible  <bruno@clisp.org>
307
308         * lib/getpagesize.h: Remove file.
309         * lib/unistd.in.h: Include declaration of getpagesize here.
310         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
311         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
312         HAVE_SYS_PARAM_H.
313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
314         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
315         * modules/getpagesize (Files): Remove lib/getpagesize.h.
316         (Depends-on): Add unistd.
317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
318         (Include): Use <unistd.h> instead of getpagesize.h.
319         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
320         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
321         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
322         gl_GETPAGESIZE invocation, already handled by module dependency.
323         * lib/pagealign_alloc.c: Don't include getpagesize.h.
324
325 2007-12-02  Bruno Haible  <bruno@clisp.org>
326
327         * modules/strings-tests: New file.
328         * tests/test-strings.c: New file.
329
330         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
331         * lib/strings.in.h: New file.
332         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
333         * m4/strings_h.m4: New file.
334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
335         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
336         * modules/strings: New file.
337         * modules/string (Makefile.am): Update.
338         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
339         Reported by Karl Berry.
340
341 2007-12-01  Eric Blake  <ebb9@byu.net>
342
343         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
344         accomodate fix in cygwin 1.5.25.
345
346 2007-12-01  Jim Meyering  <meyering@redhat.com>
347
348         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
349         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
350         that would inhibit utf8-optimization of a regexp containing line-
351         or buffer-anchors, e.g., `^', `$'.
352
353 2007-11-30  Bruno Haible  <bruno@clisp.org>
354
355         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
356         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
357         glthread_recursive_lock_init.
358         * lib/lock.c (glthread_recursive_lock_init)
359         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
360         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
361
362 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
363
364         New function qset_acl, like set_acl but with syscall semantics.
365         * lib/acl.h (qset_acl): New decl.
366         * lib/acl.c (qset_acl): New function.
367         (set_acl): Use new function.  Use more-consistent diagnostics.
368
369 2007-11-28  Jim Meyering  <meyering@redhat.com>
370
371         * modules/physmem (License): Change from GPL to LGPLv2+.
372
373 2007-11-26  Bruno Haible  <bruno@clisp.org>
374
375         * lib/vasnprintf.c (decode_long_double): Don't abort if the
376         'long double' type has excess precision.
377         Reported by Jim Meyering in
378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
379
380 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
381
382         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
383         Sync from <http://gnu.org/licenses>.
384         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
385         with license text from same location.
386         * doc/maintain.texi, doc/standards.texi:  Sync from
387         <http://savannah.gnu.org/projects/gnustandards>.
388
389 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
390         and Jim Meyering  <meyering@redhat.com>
391
392         Adjust getdate' grammar to accept a slightly more regular language.
393         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
394         Before, the former was rejected.
395         * lib/getdate.y (digits_to_date_time): New function, factored
396         out of ...
397         (number): ...here.  Just call digits_to_date_time.
398         (hybrid): New non-terminal to handle an <unsigned number,
399         signed relative offset> sequence consistently.
400
401 2007-11-18  Jim Meyering  <meyering@redhat.com>
402
403         Pull my changes from coreutils:
404         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
405         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
406         use of $gnulib_tool_option_extras, so that it's separated from the
407         preceding argument.
408
409         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
410         * build-aux/bootstrap (cp_mark_as_generated): Create any required
411         parent destination directories before copying a file into place.
412
413 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
414
415         bootstrap: work also with 4-argument variant of AC_INIT
416         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
417
418 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
419
420         Port test-getaddrinfo to Solaris.
421         Problem reported by Bruno Haible in
422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
423         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
424         explanation of setting 'hints'.
425         Don't reject an implementation merely because it returns EAI_SERVICE.
426         (EAI_SERVICE): Define to 0 if not defined.
427
428 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
429
430         The license of gnu-make and posix-shell is now "GPLed build tool".
431         * modules/gnu-make (License): Likewise.
432         * modules/posix-shell (License): Likewise.
433
434         New module posix-shell, for determining a POSIX shell
435         or perhaps something that is close enough to a POSIX shell.
436         * m4/posix-shell.m4: New file.
437         * modules/posix-shell: New file.
438
439         * MODULES.html.sh: Mention new module.
440
441         New module gnu-make, for determining whether we're using GNU Make.
442         * m4/gnu-make.m4: New file.
443         * modules/gnu-make: New file.
444         * MODULES.html.sh: Mention new module.
445
446 2007-11-14  Jim Meyering  <meyering@redhat.com>
447
448         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
449         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
450         use this macro to create a function _definition_.
451         Remove useless "#undef ARGMATCH_DIE".
452
453 2007-11-14  Bruno Haible  <bruno@clisp.org>
454
455         * lib/config.charset: Update for OpenBSD 4.1.
456         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
457
458 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
459
460         Document 64-bit #if problems in stdint.texi.
461         * doc/headers/stdint.texi (stdint.h): Mention problems with
462         64-bit-#if, and how to work around them.
463
464         Don't insist on 'long long int' support in the preprocessor.  It
465         breaks too many things.  For example, PRIdMAX still uses a 'long
466         long int' format with the latest Sun compiler, even though
467         HAVE_LONG_LONG_INT isn't defined due to that compiler's
468         preprocessor problem.  This causes the latest coreutils to dump
469         core on Solaris 10 sparc with the Sun C compiler.
470         Instead, fix the 2007-10-16 problem in a different way, by evaluating
471         the troublesome expressions at configure-time, not at #if-time.
472         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
473         preprocessor.
474         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
475         compile-time C checks, done at 'configure'-time.
476         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
477         * modules/inttypes (Makefile): Substitute the new symbols that
478         gl_INTTYPES_H now generates.
479         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
480
481 2007-11-12  Bruno Haible  <bruno@clisp.org>
482
483         Tests for Unicode character classification functions.
484
485         * modules/unictype/bidicategory-byname-tests: New file.
486         * modules/unictype/bidicategory-name-tests: New file.
487         * modules/unictype/bidicategory-of-tests: New file.
488         * modules/unictype/bidicategory-test-tests: New file.
489         * modules/unictype/block-list-tests: New file.
490         * modules/unictype/block-of-tests: New file.
491         * modules/unictype/block-test-tests: New file.
492         * modules/unictype/category-C-tests: New file.
493         * modules/unictype/category-Cc-tests: New file.
494         * modules/unictype/category-Cf-tests: New file.
495         * modules/unictype/category-Cn-tests: New file.
496         * modules/unictype/category-Co-tests: New file.
497         * modules/unictype/category-Cs-tests: New file.
498         * modules/unictype/category-L-tests: New file.
499         * modules/unictype/category-Ll-tests: New file.
500         * modules/unictype/category-Lm-tests: New file.
501         * modules/unictype/category-Lo-tests: New file.
502         * modules/unictype/category-Lt-tests: New file.
503         * modules/unictype/category-Lu-tests: New file.
504         * modules/unictype/category-M-tests: New file.
505         * modules/unictype/category-Mc-tests: New file.
506         * modules/unictype/category-Me-tests: New file.
507         * modules/unictype/category-Mn-tests: New file.
508         * modules/unictype/category-N-tests: New file.
509         * modules/unictype/category-Nd-tests: New file.
510         * modules/unictype/category-Nl-tests: New file.
511         * modules/unictype/category-No-tests: New file.
512         * modules/unictype/category-P-tests: New file.
513         * modules/unictype/category-Pc-tests: New file.
514         * modules/unictype/category-Pd-tests: New file.
515         * modules/unictype/category-Pe-tests: New file.
516         * modules/unictype/category-Pf-tests: New file.
517         * modules/unictype/category-Pi-tests: New file.
518         * modules/unictype/category-Po-tests: New file.
519         * modules/unictype/category-Ps-tests: New file.
520         * modules/unictype/category-S-tests: New file.
521         * modules/unictype/category-Sc-tests: New file.
522         * modules/unictype/category-Sk-tests: New file.
523         * modules/unictype/category-Sm-tests: New file.
524         * modules/unictype/category-So-tests: New file.
525         * modules/unictype/category-Z-tests: New file.
526         * modules/unictype/category-Zl-tests: New file.
527         * modules/unictype/category-Zp-tests: New file.
528         * modules/unictype/category-Zs-tests: New file.
529         * modules/unictype/category-and-not-tests: New file.
530         * modules/unictype/category-and-tests: New file.
531         * modules/unictype/category-byname-tests: New file.
532         * modules/unictype/category-name-tests: New file.
533         * modules/unictype/category-none-tests: New file.
534         * modules/unictype/category-of-tests: New file.
535         * modules/unictype/category-or-tests: New file.
536         * modules/unictype/category-test-withtable-tests: New file.
537         * modules/unictype/combining-class-tests: New file.
538         * modules/unictype/ctype-alnum-tests: New file.
539         * modules/unictype/ctype-alpha-tests: New file.
540         * modules/unictype/ctype-blank-tests: New file.
541         * modules/unictype/ctype-cntrl-tests: New file.
542         * modules/unictype/ctype-digit-tests: New file.
543         * modules/unictype/ctype-graph-tests: New file.
544         * modules/unictype/ctype-lower-tests: New file.
545         * modules/unictype/ctype-print-tests: New file.
546         * modules/unictype/ctype-punct-tests: New file.
547         * modules/unictype/ctype-space-tests: New file.
548         * modules/unictype/ctype-upper-tests: New file.
549         * modules/unictype/ctype-xdigit-tests: New file.
550         * modules/unictype/decimal-digit-tests: New file.
551         * modules/unictype/digit-tests: New file.
552         * modules/unictype/mirror-tests: New file.
553         * modules/unictype/numeric-tests: New file.
554         * modules/unictype/property-alphabetic-tests: New file.
555         * modules/unictype/property-ascii-hex-digit-tests: New file.
556         * modules/unictype/property-bidi-arabic-digit-tests: New file.
557         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
558         * modules/unictype/property-bidi-block-separator-tests: New file.
559         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
560         * modules/unictype/property-bidi-common-separator-tests: New file.
561         * modules/unictype/property-bidi-control-tests: New file.
562         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
563         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
564         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
565         * modules/unictype/property-bidi-european-digit-tests: New file.
566         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
567         * modules/unictype/property-bidi-left-to-right-tests: New file.
568         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
569         * modules/unictype/property-bidi-other-neutral-tests: New file.
570         * modules/unictype/property-bidi-pdf-tests: New file.
571         * modules/unictype/property-bidi-segment-separator-tests: New file.
572         * modules/unictype/property-bidi-whitespace-tests: New file.
573         * modules/unictype/property-byname-tests: New file.
574         * modules/unictype/property-combining-tests: New file.
575         * modules/unictype/property-composite-tests: New file.
576         * modules/unictype/property-currency-symbol-tests: New file.
577         * modules/unictype/property-dash-tests: New file.
578         * modules/unictype/property-decimal-digit-tests: New file.
579         * modules/unictype/property-default-ignorable-code-point-tests: New file.
580         * modules/unictype/property-deprecated-tests: New file.
581         * modules/unictype/property-diacritic-tests: New file.
582         * modules/unictype/property-extender-tests: New file.
583         * modules/unictype/property-format-control-tests: New file.
584         * modules/unictype/property-grapheme-base-tests: New file.
585         * modules/unictype/property-grapheme-extend-tests: New file.
586         * modules/unictype/property-grapheme-link-tests: New file.
587         * modules/unictype/property-hex-digit-tests: New file.
588         * modules/unictype/property-hyphen-tests: New file.
589         * modules/unictype/property-id-continue-tests: New file.
590         * modules/unictype/property-id-start-tests: New file.
591         * modules/unictype/property-ideographic-tests: New file.
592         * modules/unictype/property-ids-binary-operator-tests: New file.
593         * modules/unictype/property-ids-trinary-operator-tests: New file.
594         * modules/unictype/property-ignorable-control-tests: New file.
595         * modules/unictype/property-iso-control-tests: New file.
596         * modules/unictype/property-join-control-tests: New file.
597         * modules/unictype/property-left-of-pair-tests: New file.
598         * modules/unictype/property-line-separator-tests: New file.
599         * modules/unictype/property-logical-order-exception-tests: New file.
600         * modules/unictype/property-lowercase-tests: New file.
601         * modules/unictype/property-math-tests: New file.
602         * modules/unictype/property-non-break-tests: New file.
603         * modules/unictype/property-not-a-character-tests: New file.
604         * modules/unictype/property-numeric-tests: New file.
605         * modules/unictype/property-other-alphabetic-tests: New file.
606         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
607         * modules/unictype/property-other-grapheme-extend-tests: New file.
608         * modules/unictype/property-other-id-continue-tests: New file.
609         * modules/unictype/property-other-id-start-tests: New file.
610         * modules/unictype/property-other-lowercase-tests: New file.
611         * modules/unictype/property-other-math-tests: New file.
612         * modules/unictype/property-other-uppercase-tests: New file.
613         * modules/unictype/property-paired-punctuation-tests: New file.
614         * modules/unictype/property-paragraph-separator-tests: New file.
615         * modules/unictype/property-pattern-syntax-tests: New file.
616         * modules/unictype/property-pattern-white-space-tests: New file.
617         * modules/unictype/property-private-use-tests: New file.
618         * modules/unictype/property-punctuation-tests: New file.
619         * modules/unictype/property-quotation-mark-tests: New file.
620         * modules/unictype/property-radical-tests: New file.
621         * modules/unictype/property-sentence-terminal-tests: New file.
622         * modules/unictype/property-soft-dotted-tests: New file.
623         * modules/unictype/property-space-tests: New file.
624         * modules/unictype/property-terminal-punctuation-tests: New file.
625         * modules/unictype/property-test-tests: New file.
626         * modules/unictype/property-titlecase-tests: New file.
627         * modules/unictype/property-unassigned-code-value-tests: New file.
628         * modules/unictype/property-unified-ideograph-tests: New file.
629         * modules/unictype/property-uppercase-tests: New file.
630         * modules/unictype/property-variation-selector-tests: New file.
631         * modules/unictype/property-white-space-tests: New file.
632         * modules/unictype/property-xid-continue-tests: New file.
633         * modules/unictype/property-xid-start-tests: New file.
634         * modules/unictype/property-zero-width-tests: New file.
635         * modules/unictype/scripts-tests: New file.
636         * modules/unictype/syntax-c-ident-tests: New file.
637         * modules/unictype/syntax-c-whitespace-tests: New file.
638         * modules/unictype/syntax-java-ident-tests: New file.
639         * modules/unictype/syntax-java-whitespace-tests: New file.
640         * tests/unictype/test-bidi_byname.c: New file.
641         * tests/unictype/test-bidi_name.c: New file.
642         * tests/unictype/test-bidi_of.c: New file.
643         * tests/unictype/test-bidi_test.c: New file.
644         * tests/unictype/test-block_list.c: New file.
645         * tests/unictype/test-block_of.c: New file.
646         * tests/unictype/test-block_test.c: New file.
647         * tests/unictype/test-categ_and.c: New file.
648         * tests/unictype/test-categ_and_not.c: New file.
649         * tests/unictype/test-categ_byname.c: New file.
650         * tests/unictype/test-categ_name.c: New file.
651         * tests/unictype/test-categ_none.c: New file.
652         * tests/unictype/test-categ_of.c: New file.
653         * tests/unictype/test-categ_or.c: New file.
654         * tests/unictype/test-categ_test_withtable.c: New file.
655         * tests/unictype/test-combining.c: New file.
656         * tests/unictype/test-decdigit.c: New file.
657         * tests/unictype/test-digit.c: New file.
658         * tests/unictype/test-mirror.c: New file.
659         * tests/unictype/test-numeric.c: New file.
660         * tests/unictype/test-pr_byname.c: New file.
661         * tests/unictype/test-pr_test.c: New file.
662         * tests/unictype/test-predicate-part1.h: New file.
663         * tests/unictype/test-predicate-part2.h: New file.
664         * tests/unictype/test-scripts.c: New file.
665         * tests/unictype/test-sy_c_ident.c: New file.
666         * tests/unictype/test-sy_java_ident.c: New file.
667
668         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
669         for Unicode 5.0.0.
670         * tests/unictype/test-categ_Cc.c: Likewise.
671         * tests/unictype/test-categ_Cf.c: Likewise.
672         * tests/unictype/test-categ_Cn.c: Likewise.
673         * tests/unictype/test-categ_Co.c: Likewise.
674         * tests/unictype/test-categ_Cs.c: Likewise.
675         * tests/unictype/test-categ_L.c: Likewise.
676         * tests/unictype/test-categ_Ll.c: Likewise.
677         * tests/unictype/test-categ_Lm.c: Likewise.
678         * tests/unictype/test-categ_Lo.c: Likewise.
679         * tests/unictype/test-categ_Lt.c: Likewise.
680         * tests/unictype/test-categ_Lu.c: Likewise.
681         * tests/unictype/test-categ_M.c: Likewise.
682         * tests/unictype/test-categ_Mc.c: Likewise.
683         * tests/unictype/test-categ_Me.c: Likewise.
684         * tests/unictype/test-categ_Mn.c: Likewise.
685         * tests/unictype/test-categ_N.c: Likewise.
686         * tests/unictype/test-categ_Nd.c: Likewise.
687         * tests/unictype/test-categ_Nl.c: Likewise.
688         * tests/unictype/test-categ_No.c: Likewise.
689         * tests/unictype/test-categ_P.c: Likewise.
690         * tests/unictype/test-categ_Pc.c: Likewise.
691         * tests/unictype/test-categ_Pd.c: Likewise.
692         * tests/unictype/test-categ_Pe.c: Likewise.
693         * tests/unictype/test-categ_Pf.c: Likewise.
694         * tests/unictype/test-categ_Pi.c: Likewise.
695         * tests/unictype/test-categ_Po.c: Likewise.
696         * tests/unictype/test-categ_Ps.c: Likewise.
697         * tests/unictype/test-categ_S.c: Likewise.
698         * tests/unictype/test-categ_Sc.c: Likewise.
699         * tests/unictype/test-categ_Sk.c: Likewise.
700         * tests/unictype/test-categ_Sm.c: Likewise.
701         * tests/unictype/test-categ_So.c: Likewise.
702         * tests/unictype/test-categ_Z.c: Likewise.
703         * tests/unictype/test-categ_Zl.c: Likewise.
704         * tests/unictype/test-categ_Zp.c: Likewise.
705         * tests/unictype/test-categ_Zs.c: Likewise.
706         * tests/unictype/test-ctype_alnum.c: Likewise.
707         * tests/unictype/test-ctype_alpha.c: Likewise.
708         * tests/unictype/test-ctype_blank.c: Likewise.
709         * tests/unictype/test-ctype_cntrl.c: Likewise.
710         * tests/unictype/test-ctype_digit.c: Likewise.
711         * tests/unictype/test-ctype_graph.c: Likewise.
712         * tests/unictype/test-ctype_lower.c: Likewise.
713         * tests/unictype/test-ctype_print.c: Likewise.
714         * tests/unictype/test-ctype_punct.c: Likewise.
715         * tests/unictype/test-ctype_space.c: Likewise.
716         * tests/unictype/test-ctype_upper.c: Likewise.
717         * tests/unictype/test-ctype_xdigit.c: Likewise.
718         * tests/unictype/test-decdigit.h: Likewise.
719         * tests/unictype/test-digit.h: Likewise.
720         * tests/unictype/test-numeric.h: Likewise.
721         * tests/unictype/test-pr_alphabetic.c: Likewise.
722         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
723         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
724         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
725         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
726         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
727         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
728         * tests/unictype/test-pr_bidi_control.c: Likewise.
729         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
730         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
731         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
732         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
733         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
734         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
735         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
736         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
737         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
738         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
739         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
740         * tests/unictype/test-pr_combining.c: Likewise.
741         * tests/unictype/test-pr_composite.c: Likewise.
742         * tests/unictype/test-pr_currency_symbol.c: Likewise.
743         * tests/unictype/test-pr_dash.c: Likewise.
744         * tests/unictype/test-pr_decimal_digit.c: Likewise.
745         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
746         * tests/unictype/test-pr_deprecated.c: Likewise.
747         * tests/unictype/test-pr_diacritic.c: Likewise.
748         * tests/unictype/test-pr_extender.c: Likewise.
749         * tests/unictype/test-pr_format_control.c: Likewise.
750         * tests/unictype/test-pr_grapheme_base.c: Likewise.
751         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
752         * tests/unictype/test-pr_grapheme_link.c: Likewise.
753         * tests/unictype/test-pr_hex_digit.c: Likewise.
754         * tests/unictype/test-pr_hyphen.c: Likewise.
755         * tests/unictype/test-pr_id_continue.c: Likewise.
756         * tests/unictype/test-pr_id_start.c: Likewise.
757         * tests/unictype/test-pr_ideographic.c: Likewise.
758         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
759         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
760         * tests/unictype/test-pr_ignorable_control.c: Likewise.
761         * tests/unictype/test-pr_iso_control.c: Likewise.
762         * tests/unictype/test-pr_join_control.c: Likewise.
763         * tests/unictype/test-pr_left_of_pair.c: Likewise.
764         * tests/unictype/test-pr_line_separator.c: Likewise.
765         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
766         * tests/unictype/test-pr_lowercase.c: Likewise.
767         * tests/unictype/test-pr_math.c: Likewise.
768         * tests/unictype/test-pr_non_break.c: Likewise.
769         * tests/unictype/test-pr_not_a_character.c: Likewise.
770         * tests/unictype/test-pr_numeric.c: Likewise.
771         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
772         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
773         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
774         * tests/unictype/test-pr_other_id_continue.c: Likewise.
775         * tests/unictype/test-pr_other_id_start.c: Likewise.
776         * tests/unictype/test-pr_other_lowercase.c: Likewise.
777         * tests/unictype/test-pr_other_math.c: Likewise.
778         * tests/unictype/test-pr_other_uppercase.c: Likewise.
779         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
780         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
781         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
782         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
783         * tests/unictype/test-pr_private_use.c: Likewise.
784         * tests/unictype/test-pr_punctuation.c: Likewise.
785         * tests/unictype/test-pr_quotation_mark.c: Likewise.
786         * tests/unictype/test-pr_radical.c: Likewise.
787         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
788         * tests/unictype/test-pr_soft_dotted.c: Likewise.
789         * tests/unictype/test-pr_space.c: Likewise.
790         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
791         * tests/unictype/test-pr_titlecase.c: Likewise.
792         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
793         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
794         * tests/unictype/test-pr_uppercase.c: Likewise.
795         * tests/unictype/test-pr_variation_selector.c: Likewise.
796         * tests/unictype/test-pr_white_space.c: Likewise.
797         * tests/unictype/test-pr_xid_continue.c: Likewise.
798         * tests/unictype/test-pr_xid_start.c: Likewise.
799         * tests/unictype/test-pr_zero_width.c: Likewise.
800         * tests/unictype/test-sy_c_whitespace.c: Likewise.
801         * tests/unictype/test-sy_java_whitespace.c: Likewise.
802
803 2007-11-12  Bruno Haible  <bruno@clisp.org>
804
805         Unicode character classification functions.
806         * lib/unictype.h: New file.
807         * modules/unictype/base: New file.
808         * modules/unictype/category-L: New file.
809         * modules/unictype/category-Lu: New file.
810         * modules/unictype/category-Ll: New file.
811         * modules/unictype/category-Lt: New file.
812         * modules/unictype/category-Lm: New file.
813         * modules/unictype/category-Lo: New file.
814         * modules/unictype/category-M: New file.
815         * modules/unictype/category-Mn: New file.
816         * modules/unictype/category-Mc: New file.
817         * modules/unictype/category-Me: New file.
818         * modules/unictype/category-N: New file.
819         * modules/unictype/category-Nd: New file.
820         * modules/unictype/category-Nl: New file.
821         * modules/unictype/category-No: New file.
822         * modules/unictype/category-P: New file.
823         * modules/unictype/category-Pc: New file.
824         * modules/unictype/category-Pd: New file.
825         * modules/unictype/category-Ps: New file.
826         * modules/unictype/category-Pe: New file.
827         * modules/unictype/category-Pi: New file.
828         * modules/unictype/category-Pf: New file.
829         * modules/unictype/category-Po: New file.
830         * modules/unictype/category-S: New file.
831         * modules/unictype/category-Sm: New file.
832         * modules/unictype/category-Sc: New file.
833         * modules/unictype/category-Sk: New file.
834         * modules/unictype/category-So: New file.
835         * modules/unictype/category-Z: New file.
836         * modules/unictype/category-Zs: New file.
837         * modules/unictype/category-Zl: New file.
838         * modules/unictype/category-Zp: New file.
839         * modules/unictype/category-C: New file.
840         * modules/unictype/category-Cc: New file.
841         * modules/unictype/category-Cf: New file.
842         * modules/unictype/category-Cs: New file.
843         * modules/unictype/category-Co: New file.
844         * modules/unictype/category-Cn: New file.
845         * modules/unictype/category-or: New file.
846         * modules/unictype/category-of: New file.
847         * modules/unictype/category-test: New file.
848         * modules/unictype/category-test-withtable: New file.
849         * modules/unictype/category-byname: New file.
850         * modules/unictype/category-none: New file.
851         * modules/unictype/category-and: New file.
852         * modules/unictype/category-and-not: New file.
853         * modules/unictype/category-name: New file.
854         * modules/unictype/combining-class: New file.
855         * modules/unictype/category-all: New file.
856         * modules/unictype/bidicategory-all: New file.
857         * modules/unictype/bidicategory-byname: New file.
858         * modules/unictype/bidicategory-name: New file.
859         * modules/unictype/bidicategory-of: New file.
860         * modules/unictype/bidicategory-test: New file.
861         * modules/unictype/decimal-digit: New file.
862         * modules/unictype/digit: New file.
863         * modules/unictype/numeric: New file.
864         * modules/unictype/mirror: New file.
865         * modules/unictype/property-white-space: New file.
866         * modules/unictype/property-alphabetic: New file.
867         * modules/unictype/property-other-alphabetic: New file.
868         * modules/unictype/property-not-a-character: New file.
869         * modules/unictype/property-default-ignorable-code-point: New file.
870         * modules/unictype/property-other-default-ignorable-code-point: New
871         file.
872         * modules/unictype/property-deprecated: New file.
873         * modules/unictype/property-logical-order-exception: New file.
874         * modules/unictype/property-variation-selector: New file.
875         * modules/unictype/property-private-use: New file.
876         * modules/unictype/property-unassigned-code-value: New file.
877         * modules/unictype/property-uppercase: New file.
878         * modules/unictype/property-other-uppercase: New file.
879         * modules/unictype/property-lowercase: New file.
880         * modules/unictype/property-other-lowercase: New file.
881         * modules/unictype/property-titlecase: New file.
882         * modules/unictype/property-soft-dotted: New file.
883         * modules/unictype/property-id-start: New file.
884         * modules/unictype/property-other-id-start: New file.
885         * modules/unictype/property-id-continue: New file.
886         * modules/unictype/property-other-id-continue: New file.
887         * modules/unictype/property-xid-start: New file.
888         * modules/unictype/property-xid-continue: New file.
889         * modules/unictype/property-pattern-white-space: New file.
890         * modules/unictype/property-pattern-syntax: New file.
891         * modules/unictype/property-join-control: New file.
892         * modules/unictype/property-grapheme-base: New file.
893         * modules/unictype/property-grapheme-extend: New file.
894         * modules/unictype/property-other-grapheme-extend: New file.
895         * modules/unictype/property-grapheme-link: New file.
896         * modules/unictype/property-bidi-control: New file.
897         * modules/unictype/property-bidi-left-to-right: New file.
898         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
899         * modules/unictype/property-bidi-arabic-right-to-left: New file.
900         * modules/unictype/property-bidi-european-digit: New file.
901         * modules/unictype/property-bidi-eur-num-separator: New file.
902         * modules/unictype/property-bidi-eur-num-terminator: New file.
903         * modules/unictype/property-bidi-arabic-digit: New file.
904         * modules/unictype/property-bidi-common-separator: New file.
905         * modules/unictype/property-bidi-block-separator: New file.
906         * modules/unictype/property-bidi-segment-separator: New file.
907         * modules/unictype/property-bidi-whitespace: New file.
908         * modules/unictype/property-bidi-non-spacing-mark: New file.
909         * modules/unictype/property-bidi-boundary-neutral: New file.
910         * modules/unictype/property-bidi-pdf: New file.
911         * modules/unictype/property-bidi-embedding-or-override: New file.
912         * modules/unictype/property-bidi-other-neutral: New file.
913         * modules/unictype/property-hex-digit: New file.
914         * modules/unictype/property-ascii-hex-digit: New file.
915         * modules/unictype/property-ideographic: New file.
916         * modules/unictype/property-unified-ideograph: New file.
917         * modules/unictype/property-radical: New file.
918         * modules/unictype/property-ids-binary-operator: New file.
919         * modules/unictype/property-ids-trinary-operator: New file.
920         * modules/unictype/property-zero-width: New file.
921         * modules/unictype/property-space: New file.
922         * modules/unictype/property-non-break: New file.
923         * modules/unictype/property-iso-control: New file.
924         * modules/unictype/property-format-control: New file.
925         * modules/unictype/property-dash: New file.
926         * modules/unictype/property-hyphen: New file.
927         * modules/unictype/property-punctuation: New file.
928         * modules/unictype/property-line-separator: New file.
929         * modules/unictype/property-paragraph-separator: New file.
930         * modules/unictype/property-quotation-mark: New file.
931         * modules/unictype/property-sentence-terminal: New file.
932         * modules/unictype/property-terminal-punctuation: New file.
933         * modules/unictype/property-currency-symbol: New file.
934         * modules/unictype/property-math: New file.
935         * modules/unictype/property-other-math: New file.
936         * modules/unictype/property-paired-punctuation: New file.
937         * modules/unictype/property-left-of-pair: New file.
938         * modules/unictype/property-combining: New file.
939         * modules/unictype/property-composite: New file.
940         * modules/unictype/property-decimal-digit: New file.
941         * modules/unictype/property-numeric: New file.
942         * modules/unictype/property-diacritic: New file.
943         * modules/unictype/property-extender: New file.
944         * modules/unictype/property-ignorable-control: New file.
945         * modules/unictype/property-test: New file.
946         * modules/unictype/property-byname: New file.
947         * modules/unictype/property-all: New file.
948         * modules/unictype/scripts: New file.
949         * modules/unictype/scripts-all: New file.
950         * modules/unictype/block-of: New file.
951         * modules/unictype/block-test: New file.
952         * modules/unictype/block-list: New file.
953         * modules/unictype/block-all: New file.
954         * modules/unictype/syntax-c-whitespace: New file.
955         * modules/unictype/syntax-java-whitespace: New file.
956         * modules/unictype/syntax-c-ident: New file.
957         * modules/unictype/syntax-java-ident: New file.
958         * modules/unictype/ctype-alnum: New file.
959         * modules/unictype/ctype-alpha: New file.
960         * modules/unictype/ctype-cntrl: New file.
961         * modules/unictype/ctype-digit: New file.
962         * modules/unictype/ctype-graph: New file.
963         * modules/unictype/ctype-lower: New file.
964         * modules/unictype/ctype-print: New file.
965         * modules/unictype/ctype-punct: New file.
966         * modules/unictype/ctype-space: New file.
967         * modules/unictype/ctype-upper: New file.
968         * modules/unictype/ctype-xdigit: New file.
969         * modules/unictype/ctype-blank: New file.
970         * lib/unictype/bidi_byname.c: New file.
971         * lib/unictype/bidi_name.c: New file.
972         * lib/unictype/bidi_of.c: New file.
973         * lib/unictype/bidi_test.c: New file.
974         * lib/unictype/bitmap.h: New file.
975         * lib/unictype/block_test.c: New file.
976         * lib/unictype/blocks.c: New file.
977         * lib/unictype/categ_C.c: New file.
978         * lib/unictype/categ_Cc.c: New file.
979         * lib/unictype/categ_Cf.c: New file.
980         * lib/unictype/categ_Cn.c: New file.
981         * lib/unictype/categ_Co.c: New file.
982         * lib/unictype/categ_Cs.c: New file.
983         * lib/unictype/categ_L.c: New file.
984         * lib/unictype/categ_Ll.c: New file.
985         * lib/unictype/categ_Lm.c: New file.
986         * lib/unictype/categ_Lo.c: New file.
987         * lib/unictype/categ_Lt.c: New file.
988         * lib/unictype/categ_Lu.c: New file.
989         * lib/unictype/categ_M.c: New file.
990         * lib/unictype/categ_Mc.c: New file.
991         * lib/unictype/categ_Me.c: New file.
992         * lib/unictype/categ_Mn.c: New file.
993         * lib/unictype/categ_N.c: New file.
994         * lib/unictype/categ_Nd.c: New file.
995         * lib/unictype/categ_Nl.c: New file.
996         * lib/unictype/categ_No.c: New file.
997         * lib/unictype/categ_P.c: New file.
998         * lib/unictype/categ_Pc.c: New file.
999         * lib/unictype/categ_Pd.c: New file.
1000         * lib/unictype/categ_Pe.c: New file.
1001         * lib/unictype/categ_Pf.c: New file.
1002         * lib/unictype/categ_Pi.c: New file.
1003         * lib/unictype/categ_Po.c: New file.
1004         * lib/unictype/categ_Ps.c: New file.
1005         * lib/unictype/categ_S.c: New file.
1006         * lib/unictype/categ_Sc.c: New file.
1007         * lib/unictype/categ_Sk.c: New file.
1008         * lib/unictype/categ_Sm.c: New file.
1009         * lib/unictype/categ_So.c: New file.
1010         * lib/unictype/categ_Z.c: New file.
1011         * lib/unictype/categ_Zl.c: New file.
1012         * lib/unictype/categ_Zp.c: New file.
1013         * lib/unictype/categ_Zs.c: New file.
1014         * lib/unictype/categ_and.c: New file.
1015         * lib/unictype/categ_and_not.c: New file.
1016         * lib/unictype/categ_byname.c: New file.
1017         * lib/unictype/categ_name.c: New file.
1018         * lib/unictype/categ_none.c: New file.
1019         * lib/unictype/categ_of.c: New file.
1020         * lib/unictype/categ_or.c: New file.
1021         * lib/unictype/categ_test.c: New file.
1022         * lib/unictype/combining.c: New file.
1023         * lib/unictype/ctype_alnum.c: New file.
1024         * lib/unictype/ctype_alpha.c: New file.
1025         * lib/unictype/ctype_blank.c: New file.
1026         * lib/unictype/ctype_cntrl.c: New file.
1027         * lib/unictype/ctype_digit.c: New file.
1028         * lib/unictype/ctype_graph.c: New file.
1029         * lib/unictype/ctype_lower.c: New file.
1030         * lib/unictype/ctype_print.c: New file.
1031         * lib/unictype/ctype_punct.c: New file.
1032         * lib/unictype/ctype_space.c: New file.
1033         * lib/unictype/ctype_upper.c: New file.
1034         * lib/unictype/ctype_xdigit.c: New file.
1035         * lib/unictype/decdigit.c: New file.
1036         * lib/unictype/digit.c: New file.
1037         * lib/unictype/identsyntaxmap.h: New file.
1038         * lib/unictype/mirror.c: New file.
1039         * lib/unictype/numeric.c: New file.
1040         * lib/unictype/pr_alphabetic.c: New file.
1041         * lib/unictype/pr_ascii_hex_digit.c: New file.
1042         * lib/unictype/pr_bidi_arabic_digit.c: New file.
1043         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
1044         * lib/unictype/pr_bidi_block_separator.c: New file.
1045         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
1046         * lib/unictype/pr_bidi_common_separator.c: New file.
1047         * lib/unictype/pr_bidi_control.c: New file.
1048         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
1049         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
1050         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
1051         * lib/unictype/pr_bidi_european_digit.c: New file.
1052         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
1053         * lib/unictype/pr_bidi_left_to_right.c: New file.
1054         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
1055         * lib/unictype/pr_bidi_other_neutral.c: New file.
1056         * lib/unictype/pr_bidi_pdf.c: New file.
1057         * lib/unictype/pr_bidi_segment_separator.c: New file.
1058         * lib/unictype/pr_bidi_whitespace.c: New file.
1059         * lib/unictype/pr_byname.c: New file.
1060         * lib/unictype/pr_byname.gperf: New file.
1061         * lib/unictype/pr_combining.c: New file.
1062         * lib/unictype/pr_composite.c: New file.
1063         * lib/unictype/pr_currency_symbol.c: New file.
1064         * lib/unictype/pr_dash.c: New file.
1065         * lib/unictype/pr_decimal_digit.c: New file.
1066         * lib/unictype/pr_default_ignorable_code_point.c: New file.
1067         * lib/unictype/pr_deprecated.c: New file.
1068         * lib/unictype/pr_diacritic.c: New file.
1069         * lib/unictype/pr_extender.c: New file.
1070         * lib/unictype/pr_format_control.c: New file.
1071         * lib/unictype/pr_grapheme_base.c: New file.
1072         * lib/unictype/pr_grapheme_extend.c: New file.
1073         * lib/unictype/pr_grapheme_link.c: New file.
1074         * lib/unictype/pr_hex_digit.c: New file.
1075         * lib/unictype/pr_hyphen.c: New file.
1076         * lib/unictype/pr_id_continue.c: New file.
1077         * lib/unictype/pr_id_start.c: New file.
1078         * lib/unictype/pr_ideographic.c: New file.
1079         * lib/unictype/pr_ids_binary_operator.c: New file.
1080         * lib/unictype/pr_ids_trinary_operator.c: New file.
1081         * lib/unictype/pr_ignorable_control.c: New file.
1082         * lib/unictype/pr_iso_control.c: New file.
1083         * lib/unictype/pr_join_control.c: New file.
1084         * lib/unictype/pr_left_of_pair.c: New file.
1085         * lib/unictype/pr_line_separator.c: New file.
1086         * lib/unictype/pr_logical_order_exception.c: New file.
1087         * lib/unictype/pr_lowercase.c: New file.
1088         * lib/unictype/pr_math.c: New file.
1089         * lib/unictype/pr_non_break.c: New file.
1090         * lib/unictype/pr_not_a_character.c: New file.
1091         * lib/unictype/pr_numeric.c: New file.
1092         * lib/unictype/pr_other_alphabetic.c: New file.
1093         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
1094         * lib/unictype/pr_other_grapheme_extend.c: New file.
1095         * lib/unictype/pr_other_id_continue.c: New file.
1096         * lib/unictype/pr_other_id_start.c: New file.
1097         * lib/unictype/pr_other_lowercase.c: New file.
1098         * lib/unictype/pr_other_math.c: New file.
1099         * lib/unictype/pr_other_uppercase.c: New file.
1100         * lib/unictype/pr_paired_punctuation.c: New file.
1101         * lib/unictype/pr_paragraph_separator.c: New file.
1102         * lib/unictype/pr_pattern_syntax.c: New file.
1103         * lib/unictype/pr_pattern_white_space.c: New file.
1104         * lib/unictype/pr_private_use.c: New file.
1105         * lib/unictype/pr_punctuation.c: New file.
1106         * lib/unictype/pr_quotation_mark.c: New file.
1107         * lib/unictype/pr_radical.c: New file.
1108         * lib/unictype/pr_sentence_terminal.c: New file.
1109         * lib/unictype/pr_soft_dotted.c: New file.
1110         * lib/unictype/pr_space.c: New file.
1111         * lib/unictype/pr_terminal_punctuation.c: New file.
1112         * lib/unictype/pr_test.c: New file.
1113         * lib/unictype/pr_titlecase.c: New file.
1114         * lib/unictype/pr_unassigned_code_value.c: New file.
1115         * lib/unictype/pr_unified_ideograph.c: New file.
1116         * lib/unictype/pr_uppercase.c: New file.
1117         * lib/unictype/pr_variation_selector.c: New file.
1118         * lib/unictype/pr_white_space.c: New file.
1119         * lib/unictype/pr_xid_continue.c: New file.
1120         * lib/unictype/pr_xid_start.c: New file.
1121         * lib/unictype/pr_zero_width.c: New file.
1122         * lib/unictype/scripts.c: New file.
1123         * lib/unictype/sy_c_ident.c: New file.
1124         * lib/unictype/sy_c_whitespace.c: New file.
1125         * lib/unictype/sy_java_ident.c: New file.
1126         * lib/unictype/sy_java_whitespace.c: New file.
1127
1128         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
1129         Unicode 5.0.0.
1130         * lib/unictype/blocks.h: Likewise.
1131         * lib/unictype/categ_C.h: Likewise.
1132         * lib/unictype/categ_Cc.h: Likewise.
1133         * lib/unictype/categ_Cf.h: Likewise.
1134         * lib/unictype/categ_Cn.h: Likewise.
1135         * lib/unictype/categ_Co.h: Likewise.
1136         * lib/unictype/categ_Cs.h: Likewise.
1137         * lib/unictype/categ_L.h: Likewise.
1138         * lib/unictype/categ_Ll.h: Likewise.
1139         * lib/unictype/categ_Lm.h: Likewise.
1140         * lib/unictype/categ_Lo.h: Likewise.
1141         * lib/unictype/categ_Lt.h: Likewise.
1142         * lib/unictype/categ_Lu.h: Likewise.
1143         * lib/unictype/categ_M.h: Likewise.
1144         * lib/unictype/categ_Mc.h: Likewise.
1145         * lib/unictype/categ_Me.h: Likewise.
1146         * lib/unictype/categ_Mn.h: Likewise.
1147         * lib/unictype/categ_N.h: Likewise.
1148         * lib/unictype/categ_Nd.h: Likewise.
1149         * lib/unictype/categ_Nl.h: Likewise.
1150         * lib/unictype/categ_No.h: Likewise.
1151         * lib/unictype/categ_P.h: Likewise.
1152         * lib/unictype/categ_Pc.h: Likewise.
1153         * lib/unictype/categ_Pd.h: Likewise.
1154         * lib/unictype/categ_Pe.h: Likewise.
1155         * lib/unictype/categ_Pf.h: Likewise.
1156         * lib/unictype/categ_Pi.h: Likewise.
1157         * lib/unictype/categ_Po.h: Likewise.
1158         * lib/unictype/categ_Ps.h: Likewise.
1159         * lib/unictype/categ_S.h: Likewise.
1160         * lib/unictype/categ_Sc.h: Likewise.
1161         * lib/unictype/categ_Sk.h: Likewise.
1162         * lib/unictype/categ_Sm.h: Likewise.
1163         * lib/unictype/categ_So.h: Likewise.
1164         * lib/unictype/categ_Z.h: Likewise.
1165         * lib/unictype/categ_Zl.h: Likewise.
1166         * lib/unictype/categ_Zp.h: Likewise.
1167         * lib/unictype/categ_Zs.h: Likewise.
1168         * lib/unictype/categ_of.h: Likewise.
1169         * lib/unictype/combining.h: Likewise.
1170         * lib/unictype/ctype_alnum.h: Likewise.
1171         * lib/unictype/ctype_alpha.h: Likewise.
1172         * lib/unictype/ctype_blank.h: Likewise.
1173         * lib/unictype/ctype_cntrl.h: Likewise.
1174         * lib/unictype/ctype_digit.h: Likewise.
1175         * lib/unictype/ctype_graph.h: Likewise.
1176         * lib/unictype/ctype_lower.h: Likewise.
1177         * lib/unictype/ctype_print.h: Likewise.
1178         * lib/unictype/ctype_punct.h: Likewise.
1179         * lib/unictype/ctype_space.h: Likewise.
1180         * lib/unictype/ctype_upper.h: Likewise.
1181         * lib/unictype/ctype_xdigit.h: Likewise.
1182         * lib/unictype/decdigit.h: Likewise.
1183         * lib/unictype/digit.h: Likewise.
1184         * lib/unictype/mirror.h: Likewise.
1185         * lib/unictype/numeric.h: Likewise.
1186         * lib/unictype/pr_alphabetic.h: Likewise.
1187         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
1188         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
1189         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
1190         * lib/unictype/pr_bidi_block_separator.h: Likewise.
1191         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
1192         * lib/unictype/pr_bidi_common_separator.h: Likewise.
1193         * lib/unictype/pr_bidi_control.h: Likewise.
1194         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
1195         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
1196         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
1197         * lib/unictype/pr_bidi_european_digit.h: Likewise.
1198         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
1199         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
1200         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
1201         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
1202         * lib/unictype/pr_bidi_pdf.h: Likewise.
1203         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
1204         * lib/unictype/pr_bidi_whitespace.h: Likewise.
1205         * lib/unictype/pr_combining.h: Likewise.
1206         * lib/unictype/pr_composite.h: Likewise.
1207         * lib/unictype/pr_currency_symbol.h: Likewise.
1208         * lib/unictype/pr_dash.h: Likewise.
1209         * lib/unictype/pr_decimal_digit.h: Likewise.
1210         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
1211         * lib/unictype/pr_deprecated.h: Likewise.
1212         * lib/unictype/pr_diacritic.h: Likewise.
1213         * lib/unictype/pr_extender.h: Likewise.
1214         * lib/unictype/pr_format_control.h: Likewise.
1215         * lib/unictype/pr_grapheme_base.h: Likewise.
1216         * lib/unictype/pr_grapheme_extend.h: Likewise.
1217         * lib/unictype/pr_grapheme_link.h: Likewise.
1218         * lib/unictype/pr_hex_digit.h: Likewise.
1219         * lib/unictype/pr_hyphen.h: Likewise.
1220         * lib/unictype/pr_id_continue.h: Likewise.
1221         * lib/unictype/pr_id_start.h: Likewise.
1222         * lib/unictype/pr_ideographic.h: Likewise.
1223         * lib/unictype/pr_ids_binary_operator.h: Likewise.
1224         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
1225         * lib/unictype/pr_ignorable_control.h: Likewise.
1226         * lib/unictype/pr_iso_control.h: Likewise.
1227         * lib/unictype/pr_join_control.h: Likewise.
1228         * lib/unictype/pr_left_of_pair.h: Likewise.
1229         * lib/unictype/pr_line_separator.h: Likewise.
1230         * lib/unictype/pr_logical_order_exception.h: Likewise.
1231         * lib/unictype/pr_lowercase.h: Likewise.
1232         * lib/unictype/pr_math.h: Likewise.
1233         * lib/unictype/pr_non_break.h: Likewise.
1234         * lib/unictype/pr_not_a_character.h: Likewise.
1235         * lib/unictype/pr_numeric.h: Likewise.
1236         * lib/unictype/pr_other_alphabetic.h: Likewise.
1237         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
1238         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
1239         * lib/unictype/pr_other_id_continue.h: Likewise.
1240         * lib/unictype/pr_other_id_start.h: Likewise.
1241         * lib/unictype/pr_other_lowercase.h: Likewise.
1242         * lib/unictype/pr_other_math.h: Likewise.
1243         * lib/unictype/pr_other_uppercase.h: Likewise.
1244         * lib/unictype/pr_paired_punctuation.h: Likewise.
1245         * lib/unictype/pr_paragraph_separator.h: Likewise.
1246         * lib/unictype/pr_pattern_syntax.h: Likewise.
1247         * lib/unictype/pr_pattern_white_space.h: Likewise.
1248         * lib/unictype/pr_private_use.h: Likewise.
1249         * lib/unictype/pr_punctuation.h: Likewise.
1250         * lib/unictype/pr_quotation_mark.h: Likewise.
1251         * lib/unictype/pr_radical.h: Likewise.
1252         * lib/unictype/pr_sentence_terminal.h: Likewise.
1253         * lib/unictype/pr_soft_dotted.h: Likewise.
1254         * lib/unictype/pr_space.h: Likewise.
1255         * lib/unictype/pr_terminal_punctuation.h: Likewise.
1256         * lib/unictype/pr_titlecase.h: Likewise.
1257         * lib/unictype/pr_unassigned_code_value.h: Likewise.
1258         * lib/unictype/pr_unified_ideograph.h: Likewise.
1259         * lib/unictype/pr_uppercase.h: Likewise.
1260         * lib/unictype/pr_variation_selector.h: Likewise.
1261         * lib/unictype/pr_white_space.h: Likewise.
1262         * lib/unictype/pr_xid_continue.h: Likewise.
1263         * lib/unictype/pr_xid_start.h: Likewise.
1264         * lib/unictype/pr_zero_width.h: Likewise.
1265         * lib/unictype/scripts.h: Likewise.
1266         * lib/unictype/scripts_byname.gperf: Likewise.
1267         * lib/unictype/sy_c_ident.h: Likewise.
1268         * lib/unictype/sy_c_whitespace.h: Likewise.
1269         * lib/unictype/sy_java_ident.h: Likewise.
1270         * lib/unictype/sy_java_whitespace.h: Likewise.
1271
1272         * lib/unictype/Makefile: New file.
1273         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
1274         glibc.
1275         * lib/unictype/3level.h: New file, copied from glibc.
1276         * lib/unictype/3levelbit.h: New file.
1277
1278 2007-11-11  Bruno Haible  <bruno@clisp.org>
1279
1280         * modules/gperf: New file.
1281         * modules/iconv_open (Depends-on): Add it.
1282         (Makefile.am): Remove the GPERF definition.
1283
1284 2007-11-11  Bruno Haible  <bruno@clisp.org>
1285
1286         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
1287         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
1288
1289 2007-11-11  Bruno Haible  <bruno@clisp.org>
1290
1291         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
1292         (usage): Remove function.
1293
1294 2007-11-11  Bruno Haible  <bruno@clisp.org>
1295
1296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
1297         gl_FUNC_CEILF_LIBS.
1298         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
1299         gl_FUNC_CEIL_LIBS.
1300         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
1301         gl_FUNC_CEILL_LIBS.
1302         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
1303         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
1304         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
1305
1306 2007-11-11  Bruno Haible  <bruno@clisp.org>
1307
1308         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
1309         roundf were declared but do not exist on functions.
1310         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
1311         roundl were declared but do not exist on functions.
1312         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
1313         HAVE_FLOORL_AND_CEILL, respectively.
1314         Needed for Sun C on Solaris 10.
1315
1316 2007-11-11  Bruno Haible  <bruno@clisp.org>
1317
1318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
1319         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
1320         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
1321         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
1322         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
1323         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
1324         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
1325         HAVE_DECL_ROUNDF.
1326         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
1327         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
1328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
1329         of HAVE_DECL_ROUND*.
1330         * modules/math (Makefile.am): Update.
1331
1332 2007-11-10  Bruno Haible  <bruno@clisp.org>
1333
1334         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
1335         ptrdiff_t as m4/intl.m4.
1336
1337 2007-11-10  Jim Meyering  <meyering@redhat.com>
1338
1339         Avoid link failure for the argmatch test.
1340         * tests/test-argmatch.c (usage): Define function to avoid a link
1341         failure: argmatch_die requires a usage function.
1342
1343 2007-11-09  Bruno Haible  <bruno@clisp.org>
1344
1345         * doc/functions/snprintf.texi: Mention BeOS deficiency.
1346         * doc/functions/vsnprintf.texi: Likewise.
1347         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
1348         with a size argument < 2.
1349
1350 2007-11-09  Bruno Haible  <bruno@clisp.org>
1351
1352         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
1353         buffer. Fixes an inefficiency introduced on 2007-11-03.
1354
1355 2007-11-09  Bruno Haible  <bruno@clisp.org>
1356
1357         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
1358         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
1359
1360 2007-11-08  Jim Meyering  <meyering@redhat.com>
1361
1362         Change cache variable name prefix "jm_" to "gl_" everywhere.
1363         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
1364         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
1365         * m4/uptime.m4: s/gl_/jm_/
1366
1367 2007-11-07  Bruno Haible  <bruno@clisp.org>
1368
1369         Update to GNU gettext 0.17.
1370         * m4/intl.m4: Update to GNU gettext 0.17.
1371         * m4/po.m4: Likewise.
1372         * modules/gettext (Files): Remove m4/ulonglong.m4.
1373         (configure.ac): Require gettext infrastructure from version 0.17.
1374
1375 2007-11-06  Bruno Haible  <bruno@clisp.org>
1376
1377         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
1378         symbolic values are not defined in a public header.
1379         * lib/freadable.c (freadable) [QNX]: Likewise.
1380         * lib/freadahead.c (freadahead) [QNX]: Likewise.
1381         * lib/freading.c (freading) [QNX]: Likewise.
1382         * lib/fseterr.c (fseterr) [QNX]: Likewise.
1383         * lib/fwritable.c (fwritable) [QNX]: Likewise.
1384         * lib/fwriting.c (fwriting) [QNX]: Likewise.
1385         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
1386         Reported by Alain Magloire.
1387
1388         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
1389
1390 2007-11-05  Bruno Haible  <bruno@clisp.org>
1391
1392         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
1393         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
1394         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
1395         Reported by Eric Blake.
1396
1397 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1398             Bruno Haible  <bruno@clisp.org>
1399
1400         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
1401         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
1402         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
1403         (malloc): Undefine also before including <stdlib.h>.
1404         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
1405         Needed on OSF/1 4.0.
1406
1407 2007-11-05  Jim Meyering  <meyering@redhat.com>
1408
1409         git-version-gen: sync from coreutils.
1410         * build-aux/git-version-gen: Add comments.
1411         Change the first '-' to '.' in the snapshot version string,
1412         e.g., 6.9-377-08144 -> 6.9.377-08144
1413         Remove first parameter.
1414         Don't declare a version "-dirty" merely because a time
1415         stamp has changed.
1416
1417 2007-11-04  Bruno Haible  <bruno@clisp.org>
1418
1419         * lib/lock.h: Protect all macro definitions containing an 'if'
1420         statement through a "do { ... } while (0)".
1421         * lib/tls.h: Likewise.
1422
1423 2007-11-04  Bruno Haible  <bruno@clisp.org>
1424
1425         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
1426
1427 2007-11-04  Bruno Haible  <bruno@clisp.org>
1428
1429         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
1430         * modules/fprintf-posix (Depends-on): Add nocrash.
1431         * modules/snprintf-posix (Depends-on): Likewise.
1432         * modules/sprintf-posix (Depends-on): Likewise.
1433         * modules/vasnprintf-posix (Depends-on): Likewise.
1434         * modules/vasprintf-posix (Depends-on): Likewise.
1435         * modules/vfprintf-posix (Depends-on): Likewise.
1436         * modules/vsnprintf-posix (Depends-on): Likewise.
1437         * modules/vsprintf-posix (Depends-on): Likewise.
1438         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1439         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1440         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1441         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1442         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1443         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1444         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1445
1446 2007-11-04  Bruno Haible  <bruno@clisp.org>
1447
1448         * modules/nocrash: New file.
1449         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
1450         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
1451
1452 2007-11-04  Bruno Haible  <bruno@clisp.org>
1453
1454         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
1455         precision handling.
1456         * tests/test-vasprintf-posix.c (test_function): Likewise.
1457         * tests/test-snprintf-posix.h (test_function): Likewise.
1458         * tests/test-sprintf-posix.h (test_function): Likewise.
1459
1460         Fix *printf behaviour for large precisions on mingw and BeOS.
1461         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
1462         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
1463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
1464         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1465         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1466         gl_PRINTF_PRECISION and test its result. Invoke
1467         gl_PREREQ_VASNPRINTF_PRECISION.
1468         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1469         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1470         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1471         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1472         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1474         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1475         * doc/functions/fprintf.texi: Update.
1476         * doc/functions/printf.texi: Update.
1477         * doc/functions/snprintf.texi: Update.
1478         * doc/functions/sprintf.texi: Update.
1479         * doc/functions/vfprintf.texi: Update.
1480         * doc/functions/vprintf.texi: Update.
1481         * doc/functions/vsnprintf.texi: Update.
1482         * doc/functions/vsprintf.texi: Update.
1483
1484 2007-11-04  Bruno Haible  <bruno@clisp.org>
1485
1486         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
1487
1488 2007-11-04  Bruno Haible  <bruno@clisp.org>
1489
1490         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
1491         Reported by Sylvain Beucler <beuc@gnu.org>.
1492
1493 2007-11-03  Bruno Haible  <bruno@clisp.org>
1494
1495         * tests/test-fprintf-posix2.sh: New file.
1496         * tests/test-fprintf-posix2.c: New file.
1497         * modules/fprintf-posix-tests (Files): Add them.
1498         (TESTS): Add test-fprintf-posix2.sh.
1499         (configure.ac): Check for getrlimit and setrlimit.
1500         (check_PROGRAMS): Add test-fprintf-posix2.
1501
1502         * tests/test-printf-posix2.sh: New file.
1503         * tests/test-printf-posix2.c: New file.
1504         * modules/printf-posix-tests (Files): Add them.
1505         (TESTS): Add test-printf-posix2.sh.
1506         (configure.ac): Check for getrlimit and setrlimit.
1507         (check_PROGRAMS): Add test-printf-posix2.
1508
1509         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
1510         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
1511         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
1512         (decode_double): New function, copied from decode_long_double.
1513         (scale10_round_decimal_decoded): New function, extracted from
1514         scale10_round_decimal_long_double.
1515         (scale10_round_decimal_long_double): Use it.
1516         (scale10_round_decimal_double): New function.
1517         (floorlog10): New function.
1518         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
1519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
1520         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1521         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1522         gl_PRINTF_ENOMEM and test its result. Invoke
1523         gl_PREREQ_VASNPRINTF_ENOMEM.
1524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1525         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1526         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1527         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1528         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1530         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1531         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
1532         * modules/snprintf-posix (Depends-on): Likewise.
1533         * modules/sprintf-posix (Depends-on): Likewise.
1534         * modules/vasnprintf-posix (Depends-on): Likewise.
1535         * modules/vasprintf-posix (Depends-on): Likewise.
1536         * modules/vfprintf-posix (Depends-on): Likewise.
1537         * modules/vsnprintf-posix (Depends-on): Likewise.
1538         * modules/vsprintf-posix (Depends-on): Likewise.
1539         * doc/functions/fprintf.texi: Update.
1540         * doc/functions/printf.texi: Update.
1541         * doc/functions/snprintf.texi: Update.
1542         * doc/functions/sprintf.texi: Update.
1543         * doc/functions/vfprintf.texi: Update.
1544         * doc/functions/vprintf.texi: Update.
1545         * doc/functions/vsnprintf.texi: Update.
1546         * doc/functions/vsprintf.texi: Update.
1547
1548 2007-11-03  Bruno Haible  <bruno@clisp.org>
1549
1550         * modules/frexp-nolibm-tests: New file.
1551
1552         * modules/frexp-nolibm: New file.
1553         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
1554
1555 2007-11-03  Bruno Haible  <bruno@clisp.org>
1556
1557         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
1558         value is C99 compliant.
1559         Needed for OSF/1 5.1.
1560
1561 2007-11-03  Bruno Haible  <bruno@clisp.org>
1562
1563         Fix out-of-memory handling of vasnprintf.
1564         * lib/printf-parse.c: Include <errno.h>.
1565         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
1566         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
1567         is already set.
1568
1569 2007-11-02  Eric Blake  <ebb9@byu.net>
1570
1571         Fix tests on cygwin.
1572         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
1573
1574 2007-11-01  Bruno Haible  <bruno@clisp.org>
1575
1576         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
1577         warning.
1578         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
1579         needed for POSIX compatibility.
1580
1581 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
1584         for compatibility with GNU.
1585
1586 2007-11-01  Bruno Haible  <bruno@clisp.org>
1587
1588         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
1589         (putenv): Renamed from rpl_putenv. Change argument type from
1590         'const char *' to 'char *'.
1591         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
1592         of defining putenv in config.h, just set REPLACE_PUTENV.
1593         * modules/putenv (Depends-on): Add stdlib.
1594         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1595         (Include): Use <stdlib.h>.
1596         * lib/stdlib.in.h (putenv): New declaration.
1597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
1598         REPLACE_PUTENV.
1599         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
1600         REPLACE_PUTENV.
1601         Needed for MacOS X 10.5.0.
1602         Reported by Peter O'Gorman <peter@pogma.com>.
1603
1604 2007-11-01  Jim Meyering  <meyering@redhat.com>
1605
1606         Treat an empty date string exactly like "0".
1607         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
1608         if the remaining date string (to be parsed) is empty, use "0".
1609         Reported by Mischa Molhoek and discussed in this thread:
1610         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
1611
1612 2007-10-31  Bruno Haible  <bruno@clisp.org>
1613
1614         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
1615         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
1616         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
1617         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
1618         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
1619         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
1620
1621 2007-10-31  Bruno Haible  <bruno@clisp.org>
1622
1623         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
1624         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
1625         (AC_TYPE_LONG_LONG_INT): Use it.
1626         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
1627         it as well.
1628         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
1629         to m4/longlong.m4.
1630         * modules/stdint (Files): Remove m4/ulonglong.m4.
1631         * modules/strtoull (Files): Use m4/longlong.m4 instead of
1632         m4/ulonglong.m4.
1633         * modules/strtoumax (Files): Likewise.
1634
1635 2007-10-30  Bruno Haible  <bruno@clisp.org>
1636
1637         * modules/xvasprintf-posix: New file.
1638         Suggested by Eric Blake.
1639
1640 2007-10-30  Bruno Haible  <bruno@clisp.org>
1641
1642         * modules/xprintf-posix-tests: New file.
1643         * tests/test-xprintf-posix.sh: New file.
1644         * tests/test-xprintf-posix.c: New file.
1645         * tests/test-xfprintf-posix.c: New file.
1646
1647         * modules/xprintf-posix: New file.
1648
1649 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1650
1651         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
1652         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
1653         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
1654
1655 2007-10-29  Bruno Haible  <bruno@clisp.org>
1656
1657         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
1658         contain the special marker '_cv_'.
1659         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1660         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1661         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1662         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1663         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1664         Reported by Ralf Wildenhues.
1665
1666 2007-10-29  Bruno Haible  <bruno@clisp.org>
1667
1668         * gnulib-tool (func_import): When --lgpl is not specified, set
1669         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
1670         GPLv3.
1671         Reported by Simon Josefsson.
1672
1673 2007-10-28  Bruno Haible  <bruno@clisp.org>
1674
1675         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
1676         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
1677         HAVE_DECL_ISFINITE.
1678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
1679         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
1680         HAVE_DECL_ISFINITE.
1681
1682 2007-10-28  Bruno Haible  <bruno@clisp.org>
1683
1684         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
1685         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
1686
1687 2007-10-28  Bruno Haible  <bruno@clisp.org>
1688
1689         Fix link errors with Sun C 5.0 on Solaris 10.
1690         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
1691         function is declared but not present in the compiler's libm.
1692         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1693         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1694         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
1695         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
1696         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
1697         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
1698         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
1699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
1700         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
1701         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
1702         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
1703         HAVE_DECL_FLOORL.
1704
1705 2007-10-28  Bruno Haible  <bruno@clisp.org>
1706
1707         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
1708         gl_FUNC_FLOORL. Cache the result.
1709         (gl_FUNC_FLOORL): Use it.
1710         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
1711         gl_FUNC_CEILL. Cache the result.
1712         (gl_FUNC_CEILL): Use it.
1713
1714         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
1715         gl_FUNC_FLOOR. Cache the result.
1716         (gl_FUNC_FLOOR): Use it.
1717         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
1718         gl_FUNC_CEIL. Cache the result.
1719         (gl_FUNC_CEIL): Use it.
1720
1721         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
1722         gl_FUNC_FLOORF. Cache the result.
1723         (gl_FUNC_FLOORF): Use it.
1724         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
1725         gl_FUNC_CEILF. Cache the result.
1726         (gl_FUNC_CEILF): Use it.
1727
1728 2007-10-28  Bruno Haible  <bruno@clisp.org>
1729
1730         * gnulib-tool: Allow specifying the LGPL version number through
1731         --lgpl=2 or --lgpl=3.
1732         (func_usage): Document --lgpl with argument.
1733         Handle --lgpl=... arguments.
1734         (func_import): Recognize also gl_LGPL calls with an argument. When
1735         --lgpl=2 is used and the module's license is just LGPL, report an
1736         error. Set sed_transform_lib_file according to the lgpl variable. In
1737         the generated files, use --lgpl or gl_LGPL invocations with argument,
1738         if necessary.
1739         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
1740         an LGPv2+ license.
1741         * doc/gnulib-tool.texi (Modified imports): Update explanation of
1742         gl_LGPL macro.
1743
1744 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1745             Bruno Haible  <bruno@clisp.org>
1746
1747         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
1748         (u16_uctomb_aux): Likewise.
1749         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
1750         !HAVE_INLINE.
1751         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
1752
1753 2007-10-28  Bruno Haible  <bruno@clisp.org>
1754
1755         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
1756         Invoke AM_GETTEXT_OPTION if it exists.
1757         * modules/vasprintf: Likewise.
1758         * modules/verror: Likewise.
1759         * modules/xprintf: Likewise.
1760         * modules/xvasprintf: Likewise.
1761
1762 2007-10-27  Ben Pfaff  <blp@gnu.org>
1763
1764         * lib/math.in.h: Define isfinite macro and prototypes for
1765         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
1766         implementations.
1767         * m4/math_h.m4: New substitutions for isfinite module.
1768         * lib/isfinite.c: New file.
1769         * m4/isfinite.m4: New file.
1770         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
1771         * modules/isfinite: New file.
1772         * modules/isfinite-tests: New file.
1773         * tests/tests-isfinite.c: New file.
1774         * doc/functions/isfinite.texi: Mention isfinite module.
1775         * MODULES.html.sh: Mention new module.
1776
1777 2007-10-27  Ben Pfaff  <blp@gnu.org>
1778
1779         Ralf Wildenhues reported that Tru64 4.0D declares the round
1780         functions but does not have definitions.
1781         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
1782         cannot be found in any library, set the output variable to
1783         "missing" instead of "".
1784         * m4/round.m4: Also use our substitute if we cannot find round in
1785         any library, even if it is declared.
1786         * m4/roundf.m4: Likewise for roundf.
1787         * m4/roundl.m4: Likewise for roundl.
1788         * lib/math.in.h: Undefine roundf, round, roundl before defining
1789         their replacements, to allow for hypothetical systems where these
1790         may be defined as macros but not available in libraries.
1791
1792 2007-10-27  Bruno Haible  <bruno@clisp.org>
1793
1794         * doc/gnulib.texi: Invoke @firstparagraphindent.
1795         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
1796         changes in gnulib.
1797         (Source changes): New section.
1798
1799 2007-10-26  Bruno Haible  <bruno@clisp.org>
1800
1801         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
1802         borrowed from autoconf.
1803
1804 2007-10-26  Bruno Haible  <bruno@clisp.org>
1805
1806         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
1807         strerror returned the empty string. Needed on HP-UX 11.00.
1808
1809 2007-10-24  Micah Cowan  <micah@cowan.name>
1810
1811         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
1812         * build-aux/bootstrap: Remove support for now-unnecessary option,
1813         --cvs-user, and envvars CVS_USER, CVS_RSH.
1814
1815 2007-10-24  Jim Meyering  <meyering@redhat.com>
1816
1817         Avoid diagnostics from sha1sum when there is no cached checksum.
1818         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
1819         if the po.s1 file hasn't been created yet.
1820
1821         * build-aux/bootstrap: Sync from coreutils:
1822         2007-10-24  Jim Meyering  <meyering@redhat.com>
1823         Get gnulib from the git repository, not from an obsolete cvs one.
1824         * build-aux/bootstrap: Suggestion from Micah Cowan.
1825         2007-10-04  Jim Meyering  <jim@meyering.net>
1826         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
1827         (update_po_files): Work also when there are no .po files in po/.
1828
1829 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1830
1831         * README: Append ".git" to git and cg examples.
1832         Problem reported by Benoit Sigoure.
1833
1834 2007-10-23  Micah Cowan  <micah@cowan.name>
1835
1836         * users.txt: Add wget.
1837
1838 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1839
1840         Fix linking of some unistdio tests on FreeBSD.
1841         * modules/unistdio/u16-vsnprintf-tests
1842         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
1843         * modules/unistdio/u16-vsprintf-tests
1844         (test_u16_vsnprintf1_LDADD): Likewise.
1845         * modules/unistdio/u32-vsnprintf-tests
1846         (test_u32_vsnprintf1_LDADD): Likewise.
1847         * modules/unistdio/u32-vsprintf-tests
1848         (test_u32_vsprintf1_LDADD): Likewise.
1849         * modules/unistdio/u8-vsnprintf-tests
1850         (test_u8_vsnprintf1_LDADD): Likewise.
1851         * modules/unistdio/u8-vsprintf-tests
1852         (test_u8_vsprintf1_LDADD): Likewise.
1853         * modules/unistdio/ulc-vsnprintf-tests
1854         (test_ulc_vsnprintf1_LDADD): Likewise.
1855         * modules/unistdio/ulc-vsprintf-tests
1856         (test_ulc_vsprintf1_LDADD): Likewise.
1857
1858         Fix linking of some uniconv tests on FreeBSD.
1859         * modules/uniconv/u16-conv-from-enc-tests
1860         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
1861         * modules/uniconv/u16-conv-to-enc-tests
1862         (test_u16_conv_to_enc_LDADD): Likewise.
1863         * modules/uniconv/u16-strconv-from-enc-tests
1864         (test_u16_strconv_from_enc_LDADD): Likewise.
1865         * modules/uniconv/u16-strconv-to-enc-tests
1866         (test_u16_strconv_to_enc_LDADD): Likewise.
1867         * modules/uniconv/u32-conv-from-enc-tests
1868         (test_u32_conv_from_enc_LDADD): Likewise.
1869         * modules/uniconv/u32-conv-to-enc-tests
1870         (test_u32_conv_to_enc_LDADD): Likewise.
1871         * modules/uniconv/u32-strconv-from-enc-tests
1872         (test_u32_strconv_from_enc_LDADD): Likewise.
1873         * modules/uniconv/u32-strconv-to-enc-tests
1874         (test_u32_strconv_to_enc_LDADD): Likewise.
1875         * modules/uniconv/u8-conv-from-enc-tests
1876         (test_u8_conv_from_enc_LDADD): Likewise.
1877         * modules/uniconv/u8-conv-to-enc-tests
1878         (test_u8_conv_to_enc_LDADD): Likewise.
1879         * modules/uniconv/u8-strconv-from-enc-tests
1880         (test_u8_strconv_from_enc_LDADD): Likewise.
1881         * modules/uniconv/u8-strconv-to-enc-tests
1882         (test_u8_strconv_to_enc_LDADD): Likewise.
1883
1884 2007-10-22  Bruno Haible  <bruno@clisp.org>
1885
1886         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
1887         size.
1888
1889 2007-10-22  Eric Blake  <ebb9@byu.net>
1890
1891         Tweak x*printf documentation.
1892         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
1893         variable name and comments.
1894         Suggested by Bruno Haible.
1895
1896 2007-10-22  Bruno Haible  <bruno@clisp.org>
1897
1898         * lib/acl.c (copy_acl): Fix file name in comment.
1899
1900 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         Fix Tru64 problem with stdbool.h.
1903         * lib/stdbool.in.h (false, true):
1904         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
1905         Don't declare as an enum in this situation; it runs afoul of Tru64.
1906         Problem reported by Steven M. Schweda in
1907         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
1908
1909 2007-10-22  Eric Blake  <ebb9@byu.net>
1910
1911         Also wrap vf?printf.
1912         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
1913         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
1914         (xvprintf, xvfprintf): New functions.
1915
1916 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1917
1918         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
1919         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
1920
1921         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
1922         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
1923
1924 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
1927         by Bruno Haible.
1928
1929 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1930
1931         * lib/getloadavg.c
1932         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
1933         Undef `sys' after including sys/table.h, for Tru64 4.0D.
1934
1935         * tests/test-i-ring.c: Work for C89.
1936
1937 2007-10-22  Bruno Haible  <bruno@clisp.org>
1938
1939         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
1940         -1u, in preprocessor expression, so that we don't test for the bug
1941         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
1942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
1943
1944 2007-10-22  Eric Blake  <ebb9@byu.net>
1945
1946         * tests/test-yesno.sh: Silence stderr during test.
1947
1948 2007-10-22  Simon Josefsson  <simon@josefsson.org>
1949
1950         * modules/crypto/gc-camellia: New file.
1951
1952         * m4/gc-camellia.m4: New file.
1953
1954         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
1955
1956         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
1957
1958 2007-10-22  Simon Josefsson  <simon@josefsson.org>
1959
1960         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
1961         --help to stdout.  Reported by sms@antinode.org (Steven
1962         M. Schweda).
1963
1964 2007-10-22  Simon Josefsson  <simon@josefsson.org>
1965
1966         * users.txt: Fix link to libksba.
1967
1968 2007-10-21  Ben Pfaff  <blp@gnu.org>
1969
1970         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
1971         round.c roundf implementation that depends on floorf and ceilf to
1972         be tested unconditionally.
1973
1974 2007-10-21  Ben Pfaff  <blp@gnu.org>
1975
1976         * m4/check-libm-func.m4: Removed.
1977         * m4/check-math-lib.m4: New file.
1978         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
1979         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
1980         definition and lack of AC_LIBOBJ([roundf]).
1981         * m4/roundl.m4: Ditto, and similarly for roundl.
1982         * modules/round: Reference new m4 file.
1983         * modules/roundf: Ditto.
1984         * modules/roundl: Ditto.
1985         * tests/test-round2.c (main): Use ROUND instead of round.
1986         Bug report from Bruno Haible.
1987
1988 2007-10-21  Bruno Haible  <bruno@clisp.org>
1989
1990         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
1991         context.
1992
1993 2007-10-21  Bruno Haible  <bruno@clisp.org>
1994
1995         * tests/test-wcwidth.c (main): Allow negative result for some control
1996         characters.
1997
1998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
1999         Needed on OSF/1 5.1.
2000
2001 2007-10-21  Bruno Haible  <bruno@clisp.org>
2002
2003         * tests/test-floorf1.c: Include isnanf.h.
2004         (main): Use isnanf() instead of isnan().
2005         * tests/test-ceilf1.c: Include isnanf.h.
2006         (main): Use isnanf() instead of isnan().
2007         * tests/test-truncf1.c: Include isnanf.h.
2008         (main): Use isnanf() instead of isnan().
2009         * tests/test-roundf1.c: Include isnanf.h.
2010         (main): Use isnanf() instead of isnan().
2011
2012 2007-10-21  Eric Blake  <ebb9@byu.net>
2013
2014         * users.txt: Update URL for m4.
2015
2016 2007-10-21  Bruno Haible  <bruno@clisp.org>
2017
2018         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
2019
2020 2007-10-21  Bruno Haible  <bruno@clisp.org>
2021
2022         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
2023         Git's management files if the CVS files are not present.
2024
2025 2007-10-20  Bruno Haible  <bruno@clisp.org>
2026
2027         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
2028         gcc-3.4.x.
2029
2030 2007-10-20  Ben Pfaff  <blp@gnu.org>
2031
2032         * lib/math.in.h: Declare round, roundf, roundl if we are providing
2033         implementations.
2034         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
2035         * lib/round.c: New file.
2036         * lib/roundf.c: New file.
2037         * lib/roundl.c: New file.
2038         * m4/round.m4: New file.
2039         * m4/roundf.m4: New file.
2040         * m4/roundl.m4: New file.
2041         * m4/check-libm-func-m4: New file.
2042         * modules/math: Replace round, roundf, roundl related @VARS@ in
2043         math.in.h.
2044         * modules/round: New file.
2045         * modules/round-tests: New file.
2046         * modules/roundf: New file.
2047         * modules/roundf-tests: New file.
2048         * modules/roundl: New file.
2049         * modules/roundl-tests: New file.
2050         * tests/test-round1.c: New file.
2051         * tests/test-round2.c: New file.
2052         * tests/test-roundf1.c: New file.
2053         * tests/test-roundf2.c: New file.
2054         * tests/test-roundl.c: New file.
2055         * doc/functions/round.texi: Mention round module.
2056         * doc/functions/roundf.texi: Mention roundf module.
2057         * doc/functions/roundl.texi: Mention roundl module.
2058         * MODULES.html.sh: Mention new modules.
2059         Thanks to Bruno Haible for suggestions.
2060
2061 2007-10-20  Jim Meyering  <meyering@redhat.com>
2062
2063         * lib/xprintf.c: Include <config.h> unconditionally.
2064
2065         Change xprintf's license to GPL.
2066         * modules/xprintf (License): s/LGPL/GPL/, since this module
2067         depends on modules (exit and exitfail) which are GPL.
2068         Suggestion from Bruno Haible.
2069
2070         xprintf fixes.
2071         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
2072         Use a clearer diagnostic.
2073         Patch from Bruno Haible.
2074
2075 2007-10-20  Bruno Haible  <bruno@clisp.org>
2076
2077         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
2078         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
2079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2080
2081 2007-10-20  Bruno Haible  <bruno@clisp.org>
2082
2083         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
2084         precision in the comparison result > x - 1 or similar.
2085         * tests/test-ceilf2.c (correct_result_p): Likewise.
2086         * tests/test-truncf2.c (correct_result_p): Likewise.
2087         * tests/test-trunc2.c (correct_result_p): Likewise.
2088         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2089
2090 2007-10-20  Bruno Haible  <bruno@clisp.org>
2091
2092         * modules/ceil: New file.
2093         * m4/ceil.m4: New file.
2094         * doc/functions/ceil.texi: Mention the 'ceil' module.
2095
2096 2007-10-20  Bruno Haible  <bruno@clisp.org>
2097
2098         * modules/floor: New file.
2099         * m4/floor.m4: New file.
2100         * doc/functions/floor.texi: Mention the 'floor' module.
2101
2102 2007-10-20  Bruno Haible  <bruno@clisp.org>
2103
2104         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
2105         of %a.
2106         * modules/floorf-tests (Depends-on): Likewise.
2107         * modules/truncf-tests (Depends-on): Likewise.
2108         * modules/trunc-tests (Depends-on): Likewise.
2109         Reported by Ben Pfaff.
2110
2111 2007-10-19  Jim Meyering  <meyering@redhat.com>
2112
2113         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
2114         Don't bother testing specific errno values.  Just test ferror.
2115
2116         New module: xprintf
2117         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
2118
2119 2007-10-19  Bruno Haible  <bruno@clisp.org>
2120
2121         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
2122         syntax.
2123         * modules/javaexec (Makefile.am): Likewise.
2124         * modules/relocatable-prog (Makefile.am): Likewise.
2125         Suggested by Jim Meyering.
2126
2127 2007-10-18  Bruno Haible  <bruno@clisp.org>
2128
2129         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
2130         Reported by Jim Meyering.
2131
2132 2007-10-18  Eric Blake  <ebb9@byu.net>
2133
2134         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
2135
2136 2007-10-18  Bruno Haible  <bruno@clisp.org>
2137
2138         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
2139         the format string into writable memory. Needed in Fortify conditions.
2140
2141 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
2142             Bruno Haible  <bruno@clisp.org>
2143
2144         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
2145         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
2146         * modules/trim (Depends-on): Add mbchar.
2147         (configure.ac): Add gl_FUNC_MBRTOWC.
2148         (Makefile.am): Augment lib_SOURCES.
2149
2150 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2151
2152         Modify glob.c to use fstatat and dirfd, to simplify it.
2153         Suggested by Eric Blake.
2154         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
2155         Don't include <stdbool.h>; not used.
2156         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
2157         (link_exists_p): Simplify implementation, since we can now assume
2158         dirfd and fstatat.
2159         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
2160
2161 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2162
2163         * gnulib-tool (func_get_dependencies): Fix sed script to
2164         match only tests.
2165
2166 2007-10-17  Bruno Haible  <bruno@clisp.org>
2167
2168         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
2169         allow locale names without encoding suffix.
2170         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2171         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2172
2173 2007-10-16  Bruno Haible  <bruno@clisp.org>
2174
2175         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
2176         * lib/getgroups.c (getgroups): Likewise.
2177         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
2178
2179 2007-10-16  Bruno Haible  <bruno@clisp.org>
2180
2181         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
2182         * modules/malloc-posix (License): Likewise.
2183         * modules/realloc-posix (License): Likewise.
2184         * modules/calloc-posix (License): Likewise.
2185         * modules/intprops (License): Change from GPL to LGPL, with
2186         Paul Eggert's approval.
2187
2188 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2189
2190         Merge glibc changes into lib/glob.c.
2191
2192         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
2193         2007-10-15 04:59:03 UTC.  Here are the changes:
2194
2195         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
2196
2197         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
2198
2199         * lib/glob.c: Add some branch prediction throughout.
2200
2201         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
2202
2203         [BZ #5103]
2204         * lib/glob.c (glob): Recognize patterns starting \/.
2205
2206         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
2207
2208         [BZ #3996]
2209         * lib/glob.c (attribute_hidden): Define if not defined.
2210         (glob): Unescape dirname, filename or username when needed and not
2211         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
2212         is NULL.  Handle unescaped [ in pattern without closing ].
2213         Don't pass GLOB_CHECK down to recursive glob for directories.
2214         (__glob_pattern_type): New function.
2215         (__glob_pattern_p): Implement using __glob_pattern_type.
2216         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
2217         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
2218         Remove unreachable code.
2219
2220         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
2221
2222         * lib/glob.c (glob_in_dir): Add some comments and asserts to
2223         explain why there are no leaks.
2224
2225         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
2226
2227         [BZ #3253]
2228         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
2229         time, rather allocate increasingly bigger arrays of pointers, if
2230         possible with alloca, if too large with malloc.
2231
2232 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
2235         Problem reported by H.Merijn Brand in
2236         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
2237         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
2238         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
2239
2240 2007-10-15  Bruno Haible  <bruno@clisp.org>
2241
2242         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
2243         with explicit rpl_ prefix.
2244         * lib/fopen.c (fopen): Likewise.
2245         * lib/freopen.c (freopen): Likewise.
2246         * lib/iconv.c (iconv): Likewise.
2247         * lib/iconv_close.c (iconv_close): Likewise.
2248
2249 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2250
2251         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
2252
2253 2007-10-15  Bruno Haible  <bruno@clisp.org>
2254
2255         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
2256         <stddef.h> instead of <stdlib.h> since we only need NULL.
2257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2258
2259 2007-10-15  Bruno Haible  <bruno@clisp.org>
2260
2261         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
2262         Replace paragraph talking about LIBOBJS.
2263         Reported by Colin Watson <cjwatson@debian.org>.
2264
2265 2007-10-15  Bruno Haible  <bruno@clisp.org>
2266
2267         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
2268         <stdlib.h> before using NULL.
2269
2270 2007-10-15  Simon Josefsson  <simon@josefsson.org>
2271
2272         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
2273         Reported by Albert Chin <china@thewrittenword.com>.
2274
2275 2007-10-14  Bruno Haible  <bruno@clisp.org>
2276
2277         * modules/iconv_open-utf-tests: New file.
2278         * tests/test-iconv-utf.c: New file.
2279
2280         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
2281         * modules/iconv_open-utf: New file.
2282         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
2283         (iconv, iconv_close): New declarations.
2284         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
2285         be defined.
2286         (iconv_open): Add special handling of conversion between UTF-8 and
2287         UTF-{16,32}{BE,LE}.
2288         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
2289         * lib/iconv_close.c: New file.
2290         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
2291         gl_FUNC_ICONV_OPEN.
2292         (gl_FUNC_ICONV_OPEN): Use it.
2293         (gl_FUNC_ICONV_OPEN_UTF): New macro.
2294         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
2295         and REPLACE_ICONV_UTF.
2296         * modules/iconv_open (Depends-on): Add c-strcase.
2297         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
2298         ICONV_CONST.
2299         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
2300
2301 2007-10-13  Albert Chin  <china@thewrittenword.com>
2302             Bruno Haible  <bruno@clisp.org>
2303
2304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
2305         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
2306
2307 2007-10-13  Bruno Haible  <bruno@clisp.org>
2308
2309         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
2310         defined, use the ISO C99 inline semantics.
2311         * lib/argp.h (ARGP_EI): Likewise.
2312
2313 2007-10-13  Bruno Haible  <bruno@clisp.org>
2314
2315         Handle 'inline' change in gcc 4.3.0.
2316         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
2317         argp_fmtstream_write, argp_fmtstream_set_lmargin,
2318         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
2319         argp_fmtstream_point): Disable 'extern' declaration if the function
2320         definition is going to be provided inline.
2321         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
2322         semantics, not the ISO C99 inline semantics.
2323         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
2324         'extern' declaration if the function definition is going to be provided
2325         inline.
2326         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
2327         the GNU C inline semantics, not the ISO C99 inline semantics. With
2328         GCC 4.2, avoid a warning.
2329
2330 2007-10-13  Bruno Haible  <bruno@clisp.org>
2331
2332         * lib/freading.h (freading): Enable the use of __freading for
2333         glibc >= 2.7.
2334         * lib/freading.c (freading): Likewise.
2335
2336 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2337
2338         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
2339         "warning: C99 inline functions are not supported; using GNU89".
2340
2341 2007-10-12  Bruno Haible  <bruno@clisp.org>
2342
2343         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
2344         of 2.
2345         * tests/test-ceilf2.c: New file.
2346         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
2347
2348         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
2349         * modules/ceilf-tests: Update.
2350
2351 2007-10-12  Bruno Haible  <bruno@clisp.org>
2352
2353         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
2354         of 2.
2355         * tests/test-floorf2.c: New file.
2356         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
2357
2358         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
2359         * modules/floorf-tests: Update.
2360
2361 2007-10-12  Bruno Haible  <bruno@clisp.org>
2362
2363         * tests/test-trunc2.c: New file.
2364         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
2365
2366         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
2367         * modules/trunc-tests: Update.
2368
2369 2007-10-12  Bruno Haible  <bruno@clisp.org>
2370
2371         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
2372         of 2.
2373         * tests/test-truncf2.c: New file.
2374         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
2375
2376         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
2377         * modules/truncf-tests: Update.
2378
2379 2007-10-11  Eric Blake  <ebb9@byu.net>
2380
2381         Don't claim strerror is broken on Interix.
2382         * doc/functions/strerror.texi (strerror): Known broken systems are
2383         now Solaris 8, and not Interix.
2384         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
2385         Interix on cross-compile.
2386         Reported by Martin Koeppe in
2387         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
2388
2389 2007-10-11  Bruno Haible  <bruno@clisp.org>
2390
2391         * modules/i-ring-tests: New file.
2392         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
2393         instead of assert.
2394
2395 2007-10-11  Bruno Haible  <bruno@clisp.org>
2396
2397         * modules/filenamecat-tests: New file.
2398         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
2399         * lib/filenamecat.c: Remove test code.
2400
2401 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
2402
2403         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
2404
2405         * lib/strerror.c: Include <string.h> always, to test interface,
2406         and to remove the need for the dummy.
2407         Include intprops.h to compute width instead of doing it ourselves
2408         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
2409         (strerror): Define it to return NULL if there's no system strerror.
2410         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
2411         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
2412         ancient pre-strerror Unix systems well any more.  Saying "unknown
2413         system error" is enough.
2414         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
2415         simpler strerror.c implementation.
2416         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
2417         Simplify the tests to reflect the simpler strerror implementation.
2418         * modules/strerror (Depends-on): Add intprops.
2419
2420 2007-10-09  Eric Blake  <ebb9@byu.net>
2421
2422         Silence test-fpending.
2423         * modules/fpending-tests (Files): Add wrapper script.
2424         * tests/test-fpending.sh: New file.
2425
2426 2007-10-09  Bruno Haible  <bruno@clisp.org>
2427
2428         * MODULES.html.sh (func_module): Don't create a hyperlink for
2429         function names like 'printf_frexp'.
2430         (Misc): Add crc, memxor.
2431         (Characteristics of floating types): New section.
2432         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
2433         isnanf-nolibm, signbit, trunc, truncf, truncl.
2434         (Enhancements for ISO C 99 functions): New subsection Input/output.
2435         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
2436         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
2437         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
2438         (Compatibility checks for POSIX:2001 functions): Add clock-time.
2439         (Enhancements for POSIX:2001 functions): Add chdir-long.
2440         (File system functions): Add areadlink, chdir-safer, read-file.
2441         Remove cycle-check.
2442         (File system as inode set): New section.
2443         (Date and time): Add gethrxtime.
2444         (Multithreading): Add openmp.
2445         (Internationalization functions): Add localename.
2446         (Unicode string functions): Add unistr/u*-mbsnlen.
2447         (Support for maintaining and releasing projects): Add git-version-gen.
2448         (Lone files): Remove directories.
2449
2450 2007-10-08  Ben Pfaff  <blp@gnu.org>
2451
2452         * lib/xmalloca.h: Fix typo in comment.
2453
2454 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2455
2456         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
2457         when avoiding problems with integer overflow.  Use a portable test
2458         instead.
2459
2460 2007-10-08  Simon Josefsson  <simon@josefsson.org>
2461
2462         * modules/dummy (License): Change to LGPLv2+.
2463         * modules/float (License): Likewise
2464         * modules/realloc (License): Likewise
2465         * modules/stdlib (License): Likewise
2466
2467 2007-10-07  Bruno Haible  <bruno@clisp.org>
2468
2469         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
2470         * floor.c (TWO_MANT_DIG): Likewise.
2471         * ceil.c (TWO_MANT_DIG): Likewise.
2472         Reported by Ben Pfaff.
2473
2474 2007-10-07  Bruno Haible  <bruno@clisp.org>
2475
2476         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
2477         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
2478         * lib/frexp.c (FUNC): Likewise.
2479         * lib/printf-frexp.h (printf_frexp): Likewise.
2480         * lib/printf-frexpl.h (printf_frexpl): Likewise.
2481         * lib/printf-frexp.c (FUNC): Likewise.
2482         Suggested by Jim Meyering.
2483
2484 2007-10-07  Jim Meyering  <meyering@redhat.com>
2485
2486         Make xnanosleep's integer overflow test more robust.
2487         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
2488         so that gcc-4.3.0 doesn't optimize away this test for overflow.
2489
2490 2007-10-07  Bruno Haible  <bruno@clisp.org>
2491
2492         * NEWS: Mention the license change.
2493
2494         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
2495         abbreviations in the modules files.
2496
2497         Change copyright notice from GPLv2+ to GPLv3+.
2498         * README: Change copyright notice.
2499         * MODULES.html.sh: Likewise.
2500         * build-aux/bootstrap.conf: Likewise.
2501         * build-aux/config.libpath: Likewise.
2502         * build-aux/csharpcomp.sh.in: Likewise.
2503         * build-aux/csharpexec.sh.in: Likewise.
2504         * build-aux/install-reloc: Likewise.
2505         * build-aux/javacomp.sh.in: Likewise.
2506         * build-aux/javaexec.sh.in: Likewise.
2507         * build-aux/ldd.sh.in: Likewise.
2508         * build-aux/reloc-ldflags: Likewise.
2509         * build-aux/relocatable.sh.in: Likewise.
2510         * build-aux/x-to-1.in: Likewise.
2511         * check-module: Likewise.
2512         * config/srclistvars.sh: Likewise.
2513         * gnulib-tool: Likewise.
2514         * lib/acl-internal.h: Likewise.
2515         * lib/acl.c: Likewise.
2516         * lib/acl.h: Likewise.
2517         * lib/acl_entries.c: Likewise.
2518         * lib/areadlink-with-size.c: Likewise.
2519         * lib/areadlink.c: Likewise.
2520         * lib/areadlink.h: Likewise.
2521         * lib/argmatch.c: Likewise.
2522         * lib/argmatch.h: Likewise.
2523         * lib/argp-ba.c: Likewise.
2524         * lib/argp-eexst.c: Likewise.
2525         * lib/argp-fmtstream.c: Likewise.
2526         * lib/argp-fmtstream.h: Likewise.
2527         * lib/argp-fs-xinl.c: Likewise.
2528         * lib/argp-help.c: Likewise.
2529         * lib/argp-namefrob.h: Likewise.
2530         * lib/argp-parse.c: Likewise.
2531         * lib/argp-pin.c: Likewise.
2532         * lib/argp-pv.c: Likewise.
2533         * lib/argp-pvh.c: Likewise.
2534         * lib/argp-xinl.c: Likewise.
2535         * lib/argp.h: Likewise.
2536         * lib/at-func.c: Likewise.
2537         * lib/atanl.c: Likewise.
2538         * lib/backupfile.c: Likewise.
2539         * lib/backupfile.h: Likewise.
2540         * lib/basename.c: Likewise.
2541         * lib/binary-io.h: Likewise.
2542         * lib/byteswap.in.h: Likewise.
2543         * lib/c-stack.c: Likewise.
2544         * lib/c-stack.h: Likewise.
2545         * lib/c-strcasestr.c: Likewise.
2546         * lib/c-strcasestr.h: Likewise.
2547         * lib/c-strstr.c: Likewise.
2548         * lib/c-strstr.h: Likewise.
2549         * lib/c-strtod.c: Likewise.
2550         * lib/calloc.c: Likewise.
2551         * lib/canon-host.c: Likewise.
2552         * lib/canon-host.h: Likewise.
2553         * lib/canonicalize-lgpl.c: Likewise.
2554         * lib/canonicalize.c: Likewise.
2555         * lib/canonicalize.h: Likewise.
2556         * lib/ceil.c: Likewise.
2557         * lib/ceilf.c: Likewise.
2558         * lib/ceill.c: Likewise.
2559         * lib/chdir-long.c: Likewise.
2560         * lib/chdir-long.h: Likewise.
2561         * lib/chdir-safer.c: Likewise.
2562         * lib/chdir-safer.h: Likewise.
2563         * lib/chown.c: Likewise.
2564         * lib/classpath.c: Likewise.
2565         * lib/classpath.h: Likewise.
2566         * lib/clean-temp.c: Likewise.
2567         * lib/clean-temp.h: Likewise.
2568         * lib/cloexec.c: Likewise.
2569         * lib/close-stream.c: Likewise.
2570         * lib/closein.c: Likewise.
2571         * lib/closein.h: Likewise.
2572         * lib/closeout.c: Likewise.
2573         * lib/closeout.h: Likewise.
2574         * lib/concat-filename.c: Likewise.
2575         * lib/copy-file.c: Likewise.
2576         * lib/copy-file.h: Likewise.
2577         * lib/count-one-bits.h: Likewise.
2578         * lib/crc.c: Likewise.
2579         * lib/crc.h: Likewise.
2580         * lib/creat-safer.c: Likewise.
2581         * lib/csharpcomp.c: Likewise.
2582         * lib/csharpcomp.h: Likewise.
2583         * lib/csharpexec.c: Likewise.
2584         * lib/csharpexec.h: Likewise.
2585         * lib/cycle-check.c: Likewise.
2586         * lib/cycle-check.h: Likewise.
2587         * lib/diacrit.c: Likewise.
2588         * lib/diacrit.h: Likewise.
2589         * lib/diffseq.h: Likewise.
2590         * lib/dirchownmod.c: Likewise.
2591         * lib/dirent.in.h: Likewise.
2592         * lib/dirfd.c: Likewise.
2593         * lib/dirfd.h: Likewise.
2594         * lib/dirname.c: Likewise.
2595         * lib/dirname.h: Likewise.
2596         * lib/dummy.c: Likewise.
2597         * lib/dup-safer.c: Likewise.
2598         * lib/dup2.c: Likewise.
2599         * lib/eealloc.h: Likewise.
2600         * lib/error.c: Likewise.
2601         * lib/error.h: Likewise.
2602         * lib/euidaccess.c: Likewise.
2603         * lib/exclude.c: Likewise.
2604         * lib/exclude.h: Likewise.
2605         * lib/execute.c: Likewise.
2606         * lib/execute.h: Likewise.
2607         * lib/exitfail.c: Likewise.
2608         * lib/exitfail.h: Likewise.
2609         * lib/expl.c: Likewise.
2610         * lib/fatal-signal.c: Likewise.
2611         * lib/fatal-signal.h: Likewise.
2612         * lib/fbufmode.c: Likewise.
2613         * lib/fbufmode.h: Likewise.
2614         * lib/fchdir.c: Likewise.
2615         * lib/fchmodat.c: Likewise.
2616         * lib/fchownat.c: Likewise.
2617         * lib/fcntl--.h: Likewise.
2618         * lib/fcntl-safer.h: Likewise.
2619         * lib/fcntl.in.h: Likewise.
2620         * lib/fd-safer.c: Likewise.
2621         * lib/fflush.c: Likewise.
2622         * lib/file-has-acl.c: Likewise.
2623         * lib/file-set.c: Likewise.
2624         * lib/file-type.c: Likewise.
2625         * lib/file-type.h: Likewise.
2626         * lib/fileblocks.c: Likewise.
2627         * lib/filemode.c: Likewise.
2628         * lib/filemode.h: Likewise.
2629         * lib/filename.h: Likewise.
2630         * lib/filenamecat.c: Likewise.
2631         * lib/filenamecat.h: Likewise.
2632         * lib/findprog.c: Likewise.
2633         * lib/findprog.h: Likewise.
2634         * lib/float.in.h: Likewise.
2635         * lib/floor.c: Likewise.
2636         * lib/floorf.c: Likewise.
2637         * lib/floorl.c: Likewise.
2638         * lib/fopen-safer.c: Likewise.
2639         * lib/fopen.c: Likewise.
2640         * lib/fpending.c: Likewise.
2641         * lib/fpending.h: Likewise.
2642         * lib/fprintf.c: Likewise.
2643         * lib/fprintftime.h: Likewise.
2644         * lib/fpucw.h: Likewise.
2645         * lib/fpurge.c: Likewise.
2646         * lib/fpurge.h: Likewise.
2647         * lib/freadable.c: Likewise.
2648         * lib/freadable.h: Likewise.
2649         * lib/freadahead.c: Likewise.
2650         * lib/freadahead.h: Likewise.
2651         * lib/freading.c: Likewise.
2652         * lib/freading.h: Likewise.
2653         * lib/free.c: Likewise.
2654         * lib/freopen.c: Likewise.
2655         * lib/frexp.c: Likewise.
2656         * lib/frexpl.c: Likewise.
2657         * lib/fseek.c: Likewise.
2658         * lib/fseterr.c: Likewise.
2659         * lib/fseterr.h: Likewise.
2660         * lib/fstatat.c: Likewise.
2661         * lib/fstrcmp.c: Likewise.
2662         * lib/fstrcmp.h: Likewise.
2663         * lib/fsusage.c: Likewise.
2664         * lib/fsusage.h: Likewise.
2665         * lib/ftell.c: Likewise.
2666         * lib/ftello.c: Likewise.
2667         * lib/fts-cycle.c: Likewise.
2668         * lib/fts.c: Likewise.
2669         * lib/fts_.h: Likewise.
2670         * lib/full-read.c: Likewise.
2671         * lib/full-read.h: Likewise.
2672         * lib/full-write.c: Likewise.
2673         * lib/full-write.h: Likewise.
2674         * lib/fwritable.c: Likewise.
2675         * lib/fwritable.h: Likewise.
2676         * lib/fwriteerror.c: Likewise.
2677         * lib/fwriteerror.h: Likewise.
2678         * lib/fwriting.c: Likewise.
2679         * lib/fwriting.h: Likewise.
2680         * lib/gcd.c: Likewise.
2681         * lib/gcd.h: Likewise.
2682         * lib/getcwd.c: Likewise.
2683         * lib/getdate.h: Likewise.
2684         * lib/getdate.y: Likewise.
2685         * lib/getdomainname.c: Likewise.
2686         * lib/getdomainname.h: Likewise.
2687         * lib/getgroups.c: Likewise.
2688         * lib/gethostname.c: Likewise.
2689         * lib/gethrxtime.c: Likewise.
2690         * lib/gethrxtime.h: Likewise.
2691         * lib/getloadavg.c: Likewise.
2692         * lib/getndelim2.c: Likewise.
2693         * lib/getndelim2.h: Likewise.
2694         * lib/getnline.c: Likewise.
2695         * lib/getnline.h: Likewise.
2696         * lib/getopt.c: Likewise.
2697         * lib/getopt.in.h: Likewise.
2698         * lib/getopt1.c: Likewise.
2699         * lib/getopt_int.h: Likewise.
2700         * lib/getpagesize.h: Likewise.
2701         * lib/getsubopt.c: Likewise.
2702         * lib/gettime.c: Likewise.
2703         * lib/getugroups.c: Likewise.
2704         * lib/getugroups.h: Likewise.
2705         * lib/getusershell.c: Likewise.
2706         * lib/gl_anyavltree_list1.h: Likewise.
2707         * lib/gl_anyavltree_list2.h: Likewise.
2708         * lib/gl_anyhash_list1.h: Likewise.
2709         * lib/gl_anyhash_list2.h: Likewise.
2710         * lib/gl_anylinked_list1.h: Likewise.
2711         * lib/gl_anylinked_list2.h: Likewise.
2712         * lib/gl_anyrbtree_list1.h: Likewise.
2713         * lib/gl_anyrbtree_list2.h: Likewise.
2714         * lib/gl_anytree_list1.h: Likewise.
2715         * lib/gl_anytree_list2.h: Likewise.
2716         * lib/gl_anytree_oset.h: Likewise.
2717         * lib/gl_anytreehash_list1.h: Likewise.
2718         * lib/gl_anytreehash_list2.h: Likewise.
2719         * lib/gl_array_list.c: Likewise.
2720         * lib/gl_array_list.h: Likewise.
2721         * lib/gl_array_oset.c: Likewise.
2722         * lib/gl_array_oset.h: Likewise.
2723         * lib/gl_avltree_list.c: Likewise.
2724         * lib/gl_avltree_list.h: Likewise.
2725         * lib/gl_avltree_oset.c: Likewise.
2726         * lib/gl_avltree_oset.h: Likewise.
2727         * lib/gl_avltreehash_list.c: Likewise.
2728         * lib/gl_avltreehash_list.h: Likewise.
2729         * lib/gl_carray_list.c: Likewise.
2730         * lib/gl_carray_list.h: Likewise.
2731         * lib/gl_linked_list.c: Likewise.
2732         * lib/gl_linked_list.h: Likewise.
2733         * lib/gl_linkedhash_list.c: Likewise.
2734         * lib/gl_linkedhash_list.h: Likewise.
2735         * lib/gl_list.c: Likewise.
2736         * lib/gl_list.h: Likewise.
2737         * lib/gl_oset.c: Likewise.
2738         * lib/gl_oset.h: Likewise.
2739         * lib/gl_rbtree_list.c: Likewise.
2740         * lib/gl_rbtree_list.h: Likewise.
2741         * lib/gl_rbtree_oset.c: Likewise.
2742         * lib/gl_rbtree_oset.h: Likewise.
2743         * lib/gl_rbtreehash_list.c: Likewise.
2744         * lib/gl_rbtreehash_list.h: Likewise.
2745         * lib/gl_sublist.c: Likewise.
2746         * lib/gl_sublist.h: Likewise.
2747         * lib/group-member.c: Likewise.
2748         * lib/group-member.h: Likewise.
2749         * lib/hard-locale.c: Likewise.
2750         * lib/hard-locale.h: Likewise.
2751         * lib/hash-pjw.c: Likewise.
2752         * lib/hash-pjw.h: Likewise.
2753         * lib/hash-triple.c: Likewise.
2754         * lib/hash.c: Likewise.
2755         * lib/hash.h: Likewise.
2756         * lib/human.c: Likewise.
2757         * lib/human.h: Likewise.
2758         * lib/i-ring.c: Likewise.
2759         * lib/i-ring.h: Likewise.
2760         * lib/idcache.c: Likewise.
2761         * lib/imaxabs.c: Likewise.
2762         * lib/imaxdiv.c: Likewise.
2763         * lib/inet_pton.c: Likewise.
2764         * lib/inet_pton.h: Likewise.
2765         * lib/intprops.h: Likewise.
2766         * lib/inttostr.c: Likewise.
2767         * lib/inttostr.h: Likewise.
2768         * lib/inttypes.in.h: Likewise.
2769         * lib/isapipe.c: Likewise.
2770         * lib/isdir.c: Likewise.
2771         * lib/isnan.c: Likewise.
2772         * lib/isnan.h: Likewise.
2773         * lib/isnanf.c: Likewise.
2774         * lib/isnanf.h: Likewise.
2775         * lib/isnanl-nolibm.h: Likewise.
2776         * lib/isnanl.c: Likewise.
2777         * lib/isnanl.h: Likewise.
2778         * lib/javacomp.c: Likewise.
2779         * lib/javacomp.h: Likewise.
2780         * lib/javaexec.c: Likewise.
2781         * lib/javaexec.h: Likewise.
2782         * lib/javaversion.c: Likewise.
2783         * lib/javaversion.h: Likewise.
2784         * lib/javaversion.java: Likewise.
2785         * lib/lbrkprop.h: Likewise.
2786         * lib/lchmod.h: Likewise.
2787         * lib/lchown.c: Likewise.
2788         * lib/ldexpl.c: Likewise.
2789         * lib/linebreak.c: Likewise.
2790         * lib/linebreak.h: Likewise.
2791         * lib/linebuffer.c: Likewise.
2792         * lib/linebuffer.h: Likewise.
2793         * lib/locale.in.h: Likewise.
2794         * lib/logl.c: Likewise.
2795         * lib/long-options.c: Likewise.
2796         * lib/long-options.h: Likewise.
2797         * lib/lstat.c: Likewise.
2798         * lib/lstat.h: Likewise.
2799         * lib/math.in.h: Likewise.
2800         * lib/mbchar.c: Likewise.
2801         * lib/mbchar.h: Likewise.
2802         * lib/mbfile.h: Likewise.
2803         * lib/mbiter.h: Likewise.
2804         * lib/mbscasecmp.c: Likewise.
2805         * lib/mbscasestr.c: Likewise.
2806         * lib/mbschr.c: Likewise.
2807         * lib/mbscspn.c: Likewise.
2808         * lib/mbslen.c: Likewise.
2809         * lib/mbsncasecmp.c: Likewise.
2810         * lib/mbsnlen.c: Likewise.
2811         * lib/mbspbrk.c: Likewise.
2812         * lib/mbspcasecmp.c: Likewise.
2813         * lib/mbsrchr.c: Likewise.
2814         * lib/mbssep.c: Likewise.
2815         * lib/mbsspn.c: Likewise.
2816         * lib/mbsstr.c: Likewise.
2817         * lib/mbstok_r.c: Likewise.
2818         * lib/mbswidth.c: Likewise.
2819         * lib/mbswidth.h: Likewise.
2820         * lib/mbuiter.h: Likewise.
2821         * lib/memcasecmp.c: Likewise.
2822         * lib/memcasecmp.h: Likewise.
2823         * lib/memchr.c: Likewise.
2824         * lib/memcmp.c: Likewise.
2825         * lib/memcoll.c: Likewise.
2826         * lib/memcoll.h: Likewise.
2827         * lib/memcpy.c: Likewise.
2828         * lib/memrchr.c: Likewise.
2829         * lib/mkancesdirs.c: Likewise.
2830         * lib/mkdir-p.c: Likewise.
2831         * lib/mkdir-p.h: Likewise.
2832         * lib/mkdir.c: Likewise.
2833         * lib/mkdirat.c: Likewise.
2834         * lib/mkdtemp.c: Likewise.
2835         * lib/mkstemp-safer.c: Likewise.
2836         * lib/mkstemp.c: Likewise.
2837         * lib/modechange.c: Likewise.
2838         * lib/modechange.h: Likewise.
2839         * lib/mountlist.c: Likewise.
2840         * lib/mountlist.h: Likewise.
2841         * lib/mpsort.c: Likewise.
2842         * lib/nanosleep.c: Likewise.
2843         * lib/obstack.c: Likewise.
2844         * lib/obstack.h: Likewise.
2845         * lib/open-safer.c: Likewise.
2846         * lib/open.c: Likewise.
2847         * lib/openat-die.c: Likewise.
2848         * lib/openat-priv.h: Likewise.
2849         * lib/openat-proc.c: Likewise.
2850         * lib/openat.c: Likewise.
2851         * lib/openat.h: Likewise.
2852         * lib/pagealign_alloc.c: Likewise.
2853         * lib/pagealign_alloc.h: Likewise.
2854         * lib/physmem.c: Likewise.
2855         * lib/physmem.h: Likewise.
2856         * lib/pipe-safer.c: Likewise.
2857         * lib/pipe.c: Likewise.
2858         * lib/pipe.h: Likewise.
2859         * lib/posixtm.c: Likewise.
2860         * lib/posixtm.h: Likewise.
2861         * lib/posixver.c: Likewise.
2862         * lib/printf-frexp.c: Likewise.
2863         * lib/printf-frexp.h: Likewise.
2864         * lib/printf-frexpl.c: Likewise.
2865         * lib/printf-frexpl.h: Likewise.
2866         * lib/printf.c: Likewise.
2867         * lib/progname.c: Likewise.
2868         * lib/progname.h: Likewise.
2869         * lib/progreloc.c: Likewise.
2870         * lib/putenv.c: Likewise.
2871         * lib/quote.c: Likewise.
2872         * lib/quote.h: Likewise.
2873         * lib/quotearg.c: Likewise.
2874         * lib/quotearg.h: Likewise.
2875         * lib/raise.c: Likewise.
2876         * lib/readline.c: Likewise.
2877         * lib/readline.h: Likewise.
2878         * lib/readlink.c: Likewise.
2879         * lib/readtokens.c: Likewise.
2880         * lib/readtokens.h: Likewise.
2881         * lib/readtokens0.c: Likewise.
2882         * lib/readtokens0.h: Likewise.
2883         * lib/readutmp.c: Likewise.
2884         * lib/readutmp.h: Likewise.
2885         * lib/realloc.c: Likewise.
2886         * lib/relocwrapper.c: Likewise.
2887         * lib/rename-dest-slash.c: Likewise.
2888         * lib/rename.c: Likewise.
2889         * lib/rmdir.c: Likewise.
2890         * lib/rpmatch.c: Likewise.
2891         * lib/safe-read.c: Likewise.
2892         * lib/safe-read.h: Likewise.
2893         * lib/safe-write.c: Likewise.
2894         * lib/safe-write.h: Likewise.
2895         * lib/same-inode.h: Likewise.
2896         * lib/same.c: Likewise.
2897         * lib/same.h: Likewise.
2898         * lib/save-cwd.c: Likewise.
2899         * lib/save-cwd.h: Likewise.
2900         * lib/savedir.c: Likewise.
2901         * lib/savedir.h: Likewise.
2902         * lib/savewd.c: Likewise.
2903         * lib/savewd.h: Likewise.
2904         * lib/search.in.h: Likewise.
2905         * lib/setenv.c: Likewise.
2906         * lib/setenv.h: Likewise.
2907         * lib/settime.c: Likewise.
2908         * lib/sh-quote.c: Likewise.
2909         * lib/sh-quote.h: Likewise.
2910         * lib/sig2str.c: Likewise.
2911         * lib/sig2str.h: Likewise.
2912         * lib/signal.in.h: Likewise.
2913         * lib/signbitd.c: Likewise.
2914         * lib/signbitf.c: Likewise.
2915         * lib/signbitl.c: Likewise.
2916         * lib/sigprocmask.c: Likewise.
2917         * lib/sincosl.c: Likewise.
2918         * lib/sleep.c: Likewise.
2919         * lib/sprintf.c: Likewise.
2920         * lib/sqrtl.c: Likewise.
2921         * lib/stat-time.h: Likewise.
2922         * lib/stdio--.h: Likewise.
2923         * lib/stdio-safer.h: Likewise.
2924         * lib/stdlib--.h: Likewise.
2925         * lib/stdlib-safer.h: Likewise.
2926         * lib/stdlib.in.h: Likewise.
2927         * lib/stpcpy.c: Likewise.
2928         * lib/stpncpy.c: Likewise.
2929         * lib/strchrnul.c: Likewise.
2930         * lib/strcspn.c: Likewise.
2931         * lib/strerror.c: Likewise.
2932         * lib/strftime.c: Likewise.
2933         * lib/strftime.h: Likewise.
2934         * lib/striconveh.c: Likewise.
2935         * lib/striconveh.h: Likewise.
2936         * lib/striconveha.c: Likewise.
2937         * lib/striconveha.h: Likewise.
2938         * lib/stripslash.c: Likewise.
2939         * lib/strnlen1.c: Likewise.
2940         * lib/strnlen1.h: Likewise.
2941         * lib/strtod.c: Likewise.
2942         * lib/strtoimax.c: Likewise.
2943         * lib/strtok_r.c: Likewise.
2944         * lib/strtol.c: Likewise.
2945         * lib/strtoll.c: Likewise.
2946         * lib/strtoul.c: Likewise.
2947         * lib/strtoull.c: Likewise.
2948         * lib/sysexits.in.h: Likewise.
2949         * lib/tempname.c: Likewise.
2950         * lib/tempname.h: Likewise.
2951         * lib/timespec.h: Likewise.
2952         * lib/tls.c: Likewise.
2953         * lib/tls.h: Likewise.
2954         * lib/tmpdir.c: Likewise.
2955         * lib/tmpdir.h: Likewise.
2956         * lib/tmpfile-safer.c: Likewise.
2957         * lib/tmpfile.c: Likewise.
2958         * lib/trigl.c: Likewise.
2959         * lib/trigl.h: Likewise.
2960         * lib/trim.c: Likewise.
2961         * lib/trim.h: Likewise.
2962         * lib/trunc.c: Likewise.
2963         * lib/truncf.c: Likewise.
2964         * lib/truncl.c: Likewise.
2965         * lib/tsearch.c: Likewise.
2966         * lib/unicodeio.c: Likewise.
2967         * lib/unicodeio.h: Likewise.
2968         * lib/unistd--.h: Likewise.
2969         * lib/unistd-safer.h: Likewise.
2970         * lib/unistdio/ulc-fprintf.c: Likewise.
2971         * lib/unistdio/ulc-vfprintf.c: Likewise.
2972         * lib/unlinkdir.c: Likewise.
2973         * lib/unlinkdir.h: Likewise.
2974         * lib/unlocked-io.h: Likewise.
2975         * lib/unsetenv.c: Likewise.
2976         * lib/userspec.c: Likewise.
2977         * lib/utime.c: Likewise.
2978         * lib/utimecmp.c: Likewise.
2979         * lib/utimecmp.h: Likewise.
2980         * lib/utimens.c: Likewise.
2981         * lib/verify.h: Likewise.
2982         * lib/verror.c: Likewise.
2983         * lib/verror.h: Likewise.
2984         * lib/version-etc-fsf.c: Likewise.
2985         * lib/version-etc.c: Likewise.
2986         * lib/version-etc.h: Likewise.
2987         * lib/vfprintf.c: Likewise.
2988         * lib/vprintf.c: Likewise.
2989         * lib/vsprintf.c: Likewise.
2990         * lib/w32spawn.h: Likewise.
2991         * lib/wait-process.c: Likewise.
2992         * lib/wait-process.h: Likewise.
2993         * lib/wcwidth.c: Likewise.
2994         * lib/write-any-file.c: Likewise.
2995         * lib/xalloc-die.c: Likewise.
2996         * lib/xalloc.h: Likewise.
2997         * lib/xasprintf.c: Likewise.
2998         * lib/xgetcwd.c: Likewise.
2999         * lib/xgetcwd.h: Likewise.
3000         * lib/xgetdomainname.c: Likewise.
3001         * lib/xgetdomainname.h: Likewise.
3002         * lib/xgethostname.c: Likewise.
3003         * lib/xmalloc.c: Likewise.
3004         * lib/xmalloca.c: Likewise.
3005         * lib/xmalloca.h: Likewise.
3006         * lib/xmemcoll.c: Likewise.
3007         * lib/xnanosleep.c: Likewise.
3008         * lib/xreadlink.c: Likewise.
3009         * lib/xreadlink.h: Likewise.
3010         * lib/xsetenv.c: Likewise.
3011         * lib/xsetenv.h: Likewise.
3012         * lib/xstriconv.c: Likewise.
3013         * lib/xstriconv.h: Likewise.
3014         * lib/xstrndup.c: Likewise.
3015         * lib/xstrndup.h: Likewise.
3016         * lib/xstrtod.c: Likewise.
3017         * lib/xstrtod.h: Likewise.
3018         * lib/xstrtol-error.c: Likewise.
3019         * lib/xstrtol.c: Likewise.
3020         * lib/xstrtol.h: Likewise.
3021         * lib/xtime.h: Likewise.
3022         * lib/xvasprintf.c: Likewise.
3023         * lib/xvasprintf.h: Likewise.
3024         * lib/yesno.c: Likewise.
3025         * lib/yesno.h: Likewise.
3026         * posix-modules: Likewise.
3027         * tests/test-alloca-opt.c: Likewise.
3028         * tests/test-arcfour.c: Likewise.
3029         * tests/test-arctwo.c: Likewise.
3030         * tests/test-argmatch.c: Likewise.
3031         * tests/test-argp-2.sh: Likewise.
3032         * tests/test-argp.c: Likewise.
3033         * tests/test-arpa_inet.c: Likewise.
3034         * tests/test-array_list.c: Likewise.
3035         * tests/test-array_oset.c: Likewise.
3036         * tests/test-atexit.c: Likewise.
3037         * tests/test-avltree_list.c: Likewise.
3038         * tests/test-avltree_oset.c: Likewise.
3039         * tests/test-avltreehash_list.c: Likewise.
3040         * tests/test-base64.c: Likewise.
3041         * tests/test-binary-io.c: Likewise.
3042         * tests/test-byteswap.c: Likewise.
3043         * tests/test-c-ctype.c: Likewise.
3044         * tests/test-c-strcasecmp.c: Likewise.
3045         * tests/test-c-strcasestr.c: Likewise.
3046         * tests/test-c-strncasecmp.c: Likewise.
3047         * tests/test-c-strstr.c: Likewise.
3048         * tests/test-canonicalize-lgpl.c: Likewise.
3049         * tests/test-canonicalize.c: Likewise.
3050         * tests/test-carray_list.c: Likewise.
3051         * tests/test-ceilf.c: Likewise.
3052         * tests/test-ceill.c: Likewise.
3053         * tests/test-count-one-bits.c: Likewise.
3054         * tests/test-crc.c: Likewise.
3055         * tests/test-dirname.c: Likewise.
3056         * tests/test-fbufmode.c: Likewise.
3057         * tests/test-fcntl.c: Likewise.
3058         * tests/test-fflush.c: Likewise.
3059         * tests/test-floorf.c: Likewise.
3060         * tests/test-floorl.c: Likewise.
3061         * tests/test-fopen.c: Likewise.
3062         * tests/test-fprintf-posix.c: Likewise.
3063         * tests/test-fprintf-posix.h: Likewise.
3064         * tests/test-fpurge.c: Likewise.
3065         * tests/test-freadable.c: Likewise.
3066         * tests/test-freadahead.c: Likewise.
3067         * tests/test-freading.c: Likewise.
3068         * tests/test-freopen.c: Likewise.
3069         * tests/test-frexp.c: Likewise.
3070         * tests/test-frexpl.c: Likewise.
3071         * tests/test-fseek.c: Likewise.
3072         * tests/test-fseeko.c: Likewise.
3073         * tests/test-fseterr.c: Likewise.
3074         * tests/test-fstrcmp.c: Likewise.
3075         * tests/test-ftell.c: Likewise.
3076         * tests/test-ftello.c: Likewise.
3077         * tests/test-fwritable.c: Likewise.
3078         * tests/test-fwriting.c: Likewise.
3079         * tests/test-getaddrinfo.c: Likewise.
3080         * tests/test-getpass.c: Likewise.
3081         * tests/test-gettimeofday.c: Likewise.
3082         * tests/test-hmac-md5.c: Likewise.
3083         * tests/test-hmac-sha1.c: Likewise.
3084         * tests/test-iconv.c: Likewise.
3085         * tests/test-iconvme.c: Likewise.
3086         * tests/test-inttypes.c: Likewise.
3087         * tests/test-isnan.c: Likewise.
3088         * tests/test-isnanf.c: Likewise.
3089         * tests/test-isnanl-nolibm.c: Likewise.
3090         * tests/test-isnanl.c: Likewise.
3091         * tests/test-isnanl.h: Likewise.
3092         * tests/test-ldexpl.c: Likewise.
3093         * tests/test-linked_list.c: Likewise.
3094         * tests/test-linkedhash_list.c: Likewise.
3095         * tests/test-locale.c: Likewise.
3096         * tests/test-localename.c: Likewise.
3097         * tests/test-lock.c: Likewise.
3098         * tests/test-lseek.c: Likewise.
3099         * tests/test-malloca.c: Likewise.
3100         * tests/test-math.c: Likewise.
3101         * tests/test-mbscasecmp.c: Likewise.
3102         * tests/test-mbscasestr1.c: Likewise.
3103         * tests/test-mbscasestr2.c: Likewise.
3104         * tests/test-mbscasestr3.c: Likewise.
3105         * tests/test-mbscasestr4.c: Likewise.
3106         * tests/test-mbschr.c: Likewise.
3107         * tests/test-mbscspn.c: Likewise.
3108         * tests/test-mbsncasecmp.c: Likewise.
3109         * tests/test-mbspbrk.c: Likewise.
3110         * tests/test-mbspcasecmp.c: Likewise.
3111         * tests/test-mbsrchr.c: Likewise.
3112         * tests/test-mbsspn.c: Likewise.
3113         * tests/test-mbsstr1.c: Likewise.
3114         * tests/test-mbsstr2.c: Likewise.
3115         * tests/test-mbsstr3.c: Likewise.
3116         * tests/test-md5.c: Likewise.
3117         * tests/test-memmem.c: Likewise.
3118         * tests/test-netinet_in.c: Likewise.
3119         * tests/test-open.c: Likewise.
3120         * tests/test-printf-frexp.c: Likewise.
3121         * tests/test-printf-frexpl.c: Likewise.
3122         * tests/test-printf-posix.c: Likewise.
3123         * tests/test-printf-posix.h: Likewise.
3124         * tests/test-rbtree_list.c: Likewise.
3125         * tests/test-rbtree_oset.c: Likewise.
3126         * tests/test-rbtreehash_list.c: Likewise.
3127         * tests/test-read-file.c: Likewise.
3128         * tests/test-rijndael.c: Likewise.
3129         * tests/test-search.c: Likewise.
3130         * tests/test-signbit.c: Likewise.
3131         * tests/test-sleep.c: Likewise.
3132         * tests/test-snprintf-posix.c: Likewise.
3133         * tests/test-snprintf-posix.h: Likewise.
3134         * tests/test-snprintf.c: Likewise.
3135         * tests/test-sprintf-posix.c: Likewise.
3136         * tests/test-sprintf-posix.h: Likewise.
3137         * tests/test-stat-time.c: Likewise.
3138         * tests/test-stdbool.c: Likewise.
3139         * tests/test-stdint.c: Likewise.
3140         * tests/test-stdio.c: Likewise.
3141         * tests/test-stdlib.c: Likewise.
3142         * tests/test-stpncpy.c: Likewise.
3143         * tests/test-strcasestr.c: Likewise.
3144         * tests/test-striconv.c: Likewise.
3145         * tests/test-striconveh.c: Likewise.
3146         * tests/test-striconveha.c: Likewise.
3147         * tests/test-string.c: Likewise.
3148         * tests/test-sys_select.c: Likewise.
3149         * tests/test-sys_socket.c: Likewise.
3150         * tests/test-sys_stat.c: Likewise.
3151         * tests/test-sys_time.c: Likewise.
3152         * tests/test-sysexits.c: Likewise.
3153         * tests/test-time.c: Likewise.
3154         * tests/test-tls.c: Likewise.
3155         * tests/test-trunc.c: Likewise.
3156         * tests/test-truncf.c: Likewise.
3157         * tests/test-truncl.c: Likewise.
3158         * tests/test-unistd.c: Likewise.
3159         * tests/test-vasnprintf-posix.c: Likewise.
3160         * tests/test-vasnprintf-posix2.c: Likewise.
3161         * tests/test-vasnprintf.c: Likewise.
3162         * tests/test-vasprintf-posix.c: Likewise.
3163         * tests/test-vasprintf.c: Likewise.
3164         * tests/test-verify.c: Likewise.
3165         * tests/test-vfprintf-posix.c: Likewise.
3166         * tests/test-vprintf-posix.c: Likewise.
3167         * tests/test-vsnprintf-posix.c: Likewise.
3168         * tests/test-vsnprintf.c: Likewise.
3169         * tests/test-vsprintf-posix.c: Likewise.
3170         * tests/test-wchar.c: Likewise.
3171         * tests/test-wctype.c: Likewise.
3172         * tests/test-wcwidth.c: Likewise.
3173         * tests/test-xstrtol.c: Likewise.
3174         * tests/test-xvasprintf.c: Likewise.
3175         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3176         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3177         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3178         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3179         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3180         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3181         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3182         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3183         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3184         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3185         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3186         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3187         * tests/uniname/test-uninames.c: Likewise.
3188         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3189         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
3190         * tests/unistdio/test-u16-printf1.h: Likewise.
3191         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3192         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3193         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3194         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3195         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3196         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3197         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3198         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
3199         * tests/unistdio/test-u32-printf1.h: Likewise.
3200         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3201         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3202         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3203         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3204         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3205         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3206         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3207         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
3208         * tests/unistdio/test-u8-printf1.h: Likewise.
3209         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3210         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3211         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3212         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3213         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3214         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3215         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3216         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
3217         * tests/unistdio/test-ulc-printf1.h: Likewise.
3218         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3219         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3220         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3221         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3222         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3223         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3224         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3225         * tests/uniwidth/test-u16-width.c: Likewise.
3226         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3227         * tests/uniwidth/test-u32-width.c: Likewise.
3228         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3229         * tests/uniwidth/test-u8-width.c: Likewise.
3230         * tests/uniwidth/test-uc_width.c: Likewise.
3231         * config/srclist-update: Likewise.
3232         (fixlicense): Update to GPLv3+.
3233
3234         Change copyright notice from LGPLv2.1+ to LGPLv3+.
3235         * tests/test-tsearch.c: Change copyright notice.
3236
3237         Change copyright notice from LGPLv2.0+ to LGPLv3+.
3238         * lib/c-strcaseeq.h: Change copyright notice.
3239         * lib/streq.h: Likewise.
3240         * lib/uniconv.h: Likewise.
3241         * lib/uniconv/u-conv-from-enc.h: Likewise.
3242         * lib/uniconv/u-conv-to-enc.h: Likewise.
3243         * lib/uniconv/u-strconv-from-enc.h: Likewise.
3244         * lib/uniconv/u-strconv-to-enc.h: Likewise.
3245         * lib/uniconv/u16-conv-from-enc.c: Likewise.
3246         * lib/uniconv/u16-conv-to-enc.c: Likewise.
3247         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
3248         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
3249         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
3250         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
3251         * lib/uniconv/u32-conv-from-enc.c: Likewise.
3252         * lib/uniconv/u32-conv-to-enc.c: Likewise.
3253         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
3254         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
3255         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
3256         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
3257         * lib/uniconv/u8-conv-from-enc.c: Likewise.
3258         * lib/uniconv/u8-conv-to-enc.c: Likewise.
3259         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
3260         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
3261         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
3262         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
3263         * lib/uniname.h: Likewise.
3264         * lib/uniname/uniname.c: Likewise.
3265         * lib/unistdio.h: Likewise.
3266         * lib/unistdio/u-asnprintf.h: Likewise.
3267         * lib/unistdio/u-asprintf.h: Likewise.
3268         * lib/unistdio/u-printf-args.c: Likewise.
3269         * lib/unistdio/u-printf-args.h: Likewise.
3270         * lib/unistdio/u-printf-parse.h: Likewise.
3271         * lib/unistdio/u-snprintf.h: Likewise.
3272         * lib/unistdio/u-sprintf.h: Likewise.
3273         * lib/unistdio/u-vasprintf.h: Likewise.
3274         * lib/unistdio/u-vsnprintf.h: Likewise.
3275         * lib/unistdio/u-vsprintf.h: Likewise.
3276         * lib/unistdio/u16-asnprintf.c: Likewise.
3277         * lib/unistdio/u16-asprintf.c: Likewise.
3278         * lib/unistdio/u16-printf-parse.c: Likewise.
3279         * lib/unistdio/u16-snprintf.c: Likewise.
3280         * lib/unistdio/u16-sprintf.c: Likewise.
3281         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
3282         * lib/unistdio/u16-u16-asprintf.c: Likewise.
3283         * lib/unistdio/u16-u16-snprintf.c: Likewise.
3284         * lib/unistdio/u16-u16-sprintf.c: Likewise.
3285         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
3286         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
3287         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
3288         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
3289         * lib/unistdio/u16-vasnprintf.c: Likewise.
3290         * lib/unistdio/u16-vasprintf.c: Likewise.
3291         * lib/unistdio/u16-vsnprintf.c: Likewise.
3292         * lib/unistdio/u16-vsprintf.c: Likewise.
3293         * lib/unistdio/u32-asnprintf.c: Likewise.
3294         * lib/unistdio/u32-asprintf.c: Likewise.
3295         * lib/unistdio/u32-printf-parse.c: Likewise.
3296         * lib/unistdio/u32-snprintf.c: Likewise.
3297         * lib/unistdio/u32-sprintf.c: Likewise.
3298         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
3299         * lib/unistdio/u32-u32-asprintf.c: Likewise.
3300         * lib/unistdio/u32-u32-snprintf.c: Likewise.
3301         * lib/unistdio/u32-u32-sprintf.c: Likewise.
3302         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
3303         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
3304         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
3305         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
3306         * lib/unistdio/u32-vasnprintf.c: Likewise.
3307         * lib/unistdio/u32-vasprintf.c: Likewise.
3308         * lib/unistdio/u32-vsnprintf.c: Likewise.
3309         * lib/unistdio/u32-vsprintf.c: Likewise.
3310         * lib/unistdio/u8-asnprintf.c: Likewise.
3311         * lib/unistdio/u8-asprintf.c: Likewise.
3312         * lib/unistdio/u8-printf-parse.c: Likewise.
3313         * lib/unistdio/u8-snprintf.c: Likewise.
3314         * lib/unistdio/u8-sprintf.c: Likewise.
3315         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
3316         * lib/unistdio/u8-u8-asprintf.c: Likewise.
3317         * lib/unistdio/u8-u8-snprintf.c: Likewise.
3318         * lib/unistdio/u8-u8-sprintf.c: Likewise.
3319         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
3320         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
3321         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
3322         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
3323         * lib/unistdio/u8-vasnprintf.c: Likewise.
3324         * lib/unistdio/u8-vasprintf.c: Likewise.
3325         * lib/unistdio/u8-vsnprintf.c: Likewise.
3326         * lib/unistdio/u8-vsprintf.c: Likewise.
3327         * lib/unistdio/ulc-asnprintf.c: Likewise.
3328         * lib/unistdio/ulc-asprintf.c: Likewise.
3329         * lib/unistdio/ulc-printf-parse.c: Likewise.
3330         * lib/unistdio/ulc-snprintf.c: Likewise.
3331         * lib/unistdio/ulc-sprintf.c: Likewise.
3332         * lib/unistdio/ulc-vasnprintf.c: Likewise.
3333         * lib/unistdio/ulc-vasprintf.c: Likewise.
3334         * lib/unistdio/ulc-vsnprintf.c: Likewise.
3335         * lib/unistdio/ulc-vsprintf.c: Likewise.
3336         * lib/unistr.h: Likewise.
3337         * lib/unistr/u-cpy-alloc.h: Likewise.
3338         * lib/unistr/u-cpy.h: Likewise.
3339         * lib/unistr/u-endswith.h: Likewise.
3340         * lib/unistr/u-move.h: Likewise.
3341         * lib/unistr/u-set.h: Likewise.
3342         * lib/unistr/u-startswith.h: Likewise.
3343         * lib/unistr/u-stpcpy.h: Likewise.
3344         * lib/unistr/u-stpncpy.h: Likewise.
3345         * lib/unistr/u-strcat.h: Likewise.
3346         * lib/unistr/u-strcpy.h: Likewise.
3347         * lib/unistr/u-strcspn.h: Likewise.
3348         * lib/unistr/u-strdup.h: Likewise.
3349         * lib/unistr/u-strlen.h: Likewise.
3350         * lib/unistr/u-strncat.h: Likewise.
3351         * lib/unistr/u-strncpy.h: Likewise.
3352         * lib/unistr/u-strnlen.h: Likewise.
3353         * lib/unistr/u-strpbrk.h: Likewise.
3354         * lib/unistr/u-strspn.h: Likewise.
3355         * lib/unistr/u-strstr.h: Likewise.
3356         * lib/unistr/u-strtok.h: Likewise.
3357         * lib/unistr/u16-check.c: Likewise.
3358         * lib/unistr/u16-chr.c: Likewise.
3359         * lib/unistr/u16-cmp.c: Likewise.
3360         * lib/unistr/u16-cpy-alloc.c: Likewise.
3361         * lib/unistr/u16-cpy.c: Likewise.
3362         * lib/unistr/u16-endswith.c: Likewise.
3363         * lib/unistr/u16-mblen.c: Likewise.
3364         * lib/unistr/u16-mbsnlen.c: Likewise.
3365         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3366         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3367         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3368         * lib/unistr/u16-mbtouc.c: Likewise.
3369         * lib/unistr/u16-mbtoucr.c: Likewise.
3370         * lib/unistr/u16-move.c: Likewise.
3371         * lib/unistr/u16-next.c: Likewise.
3372         * lib/unistr/u16-prev.c: Likewise.
3373         * lib/unistr/u16-set.c: Likewise.
3374         * lib/unistr/u16-startswith.c: Likewise.
3375         * lib/unistr/u16-stpcpy.c: Likewise.
3376         * lib/unistr/u16-stpncpy.c: Likewise.
3377         * lib/unistr/u16-strcat.c: Likewise.
3378         * lib/unistr/u16-strchr.c: Likewise.
3379         * lib/unistr/u16-strcmp.c: Likewise.
3380         * lib/unistr/u16-strcpy.c: Likewise.
3381         * lib/unistr/u16-strcspn.c: Likewise.
3382         * lib/unistr/u16-strdup.c: Likewise.
3383         * lib/unistr/u16-strlen.c: Likewise.
3384         * lib/unistr/u16-strmblen.c: Likewise.
3385         * lib/unistr/u16-strmbtouc.c: Likewise.
3386         * lib/unistr/u16-strncat.c: Likewise.
3387         * lib/unistr/u16-strncmp.c: Likewise.
3388         * lib/unistr/u16-strncpy.c: Likewise.
3389         * lib/unistr/u16-strnlen.c: Likewise.
3390         * lib/unistr/u16-strpbrk.c: Likewise.
3391         * lib/unistr/u16-strrchr.c: Likewise.
3392         * lib/unistr/u16-strspn.c: Likewise.
3393         * lib/unistr/u16-strstr.c: Likewise.
3394         * lib/unistr/u16-strtok.c: Likewise.
3395         * lib/unistr/u16-to-u32.c: Likewise.
3396         * lib/unistr/u16-to-u8.c: Likewise.
3397         * lib/unistr/u16-uctomb-aux.c: Likewise.
3398         * lib/unistr/u16-uctomb.c: Likewise.
3399         * lib/unistr/u32-check.c: Likewise.
3400         * lib/unistr/u32-chr.c: Likewise.
3401         * lib/unistr/u32-cmp.c: Likewise.
3402         * lib/unistr/u32-cpy-alloc.c: Likewise.
3403         * lib/unistr/u32-cpy.c: Likewise.
3404         * lib/unistr/u32-endswith.c: Likewise.
3405         * lib/unistr/u32-mblen.c: Likewise.
3406         * lib/unistr/u32-mbsnlen.c: Likewise.
3407         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3408         * lib/unistr/u32-mbtouc.c: Likewise.
3409         * lib/unistr/u32-mbtoucr.c: Likewise.
3410         * lib/unistr/u32-move.c: Likewise.
3411         * lib/unistr/u32-next.c: Likewise.
3412         * lib/unistr/u32-prev.c: Likewise.
3413         * lib/unistr/u32-set.c: Likewise.
3414         * lib/unistr/u32-startswith.c: Likewise.
3415         * lib/unistr/u32-stpcpy.c: Likewise.
3416         * lib/unistr/u32-stpncpy.c: Likewise.
3417         * lib/unistr/u32-strcat.c: Likewise.
3418         * lib/unistr/u32-strchr.c: Likewise.
3419         * lib/unistr/u32-strcmp.c: Likewise.
3420         * lib/unistr/u32-strcpy.c: Likewise.
3421         * lib/unistr/u32-strcspn.c: Likewise.
3422         * lib/unistr/u32-strdup.c: Likewise.
3423         * lib/unistr/u32-strlen.c: Likewise.
3424         * lib/unistr/u32-strmblen.c: Likewise.
3425         * lib/unistr/u32-strmbtouc.c: Likewise.
3426         * lib/unistr/u32-strncat.c: Likewise.
3427         * lib/unistr/u32-strncmp.c: Likewise.
3428         * lib/unistr/u32-strncpy.c: Likewise.
3429         * lib/unistr/u32-strnlen.c: Likewise.
3430         * lib/unistr/u32-strpbrk.c: Likewise.
3431         * lib/unistr/u32-strrchr.c: Likewise.
3432         * lib/unistr/u32-strspn.c: Likewise.
3433         * lib/unistr/u32-strstr.c: Likewise.
3434         * lib/unistr/u32-strtok.c: Likewise.
3435         * lib/unistr/u32-to-u16.c: Likewise.
3436         * lib/unistr/u32-to-u8.c: Likewise.
3437         * lib/unistr/u32-uctomb.c: Likewise.
3438         * lib/unistr/u8-check.c: Likewise.
3439         * lib/unistr/u8-chr.c: Likewise.
3440         * lib/unistr/u8-cmp.c: Likewise.
3441         * lib/unistr/u8-cpy-alloc.c: Likewise.
3442         * lib/unistr/u8-cpy.c: Likewise.
3443         * lib/unistr/u8-endswith.c: Likewise.
3444         * lib/unistr/u8-mblen.c: Likewise.
3445         * lib/unistr/u8-mbsnlen.c: Likewise.
3446         * lib/unistr/u8-mbtouc-aux.c: Likewise.
3447         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
3448         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
3449         * lib/unistr/u8-mbtouc.c: Likewise.
3450         * lib/unistr/u8-mbtoucr.c: Likewise.
3451         * lib/unistr/u8-move.c: Likewise.
3452         * lib/unistr/u8-next.c: Likewise.
3453         * lib/unistr/u8-prev.c: Likewise.
3454         * lib/unistr/u8-set.c: Likewise.
3455         * lib/unistr/u8-startswith.c: Likewise.
3456         * lib/unistr/u8-stpcpy.c: Likewise.
3457         * lib/unistr/u8-stpncpy.c: Likewise.
3458         * lib/unistr/u8-strcat.c: Likewise.
3459         * lib/unistr/u8-strchr.c: Likewise.
3460         * lib/unistr/u8-strcmp.c: Likewise.
3461         * lib/unistr/u8-strcpy.c: Likewise.
3462         * lib/unistr/u8-strcspn.c: Likewise.
3463         * lib/unistr/u8-strdup.c: Likewise.
3464         * lib/unistr/u8-strlen.c: Likewise.
3465         * lib/unistr/u8-strmblen.c: Likewise.
3466         * lib/unistr/u8-strmbtouc.c: Likewise.
3467         * lib/unistr/u8-strncat.c: Likewise.
3468         * lib/unistr/u8-strncmp.c: Likewise.
3469         * lib/unistr/u8-strncpy.c: Likewise.
3470         * lib/unistr/u8-strnlen.c: Likewise.
3471         * lib/unistr/u8-strpbrk.c: Likewise.
3472         * lib/unistr/u8-strrchr.c: Likewise.
3473         * lib/unistr/u8-strspn.c: Likewise.
3474         * lib/unistr/u8-strstr.c: Likewise.
3475         * lib/unistr/u8-strtok.c: Likewise.
3476         * lib/unistr/u8-to-u16.c: Likewise.
3477         * lib/unistr/u8-to-u32.c: Likewise.
3478         * lib/unistr/u8-uctomb-aux.c: Likewise.
3479         * lib/unistr/u8-uctomb.c: Likewise.
3480         * lib/unitypes.h: Likewise.
3481         * lib/uniwidth.h: Likewise.
3482         * lib/uniwidth/cjk.h: Likewise.
3483         * lib/uniwidth/u16-strwidth.c: Likewise.
3484         * lib/uniwidth/u16-width.c: Likewise.
3485         * lib/uniwidth/u32-strwidth.c: Likewise.
3486         * lib/uniwidth/u32-width.c: Likewise.
3487         * lib/uniwidth/u8-strwidth.c: Likewise.
3488         * lib/uniwidth/u8-width.c: Likewise.
3489         * lib/uniwidth/width.c: Likewise.
3490
3491 2007-10-07  Bruno Haible  <bruno@clisp.org>
3492
3493         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
3494         The file is still under LGPL (see modules/inttypes).
3495
3496 2007-10-06  Bruno Haible  <bruno@clisp.org>
3497
3498         * modules/trunc (Dependencies): Add 'extensions'.
3499         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
3500         Reported by Ben Pfaff <blp@gnu.org>.
3501
3502 2007-10-06  Bruno Haible  <bruno@clisp.org>
3503
3504         * modules/freopen-tests: New file.
3505         * tests/test-freopen.c: New file.
3506
3507         * modules/fopen-tests: New file.
3508         * tests/test-fopen.c: New file.
3509
3510         * modules/fopen: New file.
3511         * lib/fopen.c: New file.
3512         * m4/fopen.m4: New file.
3513         * modules/freopen: New file.
3514         * lib/freopen.c: New file.
3515         * m4/freopen.m4: New file.
3516         * lib/stdio.in.h (fopen, freopen): New declarations.
3517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
3518         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
3519         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
3520         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
3521         * doc/functions/fopen.texi: Mention the 'fopen' module.
3522         * doc/functions/freopen.texi: Mention the 'freopen' module.
3523
3524 2007-10-06  Bruno Haible  <bruno@clisp.org>
3525
3526         * modules/open-tests: New file.
3527         * tests/test-open.c: New file.
3528
3529         * modules/open: New file.
3530         * lib/open.c: New file.
3531         * m4/open.m4: New file.
3532         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
3533         lib/open.c does.
3534         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
3535         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
3536         macros.
3537         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
3538         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
3539         REPLACE_OPEN.
3540         * doc/functions/open.texi: Mention the 'open' module.
3541
3542 2007-10-04  Bruno Haible  <bruno@clisp.org>
3543
3544         * modules/ceill-tests: New file.
3545         * tests/test-ceill.c: New file.
3546
3547         * modules/ceill: New file.
3548         * lib/ceill.c: Replace entire file.
3549         * m4/ceill.m4: New file.
3550         * lib/math.in.h (ceill): Replace declaration.
3551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
3552         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
3553         * doc/functions/ceill.texi: Mention the 'ceill' module.
3554         * modules/mathl (Files): Remove lib/ceill.c.
3555         (Depends-on): Add ceill.
3556
3557 2007-10-04  Bruno Haible  <bruno@clisp.org>
3558
3559         * modules/ceilf-tests: New file.
3560         * tests/test-ceilf.c: New file.
3561
3562         * modules/ceilf: New file.
3563         * lib/ceil.c: New file.
3564         * lib/ceilf.c: New file.
3565         * m4/ceilf.m4: New file.
3566         * lib/math.in.h (ceilf): New declaration.
3567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
3568         HAVE_DECL_CEILF.
3569         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
3570         HAVE_DECL_CEILF.
3571         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
3572
3573 2007-10-04  Bruno Haible  <bruno@clisp.org>
3574
3575         * modules/floorl-tests: New file.
3576         * tests/test-floorl.c: New file.
3577
3578         * modules/floorl: New file.
3579         * lib/floorl.c: Replace entire file.
3580         * m4/floorl.m4: New file.
3581         * lib/math.in.h (floorl): Replace declaration.
3582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
3583         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
3584         * doc/functions/floorl.texi: Mention the 'floorl' module.
3585         * modules/mathl (Files): Remove lib/floorl.c.
3586         (Depends-on): Add floorl.
3587
3588 2007-10-04  Bruno Haible  <bruno@clisp.org>
3589
3590         * modules/floorf-tests: New file.
3591         * tests/test-floorf.c: New file.
3592
3593         * modules/floorf: New file.
3594         * lib/floor.c: New file.
3595         * lib/floorf.c: New file.
3596         * m4/floorf.m4: New file.
3597         * lib/math.in.h (floorf): New declaration.
3598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
3599         HAVE_DECL_FLOORF.
3600         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
3601         HAVE_DECL_FLOORF.
3602         * doc/functions/floorf.texi: Mention the 'floorf' module.
3603
3604 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
3605             Bruno Haible  <bruno@clisp.org>
3606
3607         Advertise for the Git server instead of the CVS server.
3608         * doc/gnulib-intro.texi (Steady Development): Mention the Git
3609         repository instead of the CVS one.
3610         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
3611         about all VCS systems generically.
3612         * doc/gnulib.texi (Introduction): Capitalize `Git'.
3613
3614 2007-10-04  Bruno Haible  <bruno@clisp.org>
3615
3616         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
3617         means.
3618         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
3619
3620 2007-10-04  Bruno Haible  <bruno@clisp.org>
3621
3622         * modules/truncl-tests: New file.
3623         * tests/test-truncl.c: New file.
3624
3625         * modules/truncl: New file.
3626         * lib/truncl.c: New file.
3627         * m4/truncl.m4: New file.
3628         * lib/math.in.h (truncl): New declaration.
3629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
3630         HAVE_DECL_TRUNCL.
3631         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
3632         HAVE_DECL_TRUNCL.
3633         * doc/functions/truncl.texi: Mention the 'truncl' module.
3634
3635 2007-10-04  Bruno Haible  <bruno@clisp.org>
3636
3637         * modules/truncf-tests: New file.
3638         * tests/test-truncf.c: New file.
3639
3640         * modules/truncf: New file.
3641         * lib/trunc.c: Make paramerizable through USE_* macros.
3642         * lib/truncf.c: New file.
3643         * m4/truncf.m4: New file.
3644         * lib/math.in.h (truncf): New declaration.
3645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
3646         HAVE_DECL_TRUNCF.
3647         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
3648         HAVE_DECL_TRUNCF.
3649         * doc/functions/truncf.texi: Mention the 'truncf' module.
3650
3651 2007-10-03  Bruno Haible  <bruno@clisp.org>
3652
3653         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
3654         augmentation also for tests modules.
3655         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
3656         * modules/atexit-tests (Makefile.am): Likewise.
3657         * modules/binary-io-tests (Makefile.am): Likewise.
3658         * modules/c-strcase-tests (Makefile.am): Likewise.
3659         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
3660         * modules/canonicalize-tests (Makefile.am): Likewise.
3661         * modules/closein-tests (Makefile.am): Likewise.
3662         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3663         * modules/freadahead-tests (Makefile.am): Likewise.
3664         * modules/fseek-tests (Makefile.am): Likewise.
3665         * modules/fseeko-tests (Makefile.am): Likewise.
3666         * modules/ftell-tests (Makefile.am): Likewise.
3667         * modules/ftello-tests (Makefile.am): Likewise.
3668         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
3669         * modules/isnanl-tests (Makefile.am): Likewise.
3670         * modules/lseek-tests (Makefile.am): Likewise.
3671         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3672         * modules/mbscasestr-tests (Makefile.am): Likewise.
3673         * modules/mbschr-tests (Makefile.am): Likewise.
3674         * modules/mbscspn-tests (Makefile.am): Likewise.
3675         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3676         * modules/mbspbrk-tests (Makefile.am): Likewise.
3677         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3678         * modules/mbsrchr-tests (Makefile.am): Likewise.
3679         * modules/mbsspn-tests (Makefile.am): Likewise.
3680         * modules/mbsstr-tests (Makefile.am): Likewise.
3681         * modules/printf-posix-tests (Makefile.am): Likewise.
3682         * modules/snprintf-posix-tests (Makefile.am): Likewise.
3683         * modules/sprintf-posix-tests (Makefile.am): Likewise.
3684         * modules/tsearch-tests (Makefile.am): Likewise.
3685         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3686         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3687         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3688         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3689         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3690         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3691         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3692         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3693         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
3694         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
3695         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3696         * modules/xstrtol-tests (Makefile.am): Likewise.
3697         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3698         * modules/yesno-tests (Makefile.am): Likewise.
3699
3700 2007-10-03  Bruno Haible  <bruno@clisp.org>
3701
3702         * modules/trunc-tests: New file.
3703         * tests/test-trunc.c: New file.
3704
3705         * modules/trunc: New file.
3706         * lib/trunc.c: New file.
3707         * m4/trunc.m4: New file.
3708         * lib/math.in.h (trunc): New declaration.
3709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
3710         HAVE_DECL_TRUNC.
3711         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
3712         HAVE_DECL_TRUNC.
3713         * doc/functions/trunc.texi: Mention the 'trunc' module.
3714
3715 2007-10-03  Bruno Haible  <bruno@clisp.org>
3716
3717         * tests/test-fpending.c: New file, mostly copied
3718         from coreutils/lib/t-fpending.c.
3719         * modules/fpending-tests: New file.
3720
3721 2007-10-03  Bruno Haible  <bruno@clisp.org>
3722
3723         Port the stdio extensions to QNX (untested).
3724         * lib/fseterr.c (fseterr): Add support for QNX.
3725         * lib/fbufmode.c (fbufmode): Likewise.
3726         * lib/freadable.c (freadable): Likewise.
3727         * lib/fwritable.c (fwritable): Likewise.
3728         * lib/freading.c (freading): Likewise.
3729         * lib/fwriting.c (fwriting): Likewise.
3730         * lib/freadahead.c (freadahed): Likewise.
3731         * lib/fpurge.c (fpurge): Likewise.
3732         * lib/fseeko.c (rpl_fseeko): Likewise.
3733
3734 2007-10-03  Bruno Haible  <bruno@clisp.org>
3735             Jim Meyering  <jim@meyering.net>
3736             Eric Blake  <ebb9@byu.net>
3737
3738         * doc/relocatable.texi: Use @command instead of @program.
3739
3740 2007-10-02  Jim Meyering  <jim@meyering.net>
3741
3742         Perform one more "_.h" -> ".in.h" substitution.
3743         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
3744         instead of unistd_.h here, too.
3745
3746 2007-10-01  Bruno Haible  <bruno@clisp.org>
3747
3748         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
3749         Needed for the alloca-opt module.
3750
3751 2007-09-30  Bruno Haible  <bruno@clisp.org>
3752
3753         * lib/alloca.in.h: Renamed from lib/alloca_.h.
3754         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
3755         alloca_.h.
3756         * lib/argz.in.h: Renamed from lib/argz_.h.
3757         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
3758         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
3759         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
3760         byteswap_.h.
3761         * lib/dirent.in.h: Renamed from lib/dirent_.h.
3762         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
3763         dirent_.h.
3764         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
3765         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
3766         fcntl_.h.
3767         * lib/float.in.h: Renamed from lib/float_.h.
3768         * modules/float (Files, Makefile.am): Use float.in.h instead of
3769         float_.h.
3770         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
3771         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
3772         fnmatch_.h.
3773         * lib/getopt.in.h: Renamed from lib/getopt_.h.
3774         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
3775         getopt_.h.
3776         * lib/glob.in.h: Renamed from lib/glob_.h.
3777         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
3778         * lib/iconv.in.h: Renamed from lib/iconv_.h.
3779         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
3780         iconv_.h.
3781         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
3782         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
3783         inttypes_.h.
3784         * lib/locale.in.h: Renamed from lib/locale_.h.
3785         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
3786         locale_.h.
3787         * lib/math.in.h: Renamed from lib/math_.h.
3788         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
3789         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
3790         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
3791         of netinet_in_.h. Add dependency.
3792         * lib/poll.in.h: Renamed from lib/poll_.h.
3793         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
3794         * lib/search.in.h: Renamed from lib/search_.h.
3795         * modules/search (Files, Makefile.am): Use search.in.h instead of
3796         search_.h.
3797         * lib/signal.in.h: Renamed from lib/signal_.h.
3798         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
3799         _signal.h.
3800         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
3801         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
3802         stdbool_.h.
3803         * lib/stdint.in.h: Renamed from lib/stdint_.h.
3804         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
3805         stdint_.h.
3806         * lib/stdio.in.h: Renamed from lib/stdio_.h.
3807         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
3808         stdio_.h.
3809         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
3810         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
3811         stdlib_.h.
3812         * lib/string.in.h: Renamed from lib/string_.h.
3813         * modules/string (Files, Makefile.am): Use string.in.h instead of
3814         string_.h.
3815         * doc/gnulib-tool.texi (Initial import): Update.
3816         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
3817         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
3818         of sys_select_.h. Add dependency.
3819         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
3820         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
3821         of sys_socket_.h.
3822         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
3823         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
3824         sys_stat_.h.
3825         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
3826         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
3827         sys_time_.h.
3828         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
3829         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
3830         sysexits_.h.
3831         * lib/time.in.h: Renamed from lib/time_.h.
3832         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
3833         * lib/unistd.in.h: Renamed from lib/unistd_.h.
3834         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
3835         unistd_.h.
3836         * lib/wchar.in.h: Renamed from lib/wchar_.h.
3837         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
3838         wchar_.h.
3839         * lib/wctype.in.h: Renamed from lib/wctype_.h.
3840         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
3841         wctype_.h.
3842         * build-aux/bootstrap (slurp): Update.
3843         * lib/.cppi-disable: Update.
3844
3845 2007-09-30  Bruno Haible  <bruno@clisp.org>
3846
3847         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
3848         Needed on BeOS.
3849
3850 2007-09-30  Bruno Haible  <bruno@clisp.org>
3851
3852         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
3853
3854 2007-09-29  Bruno Haible  <bruno@clisp.org>
3855
3856         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
3857
3858 2007-09-29  Bruno Haible  <bruno@clisp.org>
3859
3860         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
3861         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
3862         * build-aux/install-reloc: Compile also areadlink.c.
3863         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
3864
3865 2007-09-29  Bruno Haible  <bruno@clisp.org>
3866
3867         * gnulib-tool (func_emit_initmacro_done): Indentation.
3868
3869 2007-09-29  Bruno Haible  <bruno@clisp.org>
3870
3871         * README: Add CVS checkout update instructions.
3872         Info from Bob Proulx <bob@proulx.com>.
3873
3874 2007-09-28  Eric Blake  <ebb9@byu.net>
3875
3876         Provide move-if-change.
3877         * build-aux/move-if-change: New file, based on best practice
3878         rather than any canonical upstream location.
3879
3880 2007-09-28  Jim Meyering  <jim@meyering.net>
3881
3882         Fix canonicalize loop-detection corner case.
3883         Do not attempt to stat the symlink values stored via seen_triple.
3884         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
3885         on linux-2.6.18, (but not 2.6.22).
3886         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
3887         triple_compare.  The former compares dev,ino,filename, while the latter
3888         would actually stat dirname(filename) when dev and ino were equal.
3889         * lib/hash-triple.c: Install <string.h>.
3890         (STREQ): Define.
3891         (triple_compare_ino_str): New function.
3892         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
3893
3894 2007-09-28  Eric Blake  <ebb9@byu.net>
3895
3896         Enforce that AC_REPLACE_FUNCS files exist.
3897         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
3898         override check for typos.
3899
3900         Fix test-closein on Solaris 10.
3901         * tests/test-closein.c (main): Don't assume stdin can be inherited
3902         closed on all systems.
3903         * tests/test-closein.sh: Likewise.
3904         Reported by Piotr Tarnowski.
3905
3906 2007-09-28  Jim Meyering  <jim@meyering.net>
3907
3908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
3909
3910 2007-09-27  Jim Meyering  <jim@meyering.net>
3911
3912         canonicalize: Avoid a false-positive cycle failure.
3913         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
3914         Sort.  Remove cycle-check.
3915         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
3916         not cycle-check.h.
3917         (seen_triple): New function.
3918         (canonicalize_filename_mode): Use it instead of cycle-check.
3919         * tests/test-canonicalize.c: Add a test for this bug.
3920         * tests/test-canonicalize.sh: Set up and run the test.
3921
3922         New module, file-set, from coreutils.
3923         * modules/file-set: Define it.
3924         * lib/file-set.c, lib/file-set.h: Implement.
3925
3926         New module, hash-triple, from coreutils.
3927         * modules/hash-triple: Define it.
3928         * lib/hash-triple.c, lib/hash-triple.h: Implement.
3929
3930 2007-09-25  Eric Blake  <ebb9@byu.net>
3931
3932         Fix strerror on Interix.
3933         * lib/string_.h (strerror): Declare replacement.
3934         * doc/functions/strerror.texi (strerror): Document the Interix
3935         shortcoming.
3936         * modules/string (Makefile.am): Support new hooks.
3937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
3938         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
3939         gl_FUNC_STRERROR_SEPARATE.
3940         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
3941         * lib/strerror.c (rpl_strerror): Provide replacement.
3942         * modules/strerror (Depends-on): Add string.
3943         (configure.ac): Detect use of module.
3944         * tests/test-strerror.c: New file.
3945         * modules/strerror-tests: New test module.
3946         * modules/argp (Depends-on): Add strerror.
3947         * modules/error (Depends-on): Likewise.
3948         Reported by Martin Koeppe.
3949
3950 2007-09-24  Bruno Haible  <bruno@clisp.org>
3951
3952         * README: Update git instructions.
3953
3954 2007-09-24  Eric Blake  <ebb9@byu.net>
3955
3956         Revert fpending breakage from 2007-09-08.
3957         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
3958         __fpending.c.
3959
3960 2007-09-24  Jim Meyering  <jim@meyering.net>
3961
3962         filenamecat.c: Add a test.
3963         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
3964         showing how the function works when DIR is the empty string.
3965
3966 2007-09-21  Simon Josefsson  <simon@josefsson.org>
3967
3968         * tests/test-canonicalize.sh: Turn on executable bit.
3969
3970 2007-09-19  Eric Blake  <ebb9@byu.net>
3971
3972         * README: Update CVS instructions.
3973
3974 2007-09-18  Bruno Haible  <bruno@clisp.org>
3975
3976         * modules/areadlink: New file.
3977         * lib/areadlink.h (areadlink): New declaration.
3978         * lib/areadlink.c: New file, based on lib/xreadlink.c.
3979
3980 2007-09-17  Jim Meyering  <jim@meyering.net>
3981
3982         * lib/savewd.c (ESTALE) [!defined]: Define.
3983         Reported to be required on Interix by Martin Koeppe.
3984
3985 2007-09-17  Bruno Haible  <bruno@clisp.org>
3986
3987         * gnulib-tool (func_version): Use $version.
3988
3989 2007-09-16  Bruno Haible  <bruno@clisp.org>
3990
3991         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
3992         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
3993         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
3994         Reported by Greg Schafer <gschafer@zip.com.au>.
3995
3996 2007-09-15  Bruno Haible  <bruno@clisp.org>
3997
3998         * gnulib-tool (sed): Try a little harder to make bash understand the
3999         alias.
4000         Reported by Bruce Korb <bruce.korb@gmail.com>.
4001
4002 2007-09-13  Eric Blake  <ebb9@byu.net>
4003
4004         * ChangeLog: Remove conflict markers.
4005
4006 2007-09-13  Simon Josefsson  <simon@josefsson.org>
4007
4008         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
4009         Reported by Bruno Haible <bruno@clisp.org>.
4010
4011 2007-09-12  Bruno Haible  <bruno@clisp.org>
4012
4013         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
4014         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
4015         is not defined.
4016
4017 2007-09-12  Eric Blake  <ebb9@byu.net>
4018
4019         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
4020         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
4021         Autoconf definition.
4022         * modules/euidaccess (Depends-on): Add extensions, for
4023         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
4024         * modules/fnmatch (Depends-on): Likewise.
4025         * modules/getaddrinfo (Depends-on): Likewise.
4026         * modules/getdelim (Depends-on): Likewise.
4027         * modules/getline (Depends-on): Likewise.
4028         * modules/getsubopt (Depends-on): Likewise.
4029         * modules/gettext (Depends-on): Likewise.
4030         * modules/group-member (Depends-on): Likewise.
4031         * modules/mbchar (Depends-on): Likewise.
4032         * modules/memmem (Depends-on): Likewise.
4033         * modules/mempcpy (Depends-on): Likewise.
4034         * modules/memrchr (Depends-on): Likewise.
4035         * modules/pagealign_alloc (Depends-on): Likewise.
4036         * modules/readutmp (Depends-on): Likewise.
4037         * modules/stpcpy (Depends-on): Likewise.
4038         * modules/stpncpy (Depends-on): Likewise.
4039         * modules/strchrnul (Depends-on): Likewise.
4040         * modules/strndup (Depends-on): Likewise.
4041         * modules/strsep (Depends-on): Likewise.
4042         * modules/strverscmp (Depends-on): Likewise.
4043         * modules/vasprintf (Depends-on): Likewise.
4044         * modules/wcwidth (Depends-on): Likewise.
4045         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
4046         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
4047         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
4048         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
4049         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4050         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4051         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
4052         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
4053         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
4054         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4055         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4056         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
4057         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
4058         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4059         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
4060         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4061         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4062         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
4063         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4064         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
4065         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4066         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
4067         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
4068         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
4069         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
4070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4071         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
4072         so that lock.m4 can be used in gettext without extensions module.
4073
4074 2007-09-11  Bruno Haible  <bruno@clisp.org>
4075
4076         * m4/isc-posix.m4: Remove file.
4077         Suggested by Eric Blake.
4078
4079 2007-09-11  Eric Blake  <ebb9@byu.net>
4080
4081         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
4082
4083 2007-09-10  Bruno Haible  <bruno@clisp.org>
4084
4085         * posix-modules: Fix typo in error message.
4086         Reported by Matt <mkraai@beckman.com>.
4087
4088 2007-09-09  Bruno Haible  <bruno@clisp.org>
4089
4090         * doc/functions/getdelim.texi: Update list of platforms lacking the
4091         function.
4092         * doc/functions/getline.texi: Likewise.
4093
4094 2007-09-09  Jim Meyering  <jim@meyering.net>
4095
4096         * lib/hash.c (hash_initialize): Detect calloc failure.
4097         Reported by Bruno Haible.
4098
4099 2007-09-09  Bruno Haible  <bruno@clisp.org>
4100
4101         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
4102         malloc or realloc fails.
4103
4104 2007-09-09  Bruno Haible  <bruno@clisp.org>
4105
4106         * modules/getcwd (Depends-on): Add malloc-posix.
4107         * modules/glob (Depends-on): Likewise.
4108         * modules/putenv (Depends-on): Likewise.
4109         * modules/strdup (Depends-on): Likewise.
4110         * modules/getdelim (Depends-on): Add realloc-posix.
4111         * modules/read-file (Depends-on): Likewise.
4112
4113 2007-09-09  Bruno Haible  <bruno@clisp.org>
4114
4115         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
4116         (gl_FUNC_MALLOC_POSIX): Require it.
4117         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
4118         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
4119         * modules/realloc (Files): Add m4/malloc.m4.
4120         * modules/calloc (Files): Likewise.
4121
4122 2007-09-09  Bruno Haible  <bruno@clisp.org>
4123
4124         * modules/malloc-posix: New file.
4125         * modules/malloc (Depends-on): Add malloc-posix.
4126         * lib/malloc.c: Include errno.h.
4127         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
4128         and a POSIX-compatible malloc into a single function. Set ENOMEM
4129         when returning NULL.
4130         * m4/malloc.m4: New file.
4131         * doc/functions/malloc.texi: Mention the malloc-posix module.
4132         * lib/stdlib_.h (malloc): New declaration.
4133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4134         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
4135         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
4136         and HAVE_MALLOC_POSIX.
4137
4138 2007-09-09  Bruno Haible  <bruno@clisp.org>
4139
4140         * modules/realloc-posix: New file.
4141         * modules/realloc (Depends-on): Add realloc-posix.
4142         * lib/realloc.c: Include errno.h.
4143         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
4144         and a POSIX-compatible realloc into a single function. Set ENOMEM
4145         when returning NULL.
4146         * m4/realloc.m4: New file.
4147         * doc/functions/realloc.texi: Mention the realloc-posix module.
4148         * lib/stdlib_.h (realloc): New declaration.
4149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4150         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
4151         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
4152         and HAVE_REALLOC_POSIX.
4153
4154 2007-09-09  Bruno Haible  <bruno@clisp.org>
4155
4156         * modules/calloc-posix: New file.
4157         * modules/calloc (Depends-on): Add calloc-posix.
4158         * lib/calloc.c: Include errno.h.
4159         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
4160         and a POSIX-compatible calloc into a single function. Set ENOMEM
4161         when returning NULL.
4162         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
4163         * doc/functions/calloc.texi: Mention the calloc-posix module.
4164         * lib/stdlib_.h (calloc): New declaration.
4165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
4166         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
4167         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
4168         and HAVE_CALLOC_POSIX.
4169
4170 2007-09-09  Bruno Haible  <bruno@clisp.org>
4171
4172         Allow for modules to show an arbitrary notice.
4173         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
4174         * gnulib-tool: New option --extract-notice.
4175         (func_usage): Document it.
4176         (sed_extract_prog): Update.
4177         (func_get_notice): New function.
4178         (func_modules_notice): New function.
4179         (func_import, func_create_testdir): Invoke it.
4180         Suggested by Jim Meyering.
4181
4182 2007-09-09  Bruno Haible  <bruno@clisp.org>
4183
4184         * gnulib-tool: New options --verbose, --quiet.
4185         (func_usage): Document them.
4186         (verbose): New variable.
4187         (func_execute_command): New function.
4188         (func_import): Don't show the module list and the file list if
4189         $verbose < 0.
4190         (func_create_testdir): Likewise. Use func_execute_command.
4191         (func_create_megatestdir): Use func_execute_command.
4192
4193 2007-09-08  Bruno Haible  <bruno@clisp.org>
4194
4195         * gnulib-tool (func_import): Prefer rsync over wget when available,
4196         for fetching the PO files.
4197
4198 2007-09-08  Bruno Haible  <bruno@clisp.org>
4199
4200         * posix-modules: New file. Portions copied from gnulib-tool.
4201         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
4202
4203 2007-09-08  Jim Meyering  <jim@meyering.net>
4204
4205         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
4206         * lib/fpending.h: Rename from __fpending.h.
4207         * lib/fpending.c: Rename from __fpending.c.
4208         Include "fpending.h", not "__fpending.h".
4209         * lib/__fpending.h, lib/__fpending.c: Remove files.
4210         * modules/fpending (Files): Reflect new file names.
4211         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
4212
4213 2007-09-08  Bruno Haible  <bruno@clisp.org>
4214
4215         * m4/inttypes-h.m4: Remove stub file.
4216
4217 2007-09-07  Simon Josefsson  <simon@josefsson.org>
4218
4219         * doc/headers/stdint.texi: Discuss #include_next issue.
4220
4221 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
4222
4223         * build-aux/bootstrap: Remove obsolete comment about wget --help.
4224
4225 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4226
4227         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
4228         in variable name.
4229
4230 2007-09-03  Jim Meyering  <jim@meyering.net>
4231
4232         New module: git-version-gen.
4233         * modules/git-version-gen: New file.
4234
4235         Import changes from coreutils for bootstrap script.
4236
4237         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
4238
4239         bootstrap: uses rsync to download the .po files
4240         * build-aux/bootstrap (po_download_command_format): New global.
4241         (download_po_files): Use rsync.
4242         (update_po_files): Don't remove .po files after download,
4243         so future rsync runs can take advantage of the copies.
4244
4245         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
4246
4247         Solve the unnecessary-.po-file-regeneration problem once and for all.
4248         * build-aux/bootstrap (download_po_files): New function, renamed from
4249         get_translations.  Now, downloads, but doesn't update LINGUAS.
4250         (update_po_files): New function.
4251
4252         bootstrap: Ignore more.
4253         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
4254         uniwidth to e.g., lib/.gitignore.
4255         (slurp): Handle the sys_stat_.h -> sys mapping, too.
4256
4257         * build-aux/bootstrap: New setting: vc_ignore.
4258         (insert_sorted_if_absent): Create $file if absent.
4259         Adapt to new, possibly empty, list: $vc_ignore.
4260
4261         bootstrap: generate more ignorable names
4262         * build-aux/bootstrap (slurp): When generating ignorable names,
4263         also map .sin to .sed, .gperf to .c, and .y to .c.
4264
4265 2007-09-03  Jim Meyering  <jim@meyering.net>
4266
4267         * build-aux/git-version-gen: New file, from coreutils.  For details, see
4268         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
4269
4270 2007-09-02  Bruno Haible  <bruno@clisp.org>
4271
4272         Fix mis-recognition of 'mcs' on QNX 6.
4273         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
4274         output contains the string "Mono".
4275         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
4276         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
4277
4278 2007-09-01  Bruno Haible  <bruno@clisp.org>
4279
4280         Fix collision between uniwidth/* and linebreak modules.
4281         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
4282         u32_width): Remove declarations.
4283         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
4284         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
4285         streq3, streq2, streq1, streq0): Remove functions.
4286         (STREQ): Remove macro.
4287         (is_cjk_encoding): Remove function.
4288         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
4289         (uc_width, u8_width, u16_width, u32_width): Remove functions.
4290         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
4291         * NEWS: Document the change.
4292
4293 2007-09-01  Bruno Haible  <bruno@clisp.org>
4294
4295         * lib/streq.h: Add double-inclusion guard.
4296
4297 2007-09-01  Karl Berry  <karl@gnu.org>
4298
4299         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
4300
4301 2007-08-28  Jim Meyering  <jim@meyering.net>
4302
4303         Rename mreadlink_with_size to areadlink_with_size.
4304         * NEWS: Document the change.
4305         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
4306         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
4307         * lib/mreadlink.h: Rename this to...
4308         * lib/areadlink.h: ...this.
4309         * modules/mreadlink-with-size: Rename this to...
4310         * modules/areadlink-with-size: ...this.
4311         * lib/canonicalize.c: Reflect the renaming.
4312         * modules/canonicalize: Likewise.
4313
4314 2007-08-26  Bruno Haible  <bruno@clisp.org>
4315
4316         * gnulib-tool (func_import): When deciding which files to remove,
4317         consider also dangling symbolic links.
4318         Reported by Eric Blake.
4319
4320 2007-08-26  Bruno Haible  <bruno@clisp.org>
4321
4322         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
4323
4324 2007-08-23  Simon Josefsson  <simon@josefsson.org>
4325
4326         * lib/readline.c: Don't include getline.h, the prototype is now
4327         found in stdio.h.
4328
4329 2007-08-23  Jim Meyering  <jim@meyering.net>
4330
4331         Getdelim touchup.
4332         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
4333         around the funlockfile call, since funlockfile never sets errno.
4334         Don't set errno upon failed realloc.
4335
4336 2007-08-22  Eric Blake  <ebb9@byu.net>
4337
4338         Getline touchups.
4339         * lib/getdelim.c (getdelim): Revert regression that required *n to
4340         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
4341         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
4342         getdelim, rather than whether implementation is missing.
4343         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
4344         * lib/stdio_.h (getline): Also declare if replacement is
4345         required.
4346         * doc/functions/getdelim.texi: New file.
4347         * doc/functions/getline.texi: Likewise.
4348         * doc/gnulib.texi (Function Substitutes): Add new files.
4349         Reported by Bruno Haible.
4350
4351 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
4352
4353         * users.txt: Add Guile.
4354
4355 2007-08-22  Eric Blake  <ebb9@byu.net>
4356
4357         * tests/test-getdelim.c (main): Use remove, not unlink.
4358         * tests/test-getline.c (main): Likewise.
4359
4360         Move getline and getdelim into stdio.h, per POSIX 200x.
4361         * modules/getline (Files): Remove getline.h.
4362         (Depends-on): Add stdio.
4363         (configure.ac): Add module indicator.
4364         * modules/getdelim (Files): Remove getdelim.h.
4365         (Depends-on): Add stdio.
4366         (configure.ac): Add module indicator.
4367         * modules/stdio (Makefile.am): Work with new indicators.
4368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4369         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
4370         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4371         * lib/getdelim.h: Delete.
4372         * lib/getline.h: Delete.
4373         * lib/stdio_.h (getdelim, getline): Declare.
4374         * modules/getdelim-tests: New module.
4375         * modules/getline-tests: Likewise.
4376         * tests/test-getdelim.c: New file.
4377         * tests/test-getline.c: Likewise.
4378         * NEWS: Document the change.
4379         * lib/getline.c: Update choice of header.
4380         * lib/csharpcomp.c: Likewise.
4381         * lib/getpass.c: Likewise.
4382         * lib/javacomp.c: Likewise.
4383         * lib/javaversion.c: Likewise.
4384         * lib/yesno.c: Likewise.
4385         * lib/getdelim.c: Likewise.
4386         (getdelim): Set errno on failure, and avoid memory leak.
4387
4388 2007-08-19  Bruno Haible  <bruno@clisp.org>
4389
4390         * modules/closein (Depends-on): Add freadahead.
4391         * lib/closein.c: Include freadahead.h.
4392         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
4393         is zero.
4394
4395 2007-08-19  Bruno Haible  <bruno@clisp.org>
4396
4397         * modules/freadahead-tests: New file.
4398         * tests/test-freadahead.sh: New file.
4399         * tests/test-freadahead.c: New file.
4400
4401         * modules/freadahead: New file.
4402         * lib/freadahead.h: New file.
4403         * lib/freadahead.c: New file.
4404         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
4405         fbufmode, fpurge, freadable, fwritable.
4406
4407 2007-08-19  Eric Blake  <ebb9@byu.net>
4408
4409         Test yesno in combination with closein.
4410         * lib/yesno.c (yesno): Document use of stdin.
4411         * modules/yesno-tests (Files): New module.
4412         * tests/test-yesno.c (main): New file.
4413         * tests/test-yesno.sh: Likewise.
4414
4415 2007-08-19  Bruno Haible  <bruno@clisp.org>
4416
4417         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
4418         * lib/fseeko.c (rpl_fseeko): Likewise.
4419         * lib/fseterr.c (fseterr): Likewise.
4420
4421 2007-08-19  Bruno Haible  <bruno@clisp.org>
4422
4423         * tests/test-lseek.c (main): Disable a test for BeOS.
4424         * doc/functions/lseek.texi: Document the BeOS bug.
4425
4426 2007-08-19  Bruno Haible  <bruno@clisp.org>
4427             Eric Blake  <ebb9@byu.net>
4428
4429         * lib/lseek.c: Include <sys/stat.h>.
4430         (rpl_lseek): Add workaround code also for Unix platforms.
4431         Needed for BeOS.
4432         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
4433         * doc/functions/lseek.texi: Document BeOS definiency.
4434
4435 2007-08-18  Bruno Haible  <bruno@clisp.org>
4436
4437         * modules/fstrcmp-tests: New file.
4438         * tests/test-fstrcmp.c: New file.
4439
4440 2007-08-18  Bruno Haible  <bruno@clisp.org>
4441
4442         * modules/fstrcmp: New file, from GNU gettext with modifications.
4443         * lib/fstrcmp.h: New file, from GNU gettext.
4444         * lib/fstrcmp.c: New file, from GNU gettext.
4445         * MODULES.html.sh (String handling): Add fstrcmp.
4446
4447 2007-08-18  Bruno Haible  <bruno@clisp.org>
4448
4449         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
4450         'bool'.
4451         (diag, compareseq): Remove const from the ctxt argument.
4452         (USE_HEURISTIC): Undefine at the end.
4453
4454 2007-08-18  Jim Meyering  <jim@meyering.net>
4455
4456         New file: lib/idcache.h
4457         * NEWS: Mention the addition.
4458         * modules/idcache (Files): Add lib/idcache.h
4459         * lib/idcache.c: Include "idcache.h".
4460         Don't include <sys/types.h>.
4461         Add a FIXME comment.
4462         Move file-scoped "static" declarations to the top.
4463         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
4464
4465 2007-08-17  Bruno Haible  <bruno@clisp.org>
4466         and Paul Eggert  <eggert@cs.ucla.edu>
4467
4468         * MODULES.html.sh: Add diffseq.
4469         * modules/diffseq: New file.
4470         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
4471         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
4472
4473 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4474
4475         Import changes from coreutils for bootstrap script.
4476
4477         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
4478
4479         * build-aux/bootstrap (slurp): Work even in environments where
4480         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
4481         current code does not slurp files whose names start with ".", and
4482         this looks like it might be a troublesome area.
4483
4484         2007-07-11  Jim Meyering  <jim@meyering.net>
4485
4486         If there's a GPL vN copyright comment, require that N == 3.
4487
4488         2007-07-08  Jim Meyering  <jim@meyering.net>
4489
4490         Run the coreutils-specific code only if tests/Makefile.am.in exists.
4491         * build-aux/bootstrap (mam_template): Move definition out of loop.
4492
4493         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
4494
4495         * build-aux/bootstrap (symlink_to_dir): Rename function from
4496         symlink_to_gnulib.  Add a directory parameter.  Update all
4497         callers.
4498         (cp_mark_as_generated): Also check for -- and link to -- files in
4499         gl/.
4500
4501         2007-07-08  Jim Meyering  <jim@meyering.net>
4502
4503         Adapt to deeper hierarchy in gnulib.
4504         * build-aux/bootstrap (symlink_to_dir): If the destination
4505         directory doesn't exist, create it. This is required at least for
4506         "lib/uniwidth/cjk.h".
4507
4508         2007-05-15  Jim Meyering  <jim@meyering.net>
4509
4510         * build-aux/bootstrap: Now that generated Makefile.am files
4511         are no longer under version control, they must be created at
4512         bootstrap time.
4513
4514 2007-08-14  Ben Pfaff  <blp@gnu.org>
4515
4516         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
4517
4518 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
4519
4520         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
4521         given the changes below.
4522         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
4523         even on hosts that have padding bits beyond the supported 64.
4524
4525 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4526
4527         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
4528         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
4529         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
4530         depends on it.
4531         (xstrtol_error): Remove.
4532         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
4533         but with a different signature.
4534         (ATTRIBUTE_NORETURN, __attribute__): New macros.
4535         * lib/xstrtol-error.c: Include exitfail.h.
4536         (xstrtol_fatal): New function, with a different signature from the
4537         old xstrtol_error, so that the caller need not worry about passing
4538         in an exit status, or about storage management of the option argument.
4539         (xstrtol_error): Now a static function.  Redo signature to
4540         implement xstrtol_fatal.  Output the correct number of hyphens in
4541         front of the option so that the caller need not worry about
4542         storage management.
4543         (N_): New macro.
4544         (_): Remove; not used now.
4545         * modules/xstrtol: Depend on getopt.
4546         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
4547         of old STRTOL_FATAL_ERROR macro.
4548         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
4549         of test program.
4550         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
4551         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
4552
4553 2007-08-08  Eric Blake  <ebb9@byu.net>
4554
4555         * lib/xstrtol-error.c: Add missing include.
4556
4557         Move xstrtol messages into gnulib domain, when --pobase is used.
4558         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
4559         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
4560         * modules/xstrtol (Files): Distribute new file.
4561         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
4562         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
4563         * tests/test-xstrtol.c: ...into new file.
4564         * tests/test-xstrtoul.c: Also test xstrtoul.
4565         * tests/test-xstrtoimax.c: Also test xstrtoimax.
4566         * tests/test-xstrtoumax.c: Also test xstrtoumax.
4567         * tests/test-xstrtol.sh: Drive the tests.
4568         * tests/test-xstrtoimax.sh: Likewise.
4569         * tests/test-xstrtoumax.sh: Likewise.
4570         * modules/xstrtol-tests: New module.
4571         * modules/xstrtoimax-tests: Likewise.
4572         * modules/xstrtoumax-tests: Likewise.
4573
4574 2007-08-08  Jim Meyering  <jim@meyering.net>
4575
4576         New function: mfile_name_concat.
4577         * lib/filenamecat.c (mfile_name_concat): New function, just like
4578         file_name_concat, but return NULL upon failure rather than exiting
4579         with a diagnostic.
4580         * lib/filenamecat.h: Declare it.
4581
4582 2007-08-07  Bruno Haible  <bruno@clisp.org>
4583
4584         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
4585         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
4586         warning from gcc.
4587         Reported by Eric Blake.
4588
4589 2007-08-07  Simon Josefsson  <simon@josefsson.org>
4590
4591         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
4592         * modules/crypto/arcfour (License): Likewise.
4593         * modules/crypto/des-tests (License): Likewise.
4594         * modules/crypto/gc-arctwo-tests (License): Likewise.
4595         * modules/crypto/gc-des-tests (License): Likewise.
4596         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
4597         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
4598         * modules/crypto/gc-md2-tests (License): Likewise.
4599         * modules/crypto/gc-md4-tests (License): Likewise.
4600         * modules/crypto/gc-md5-tests (License): Likewise.
4601         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
4602         * modules/crypto/gc-rijndael-tests (License): Likewise.
4603         * modules/crypto/gc-sha1-tests (License): Likewise.
4604         * modules/crypto/gc-tests (License): Likewise.
4605         * modules/crypto/hmac-md5 (License): Likewise.
4606         * modules/crypto/hmac-sha1 (License): Likewise.
4607         * modules/crypto/md2-tests (License): Likewise.
4608         * modules/crypto/md4-tests (License): Likewise.
4609         * modules/crypto/md5 (License): Likewise.
4610         * modules/crypto/rijndael (License): Likewise.
4611         * modules/crypto/sha1 (License): Likewise.
4612         * modules/memxor (License): Likewise.
4613
4614 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4615         and Bruno Haible  <bruno@clisp.org>
4616
4617         * NEWS: Describe interface changes to human, xstrtol.
4618         * lib/human.h: Include <xstrtol.h>.
4619         (human_options): Return enum strtol_error, not int.  Remove
4620         bool arg; take int * instead.
4621         * lib/human.c: Don't include "gettext.h".
4622         (_): Remove; no longer used.
4623         Don't include <xstrtol.h>, since human.h does it.
4624         (human_options): Adjust to abovementioned interface changes.
4625         Do not report error to stderr; that's now the caller's
4626         responsibility.
4627         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
4628         interface change.
4629         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
4630         Str, Argument_type_string.  All uses changed.  Put " argument"
4631         in diagnostics to make them clearer.  Change wording of suffix
4632         message for clarity.
4633         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
4634         Argument_type_string.
4635         (STRTOL_FATAL_WARN): Remove; no longer used.
4636         * modules/human (Depends-on): Remove gettext-h.
4637
4638 2007-08-06  Simon Josefsson  <simon@josefsson.org>
4639
4640         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
4641
4642 2007-07-31  Bruno Haible  <bruno@clisp.org>
4643
4644         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
4645         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
4646         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
4647
4648 2007-07-31  Bruno Haible  <bruno@clisp.org>
4649
4650         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
4651         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
4652
4653 2007-07-30  Bruno Haible  <bruno@clisp.org>
4654
4655         * modules/base64 (License): Use the synonymous term "LGPLv2+".
4656         * modules/c-ctype (License): Likewise.
4657         * modules/c-strcase (License): Likewise.
4658         * modules/check-version (License): Likewise.
4659         * modules/iconv (License): Likewise.
4660         * modules/iconv_open (License): Likewise.
4661         * modules/read-file (License): Likewise.
4662         * modules/striconv (License): Likewise.
4663         * modules/strverscmp (License): Likewise.
4664         * modules/vasprintf (License): Likewise.
4665         * modules/crypto/des (License): Likewise.
4666         * modules/crypto/gc (License): Likewise.
4667         * modules/crypto/gc-arcfour (License): Likewise.
4668         * modules/crypto/gc-arctwo (License): Likewise.
4669         * modules/crypto/gc-des (License): Likewise.
4670         * modules/crypto/gc-hmac-md5 (License): Likewise.
4671         * modules/crypto/gc-hmac-sha1 (License): Likewise.
4672         * modules/crypto/gc-md2 (License): Likewise.
4673         * modules/crypto/gc-md4 (License): Likewise.
4674         * modules/crypto/gc-md5 (License): Likewise.
4675         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
4676         * modules/crypto/gc-random (License): Likewise.
4677         * modules/crypto/gc-rijndael (License): Likewise.
4678         * modules/crypto/gc-sha1 (License): Likewise.
4679         * modules/crypto/md2 (License): Likewise.
4680         * modules/crypto/md4 (License): Likewise.
4681
4682 2007-07-30  Jim Meyering  <jim@meyering.net>
4683
4684         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
4685         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
4686         it has valid stat data.  This bug would cause du not to count the
4687         sizes of inaccessible directories.
4688         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
4689         in <http://bugzilla.redhat.com/250077>.
4690
4691 2007-07-25  Peter O'Gorman  <peter@pogma.com>
4692             Bruno Haible  <bruno@clisp.org>
4693
4694         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
4695         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
4696         #include_next, gives a diagnostic about it, but reports no error in
4697         the exit code.
4698         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
4699
4700 2007-07-24  Ben Pfaff  <blp@gnu.org>
4701
4702         Improve name: "count-one-bits" is better than "popcount".
4703         * MODULES.html.sh: Update name.
4704         * lib/popcount.h: Renamed lib/count-one-bits.h.
4705         (popcount): Renamed count_one_bits.
4706         (popcountl): Renamed count_one_bits_l.
4707         (popcountll): Renamed count_one_bits_ll.
4708         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
4709         * modules/popcount: Renamed module/count-one-bits.
4710         * modules/popcount-tests: Renamed module/count-one-bits-tests.
4711         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
4712
4713 2007-07-23  Ben Pfaff  <blp@gnu.org>
4714
4715         * lib/popcount.h (popcount32): Reduce size of constants, to allow
4716         better code generation, and add U to large constants to avoid
4717         warnings, in non-GCC case.
4718         Suggested by Bruno Haible.
4719
4720 2007-07-23  Ben Pfaff  <blp@gnu.org>
4721
4722         * lib/popcount.h: Use verify_true instead of if...abort.
4723         * modules/popcount: Depend on verify module.
4724         Suggested by Jim Meyering.
4725
4726 2007-07-23  Bruno Haible  <bruno@clisp.org>
4727
4728         * gnulib-tool (func_import): Create a .cvsignore file also when the
4729         directory is not yet in CVS but the toplevel directory is. When
4730         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
4731         Reported by Karl Berry.
4732
4733 2007-07-22  Ben Pfaff  <blp@gnu.org>
4734
4735         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
4736         case.
4737         Suggested by Eric Blake.
4738
4739 2007-07-22  Ben Pfaff  <blp@gnu.org>
4740
4741         New module: popcount.
4742         * MODULES.html.sh: Add popcount.
4743         * modules/popcount: New file.
4744         * modules/popcount-tests: New file.
4745         * tests/test-popcount.c: New file.
4746         * lib/popcount.h: New file.
4747         * m4/popcount.m4: New file.
4748
4749 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4750
4751         * build-aux/announce-gen: Update to GPLv3.
4752
4753         * build-aux/config.guess: Update from config.
4754
4755 2007-07-21  Bruno Haible  <bruno@clisp.org>
4756
4757         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
4758         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
4759
4760 2007-07-20  Jim Meyering  <jim@meyering.net>
4761
4762         * check-module: Diagnose a self-dependency.
4763
4764 2007-07-19  Bruno Haible  <bruno@clisp.org>
4765
4766         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
4767         empty.
4768         Reported by Eric Blake.
4769
4770 2007-07-18  Bruno Haible  <bruno@clisp.org>
4771
4772         * gnulib-tool: New options --po-base, --po-domain.
4773         (func_usage): Document them.
4774         (pobase, po_domain): New variables.
4775         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
4776         DEFAULT_TEXT_DOMAIN.
4777         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
4778         (func_import): Consider pobase and po_domain. Create a po/ directory.
4779         (func_create_testdir): Set pobase and po_domain to empty.
4780         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
4781         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
4782
4783 2007-07-18  Bruno Haible  <bruno@clisp.org>
4784
4785         * gnulib-tool (func_get_automake_snippet): Synthesize also an
4786         EXTRA_DIST augmentation for files in build-aux/.
4787
4788 2007-07-16  Bruno Haible  <bruno@clisp.org>
4789
4790         * modules/lseek (License): Use the synonymous term "LGPLv2+".
4791         * modules/getdelim (License): Likewise.
4792
4793 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4794
4795         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
4796         * modules/d-type (License): Likewise.
4797         * modules/extensions (License): Likewise.
4798         * modules/fnmatch (License): Likewise.
4799         * modules/fseeko (License): Likewise.
4800         * modules/getaddrinfo (License): Likewise.
4801         * modules/getline (License): Likewise.
4802         * modules/getlogin_r (License): Likewise.
4803         * modules/getpass (License): Likewise.
4804         * modules/gettimeofday (License): Likewise.
4805         * modules/glob (License): Likewise.
4806         * modules/inet_ntop (License): Likewise.
4807         * modules/malloc (License): Likewise.
4808         * modules/malloca (License): Likewise.
4809         * modules/memmem (License): Likewise.
4810         * modules/mempcpy (License): Likewise.
4811         * modules/memset (License): Likewise.
4812         * modules/minmax (License): Likewise.
4813         * modules/mktime (License): Likewise.
4814         * modules/netinet_in (License): Likewise.
4815         * modules/pathmax (License): Likewise.
4816         * modules/poll (License): Likewise.
4817         * modules/regex (License): Likewise.
4818         * modules/snprintf (License): Likewise.
4819         * modules/stdbool (License): Likewise.
4820         * modules/stdint (License): Likewise.
4821         * modules/stdio (License): Likewise.
4822         * modules/strcase (License): Likewise.
4823         * modules/strcasestr (License): Likewise.
4824         * modules/strdup (License): Likewise.
4825         * modules/string (License): Likewise.
4826         * modules/strndup (License): Likewise.
4827         * modules/strnlen (License): Likewise.
4828         * modules/strpbrk (License): Likewise.
4829         * modules/strptime (License): Likewise.
4830         * modules/strsep (License): Likewise.
4831         * modules/sys_select (License): Likewise.
4832         * modules/sys_socket (License): Likewise.
4833         * modules/sys_stat (License): Likewise.
4834         * modules/sys_time (License): Likewise.
4835         * modules/time (License): Likewise.
4836         * modules/time_r (License): Likewise.
4837         * modules/timegm (License): Likewise.
4838         * modules/unistd (License): Likewise.
4839         * modules/vsnprintf (License): Likewise.
4840         * modules/wctype (License): Likewise.
4841
4842 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4843
4844         * modules/argz (License): LGPLv2+.
4845
4846 2007-07-15  Karl Berry  <karl@gnu.org>
4847
4848         * doc/gnulib.texi: revise node structure per new fdl.texi.
4849
4850 2007-07-14  Bruno Haible  <bruno@clisp.org>
4851
4852         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
4853         the output file.
4854         * lib/uniname/uninames.h: Regenerated.
4855
4856 2007-07-14  Karl Berry  <karl@gnu.org>
4857
4858         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
4859         omitting sectioning and index commands.
4860
4861 2007-07-13  Bruno Haible  <bruno@clisp.org>
4862
4863         New gnulib-tool option --more-symlinks.
4864         * gnulib-tool (func_usage): Document --more-symlinks.
4865         (do_copyrights): New variable.
4866         Recognize option --more-symlinks.
4867         (func_import): Don't add a copyright notice transform to
4868         sed_transform_lib_file if do_copyrights is empty.
4869
4870 2007-07-13  Bruno Haible  <bruno@clisp.org>
4871
4872         * lib/vasnprintf.c (decimal_point_char): Define also if
4873         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
4874         && !NEED_PRINTF_DIRECTIVE_A.
4875         Reported by Clemens Koller <clemens.koller@anagramm.de> via
4876         Gary V. Vaughan <gary@gnu.org>.
4877
4878 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
4879
4880         * lib/inttypes_.h: Undo previous change, since it was fixed
4881         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
4882
4883 2007-07-13  Bruno Haible  <bruno@clisp.org>
4884
4885         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
4886         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
4887
4888 2007-07-13  Jim Meyering  <jim@meyering.net>
4889
4890         df: Don't fail for Tru64's "file-on-file mount".
4891         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
4892         so we fall through and use statfs instead.  Details here:
4893         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
4894         Reported by Albert Chin.
4895
4896 2007-07-13  Bruno Haible  <bruno@clisp.org>
4897
4898         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
4899         * modules/configmake (License): Likewise.
4900         * modules/gettext (License): Likewise.
4901         * modules/gettext-h (License): Likewise.
4902         * modules/include_next (License): Likewise.
4903         * modules/link-warning (License): Likewise.
4904         * modules/localcharset (License): Likewise.
4905         * modules/localename (License): Likewise.
4906         * modules/lock (License): Likewise.
4907         * modules/relocatable-lib-lgpl (License): Likewise.
4908         * modules/size_max (License): Likewise.
4909         * modules/vasnprintf (License): Likewise.
4910         * modules/wchar (License): Likewise.
4911         * modules/xsize (License): Likewise.
4912
4913 2007-07-13  Bruno Haible  <bruno@clisp.org>
4914
4915         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
4916         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
4917
4918 2007-07-12  Bruno Haible  <bruno@clisp.org>
4919
4920         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
4921         in the modules files.
4922
4923 2007-07-11  Karl Berry  <karl@gnu.org>
4924
4925         * MODULES.html.sh (func_module): use
4926          sed -e '\|^'"${includefile}"'$|d'
4927          instead of /.../d, to avoid errors on $includefile's containing /.
4928
4929 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4930
4931         * gnulib-tool (func_import): Avoid duplication of --avoid
4932         statements
4933         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
4934         names to `_' in variable names.
4935
4936 2007-07-10  Eric Blake  <ebb9@byu.net>
4937
4938         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
4939         * NEWS: Document this change.
4940
4941 2007-07-08  Bruno Haible  <bruno@clisp.org>
4942
4943         Update to Unicode 5.0.
4944         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
4945         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
4946         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
4947         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
4948         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
4949         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
4950         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
4951         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
4952         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
4953         U+10A3F, U+1D242..U+1D244.
4954         (nonspacing_table_ind): Update.
4955         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
4956         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
4957
4958 2007-07-08  Bruno Haible  <bruno@clisp.org>
4959
4960         Update to Unicode 5.0.
4961         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
4962         code transform. Extend the name index field of unicode_name_to_code and
4963         unicode_code_to_name from 16 to 24 bits.
4964         * lib/uniname/uniname.c (unicode_character_name,
4965         unicode_name_character): Add the range 0x12xxx to the code transform.
4966         * lib/uniname/uninames.h: Regenerated.
4967         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
4968
4969 2007-07-07  Bruno Haible  <bruno@clisp.org>
4970
4971         * modules/wcwidth-tests: New file.
4972         * tests/test-wcwidth.c: New file.
4973
4974         Work around MacOS X wcwidth() bug.
4975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
4976         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
4977         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
4978         original wcwidth in non-UTF-8 locales.
4979         * modules/wcwidth (Depends-on): Add localcharset, streq,
4980         uniwidth/width.
4981         * doc/functions/wcwidth.texi: Update.
4982
4983 2007-07-07  Bruno Haible  <bruno@clisp.org>
4984
4985         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
4986         (wcwidth): New declaration.
4987         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
4988         macros.
4989         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
4990         here. Prepare for creating <wchar.h> unconditionally.
4991         * modules/wchar (Depends-on): Add link-warning.
4992         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
4993         REPLACE_WCWIDTH, and GL_LINK_WARNING.
4994         * lib/wcwidth.h: Remove file.
4995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
4996         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
4997         * modules/wcwidth (Files): Remove lib/wcwidth.h.
4998         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
4999         (Include): Replace wcwidth.h with <wchar.h>.
5000         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
5001         * lib/mbchar.h: Don't include wcwidth.h.
5002         * lib/mbswidth.c: Likewise.
5003         * NEWS: Mention the change.
5004
5005 2007-07-07  Bruno Haible  <bruno@clisp.org>
5006
5007         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
5008         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
5009         definition with an external declaration.
5010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
5011         defined as a function. Remove AC_C_INLINE requirement.
5012         * modules/wcwidth (Files): Add lib/wcwidth.c.
5013         (Makefile.am): Remove redundant statement.
5014
5015 2007-07-07  Bruno Haible  <bruno@clisp.org>
5016
5017         * MODULES.html.sh (Unicode string functions): Add the new modules.
5018
5019         * tests/uniwidth/test-u32-strwidth.c: New file.
5020         * modules/uniwidth/u32-strwidth-tests: New file.
5021
5022         * lib/uniwidth/u32-strwidth.c: New file.
5023         * modules/uniwidth/u32-strwidth: New file.
5024
5025         * tests/uniwidth/test-u16-strwidth.c: New file.
5026         * modules/uniwidth/u16-strwidth-tests: New file.
5027
5028         * lib/uniwidth/u16-strwidth.c: New file.
5029         * modules/uniwidth/u16-strwidth: New file.
5030
5031         * tests/uniwidth/test-u8-strwidth.c: New file.
5032         * modules/uniwidth/u8-strwidth-tests: New file.
5033
5034         * lib/uniwidth/u8-strwidth.c: New file.
5035         * modules/uniwidth/u8-strwidth: New file.
5036
5037         * tests/uniwidth/test-u32-width.c: New file.
5038         * modules/uniwidth/u32-width-tests: New file.
5039
5040         * lib/uniwidth/u32-width.c: New file.
5041         * modules/uniwidth/u32-width: New file.
5042
5043         * tests/uniwidth/test-u16-width.c: New file.
5044         * modules/uniwidth/u16-width-tests: New file.
5045
5046         * lib/uniwidth/u16-width.c: New file.
5047         * modules/uniwidth/u16-width: New file.
5048
5049         * tests/uniwidth/test-u8-width.c: New file.
5050         * modules/uniwidth/u8-width-tests: New file.
5051
5052         * lib/uniwidth/u8-width.c: New file.
5053         * modules/uniwidth/u8-width: New file.
5054
5055         * tests/uniwidth/test-uc_width.c: New file.
5056         * modules/uniwidth/width-tests: New file.
5057
5058         * lib/uniwidth/width.c: New file, from GNU libiconv.
5059         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
5060         * modules/uniwidth/width: New file.
5061
5062         * lib/uniwidth.h: New file, from GNU libiconv.
5063         * modules/uniwidth/base: New file.
5064
5065 2007-07-07  Bruno Haible  <bruno@clisp.org>
5066
5067         * lib/uniname.h: New file, from GNU gettext.
5068         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
5069         * lib/uniname/uninames.h: New file, from GNU gettext.
5070         * lib/uniname/uniname.c: New file, from GNU gettext.
5071         * tests/uniname/test-uninames.sh: New file.
5072         * tests/uniname/test-uninames.c: New file, from GNU gettext.
5073         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
5074         * modules/uniname/base: New file.
5075         * modules/uniname/uniname: New file.
5076         * modules/uniname/uniname-tests: New file.
5077         * MODULES.html.sh (Unicode string functions): Add the new modules.
5078
5079 2007-07-06  Bruno Haible  <bruno@clisp.org>
5080
5081         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
5082
5083 2007-07-06  Bruno Haible  <bruno@clisp.org>
5084
5085         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
5086         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
5087         includes <cygwin/sys_time.h> which includes <sys/select.h> which
5088         include <sys/time.h>.
5089         Reported by Eric Blake.
5090
5091 2007-07-06  Eric Blake  <ebb9@byu.net>
5092
5093         Fix testing canonicalize on cygwin.
5094         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
5095         Revert patch from 2007-06-19.
5096         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
5097         canonicalize module is also in use.
5098         * tests/test-canonicalize.c: New file.
5099         * tests/test-canonicalize.sh: Likewise.
5100         * modules/canonicalize-tests: Likewise.
5101
5102 2007-07-06  Jim Meyering  <jim@meyering.net>
5103
5104         * lib/getugroups.c (getugroups): Detect getgrent failure.
5105         Adjust comment to reflect reality: this function may return -1.
5106
5107 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5108
5109         * build-aux/bootstrap (TP_URL,get_translations): Update to use
5110         the new TP address.
5111         (usage): Fix typo
5112         (gnulib_mk): New variable.
5113
5114 2007-07-05  Jim Meyering  <jim@meyering.net>
5115
5116         Don't let endgrent clobber errno, no matter how improbable.
5117         * lib/getugroups.c (getugroups): Save and restore errno around
5118         endgrent call.
5119
5120         Close the group DB even when failing with 2^31 or more members.
5121         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
5122
5123 2007-07-04  Jim Meyering  <jim@meyering.net>
5124
5125         * lib/getugroups.h: New file.
5126         * lib/getugroups.c: Include "getugroups.h".
5127         Remove uses of "register" keyword.
5128         Move local variable, "cp", down into scope where used.
5129         Give "username" parameter the "const" attribute.
5130         * modules/getugroups (Files): Add lib/getugroups.h
5131
5132 2007-07-04  Karl Berry  <karl@gnu.org>
5133
5134         * MODULES.html.sh (func_all_modules): Complete rename of
5135         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
5136
5137 2007-07-02  Bruno Haible  <bruno@clisp.org>
5138
5139         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
5140         mode, when inttypes.h comes from gnulib.
5141         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5142
5143 2007-07-02  Simon Josefsson  <simon@josefsson.org>
5144
5145         * NEWS: Mention lgpl module name change.
5146
5147         * modules/lgpl-2.1: Renamed from lgpl.
5148
5149         * NEWS: Mention gpl module name change.
5150
5151         * modules/gpl-3.0: New file, based on gpl-2.0.
5152
5153         * modules/gpl-2.0: Renamed from gpl.
5154
5155         * modules/gpl: Fix filename, doc/gpl.texi is now found at
5156         doc/gpl-2.0.texi.
5157
5158 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
5159
5160         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
5161         #define __STDC_LIMIT_MACROS temporarily while including
5162         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
5163         Problem reported by Joel E. Denny in
5164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
5165
5166 2007-07-01  Bruno Haible  <bruno@clisp.org>
5167
5168         * lib/unistdio.h: New file.
5169         * lib/unistdio/u-asnprintf.h: New file.
5170         * lib/unistdio/u-asprintf.h: New file.
5171         * lib/unistdio/u-printf-args.c: New file.
5172         * lib/unistdio/u-printf-args.h: New file.
5173         * lib/unistdio/u-printf-parse.h: New file.
5174         * lib/unistdio/u-snprintf.h: New file.
5175         * lib/unistdio/u-sprintf.h: New file.
5176         * lib/unistdio/u-vasprintf.h: New file.
5177         * lib/unistdio/u-vsnprintf.h: New file.
5178         * lib/unistdio/u-vsprintf.h: New file.
5179         * lib/unistdio/ulc-asnprintf.c: New file.
5180         * lib/unistdio/ulc-asprintf.c: New file.
5181         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
5182         * lib/unistdio/ulc-printf-parse.c: New file.
5183         * lib/unistdio/ulc-snprintf.c: New file.
5184         * lib/unistdio/ulc-sprintf.c: New file.
5185         * lib/unistdio/ulc-vasnprintf.c: New file.
5186         * lib/unistdio/ulc-vasprintf.c: New file.
5187         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
5188         * lib/unistdio/ulc-vsnprintf.c: New file.
5189         * lib/unistdio/ulc-vsprintf.c: New file.
5190         * lib/unistdio/u8-asnprintf.c: New file.
5191         * lib/unistdio/u8-asprintf.c: New file.
5192         * lib/unistdio/u8-printf-parse.c: New file.
5193         * lib/unistdio/u8-snprintf.c: New file.
5194         * lib/unistdio/u8-sprintf.c: New file.
5195         * lib/unistdio/u8-vasnprintf.c: New file.
5196         * lib/unistdio/u8-vasprintf.c: New file.
5197         * lib/unistdio/u8-vsnprintf.c: New file.
5198         * lib/unistdio/u8-vsprintf.c: New file.
5199         * lib/unistdio/u8-u8-asnprintf.c: New file.
5200         * lib/unistdio/u8-u8-asprintf.c: New file.
5201         * lib/unistdio/u8-u8-snprintf.c: New file.
5202         * lib/unistdio/u8-u8-sprintf.c: New file.
5203         * lib/unistdio/u8-u8-vasnprintf.c: New file.
5204         * lib/unistdio/u8-u8-vasprintf.c: New file.
5205         * lib/unistdio/u8-u8-vsnprintf.c: New file.
5206         * lib/unistdio/u8-u8-vsprintf.c: New file.
5207         * lib/unistdio/u16-asnprintf.c: New file.
5208         * lib/unistdio/u16-asprintf.c: New file.
5209         * lib/unistdio/u16-printf-parse.c: New file.
5210         * lib/unistdio/u16-snprintf.c: New file.
5211         * lib/unistdio/u16-sprintf.c: New file.
5212         * lib/unistdio/u16-vasnprintf.c: New file.
5213         * lib/unistdio/u16-vasprintf.c: New file.
5214         * lib/unistdio/u16-vsnprintf.c: New file.
5215         * lib/unistdio/u16-vsprintf.c: New file.
5216         * lib/unistdio/u16-u16-asnprintf.c: New file.
5217         * lib/unistdio/u16-u16-asprintf.c: New file.
5218         * lib/unistdio/u16-u16-snprintf.c: New file.
5219         * lib/unistdio/u16-u16-sprintf.c: New file.
5220         * lib/unistdio/u16-u16-vasnprintf.c: New file.
5221         * lib/unistdio/u16-u16-vasprintf.c: New file.
5222         * lib/unistdio/u16-u16-vsnprintf.c: New file.
5223         * lib/unistdio/u16-u16-vsprintf.c: New file.
5224         * lib/unistdio/u32-asnprintf.c: New file.
5225         * lib/unistdio/u32-asprintf.c: New file.
5226         * lib/unistdio/u32-printf-parse.c: New file.
5227         * lib/unistdio/u32-snprintf.c: New file.
5228         * lib/unistdio/u32-sprintf.c: New file.
5229         * lib/unistdio/u32-vasnprintf.c: New file.
5230         * lib/unistdio/u32-vasprintf.c: New file.
5231         * lib/unistdio/u32-vsnprintf.c: New file.
5232         * lib/unistdio/u32-vsprintf.c: New file.
5233         * lib/unistdio/u32-u32-asnprintf.c: New file.
5234         * lib/unistdio/u32-u32-asprintf.c: New file.
5235         * lib/unistdio/u32-u32-snprintf.c: New file.
5236         * lib/unistdio/u32-u32-sprintf.c: New file.
5237         * lib/unistdio/u32-u32-vasnprintf.c: New file.
5238         * lib/unistdio/u32-u32-vasprintf.c: New file.
5239         * lib/unistdio/u32-u32-vsnprintf.c: New file.
5240         * lib/unistdio/u32-u32-vsprintf.c: New file.
5241         * tests/unistdio/test-ulc-asnprintf1.c: New file.
5242         * tests/unistdio/test-ulc-asnprintf1.h: New file.
5243         * tests/unistdio/test-ulc-printf1.h: New file.
5244         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
5245         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
5246         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
5247         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
5248         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
5249         * tests/unistdio/test-ulc-vasprintf1.c: New file.
5250         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
5251         * tests/unistdio/test-ulc-vsprintf1.c: New file.
5252         * tests/unistdio/test-u8-asnprintf1.c: New file.
5253         * tests/unistdio/test-u8-asnprintf1.h: New file.
5254         * tests/unistdio/test-u8-printf1.h: New file.
5255         * tests/unistdio/test-u8-vasnprintf1.c: New file.
5256         * tests/unistdio/test-u8-vasnprintf2.c: New file.
5257         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
5258         * tests/unistdio/test-u8-vasnprintf3.c: New file.
5259         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
5260         * tests/unistdio/test-u8-vasprintf1.c: New file.
5261         * tests/unistdio/test-u8-vsnprintf1.c: New file.
5262         * tests/unistdio/test-u8-vsprintf1.c: New file.
5263         * tests/unistdio/test-u16-asnprintf1.c: New file.
5264         * tests/unistdio/test-u16-asnprintf1.h: New file.
5265         * tests/unistdio/test-u16-printf1.h: New file.
5266         * tests/unistdio/test-u16-vasnprintf1.c: New file.
5267         * tests/unistdio/test-u16-vasnprintf2.c: New file.
5268         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
5269         * tests/unistdio/test-u16-vasnprintf3.c: New file.
5270         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
5271         * tests/unistdio/test-u16-vasprintf1.c: New file.
5272         * tests/unistdio/test-u16-vsnprintf1.c: New file.
5273         * tests/unistdio/test-u16-vsprintf1.c: New file.
5274         * tests/unistdio/test-u32-asnprintf1.c: New file.
5275         * tests/unistdio/test-u32-asnprintf1.h: New file.
5276         * tests/unistdio/test-u32-printf1.h: New file.
5277         * tests/unistdio/test-u32-vasnprintf1.c: New file.
5278         * tests/unistdio/test-u32-vasnprintf2.c: New file.
5279         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
5280         * tests/unistdio/test-u32-vasnprintf3.c: New file.
5281         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
5282         * tests/unistdio/test-u32-vasprintf1.c: New file.
5283         * tests/unistdio/test-u32-vsnprintf1.c: New file.
5284         * tests/unistdio/test-u32-vsprintf1.c: New file.
5285         * modules/unistdio/base: New file.
5286         * modules/unistdio/u-printf-args: New file.
5287         * modules/unistdio/ulc-asnprintf: New file.
5288         * modules/unistdio/ulc-asprintf: New file.
5289         * modules/unistdio/ulc-fprintf: New file.
5290         * modules/unistdio/ulc-printf-parse: New file.
5291         * modules/unistdio/ulc-snprintf: New file.
5292         * modules/unistdio/ulc-sprintf: New file.
5293         * modules/unistdio/ulc-vasnprintf: New file.
5294         * modules/unistdio/ulc-vasprintf: New file.
5295         * modules/unistdio/ulc-vfprintf: New file.
5296         * modules/unistdio/ulc-vsnprintf: New file.
5297         * modules/unistdio/ulc-vsprintf: New file.
5298         * modules/unistdio/u8-asnprintf: New file.
5299         * modules/unistdio/u8-asprintf: New file.
5300         * modules/unistdio/u8-printf-parse: New file.
5301         * modules/unistdio/u8-snprintf: New file.
5302         * modules/unistdio/u8-sprintf: New file.
5303         * modules/unistdio/u8-vasnprintf: New file.
5304         * modules/unistdio/u8-vasprintf: New file.
5305         * modules/unistdio/u8-vsnprintf: New file.
5306         * modules/unistdio/u8-vsprintf: New file.
5307         * modules/unistdio/u8-u8-asnprintf: New file.
5308         * modules/unistdio/u8-u8-asprintf: New file.
5309         * modules/unistdio/u8-u8-snprintf: New file.
5310         * modules/unistdio/u8-u8-sprintf: New file.
5311         * modules/unistdio/u8-u8-vasnprintf: New file.
5312         * modules/unistdio/u8-u8-vasprintf: New file.
5313         * modules/unistdio/u8-u8-vsnprintf: New file.
5314         * modules/unistdio/u8-u8-vsprintf: New file.
5315         * modules/unistdio/u16-asnprintf: New file.
5316         * modules/unistdio/u16-asprintf: New file.
5317         * modules/unistdio/u16-printf-parse: New file.
5318         * modules/unistdio/u16-snprintf: New file.
5319         * modules/unistdio/u16-sprintf: New file.
5320         * modules/unistdio/u16-vasnprintf: New file.
5321         * modules/unistdio/u16-vasprintf: New file.
5322         * modules/unistdio/u16-vsnprintf: New file.
5323         * modules/unistdio/u16-vsprintf: New file.
5324         * modules/unistdio/u16-u16-asnprintf: New file.
5325         * modules/unistdio/u16-u16-asprintf: New file.
5326         * modules/unistdio/u16-u16-snprintf: New file.
5327         * modules/unistdio/u16-u16-sprintf: New file.
5328         * modules/unistdio/u16-u16-vasnprintf: New file.
5329         * modules/unistdio/u16-u16-vasprintf: New file.
5330         * modules/unistdio/u16-u16-vsnprintf: New file.
5331         * modules/unistdio/u16-u16-vsprintf: New file.
5332         * modules/unistdio/u32-asnprintf: New file.
5333         * modules/unistdio/u32-asprintf: New file.
5334         * modules/unistdio/u32-printf-parse: New file.
5335         * modules/unistdio/u32-snprintf: New file.
5336         * modules/unistdio/u32-sprintf: New file.
5337         * modules/unistdio/u32-vasnprintf: New file.
5338         * modules/unistdio/u32-vasprintf: New file.
5339         * modules/unistdio/u32-vsnprintf: New file.
5340         * modules/unistdio/u32-vsprintf: New file.
5341         * modules/unistdio/u32-u32-asnprintf: New file.
5342         * modules/unistdio/u32-u32-asprintf: New file.
5343         * modules/unistdio/u32-u32-snprintf: New file.
5344         * modules/unistdio/u32-u32-sprintf: New file.
5345         * modules/unistdio/u32-u32-vasnprintf: New file.
5346         * modules/unistdio/u32-u32-vasprintf: New file.
5347         * modules/unistdio/u32-u32-vsnprintf: New file.
5348         * modules/unistdio/u32-u32-vsprintf: New file.
5349         * modules/unistdio/ulc-asnprintf-tests: New file.
5350         * modules/unistdio/ulc-vasnprintf-tests: New file.
5351         * modules/unistdio/ulc-vasprintf-tests: New file.
5352         * modules/unistdio/ulc-vsnprintf-tests: New file.
5353         * modules/unistdio/ulc-vsprintf-tests: New file.
5354         * modules/unistdio/u8-asnprintf-tests: New file.
5355         * modules/unistdio/u8-vasnprintf-tests: New file.
5356         * modules/unistdio/u8-vasprintf-tests: New file.
5357         * modules/unistdio/u8-vsnprintf-tests: New file.
5358         * modules/unistdio/u8-vsprintf-tests: New file.
5359         * modules/unistdio/u16-asnprintf-tests: New file.
5360         * modules/unistdio/u16-vasnprintf-tests: New file.
5361         * modules/unistdio/u16-vasprintf-tests: New file.
5362         * modules/unistdio/u16-vsnprintf-tests: New file.
5363         * modules/unistdio/u16-vsprintf-tests: New file.
5364         * modules/unistdio/u32-asnprintf-tests: New file.
5365         * modules/unistdio/u32-vasnprintf-tests: New file.
5366         * modules/unistdio/u32-vasprintf-tests: New file.
5367         * modules/unistdio/u32-vsnprintf-tests: New file.
5368         * modules/unistdio/u32-vsprintf-tests: New file.
5369         * MODULES.html.sh (Unicode string functions): Add the new modules.
5370
5371 2007-07-01  Bruno Haible  <bruno@clisp.org>
5372
5373         * lib/sprintf.c (sprintf): Limit the available length estimation,
5374         to avoid address wraparound.
5375         * lib/vsprintf.c (vsprintf): Likewise.
5376         * modules/sprintf-posix (Dependencies): Add stdint.
5377         * modules/vsprintf-posix (Dependencies): Likewise.
5378
5379 2007-07-01  Bruno Haible  <bruno@clisp.org>
5380
5381         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
5382         Windows PATH as well. Conservative double-quoting. Comments.
5383
5384 2007-07-01  Bruno Haible  <bruno@clisp.org>
5385             Eric Blake  <ebb9@byu.net>
5386             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5387
5388         * gnulib-tool (self_abspathname): Fix algorithm to cope with
5389         empty components in $PATH, denoting '.'.
5390
5391 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5392
5393         * gnulib-tool: Fix indentation.
5394         (func_create_megatestdir): Likewise.
5395         Report by Bruno Haible.
5396
5397 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5398
5399         Sync from Automake.
5400         * build-aux/gnupload: Fix shell portability issues with for loops.
5401         Report by Karl Berry.
5402
5403 2007-06-29  Simon Josefsson  <simon@josefsson.org>
5404
5405         * build-aux/maint.mk (POURL): Use translationproject.org.
5406
5407 2007-06-27  Simon Josefsson  <simon@josefsson.org>
5408             Bruno Haible  <bruno@clisp.org>
5409
5410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
5411         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
5412         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
5413         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
5414         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
5415
5416 2007-06-27  Bruno Haible  <bruno@clisp.org>
5417
5418         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
5419         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
5420
5421 2007-06-26  Karl Berry  <karl@gnu.org>
5422
5423         * MODULES.html.sh: remove xreadlink-with-size.
5424
5425 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
5428         method that I hope also handles the double-include problem noted
5429         by Bruno Haible in
5430         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
5431
5432 2007-06-23  Bruno Haible  <bruno@clisp.org>
5433
5434         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5435         Don't let the 'mostlyclean' target fail if the last subdirectory could
5436         not be removed.
5437         Reported by Karl Berry.
5438
5439 2007-06-23  Bruno Haible  <bruno@clisp.org>
5440
5441         * gnulib-tool (echo): Add a speedier workaround for ksh.
5442         * tests/test-echo.sh: Likewise.
5443
5444 2007-06-23  Bruno Haible  <bruno@clisp.org>
5445
5446         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
5447         * tests/test-echo.sh: Likewise.
5448
5449 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5450
5451         * gnulib-tool (IFS): Initialize early, so we don't set it to
5452         empty later.
5453         (self_abspathname): Rewrite algorithm to set it, reindent.
5454         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
5455         (func_create_megatestdir): Merge some sed scripts.
5456
5457 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
5458
5459         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
5460         exposed by Sun Studio 11 cc on Solaris 8.
5461
5462 2007-06-22  Bruno Haible  <bruno@clisp.org>
5463
5464         * gnulib-tool (echo): Ensure the echo primitive does not interpret
5465         backslashes.
5466         * tests/test-echo.sh: New file.
5467
5468 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5469
5470         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
5471         simplify `sed_replace_build_aux' scripts, they are portable but
5472         echoing them with `echo' is not.
5473         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
5474
5475 2007-06-21  Karl Berry  <karl@gnu.org>
5476
5477         * config/srclist.txt: guess we can't handle the licenses via
5478         srclist at the moment.
5479
5480 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         * MODULES.html.sh: Add include_next.
5483         * modules/include_next: New file.
5484
5485 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5486
5487         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
5488         INCLUDE_NEXT.
5489         (gl_CHECK_NEXT_HEADERS): New macro.
5490         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
5491         the obsolescent gl_ABSOLUTE_HEADER.
5492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
5493         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
5494         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5495         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5496         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
5497         * m4/math_h.m4 (gl_MATH_H): Likewise.
5498         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
5499         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5500         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5501         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5502         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5503         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5504         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
5505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5508         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
5509         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
5510         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5511         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5512         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5513         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
5514         * m4/inttypes.m4 (gl_INTTYPES_H): Define
5515         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
5516         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
5517         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
5518         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
5519         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
5520         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
5521         * lib/float_.h: Likewise.
5522         * lib/inttypes_.h: Likewise.
5523         * lib/math_.h: Likewise.
5524         * lib/search_.h: Likewise.
5525         * lib/signal_.h: Likewise.
5526         * lib/stdint_.h: Likewise.
5527         * lib/stdio_.h: Likewise.
5528         * lib/stdlib_.h: Likewise.
5529         * lib/string_.h: Likewise.
5530         * lib/sys_stat_.h: Likewise.
5531         * lib/sys_time_.h: Likewise.
5532         * lib/time_.h: Likewise.
5533         * lib/unistd_.h: Likewise.
5534         * lib/wchar_.h: Likewise.
5535         * lib/wctype_.h: Likewise.
5536         * lib/dirent_.h: Likewise.
5537         * lib/iconv_.h: Likewise.
5538         * lib/locale_.h: Likewise.
5539         * lib/netinet_in_.h: Likewise.
5540         * lib/sys_select_.h: Likewise.
5541         * lib/sys_socket_.h: Likewise.
5542         * lib/sysexits_.h: Likewise.
5543         * modules/fcntl (Depends-on): Depend on include_next, not
5544         absolute_header.
5545         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
5546         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
5547         * modules/fchdir: Likewise.
5548         * modules/float: Likewise.
5549         * modules/iconv_open: Likewise.
5550         * modules/inttypes: Likewise.
5551         * modules/locale: Likewise.
5552         * modules/math: Likewise.
5553         * modules/netinet_in: Likewise.
5554         * modules/search: Likewise.
5555         * modules/signal: Likewise.
5556         * modules/stdint: Likewise.
5557         * modules/stdio: Likewise.
5558         * modules/stdlib: Likewise.
5559         * modules/string: Likewise.
5560         * modules/sys_select: Likewise.
5561         * modules/sys_socket: Likewise.
5562         * modules/sys_stat: Likewise.
5563         * modules/sys_time: Likewise.
5564         * modules/sysexits: Likewise.
5565         * modules/time: Likewise.
5566         * modules/unistd: Likewise.
5567         * modules/wchar: Likewise.
5568         * modules/wctype: Likewise.
5569         * modules/sys_stat: Change maintainer to "all".
5570         * modules/unistd: Likewise.
5571
5572 2007-06-20  Karl Berry  <karl@gnu.org>
5573
5574         * config/srclist.txt: track www changes in license files.
5575
5576 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
5577
5578         * build-aux/bootstrap: Remove stray dot.
5579         Make sure build_aux settings are honored when linking
5580         gnulib_extra_files.
5581
5582 2007-06-19  Eric Blake  <ebb9@byu.net>
5583
5584         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
5585         Allow compilation on cygwin.
5586
5587 2007-06-19  Jim Meyering  <jim@meyering.net>
5588
5589         xreadlink-with-size: Remove module.  No longer used.
5590         Ex-callers now use xreadlink or mreadlink-with-size.
5591         * modules/xreadlink-with-size: Remove module.
5592         * lib/xreadlink-with-size.c: Remove file.
5593         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
5594         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
5595         just before the function definition *is* accurate.
5596
5597         Eliminate one way canonicalize_filename_mode could exit.
5598         * lib/canonicalize.c (canonicalize_filename_mode):
5599         Use mreadlink_with_size, not xreadlink_with_size.
5600
5601 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
5602
5603         Detect porting problems to FreeBSD/arm, which has time_t wider than
5604         long int.  Original problem reported for GNU diff by Xin Li in
5605         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
5606         * modules/getdate (Depends-on): Add intprops, verify.
5607         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
5608         is an integer type no wider than long int.
5609
5610 2007-06-18  Jim Meyering  <jim@meyering.net>
5611
5612         New module: mreadlink-with-size.
5613         * MODULES.html.sh: Add mreadlink-with-size.
5614         * modules/mreadlink-with-size: New module
5615         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
5616         not xreadlink-with-size.
5617         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
5618
5619 2007-06-16  Bruno Haible  <bruno@clisp.org>
5620
5621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
5622         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
5623         Reported by Gary V. Vaughan <gary@gnu.org>.
5624
5625 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5626
5627         Revamp lchown so that it lives in unistd.h where it belongs.
5628         * lib/lchown.h: Remove.
5629         * lib/dirchownmod.c: Don't include lib/lchown.h.
5630         * lib/fchownat.c: Likewise.
5631         * lib/openat.c: Likewise.
5632         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
5633         does not follow symlinks.
5634         (EOPNOTSUPP): Define if not defined.
5635         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
5636         is defined to 0.
5637         (lchown): New decl.
5638         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
5639         Do not check for lchown decl.
5640         Set REPLACE_LCHOWN.
5641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
5642         REPLACE_LCHOWN.
5643         * modules/chown: Make it clear it follows symlinks.
5644         * modules/lchown: Make it clear it doesn't follow symlinks.
5645         (Files): Remove lib/lchown.h
5646         (Depends-on): Add unistd.
5647         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
5648         (Include): Include <unistd.h>, not "lchown.h".
5649         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
5650         REPLACE_LCHOWN.
5651
5652 2007-06-15  Jim Meyering  <jim@meyering.net>
5653
5654         Change license (GPL to LGPL) of fsusage and dependents.
5655         * modules/fsusage (License): Change to LGPL.
5656         * modules/full-read (License): Likewise.
5657         * modules/full-write (License): Likewise.
5658         * modules/safe-read (License): Likewise.
5659         * modules/safe-write (License): Likewise.
5660
5661 2007-06-14  Ben Pfaff  <blp@gnu.org>
5662
5663         Missing part of allocsa -> malloca transition.
5664         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
5665         gl_MALLOCA.
5666
5667 2007-06-12  Bruno Haible  <bruno@clisp.org>
5668
5669         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
5670         to ia64, x86_64, i386.
5671         Reported by Eric Blake.
5672
5673 2007-06-12  Bruno Haible  <bruno@clisp.org>
5674
5675         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
5676         cross-compiling to x86_64.
5677
5678 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
5679
5680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
5681         glitch reported by Ralf Wildenhues in
5682         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
5683
5684         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
5685         Vin Shelton.
5686
5687 2007-06-11  Bruno Haible  <bruno@clisp.org>
5688
5689         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
5690         replacement string.
5691         Reported by Eric Blake.
5692
5693 2007-06-10  Bruno Haible  <bruno@clisp.org>
5694
5695         Prepare vasnprintf code for use with Unicode strings.
5696         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
5697         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
5698         TYPE_U32_STRING.
5699         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
5700         a_u32_string variants.
5701         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
5702         * lib/printf-args.c: Don't include config.h and the specification
5703         header if PRINTF_FETCHARGS is already defined.
5704         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
5705         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
5706         TYPE_U16_STRING, TYPE_U32_STRING.
5707         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
5708         u16_directive, u16_directives, u32_directive, u32_directives): New
5709         types.
5710         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
5711         New declarations.
5712         * lib/printf-parse.c: Don't include config.h and the specification
5713         header if PRINTF_PARSE is already defined. Eliminate the set of
5714         parameters for WIDE_CHAR_VERSION; the user of this file must provide
5715         them now. Include c-ctype.h.
5716         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
5717         directive and CHAR_T_ONLY_ASCII.
5718         * lib/vasnprintf.c: Don't include config.h and the specification header
5719         if VASNPRINTF is already defined.
5720         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
5721         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
5722         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
5723         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
5724         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
5725         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
5726         code accordingly.
5727         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
5728         pad_ourselves also in this case, with the 'c' and 's' directives, and
5729         with a different notion of "width".
5730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
5731
5732 2007-06-10  Bruno Haible  <bruno@clisp.org>
5733
5734         * modules/unistr/u32-mbsnlen: New file.
5735         * lib/unistr/u32-mbsnlen.c: New file.
5736
5737         * modules/unistr/u16-mbsnlen: New file.
5738         * lib/unistr/u16-mbsnlen.c: New file.
5739
5740         * modules/unistr/u8-mbsnlen: New file.
5741         * lib/unistr/u8-mbsnlen.c: New file.
5742
5743         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
5744         declarations.
5745
5746 2007-06-10  Bruno Haible  <bruno@clisp.org>
5747
5748         * lib/string_.h (mbsnlen): New declaration.
5749         * lib/mbsnlen.c: New file.
5750         * m4/mbsnlen.m4: New file.
5751         * modules/mbsnlen: New file.
5752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
5753         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
5754         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
5755
5756 2007-06-10  Bruno Haible  <bruno@clisp.org>
5757
5758         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
5759
5760 2007-06-10  Bruno Haible  <bruno@clisp.org>
5761
5762         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
5763         * lib/mbuiter.h: Likewise.
5764
5765 2007-06-10  Bruno Haible  <bruno@clisp.org>
5766
5767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
5768         declaration.
5769
5770 2007-06-10  Karl Berry  <karl@gnu.org>
5771
5772         * config/srclist.txt: remove gettext entries, Bruno prefers
5773         to update individually.
5774
5775 2007-06-10  Bruno Haible  <bruno@clisp.org>
5776
5777         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
5778         'maxlen'. Ensure only length + width bytes are allocated, not
5779         length + 1 + width.
5780
5781 2007-06-09  Bruno Haible  <bruno@clisp.org>
5782
5783         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
5784         (CHAR_T): Remove macro.
5785         (VASNPRINTF): Update.
5786
5787 2007-06-09  Bruno Haible  <bruno@clisp.org>
5788
5789         * MODULES.html.sh (Unicode string functions): Add the new modules.
5790
5791         * modules/uniconv/u32-conv-to-enc: New file.
5792         * lib/uniconv/u32-conv-to-enc.c: New file.
5793         * modules/uniconv/u32-conv-to-enc-tests: New file.
5794         * tests/uniconv/test-u32-conv-to-enc.c: New file.
5795
5796         * modules/uniconv/u16-conv-to-enc: New file.
5797         * lib/uniconv/u16-conv-to-enc.c: New file.
5798         * lib/uniconv/u-conv-to-enc.h: New file.
5799         * modules/uniconv/u16-conv-to-enc-tests: New file.
5800         * tests/uniconv/test-u16-conv-to-enc.c: New file.
5801
5802         * modules/uniconv/u8-conv-to-enc: New file.
5803         * lib/uniconv/u8-conv-to-enc.c: New file.
5804         * modules/uniconv/u8-conv-to-enc-tests: New file.
5805         * tests/uniconv/test-u8-conv-to-enc.c: New file.
5806
5807         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
5808         u32_conv_to_encoding): New declarations.
5809
5810 2007-06-09  Bruno Haible  <bruno@clisp.org>
5811
5812         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
5813
5814 2007-06-09  Bruno Haible  <bruno@clisp.org>
5815
5816         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
5817         * modules/malloca: Renamed from modules/allocsa, updated.
5818         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
5819         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
5820         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
5821         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
5822         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
5823         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
5824         * modules/xmalloca: Renamed from modules/xallocsa, updated.
5825         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
5826         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
5827         * modules/c-strcasestr (Depends-on): Update.
5828         * lib/c-strcasestr.c: Update.
5829         * modules/c-strstr (Depends-on): Update.
5830         * lib/c-strstr.c: Update.
5831         * modules/canonicalize-lgpl (Depends-on): Update.
5832         * lib/canonicalize-lgpl.c: Update.
5833         * modules/clean-temp (Depends-on): Update.
5834         * lib/clean-temp.c: Update.
5835         * modules/csharpcomp (Depends-on): Update.
5836         * lib/csharpcomp.c: Update.
5837         * modules/csharpexec (Depends-on): Update.
5838         * lib/csharpexec.c: Update.
5839         * modules/javacomp (Depends-on): Update.
5840         * lib/javacomp.c: Update.
5841         * modules/javaexec (Depends-on): Update.
5842         * lib/javaexec.c: Update.
5843         * modules/mbscasestr (Depends-on): Update.
5844         * lib/mbscasestr.c: Update.
5845         * modules/mbsstr (Depends-on): Update.
5846         * lib/mbsstr.c: Update.
5847         * modules/setenv (Depends-on): Update.
5848         * lib/setenv.c: Update.
5849         * modules/strcasestr (Depends-on): Update.
5850         * lib/strcasestr.c: Update.
5851         * modules/striconveha (Depends-on): Update.
5852         * lib/striconveha.c: Update.
5853         * modules/relocatable-prog-wrapper (Files): Update.
5854         * lib/relocwrapper.c: Update.
5855         * build-aux/install-reloc: Update.
5856         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
5857
5858 2007-06-08  Bruno Haible  <bruno@clisp.org>
5859
5860         Port to uClibc.
5861         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
5862         * lib/fpurge.c (fpurge): Likewise.
5863         * lib/freading.c (freading): Likewise.
5864         * lib/fseeko.c (rpl_fseeko): Likewise.
5865         * lib/fseterr.c (fseterr): Likewise.
5866         * lib/fwriting.c (fwriting): Likewise.
5867         * tests/test-fflush.c (main): Avoid a failure on uClibc.
5868
5869 2007-06-08  Bruno Haible  <bruno@clisp.org>
5870
5871         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
5872         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
5873         * modules/gettext (Files): Add m4/intlmacosx.m4.
5874
5875 2007-06-07  Bruno Haible  <bruno@clisp.org>
5876
5877         * modules/localename-tests: New file.
5878         * tests/test-localename.c: New file.
5879
5880         New module 'localename'.
5881         * lib/localename.h: New file.
5882         * lib/localename.c: New file, from GNU gettext.
5883         * m4/localename.m4: New file.
5884         * modules/localename: New file.
5885
5886 2007-06-07  Bruno Haible  <bruno@clisp.org>
5887
5888         Work around the lack of <wchar.h> on some builds of uClibc.
5889         * doc/headers/wchar.texi: Update.
5890         * lib/wchar_.h: Include <wchar.h> only if it exists.
5891         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
5892         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
5893         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
5894         doesn't exist.
5895         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
5896         * modules/mbfile (Depends-on): Add wchar.
5897         * modules/mbiter (Depends-on): Likewise.
5898         * modules/mbuiter (Depends-on): Likewise.
5899         Reported by Simon Josefsson.
5900
5901 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
5902
5903         Work around problem reported by Steven M. Schweda in
5904         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
5905         Tru64 5.1B with the Compaq compiler environment installed declares
5906         an 'isblank' function but does not define it in the C library.
5907         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
5908         * lib/regex_internal.h (isblank): Likewise.
5909         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
5910         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5911
5912 2007-06-05  Bruno Haible  <bruno@clisp.org>
5913
5914         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
5915         ia64.
5916         * modules/printf-safe: New file.
5917         * modules/fprintf-posix (Depends-on): Add printf-safe.
5918         * modules/printf-posix (Depends-on): Likewise.
5919         * modules/snprintf-posix (Depends-on): Likewise.
5920         * modules/sprintf-posix (Depends-on): Likewise.
5921         * modules/vasnprintf-posix (Depends-on): Likewise.
5922         * modules/vasprintf-posix (Depends-on): Likewise.
5923         * modules/vfprintf-posix (Depends-on): Likewise.
5924         * modules/vprintf-posix (Depends-on): Likewise.
5925         * modules/vsnprintf-posix (Depends-on): Likewise.
5926         * modules/vsprintf-posix (Depends-on): Likewise.
5927         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5928         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
5929         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
5930         "no" on i386, x86_64, ia64.
5931         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
5932         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5933         on i386, x86_64, ia64.
5934         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
5935         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5936         on i386, x86_64, ia64.
5937         * tests/test-vasnprintf-posix.c: Include float.h.
5938         (LDBL80_WORDS): New macro.
5939         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5940         on i386, x86_64, ia64.
5941         * tests/test-vasprintf-posix.c: Include float.h.
5942         (LDBL80_WORDS): New macro.
5943         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
5944         on i386, x86_64, ia64.
5945         * tests/test-snprintf-posix.c: Include float.h.
5946         * tests/test-sprintf-posix.c: Likewise.
5947         * tests/test-vsnprintf-posix.c: Likewise.
5948         * tests/test-vsprintf-posix.c: Likewise.
5949
5950 2007-06-05  Bruno Haible  <bruno@clisp.org>
5951
5952         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
5953         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
5954         non-IEEE numbers on i386, x86_64, ia64.
5955         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
5956         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
5957         * tests/test-isnanl.h: Include float.h.
5958         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
5959
5960 2007-06-05  Bruno Haible  <bruno@clisp.org>
5961
5962         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
5963         also the %a / %A. Handle the %a / %A code before this extra handling.
5964
5965 2007-06-05  Bruno Haible  <bruno@clisp.org>
5966
5967         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
5968         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
5969
5970 2007-06-05  Bruno Haible  <bruno@clisp.org>
5971
5972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
5973         typo in variable name.
5974
5975 2007-06-05  Eric Blake  <ebb9@byu.net>
5976
5977         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
5978         Reported by Simon Josefsson.
5979
5980 2007-06-04  Bruno Haible  <bruno@clisp.org>
5981
5982         Avoid test failures on some PowerPC platforms.
5983         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
5984         Define differently for PowerPC.
5985         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
5986         Reported by Gary V. Vaughan <gary@gnu.org>.
5987
5988 2007-06-02  Bruno Haible  <bruno@clisp.org>
5989
5990         Fix test-stdint failure on FreeBSD/ia64.
5991         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
5992         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
5993         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
5994         * doc/headers/stdint.texi: Update.
5995
5996 2007-06-01  Bruno Haible  <bruno@clisp.org>
5997
5998         * tests/test-binary-io.c (main): Pass a third argument to open().
5999         Reported by Gary V. Vaughan <gary@gnu.org>.
6000
6001 2007-06-01  Bruno Haible  <bruno@clisp.org>
6002
6003         * doc/functions/frexpl.texi: Update for mingw.
6004
6005 2007-06-01  Bruno Haible  <bruno@clisp.org>
6006
6007         * tests/test-lseek.c (main): Disable test of errno for invalid third
6008         argument.
6009         * doc/functions/lseek.texi: Update.
6010         Reported by Gary V. Vaughan <gary@gnu.org>.
6011
6012 2007-05-28  Bruno Haible  <bruno@clisp.org>
6013
6014         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
6015
6016 2007-05-31  Eric Blake  <ebb9@byu.net>
6017
6018         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
6019         cross compiling.
6020
6021 2007-05-30  Eric Blake  <ebb9@byu.net>
6022         and Bruno Haible  <bruno@clisp.org>
6023
6024         Work around mingw test failures exposed by m4-1.4.9b.
6025         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
6026         * tests/test-unistd.c: Disable uid_t and git_t tests for the
6027         moment.
6028
6029 2007-05-30  Bruno Haible  <bruno@clisp.org>
6030
6031         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
6032         assuming that they are closed. Needed on HP-UX 11.
6033
6034 2007-05-29  Bruno Haible  <bruno@clisp.org>
6035
6036         Fix a problem with #include_next.
6037         * lib/dirent_.h: Split the double-inclusion guard.
6038         * lib/fcntl_.h: Likewise.
6039         * lib/float_.h: Likewise.
6040         * lib/iconv_.h: Likewise.
6041         * lib/inttypes_.h: Likewise.
6042         * lib/locale_.h: Likewise.
6043         * lib/math_.h: Likewise.
6044         * lib/netinet_in_.h: Likewise.
6045         * lib/search_.h: Likewise.
6046         * lib/signal_.h: Likewise.
6047         * lib/stdint_.h: Likewise.
6048         * lib/stdio_.h: Likewise.
6049         * lib/stdlib_.h: Likewise.
6050         * lib/string_.h: Likewise.
6051         * lib/sys_select_.h: Likewise.
6052         * lib/sys_socket_.h: Likewise.
6053         * lib/sys_stat_.h: Likewise.
6054         * lib/sys_time_.h: Likewise.
6055         * lib/sysexits_.h: Likewise.
6056         * lib/time_.h: Likewise.
6057         * lib/unistd_.h: Likewise.
6058         * lib/wchar_.h: Likewise.
6059         * lib/wctype_.h: Likewise.
6060
6061 2007-05-29  Bruno Haible  <bruno@clisp.org>
6062
6063         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
6064         for the moment.
6065
6066 2007-05-29  Bruno Haible  <bruno@clisp.org>
6067
6068         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
6069         invocation.
6070         Reported by Eric Blake.
6071
6072 2007-05-29  Bruno Haible  <bruno@clisp.org>
6073
6074         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
6075         compiling case.
6076
6077 2007-05-29  Eric Blake  <ebb9@byu.net>
6078             Bruno Haible  <bruno@clisp.org>
6079
6080         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
6081         cross compiles.
6082
6083 2007-05-28  Eric Blake  <ebb9@byu.net>
6084
6085         * modules/closein-tests (test_closein_LDADD): Support test on
6086         cygwin with libtool.
6087
6088 2007-05-28  Bruno Haible  <bruno@clisp.org>
6089
6090         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
6091         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6092         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6093         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6094         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6095         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6096         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6097         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6098         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6099
6100 2007-05-28  Eric Blake  <ebb9@byu.net>
6101
6102         Unconditionally include <config.h> in unit tests.
6103         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
6104         * tests/test-allocsa.c, tests/test-arcfour.c,
6105         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
6106         tests/test-array_list.c, tests/test-array_oset.c,
6107         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
6108         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
6109         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
6110         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
6111         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
6112         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
6113         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
6114         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
6115         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
6116         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
6117         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
6118         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
6119         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
6120         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
6121         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
6122         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
6123         test-md5.c, test-memmem.c, test-printf-posix.c,
6124         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
6125         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
6126         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
6127         test-strcasestr.c, test-striconv.c, test-striconveh.c,
6128         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
6129         test-vasnprintf-posix2.c, test-vasnprintf.c,
6130         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
6131         test-vfprintf-posix.c, test-vprintf-posix.c,
6132         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
6133         test-xvasprintf.c: Likewise.
6134
6135 2007-05-28  Bruno Haible  <bruno@clisp.org>
6136
6137         * gnulib-tool (func_import): Remember the --with-tests command-line
6138         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
6139         Reported by Eric Blake.
6140
6141 2007-05-28  Bruno Haible  <bruno@clisp.org>
6142
6143         * modules/ftell-tests: New file.
6144         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
6145         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
6146
6147         * lib/ftell.c: New file.
6148         * modules/ftell: New file.
6149         * m4/ftell.m4: New file.
6150         * doc/functions/ftell.texi: Update.
6151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
6152         REPLACE_FTELL.
6153         * lib/stdio_.h (rpl_ftell): New declaration.
6154         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
6155         REPLACE_FTELL.
6156
6157 2007-05-28  Eric Blake  <ebb9@byu.net>
6158
6159         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
6160
6161 2007-05-28  Bruno Haible  <bruno@clisp.org>
6162
6163         * modules/fseek-tests: New file.
6164         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
6165         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
6166
6167         * lib/fseek.c: New file.
6168         * modules/fseek: New file.
6169         * m4/fseek.m4: New file.
6170         * doc/functions/fseek.texi: Update.
6171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
6172         REPLACE_FSEEK.
6173         * lib/stdio_.h (rpl_fseek): New declaration.
6174         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
6175         REPLACE_FSEEK.
6176
6177 2007-05-28  Bruno Haible  <bruno@clisp.org>
6178
6179         * lib/stdio_.h (fflush): More comments.
6180
6181 2007-05-28  Bruno Haible  <bruno@clisp.org>
6182
6183         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
6184         runtime test.
6185
6186 2007-05-28  Eric Blake  <ebb9@byu.net>
6187
6188         Improve lseek module.
6189         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
6190         * lib/unistd_.h (lseek): Scale back link warning message.
6191         * tests/test-lseek.c: Beef up test.
6192         * tests/test-lseek.sh: Exercise more facets of lseek.
6193         Reported by Bruno Haible.
6194
6195 2007-05-28  Bruno Haible  <bruno@clisp.org>
6196
6197         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
6198         to define.
6199
6200 2007-05-27  Bruno Haible  <bruno@clisp.org>
6201
6202         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
6203
6204 2007-05-27  Bruno Haible  <bruno@clisp.org>
6205
6206         * modules/openmp: New file.
6207         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
6208         Noah Misch.
6209
6210 2007-05-26  Bruno Haible  <bruno@clisp.org>
6211
6212         * modules/chdir-long (Depends-on): Add fchdir.
6213         * modules/chdir-safer (Depends-on): Likewise.
6214         * modules/fts (Depends-on): Likewise.
6215         * modules/fts-lgpl (Depends-on): Likewise.
6216         * modules/openat (Depends-on): Likewise.
6217         * modules/savewd (Depends-on): Likewise.
6218
6219 2007-05-24  Eric Blake  <ebb9@byu.net>
6220
6221         Fix lseek on mingw.
6222         * modules/lseek: New module.
6223         * m4/lseek.m4: New file.
6224         * lib/lseek.c: New file.
6225         * modules/lseek-tests: New file.
6226         * tests/test-lseek.c: New file.
6227         * tests/test-lseek.sh: New file.
6228         * MODULES.html.sh: Document lseek module.
6229         * modules/fflush (Depends-on): Add lseek, fseeko.
6230         * modules/fseeko (Depends-on): Likewise.
6231         * modules/ftello (Depends-on): Likewise.
6232         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
6233         broken.
6234         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
6235         broken.
6236         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
6237         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
6238         * lib/ftello.c (rpl_ftello): Likewise.
6239         * tests/test-fseeko.c (main): Test this.
6240         * tests/test-fseeko.sh: Likewise.
6241         * tests/test-ftello.c (main): Likewise.
6242         * tests/test-ftello.sh: Likewise.
6243         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
6244         implies replacing fseek.
6245         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
6246         HAVE_FTELLO.
6247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
6248         * modules/unistd (Makefile.am): Likewise.
6249         * lib/unistd_.h (lseek): Declare a replacement.
6250         * doc/functions/lseek.texi (lseek): Document this fix.
6251         * doc/functions/fseek.texi (fseek): Likewise.
6252         * doc/functions/ftell.texi (ftell): Likewise.
6253
6254 2007-05-24  Bruno Haible  <bruno@clisp.org>
6255
6256         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
6257         in the printed representation of a NaN.
6258         * tests/test-vasprintf-posix.c (test_function): Likewise.
6259         * tests/test-snprintf-posix.h (test_function): Likewise.
6260         * tests/test-sprintf-posix.h (test_function): Likewise.
6261         Reported by Eric Blake.
6262
6263 2007-05-23  Eric Blake  <ebb9@byu.net>
6264
6265         Fix fseeko/ftello on cygwin 1.5.24.
6266         * doc/functions/fseeko.texi (fseeko): Document the fix.
6267         * doc/functions/ftello.texi (ftello): Document the fix.
6268         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
6269         * doc/functions/stdout.text (stdout): New file.
6270         * doc/functions/stderr.text (stderr): New file.
6271         * doc/gnulib.texi (Function Substitutes): Use new files.
6272         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
6273         prior to 1.7.0.
6274         * tests/test-ftello.c (main): Likewise for ftello.
6275         * tests/test-fseeko.sh: New file.
6276         * tests/test-ftello.sh: New file.
6277         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
6278         with seekable stdin.
6279         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
6280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
6281         (gl_REPLACE_FSEEKO): New macro.
6282         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
6283         * modules/fseeko (Files): Distribute fseeko.c.
6284         * modules/ftello (Files): Distribute ftello.c.
6285         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
6286         mode.
6287         * lib/ftello.c (rpl_ftello): New file.
6288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
6289         fseeko, ftello.
6290         (gl_STDIN_LARGE_OFFSET): New macro.
6291         * modules/stdio (Makefile.am): Perform the replacement.
6292         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
6293
6294 2007-05-23  Bruno Haible  <bruno@clisp.org>
6295
6296         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
6297         GNULIB_POSIXCHECK is defined.
6298
6299 2007-05-21  Bruno Haible  <bruno@clisp.org>
6300
6301         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
6302         Check also the output for NaN arguments. When cross-compiling, guess
6303         no on IRIX.
6304         * lib/vasnprintf.c: Update comments.
6305         * tests/test-vasnprintf-posix.c (strisnan): New function.
6306         (test_function): Use it.
6307         * tests/test-vasprintf-posix.c (strisnan): New function.
6308         (test_function): Use it.
6309         * tests/test-snprintf-posix.h (strisnan): New function.
6310         (test_function): Use it.
6311         * tests/test-sprintf-posix.h (strisnan): New function.
6312         (test_function): Use it.
6313         Reported by Eric Blake.
6314
6315 2007-05-20  Bruno Haible  <bruno@clisp.org>
6316
6317         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
6318         numbers that fails on BeOS.
6319         * doc/functions/frexpl.texi: Update.
6320
6321 2007-05-20  Jim Meyering  <jim@meyering.net>
6322
6323         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
6324         forced upon us by glibc-2.6.
6325
6326 2007-05-20  Bruno Haible  <bruno@clisp.org>
6327
6328         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
6329         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
6330         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
6331         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
6332         NEED_PRINTF_INFINITE.
6333         (is_infinitel): New function.
6334         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
6335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
6336         gl_PREREQ_VASNPRINTF_INFINITE.
6337         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
6338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6339         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
6340         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
6341         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
6342         gl_PREREQ_VASNPRINTF_INFINITE.
6343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6344         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6350         * doc/functions/fprintf.texi: Update.
6351         * doc/functions/printf.texi: Update.
6352         * doc/functions/snprintf.texi: Update.
6353         * doc/functions/sprintf.texi: Update.
6354         * doc/functions/vfprintf.texi: Update.
6355         * doc/functions/vprintf.texi: Update.
6356         * doc/functions/vsnprintf.texi: Update.
6357         * doc/functions/vsprintf.texi: Update.
6358
6359 2007-05-20  Bruno Haible  <bruno@clisp.org>
6360
6361         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
6362         was not found in libc.
6363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6364
6365 2007-05-20  Bruno Haible  <bruno@clisp.org>
6366
6367         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
6368         printed as "-nan" instead of "nan".
6369         * tests/test-vasprintf-posix.c (test_function): Likewise.
6370         * tests/test-snprintf-posix.h (test_function): Likewise.
6371         * tests/test-sprintf-posix.h (test_function): Likewise.
6372         Needed for HP-UX 11.
6373
6374 2007-05-20  Jim Meyering  <jim@meyering.net>
6375
6376         Fix buggy test for the fchownat-deref bug.
6377         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
6378         symlink required for the run-test.  Without it, this test would
6379         always declare that fchownat doesn't work, and client code would
6380         unnecessarily use the replacement function with fixed libc.
6381         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
6382         Reported by Greg Schafer.
6383
6384 2007-05-19  Bruno Haible  <bruno@clisp.org>
6385
6386         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
6387         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
6388         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
6389         Needed for IRIX 6.5 and Solaris 2.5.1.
6390
6391 2007-05-19  Bruno Haible  <bruno@clisp.org>
6392
6393         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
6394         (test_function): Skip tests involving -0.0 on platforms where
6395         -0.0 = 0.0.
6396         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
6397         (test_function): Skip tests involving -0.0 on platforms where
6398         -0.0 = 0.0.
6399         * tests/test-snprintf-posix.h (have_minus_zero): New function.
6400         (test_function): Skip tests involving -0.0 on platforms where
6401         -0.0 = 0.0.
6402         * tests/test-sprintf-posix.h (have_minus_zero): New function.
6403         (test_function): Skip tests involving -0.0 on platforms where
6404         -0.0 = 0.0.
6405         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
6406         tests.
6407         * tests/test-printf-posix.h (test_function): Likewise.
6408         * tests/test-printf-posix.output: Remove all -0.0 related results.
6409         Needed for IRIX 6.5.
6410
6411 2007-05-19  Bruno Haible  <bruno@clisp.org>
6412
6413         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
6414         printed as "nan0x7fffffff" instead of "nan".
6415         * tests/test-vasprintf-posix.c (test_function): Likewise.
6416         * tests/test-snprintf-posix.h (test_function): Likewise.
6417         * tests/test-sprintf-posix.h (test_function): Likewise.
6418         * tests/test-fprintf-posix.h (NaN): Remove macro.
6419         (test_function): Remove all NaN related tests.
6420         * tests/test-printf-posix.h (NaN): Remove macro.
6421         (test_function): Remove all NaN related tests.
6422         * tests/test-printf-posix.output: Remove all NaN related results.
6423         Needed for IRIX 6.5.
6424
6425 2007-05-19  Bruno Haible  <bruno@clisp.org>
6426
6427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
6428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6429
6430 2007-05-19  Bruno Haible  <bruno@clisp.org>
6431
6432         * lib/float_.h: New file.
6433         * m4/float_h.m4: New file.
6434         * modules/float: New file.
6435         * modules/isnanl (Dependencies): Add float.
6436         * modules/isnanl-nolibm (Dependencies): Likewise.
6437         * modules/mathl (Dependencies): Likewise.
6438         * modules/printf-frexpl (Dependencies): Likewise.
6439         * modules/signbit (Dependencies): Likewise.
6440         * modules/vasnprintf (Dependencies): Likewise.
6441         * doc/headers/float.texi: Update.
6442
6443 2007-05-19  Jim Meyering  <jim@meyering.net>
6444
6445         * lib/utimens.c (gl_futimens): Rename from futimens,
6446         now that glibc-2.6 declares futimens.
6447         * lib/utimens.h: Likewise.
6448
6449 2007-05-19  Bruno Haible  <bruno@clisp.org>
6450
6451         Avoid test failures on mingw.
6452         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
6453         * tests/test-printf-posix.sh: Likewise.
6454         * tests/test-vfprintf-posix.sh: Likewise.
6455         * tests/test-vprintf-posix.sh: Likewise.
6456
6457 2007-05-19  Bruno Haible  <bruno@clisp.org>
6458
6459         Fix *printf result for NaN, Inf, -0.0 on mingw.
6460         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
6461         * lib/vasnprintf.c: Include math.h and isnan.h.
6462         (is_infinite_or_zero): New function.
6463         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
6464         values in the %f, %F, %e, %E, %g, %G directives.
6465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
6466         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6467         gl_PRINTF_INFINITE and test its result. Invoke
6468         gl_PREREQ_VASNPRINTF_INFINITE.
6469         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6475         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6476         * doc/functions/fprintf.texi: Update.
6477         * doc/functions/printf.texi: Update.
6478         * doc/functions/snprintf.texi: Update.
6479         * doc/functions/sprintf.texi: Update.
6480         * doc/functions/vfprintf.texi: Update.
6481         * doc/functions/vprintf.texi: Update.
6482         * doc/functions/vsnprintf.texi: Update.
6483         * doc/functions/vsprintf.texi: Update.
6484
6485 2007-05-19  Bruno Haible  <bruno@clisp.org>
6486
6487         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
6488         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
6489         Instead of multiplying with 10^k, set extra_zeroes to k.
6490         (scale10_round_long_double): Remove function.
6491
6492 2007-05-18  Bruno Haible  <bruno@clisp.org>
6493
6494         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
6495         introduced on 2007-05-06.
6496
6497 2007-05-18  Bruno Haible  <bruno@clisp.org>
6498
6499         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
6500         %g directives.
6501         * tests/test-vasprintf-posix.c (test_function): Likewise.
6502         * tests/test-snprintf-posix.h (test_function): Likewise.
6503         * tests/test-sprintf-posix.h (test_function): Likewise.
6504
6505 2007-05-18  Bruno Haible  <bruno@clisp.org>
6506
6507         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
6508         (strmatch): New function.
6509         (test_function): Test the %f directive on numbers of various exponents.
6510         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
6511         (strmatch): New function.
6512         (test_function): Test the %f directive on numbers of various exponents.
6513         * tests/test-snprintf-posix.h (strmatch): New function.
6514         (test_function): Test the %f directive on numbers of various exponents.
6515         * tests/test-sprintf-posix.h (strmatch): New function.
6516         (test_function): Test the %f directive on numbers of various exponents.
6517         * tests/test-snprintf-posix.c (SIZEOF): New macro.
6518         * tests/test-sprintf-posix.c (SIZEOF): New macro.
6519         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
6520         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
6521
6522 2007-05-18  Bruno Haible  <bruno@clisp.org>
6523
6524         Add support for 'long double' number output.
6525         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
6526         * lib/vasnprintf.c: Include math.h and float+.h.
6527         (mp_limb_t): New type.
6528         (GMP_LIMB_BITS): New macro.
6529         (mp_twolimb_t): New type.
6530         (GMP_TWOLIMB_BITS): New macro.
6531         (mpn_t): New type.
6532         (multiply, divide, convert_to_decimal, decode_long_double,
6533         scale10_round_long_double, scale10_round_decimal_long_double,
6534         floorlog10l): New functions.
6535         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
6536         for the %f, %F, %e, %E, %g, %G directives.
6537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
6538         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6539         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
6540         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
6541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6548         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
6549         * modules/snprintf-posix (Depends-on): Likewise.
6550         * modules/sprintf-posix (Depends-on): Likewise.
6551         * modules/vasnprintf-posix (Depends-on): Likewise.
6552         * modules/vasprintf-posix (Depends-on): Likewise.
6553         * modules/vfprintf-posix (Depends-on): Likewise.
6554         * modules/vsnprintf-posix (Depends-on): Likewise.
6555         * modules/vsprintf-posix (Depends-on): Likewise.
6556         * modules/vasnprintf (Files): Add lib/float+.h.
6557         * doc/functions/fprintf.texi: Update.
6558         * doc/functions/printf.texi: Update.
6559         * doc/functions/snprintf.texi: Update.
6560         * doc/functions/sprintf.texi: Update.
6561         * doc/functions/vfprintf.texi: Update.
6562         * doc/functions/vprintf.texi: Update.
6563         * doc/functions/vsnprintf.texi: Update.
6564         * doc/functions/vsprintf.texi: Update.
6565
6566 2007-05-18  Bruno Haible  <bruno@clisp.org>
6567
6568         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
6569
6570 2007-05-18  Bruno Haible  <bruno@clisp.org>
6571
6572         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
6573         for printing 64-bit integers. Needed for mingw.
6574
6575 2007-05-18  Bruno Haible  <bruno@clisp.org>
6576
6577         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
6578         gl_FUNC_FREXPL_WORKS.
6579         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
6580
6581 2007-05-18  Bruno Haible  <bruno@clisp.org>
6582
6583         * modules/frexpl-nolibm-tests: New file.
6584
6585         * modules/frexpl-nolibm: New file.
6586         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
6587
6588 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6589
6590         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
6591         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
6592         GCC 4.2, which otherwise issues a lot of warnings.
6593         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
6594         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
6595         Likewise.
6596         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
6597         * modules/iconv_open (iconv.h): Likewise.
6598         * modules/locale (locale.h): Likewise.
6599         * modules/netinet_in (netinet/in.h): Likewise.
6600         * modules/sys_select (sys_select.h): Likewise.
6601         * modules/sys_socket (sys/socket.h): Likewise.
6602         * modules/sys_stat (sys/stat.h): Likewise.
6603         * modules/sysexits (sysexits.h): Likewise.
6604         * modules/unistd (unistd.h): Likewise.
6605
6606 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6607
6608         * modules/closein-tests (Makefile.am): Distribute
6609         `test-closein.sh'.
6610
6611 2007-05-17  Bruno Haible  <bruno@clisp.org>
6612
6613         * tests/test-printf-posix.output: Renamed from
6614         tests/test-fprintf-posix.out.
6615         * modules/fprintf-posix-tests: Update.
6616         * modules/printf-posix-tests: Update.
6617         * modules/vfprintf-posix-tests: Update.
6618         * modules/vprintf-posix-tests: Update.
6619         * tests/test-fprintf-posix.sh: Update.
6620         * tests/test-printf-posix.sh: Update.
6621         * tests/test-vfprintf-posix.sh: Update.
6622         * tests/test-vprintf-posix.sh: Update.
6623         Reported by Ralf Wildenhues.
6624
6625 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6626
6627         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
6628         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
6629         GCC 4.2, which otherwise issues a lot of warnings.
6630         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
6631         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
6632         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
6633         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
6634         it should no longer be needed.
6635         * lib/string_.h: Likewise.
6636         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
6637         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
6638         * modules/inttypes (inttypes.h): Likewise.
6639         * modules/math (math.h): Likewise.
6640         * modules/search (search.h): Likewise.
6641         * modules/signal (signal.h): Likewise.
6642         * modules/stdint (stdint.h): Likewise.
6643         * modules/stdio (stdio.h): Likewise.
6644         * modules/stdlib (stdlib.h): Likewise.
6645         * modules/string (string.h): Likewise.
6646         * modules/sys_time (sys/time.h): Likewise.
6647         * modules/time (time.h): Likewise.
6648         * modules/wchar (wchar.h): Likewise.
6649         * modules/wctype (wtype.h): Likewise.
6650
6651 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
6652
6653         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
6654
6655 2007-05-13  Bruno Haible  <bruno@clisp.org>
6656
6657         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
6658         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6659         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
6660         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6661         (gl_PREREQ_STRTOK_R): Don't require it here.
6662
6663 2007-05-13  Bruno Haible  <bruno@clisp.org>
6664
6665         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
6666         when used in C++ mode.
6667
6668 2007-05-12  Bruno Haible  <bruno@clisp.org>
6669
6670         * lib/linebuffer.h: Tweak doc.
6671         * lib/linebuffer.c: Likewise.
6672
6673 2007-05-12  James Youngman  <jay@gnu.org>
6674
6675         * lib/linebuffer.c (readlinebuffer_delim): New function,
6676         like readlinebuffer, but use a caller-specified delimiter.
6677         (readlinebuffer): Just call readlinebuffer_delim with '\n'
6678         as the delimiter.
6679         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
6680
6681 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
6682
6683         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
6684         * modules/openat (Files): Remove openat-die.c.
6685         (Depends-on): Add openat-die.
6686         * modules/openat-die: New module.
6687
6688 2007-05-06  Bruno Haible  <bruno@clisp.org>
6689
6690         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
6691         Update with info about Cygwin.
6692         * doc/functions/fprintf.texi: Update.
6693         * doc/functions/printf.texi: Update.
6694         * doc/functions/snprintf.texi: Update.
6695         * doc/functions/sprintf.texi: Update.
6696         * doc/functions/vfprintf.texi: Update.
6697         * doc/functions/vprintf.texi: Update.
6698         * doc/functions/vsnprintf.texi: Update.
6699         * doc/functions/vsprintf.texi: Update.
6700         Reported by Eric Blake.
6701
6702 2007-05-06  Bruno Haible  <bruno@clisp.org>
6703
6704         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
6705         padding ourselves for the floating-point directives.
6706         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
6707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
6708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6709         gl_PRINTF_FLAG_ZERO and test its result. Invoke
6710         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
6711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6712         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
6713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6718         * tests/test-snprintf-posix.h (test_function): Also check the width
6719         and some flags in the %f directive.
6720         * tests/test-sprintf-posix.h (test_function): Likewise.
6721         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6722         * tests/test-vasprintf-posix.c (test_function): Likewise.
6723         * doc/functions/fprintf.texi: Update.
6724         * doc/functions/printf.texi: Update.
6725         * doc/functions/snprintf.texi: Update.
6726         * doc/functions/sprintf.texi: Update.
6727         * doc/functions/vfprintf.texi: Update.
6728         * doc/functions/vprintf.texi: Update.
6729         * doc/functions/vsnprintf.texi: Update.
6730         * doc/functions/vsprintf.texi: Update.
6731
6732 2007-05-06  Bruno Haible  <bruno@clisp.org>
6733
6734         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
6735         pass the ' flag character to sprintf or snprintf.
6736         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
6737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
6738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6739         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
6740         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
6741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
6743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6748         * tests/test-snprintf-posix.h (test_function): Also check the grouping
6749         flag.
6750         * tests/test-sprintf-posix.h (test_function): Likewise.
6751         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6752         * tests/test-vasprintf-posix.c (test_function): Likewise.
6753         * doc/functions/fprintf.texi: Update.
6754         * doc/functions/printf.texi: Update.
6755         * doc/functions/snprintf.texi: Update.
6756         * doc/functions/sprintf.texi: Update.
6757         * doc/functions/vfprintf.texi: Update.
6758         * doc/functions/vprintf.texi: Update.
6759         * doc/functions/vsnprintf.texi: Update.
6760         * doc/functions/vsprintf.texi: Update.
6761
6762 2007-05-01  Bruno Haible  <bruno@clisp.org>
6763
6764         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
6765
6766 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6767
6768         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
6769         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
6770
6771 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
6772
6773         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
6774         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
6775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
6776
6777 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
6778
6779         * lib/argp-help.c (struct hol_entry): New member `ord'.
6780         (HOL_ENTRY_PTRCMP): Use ord for comparison
6781         (hol_sort): Initialize ord.
6782
6783 2007-05-01  Bruno Haible  <bruno@clisp.org>
6784
6785         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
6786         Reported by Eric Blake.
6787         * doc/gnulib.texi (Function Substitutes): Update.
6788
6789 2007-05-01  Bruno Haible  <bruno@clisp.org>
6790
6791         * doc/functions.texi: Remove file, now redundant through
6792         doc/functions/*.texi.
6793
6794 2007-05-01  Bruno Haible  <bruno@clisp.org>
6795
6796         * modules/argp (Depends-on): Add sleep.
6797
6798 2007-05-01  Bruno Haible  <bruno@clisp.org>
6799
6800         * modules/sleep-tests: New file.
6801         * tests/test-sleep.c: New file.
6802
6803         * modules/sleep: New file.
6804         * lib/sleep.c: New file.
6805         * m4/sleep.m4: New file.
6806         * lib/unistd_.h (sleep): New declaration.
6807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
6808         HAVE_SLEEP.
6809         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
6810         * doc/functions/sleep.texi: Document the sleep module.
6811
6812 2007-05-01  Bruno Haible  <bruno@clisp.org>
6813
6814         * lib/sigprocmask.h: Remove file.
6815         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
6816         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
6817         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
6818         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
6819         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6820         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
6821         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
6822         HAVE_SIGSET_T as a shell variable.
6823         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
6824         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
6825         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
6826         (Depends-on): Add signal. Remove verify.
6827         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
6828         (Include): Mention <signal.h> instead of sigprocmask.h.
6829         * NEWS: Mention the change.
6830         * lib/fatal-signal.c: Don't include sigprocmask.h.
6831
6832 2007-05-01  Bruno Haible  <bruno@clisp.org>
6833
6834         * modules/signal: New file.
6835         * lib/signal_.h: New file.
6836         * m4/signal_h.m4: New file.
6837
6838 2007-05-01  Bruno Haible  <bruno@clisp.org>
6839
6840         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
6841         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
6842         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
6843         HAVE_WCTYPE_CTMP_BUG into wctype.h.
6844
6845 2007-05-01  Bruno Haible  <bruno@clisp.org>
6846
6847         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
6848         configure time.
6849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
6850         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
6851         * modules/sys_stat (Makefile.am): Substitute their values into
6852         sys/stat.h.
6853
6854 2007-05-01  Bruno Haible  <bruno@clisp.org>
6855
6856         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
6857         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
6858         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
6859
6860 2007-05-01  Bruno Haible  <bruno@clisp.org>
6861
6862         * doc/header/assert.texi: Undo last change: don't mention the gnulib
6863         'assert' module here.
6864
6865 2007-05-01  Bruno Haible  <bruno@clisp.org>
6866
6867         * doc/functions/*.texi: New files.
6868         * doc/functions/google-ranking.txt: New file.
6869         * doc/gnulib.texi (Function Substitutes): New chapter.
6870         (ctime, inet_ntoa): Remove sections.
6871         * doc/ctime.texi: Remove file.
6872         * doc/inet_ntoa.texi: Remove file.
6873         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
6874         dependencies.
6875         (%.info): New rule, specifying a --reference-limit.
6876
6877 2007-05-01  Bruno Haible  <bruno@clisp.org>
6878
6879         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
6880
6881 2007-05-01  Bruno Haible  <bruno@clisp.org>
6882
6883         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
6884         the portability of 'mkdir' to mingw systems.
6885
6886 2007-05-01  Bruno Haible  <bruno@clisp.org>
6887
6888         * doc/headers/google-ranking.txt: New file.
6889
6890 2007-04-30  Eric Blake  <ebb9@byu.net>
6891
6892         Prefer fseeko to fseek.
6893         * modules/getpass (Depends-on): Add fseeko.
6894         * lib/getpass.c (getpass): Use fseeko, not fseek.
6895
6896 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
6897
6898         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
6899         assumes the sorting is stable, while most qsort implementations
6900         are not.  Use argument addresses to ensure they never compare as
6901         equal.
6902
6903         * tests/test-argp-2.sh (usage-indent test): Fix output
6904         (func_compare): Restore diff options
6905         * tests/test-argp.c: Restore #include "progname.h"
6906
6907 2007-04-29  Bruno Haible  <bruno@clisp.org>
6908
6909         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
6910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6911         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
6912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6913         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
6914         (configure.ac): Define CHECK_SNPRINTF_POSIX.
6915         (TESTS, check_PROGRAMS): Add test-snprintf.
6916         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
6917         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
6918         (TESTS, check_PROGRAMS): Add test-vsnprintf.
6919         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
6920         assertions that fail on HP-UX, OSF/1, or IRIX.
6921         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
6922
6923 2007-04-29  Bruno Haible  <bruno@clisp.org>
6924
6925         * MODULES.html.sh (posix_functions): Remove 'contents'.
6926
6927 2007-04-29  Karl Berry  <karl@gnu.org>
6928
6929         * config/srclist.txt (gendocs_template_min): new entry.
6930
6931 2007-04-29  Bruno Haible  <bruno@clisp.org>
6932
6933         Work around fpurge bug on BSD systems.
6934         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
6935         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
6936         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
6937         fpurge to rpl_fpurge if the system already has this function.
6938         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
6939         the case where the system already has this function. Correct invariants
6940         on BSD systems.
6941         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
6942         BSD systems.
6943
6944 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
6945
6946         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
6947         proposed by Sven Verdoolaege.
6948
6949         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
6950         options.
6951         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
6952         (usage and help tests): Update
6953
6954 2007-04-29  Bruno Haible  <bruno@clisp.org>
6955
6956         * tests/test-fflush.c (main): Use a file of size 17, not 10.
6957         Print more information in case of failure. Disable a test on BeOS.
6958
6959 2007-04-29  Bruno Haible  <bruno@clisp.org>
6960
6961         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
6962         This helps debugging on systems on which no gdb is available.
6963
6964 2007-04-29  Bruno Haible  <bruno@clisp.org>
6965
6966         * lib/freading.h: Improve comments.
6967         * lib/fwriting.h: Likewise.
6968         * tests/test-freading.c (main): Don't check freading immediately after
6969         repositioning. Needed for glibc.
6970
6971 2007-04-29  Bruno Haible  <bruno@clisp.org>
6972
6973         * lib/freading.c (freading): Trivial simplification.
6974
6975 2007-04-28  Bruno Haible  <bruno@clisp.org>
6976
6977         * tests/test-fwriting.c (main): Also test the interaction between
6978         fflush and fwriting.
6979         * modules/fwriting-tests (Depends-on): Add fflush.
6980
6981         * tests/test-freading.c (main): Also test the interaction between
6982         fflush and freading.
6983         * modules/freading-tests (Depends-on): Add fflush.
6984
6985 2007-04-28  Bruno Haible  <bruno@clisp.org>
6986
6987         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
6988         fseeko and ftello.
6989         Suggested by Eric Blake.
6990
6991 2007-04-28  Jim Meyering  <jim@meyering.net>
6992
6993         Avoid false-negative in gl_STDINT_H's C99 conformance test.
6994         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
6995         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
6996
6997 2007-04-27  Eric Blake  <ebb9@byu.net>
6998
6999         * doc/headers/assert.texi (assert.h): Document assert module use.
7000
7001 2007-04-27  Bruno Haible  <bruno@clisp.org>
7002
7003         * doc/headers/*.texi: New files.
7004         * doc/gnulib.texi (Header File Substitutes): New chapter.
7005         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
7006         dependencies.
7007         (standards.info ,standards.html, standards.dvi): Update dependencies.
7008         (mostlyclean, clean): New targets.
7009
7010 2007-04-27  Bruno Haible  <bruno@clisp.org>
7011
7012         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
7013         * modules/sysexits (Files, Makefile.am): Update.
7014
7015         * lib/sys_socket_.h: Renamed from lib/socket_.h.
7016         * modules/sys_socket (Files, Makefile.am): Update.
7017
7018         * lib/sys_stat_.h: Renamed from lib/stat_.h.
7019         * modules/sys_stat (Files, Makefile.am): Update.
7020
7021 2007-04-27  Eric Blake  <ebb9@byu.net>
7022
7023         * lib/freading.h: Improve comments.
7024         * lib/fwriting.h: Likewise.
7025         * lib/fflush.c: Likewise.
7026
7027         Fix closein for mingw.
7028         * modules/closein-tests: Add tests for closein.
7029         * tests/test-closein.c: New file.
7030         * tests/test-closein.sh: Likewise.
7031         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
7032         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
7033
7034 2007-04-27  Bruno Haible  <bruno@clisp.org>
7035
7036         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
7037         version is < 6.
7038         * lib/math_.h [__DECC]: Likewise.
7039         * lib/stdio_.h [__DECC]: Likewise.
7040         * lib/stdlib_.h [__DECC]: Likewise.
7041         * lib/string_.h [__DECC]: Likewise.
7042         * lib/time_.h [__DECC]: Likewise.
7043         * lib/wchar_.h [__DECC]: Likewise.
7044         * lib/wctype_.h [__DECC]: Likewise.
7045
7046 2007-04-27  Bruno Haible  <bruno@clisp.org>
7047
7048         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
7049
7050 2007-04-27  Bruno Haible  <bruno@clisp.org>
7051
7052         * lib/fflush.c: Add comments.
7053         * modules/fpurge-tests (Depends-on): Add fflush.
7054         * modules/freadable-tests (Depends-on): Likewise.
7055         * modules/fwritable-tests (Depends-on): Likewise.
7056
7057 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
7058
7059         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
7060         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
7061         Report by Bruno Haible <bruno@clisp.org>.
7062
7063 2007-04-26  Eric Blake  <ebb9@byu.net>
7064
7065         Fix fflush on mingw.
7066         * modules/fflush (Depends-on): Add freading.
7067         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
7068         but unread data.
7069
7070 2007-04-26  Eric Blake  <ebb9@byu.net>
7071         and Bruno Haible  <bruno@clisp.org>
7072
7073         Implement freading and fwriting.
7074         * lib/freading.c: New file.
7075         * lib/freading.h: Likewise.
7076         * m4/freading.m4: Likewise.
7077         * modules/freading: Likewise.
7078         * modules/freading-tests: Likewise.
7079         * tests/test-freading.c: Likewise.
7080         * lib/fwriting.c: New file.
7081         * lib/fwriting.h: Likewise.
7082         * m4/fwriting.m4: Likewise.
7083         * modules/fwriting: Likewise.
7084         * modules/fwriting-tests: Likewise.
7085         * tests/test-fwriting.c: Likewise.
7086         * MODULES.html.sh (File stream based Input/Output): Mention them.
7087
7088 2007-04-26  Bruno Haible  <bruno@clisp.org>
7089
7090         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
7091         'long' when we assume it.
7092         Suggested by Eric Blake.
7093
7094 2007-04-26  Bruno Haible  <bruno@clisp.org>
7095
7096         Ensure fseeko, ftello are declared on glibc systems.
7097         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
7098         * modules/fseeko (configure.ac-early): Likewise.
7099         * modules/ftello (configure.ac-early): Likewise.
7100         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
7101         AC_FUNC_FSEEKO for this.
7102         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
7103         (gl_CHECK_FSEEKO): Remove macro.
7104
7105 2007-04-26  Bruno Haible  <bruno@clisp.org>
7106
7107         * tests/test-fflush.c (main): Also check the ftell result after
7108         fflush and fseek/fseeko.
7109         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
7110         file descriptor position cache in the stream.
7111         * lib/fseeko.c (rpl_fseeko): Likewise.
7112
7113 2007-04-26  Bruno Haible  <bruno@clisp.org>
7114
7115         * modules/fflush-tests (Depends-on): Add fseeko.
7116
7117 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
7118             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7119
7120         * lib/argz_.h: ensure error_t definition is obtained in same
7121         mechanism system argz.h would have.
7122         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
7123         argz facilities are known bad.  Err on the side of caution if
7124         cross-compiling.
7125
7126 2007-04-25  Eric Blake  <ebb9@byu.net>
7127
7128         * lib/fpurge.c (includes): Use stdlib.h for free.
7129         * tests/test-fflush.c (main): Also test fflush-fseeko.
7130
7131 2007-04-25  Bruno Haible  <bruno@clisp.org>
7132
7133         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
7134         * lib/fseeko.c: New file.
7135         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
7136         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
7137         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
7138         gl_FUNC_FSEEKO.
7139         (gl_FUNC_FSEEKO): Invoke it.
7140         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
7141         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
7142         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
7143
7144 2007-04-25  Bruno Haible  <bruno@clisp.org>
7145
7146         * modules/fflush (Depends-on): Add ftello.
7147
7148 2007-04-25  Bruno Haible  <bruno@clisp.org>
7149
7150         * modules/ftello-tests: New file.
7151         * tests/test-ftello.c: New file.
7152
7153         * modules/ftello: New file.
7154         * m4/ftello.m4: New file.
7155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
7156         HAVE_FTELLO.
7157         * lib/stdio_.h (ftello): New declaration.
7158         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
7159         HAVE_FTELLO.
7160
7161 2007-04-25  Bruno Haible  <bruno@clisp.org>
7162
7163         * modules/fseeko-tests: New file.
7164         * tests/test-fseeko.c: New file.
7165
7166         * modules/fseeko: New file.
7167         * m4/fseeko.m4: New file.
7168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
7169         HAVE_FSEEKO.
7170         * lib/stdio_.h (fseeko): New declaration.
7171         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
7172         HAVE_FSEEKO.
7173
7174 2007-04-25  Bruno Haible  <bruno@clisp.org>
7175
7176         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
7177
7178 2007-04-25  Bruno Haible  <bruno@clisp.org>
7179
7180         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
7181         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
7182         * tests/test-unistd.c: Likewise.
7183         * tests/test-fcntl.c: Likewise.
7184
7185 2007-04-23  Eric Blake  <ebb9@byu.net>
7186
7187         * lib/fflush.c: Fix missing include.
7188         Reported by Bruno Haible.
7189
7190 2007-04-23  Bruno Haible  <bruno@clisp.org>
7191
7192         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
7193         Reported by Eric Blake.
7194
7195 2007-04-23  Bruno Haible  <bruno@clisp.org>
7196
7197         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
7198
7199 2007-04-23  Bruno Haible  <bruno@clisp.org>
7200
7201         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
7202
7203 2007-04-23  Bruno Haible  <bruno@clisp.org>
7204
7205         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
7206         Needed on HP-UX 11.
7207
7208 2007-04-16  Eric Blake  <ebb9@byu.net>
7209
7210         Make fflush rely on fpurge.
7211         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
7212         open coding all variants.
7213         * modules/fflush (Depends-on): Add fpurge and unistd.
7214         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
7215         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
7216
7217         Fix --with-tests compilation on cygwin.
7218         * modules/argmatch-tests (Makefile.am): List gnulib library first
7219         in LDADD.
7220         * modules/argp-tests (Makefile.am): Likewise.
7221         * modules/array-list-tests (Makefile.am): Likewise.
7222         * modules/array-oset-tests (Makefile.am): Likewise.
7223         * modules/avltree-list-tests (Makefile.am): Likewise.
7224         * modules/avltree-oset-tests (Makefile.am): Likewise.
7225         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7226         * modules/carray-list-tests (Makefile.am): Likewise.
7227         * modules/dirname-tests (Makefile.am): Likewise.
7228         * modules/frexp-tests (Makefile.am): Likewise.
7229         * modules/isnanl-tests (Makefile.am): Likewise.
7230         * modules/linked-list-tests (Makefile.am): Likewise.
7231         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7232         * modules/lock-tests (Makefile.am): Likewise.
7233         * modules/rbtree-list-tests (Makefile.am): Likewise.
7234         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7235         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7236         * modules/tls-tests (Makefile.am): Likewise.
7237         * modules/tsearch-tests (Makefile.am): Likewise.
7238         * modules/xvasprintf-tests (Makefile.am): Likewise.
7239
7240         Fix fpurge for cygwin.
7241         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
7242         value.
7243         * modules/fpurge-tests (Depends-on): Clean up trash.
7244
7245 2007-04-16  Simon Josefsson  <simon@josefsson.org>
7246
7247         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
7248
7249         * m4/autobuild.m4: Re-indent.
7250
7251 2007-04-13  Bruno Haible  <bruno@clisp.org>
7252
7253         * modules/fpurge-tests: New file.
7254         * tests/test-fpurge.c: New file.
7255
7256         * modules/fpurge: New file.
7257         * lib/fpurge.h: New file.
7258         * lib/fpurge.c: New file.
7259         * m4/fpurge.m4: New file.
7260
7261 2007-04-13  Bruno Haible  <bruno@clisp.org>
7262
7263         * modules/fbufmode-tests: New file.
7264         * tests/test-fbufmode.c: New file.
7265
7266         * modules/fbufmode: New file.
7267         * lib/fbufmode.h: New file.
7268         * lib/fbufmode.c: New file.
7269         * m4/fbufmode.m4: New file.
7270
7271 2007-04-13  Bruno Haible  <bruno@clisp.org>
7272
7273         * modules/fwritable-tests: New file.
7274         * tests/test-fwritable.c: New file.
7275
7276         * modules/fwritable: New file.
7277         * lib/fwritable.h: New file.
7278         * lib/fwritable.c: New file.
7279         * m4/fwritable.m4: New file.
7280
7281 2007-04-13  Bruno Haible  <bruno@clisp.org>
7282
7283         * modules/freadable-tests: New file.
7284         * tests/test-freadable.c: New file.
7285
7286         * modules/freadable: New file.
7287         * lib/freadable.h: New file.
7288         * lib/freadable.c: New file.
7289         * m4/freadable.m4: New file.
7290
7291 2007-04-13  Bruno Haible  <bruno@clisp.org>
7292
7293         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
7294         MOSTLYCLEANFILES.
7295
7296 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7297
7298         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
7299         gzip bootstrap.conf to avoid dragging in i18n machinery.
7300         (gnulib_tool_option): Use it.
7301
7302 2007-04-13  Bruno Haible  <bruno@clisp.org>
7303
7304         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
7305         %F directives.
7306         * tests/test-vasprintf-posix.c (test_function): Likewise.
7307         * tests/test-snprintf-posix.h (test_function): Likewise.
7308         * tests/test-sprintf-posix.h (test_function): Likewise.
7309         * tests/test-fprintf-posix.h (test_function): Likewise.
7310         * tests/test-printf-posix.h (test_function): Likewise.
7311         * tests/test-fprintf-posix.out: Likewise.
7312
7313 2007-04-13  Bruno Haible  <bruno@clisp.org>
7314
7315         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
7316         * modules/tls-tests (configure.ac): Likewise.
7317         Reported by Arto C. Nirkko <anirkko@insel.ch>.
7318
7319 2007-04-13  Bruno Haible  <bruno@clisp.org>
7320
7321         * lib/tls.c (glthread_tls_get): Fix return type.
7322         Patch by Arto C. Nirkko <anirkko@insel.ch>.
7323
7324 2007-04-12  Eric Blake  <ebb9@byu.net>
7325
7326         * modules/gettime (Depends-on): Remove gettime.
7327         Reported by Dmitry V. Levin.
7328
7329 2007-04-12  Bruno Haible  <bruno@clisp.org>
7330
7331         * modules/fflush (Include): Mention <stdio.h>.
7332         * modules/strtoimax (Include): Mention <inttypes.h>.
7333         * modules/strtoumax (Include): Likewise.
7334
7335 2007-04-12  Eric Blake  <ebb9@byu.net>
7336
7337         * .cvsignore: New file.
7338         * .gitignore: Likewise.
7339
7340 2007-04-12  Bruno Haible  <bruno@clisp.org>
7341
7342         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
7343         not before, since $(LDADD) often contains libgnu.a.
7344         * modules/striconv-tests (test_striconv_LDADD): Likewise.
7345         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
7346         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
7347         Needed on Cygwin.
7348
7349 2007-04-12  Eric Blake  <ebb9@byu.net>
7350
7351         Work around glibc's failure to flush stdin on fclose.
7352         * lib/closein.c (close_stdin): Flush stdin before closing.
7353
7354         Work around glibc's failure to reset seekable stdin on exit.
7355         * modules/closein: New module.
7356         * lib/closein.c: New file.
7357         * lib/closein.h: Likewise.
7358         * m4/closein.m4: Likewise.
7359         * MODULES.html.sh (File stream based Input/Output): Document it.
7360
7361 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7362
7363         * gnulib-tool: Rename generated 'autobuild' script to
7364         'do-autobuild' in --create-megatestdir output.
7365
7366         * doc/gnulib.texi (Build robot for gnulib): Fix.
7367
7368 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7369
7370         * modules/sysexits (Depends-on): Add absolute-header.
7371
7372 2007-04-12  Eric Blake  <ebb9@byu.net>
7373
7374         No need to preserve errno on success.
7375         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
7376         Reported by Bruno Haible.
7377
7378 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7379
7380         * MODULES.html.sh (Support for maintaining and releasing
7381         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
7382
7383 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7384
7385         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
7386
7387 2007-04-12  Simon Josefsson  <simon@josefsson.org>
7388
7389         * modules/autobuild: New module.
7390
7391         * m4/autobuild.m4: New file.
7392
7393 2007-04-11  Bruno Haible  <bruno@clisp.org>
7394
7395         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
7396         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
7397         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
7398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
7399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7400         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7401         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
7403         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7404         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
7406         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7407         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
7409         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7410         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7411         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
7412         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7413         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7414         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
7415         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7416         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
7418         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7419         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7420         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
7421         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
7422         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
7423         Reported by Eric Blake.
7424
7425 2007-04-11  Bruno Haible  <bruno@clisp.org>
7426
7427         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
7428
7429 2007-04-10  Bruno Haible  <bruno@clisp.org>
7430
7431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
7432         for NaN and Infinity. Needed on FreeBSD 6.1.
7433         * tests/test-vasnprintf-posix.c (test_function): Undo last change
7434         regarding results for "%010a" of Infinity and NaN.
7435         * tests/test-vasprintf-posix.c (test_function): Likewise.
7436         * tests/test-snprintf-posix.h (test_function): Likewise.
7437         * tests/test-sprintf-posix.h (test_function): Likewise.
7438         * tests/test-fprintf-posix.h (test_function): Likewise.
7439         * tests/test-printf-posix.h (test_function): Likewise.
7440         * tests/test-fprintf-posix.out: Likewise.
7441
7442 2007-04-10  Bruno Haible  <bruno@clisp.org>
7443
7444         * modules/locale-tests: New file.
7445         * tests/test-locale.c: New file.
7446
7447         * modules/locale: New file.
7448         * lib/locale_.h: New file.
7449         * m4/locale_h.m4: New file.
7450
7451 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
7452             Bruno Haible  <bruno@clisp.org>
7453
7454         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
7455         be determined, test for availability of the copysignf, copysign,
7456         copysignl functions.
7457         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
7458         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
7459         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
7460
7461 2007-04-09  Eric Blake  <ebb9@byu.net>
7462
7463         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
7464         * modules/stdio (Makefile.am): Support fflush.
7465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7466         * modules/fflush: New file.
7467         * lib/fflush.c: Likewise.
7468         * m4/fflush.m4: Likewise.
7469         * modules/fflush-tests: New test.
7470         * tests/test-fflush.c: Likewise.
7471         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
7472
7473 2007-04-06  Bruno Haible  <bruno@clisp.org>
7474
7475         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
7476         (VASNPRINTF): Use signbit for faster determination whether to print a
7477         minus sign.
7478         * modules/vasnprintf (Files): Remove lib/float+.h.
7479         * modules/fprintf-posix (Depends-on): Add signbit.
7480         * modules/snprintf-posix (Depends-on): Likewise.
7481         * modules/sprintf-posix (Depends-on): Likewise.
7482         * modules/vasnprintf-posix (Depends-on): Likewise.
7483         * modules/vasprintf-posix (Depends-on): Likewise.
7484         * modules/vfprintf-posix (Depends-on): Likewise.
7485         * modules/vsnprintf-posix (Depends-on): Likewise.
7486         * modules/vsprintf-posix (Depends-on): Likewise.
7487
7488 2007-04-06  Bruno Haible  <bruno@clisp.org>
7489
7490         * tests/test-frexp.c (main): Test also the sign bit of zero results.
7491         * tests/test-frexpl.c (main): Likewise.
7492         * tests/test-ldexpl.c (main): Likewise.
7493         * modules/frexp-tests (Depends-on): Add signbit.
7494         * modules/frexpl-tests (Depdends-on): Likewise.
7495         * modules/ldexpl-tests (Depdends-on): Likewise.
7496
7497 2007-04-06  Bruno Haible  <bruno@clisp.org>
7498
7499         * modules/signbit-tests: New file.
7500         * tests/test-signbit.c: New file.
7501
7502         * modules/signbit: New file.
7503         * lib/signbitf.c: New file.
7504         * lib/signbitd.c: New file.
7505         * lib/signbitl.c: New file.
7506         * m4/signbit.m4: New file.
7507         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
7508         (signbit): New macro.
7509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
7510         REPLACE_SIGNBIT.
7511         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
7512         REPLACE_FREXPL into math.h.
7513
7514 2007-04-06  Bruno Haible  <bruno@clisp.org>
7515
7516         * modules/isnanf-nolibm-tests: New file.
7517         * tests/test-isnanf.c: New file.
7518
7519         * modules/isnanf-nolibm: New file.
7520         * lib/isnanf.h: New file.
7521         * lib/isnanf.c: New file.
7522         * lib/isnan.c: Consider the USE_FLOAT macro.
7523         * m4/isnanf.m4: New file.
7524
7525 2007-04-06  Bruno Haible  <bruno@clisp.org>
7526
7527         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
7528         (Link): New section.
7529
7530         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
7531
7532 2007-04-06  Bruno Haible  <bruno@clisp.org>
7533
7534         Assume the 'long double' type.
7535         * m4/longdouble.m4: Remove file.
7536         * config/srclist.txt: Don't mention longdouble.m4.
7537         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
7538         * lib/float+.h: Likewise.
7539         * lib/frexp.c: Likewise.
7540         * lib/printf-args.h: Likewise.
7541         * lib/printf-args.c: Likewise.
7542         * lib/printf-frexp.c: Likewise.
7543         * lib/printf-parse.c: Likewise.
7544         * lib/vasnprintf.c: Likewise.
7545         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
7546         * m4/intl.m4: Likewise.
7547         * m4/isnanl.m4: Likewise.
7548         * m4/printf.m4: Likewise.
7549         * m4/printf-frexpl.m4: Likewise.
7550         * m4/vasnprintf.m4: Likewise.
7551         * modules/allocsa (Files): Remove m4/longdouble.m4.
7552         * modules/gettext (Files): Likewise.
7553         * modules/relocatable-prog-wrapper (Files): Likewise.
7554         * modules/vasnprintf (Files): Likewise.
7555         * modules/isnanl (Files): Likewise.
7556         (Include): Simplify.
7557         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
7558         (Include): Simplify.
7559         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
7560         (Include): Simplify.
7561         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
7562         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7563         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
7564         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7565         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
7566         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7567         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
7568         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7569         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
7570         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7571         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
7572         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
7573         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
7574         * tests/test-isnanl.c: Likewise.
7575         * tests/test-snprintf-posix.h: Likewise.
7576         * tests/test-sprintf-posix.h: Likewise.
7577         * tests/test-vasnprintf-posix.c: Likewise.
7578         * tests/test-vasnprintf-posix2.c: Likewise.
7579         * tests/test-vasprintf-posix.c: Likewise.
7580
7581 2007-04-06  Bruno Haible  <bruno@clisp.org>
7582
7583         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
7584         * lib/math_.h [__DECC]: Include the overridden include file through
7585         #include_next, outside the double-inclusion guard.
7586         * lib/stdio_.h [__DECC]: Likewise.
7587         * lib/stdlib_.h [__DECC]: Likewise.
7588         * lib/string_.h [__DECC]: Likewise.
7589         * lib/time_.h [__DECC]: Likewise.
7590         * lib/wchar_.h [__DECC]: Likewise.
7591         * lib/wctype_.h [__DECC]: Likewise.
7592         * lib/inttypes_.h [__DECC]: Likewise.
7593         Reported by Albert Chin <china@thewrittenword.com> in
7594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
7595
7596 2007-04-04  Eric Blake  <ebb9@byu.net>
7597
7598         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
7599         1.5.x.
7600
7601 2007-04-04  Bruno Haible  <bruno@clisp.org>
7602
7603         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
7604         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
7605
7606 2007-04-04  Bruno Haible  <bruno@clisp.org>
7607
7608         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
7609         results for "%010a" of Infinity and NaN.
7610         * tests/test-vasprintf-posix.c (test_function): Likewise.
7611         * tests/test-snprintf-posix.h (test_function): Likewise.
7612         * tests/test-sprintf-posix.h (test_function): Likewise.
7613         * tests/test-fprintf-posix.h (test_function): Remove these tests.
7614         * tests/test-printf-posix.h (test_function): Likewise.
7615         * tests/test-fprintf-posix.out: Update.
7616         Needed for FreeBSD 6.1.
7617
7618 2007-04-04  Bruno Haible  <bruno@clisp.org>
7619
7620         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
7621         directly used by the gnulib modules nor by gnulib-tool.
7622
7623 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
7624
7625         * DEPENDENCIES: Give overall description of version dependency
7626         desirability.  Use more-typical names for apps.
7627         Add shell, coreutils, diffutils, grep, tar, gzip.
7628
7629 2007-04-04  Simon Josefsson  <simon@josefsson.org>
7630
7631         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
7632
7633 2007-04-04  Karl Berry  <karl@gnu.org>
7634
7635         * MODULES.html.sh (func_module): missing '.
7636
7637 2007-04-03  Bruno Haible  <bruno@clisp.org>
7638
7639         * modules/argmatch-tests (Makefile.am): New variable
7640         test_argmatch_LDADD.
7641         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
7642         * modules/array-list-tests (Makefile.am): New variable
7643         test_array_list_LDADD.
7644         * modules/array-oset-tests (Makefile.am): New variable
7645         test_array_oset_LDADD.
7646         * modules/avltree-list-tests (Makefile.am): New variable
7647         test_avltree_list_LDADD.
7648         * modules/avltree-oset-tests (Makefile.am): New variable
7649         test_avltree_oset_LDADD.
7650         * modules/avltreehash-list-tests (Makefile.am): New variable
7651         test_avltreehash_list_LDADD.
7652         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
7653         test_canonicalize_lgpl_LDADD.
7654         * modules/carray-list-tests (Makefile.am): New variable
7655         test_carray_list_LDADD.
7656         * modules/dirname-tests (Makefile.am): New variable
7657         test_dirname_LDADD.
7658         * modules/linked-list-tests (Makefile.am): New variable
7659         test_linked_list_LDADD.
7660         * modules/linkedhash-list-tests (Makefile.am): New variable
7661         test_linkedhash_list_LDADD.
7662         * modules/rbtree-list-tests (Makefile.am): New variable
7663         test_rbtree_list_LDADD.
7664         * modules/rbtree-oset-tests (Makefile.am): New variable
7665         test_rbtree_oset_LDADD.
7666         * modules/rbtreehash-list-tests (Makefile.am): New variable
7667         test_rbtreehash_list_LDADD.
7668         * modules/xvasprintf-tests (Makefile.am): New variable
7669         test_xvasprintf_LDADD.
7670         Reported by Eric Blake.
7671
7672 2007-04-03  Eric Blake  <ebb9@byu.net>
7673
7674         * DEPENDENCIES: Weaken m4 requirements.
7675
7676 2007-04-03  Bruno Haible  <bruno@clisp.org>
7677
7678         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
7679         * modules/isnanl-tests (configure.ac): Likewise.
7680
7681 2007-04-03  Ben Pfaff  <blp@gnu.org>
7682
7683         * modules/iconv_open: Add $(srcdir)/ to source directory
7684         references in Makefile fragments that call gperf, to fix VPATH
7685         builds.
7686
7687 2007-04-03  Bruno Haible  <bruno@clisp.org>
7688
7689         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
7690         * lib/ldexpl.c: Undo last change.
7691
7692 2007-04-03  Bruno Haible  <bruno@clisp.org>
7693
7694         * modules/printf-frexpl (Depends-on): Undo last change.
7695         (Files): Add m4/ldexpl.m4.
7696
7697 2007-04-03  Bruno Haible  <bruno@clisp.org>
7698
7699         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
7700         * modules/isnanl (Link): New section.
7701
7702         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
7703         * modules/frexp (Link): New section.
7704
7705         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
7706         * modules/frexpl (Link): New section.
7707
7708         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
7709         * modules/ldexpl (Link): New section.
7710
7711 2007-04-03  Bruno Haible  <bruno@clisp.org>
7712
7713         * modules/TEMPLATE-EXTENDED: New file.
7714         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
7715
7716 2007-04-03  Bruno Haible  <bruno@clisp.org>
7717
7718         * DEPENDENCIES: New file.
7719         Suggested by Simon Josefsson.
7720
7721 2007-04-03  Bruno Haible  <bruno@clisp.org>
7722
7723         * doc/gnulib.texi: Escape @.
7724
7725 2007-04-03  James Youngman  <jay@gnu.org>
7726         and Paul Eggert  <eggert@cs.ucla.edu>
7727
7728         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
7729         birthtime on all systems that have birthtime, not just those which
7730         use st_birthtimensec rather than st_birthtim.  Putting zero in
7731         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
7732         that the birth time is not available for files on an NFS mount.
7733
7734 2007-04-03  Simon Josefsson  <simon@josefsson.org>
7735
7736         * modules/memxor: Move back from crypto/, suggested by Bruno.
7737         * modules/crypto/hmac-sha1: Fix memxor dependency.
7738
7739         * modules/crypto/gc: Moved from ../.
7740
7741 2007-04-02  Eric Blake  <ebb9@byu.net>
7742
7743         * lib/ldexpl.c (includes): Avoid libm.
7744
7745         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
7746
7747 2007-04-02  Bruno Haible  <bruno@clisp.org>
7748
7749         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
7750         on IRIX.
7751
7752 2007-04-02  Bruno Haible  <bruno@clisp.org>
7753
7754         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
7755         x86 or x86_64 platforms running MacOS X.
7756         Reported by Ryan Schmidt <@ryandesign.com>.
7757
7758 2007-04-02  Bruno Haible  <bruno@clisp.org>
7759
7760         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
7761         i386.
7762
7763 2007-04-01  Simon Josefsson  <simon@josefsson.org>
7764
7765         * modules/crypto/arcfour: Moved from ../.
7766         * modules/crypto/arcfour-tests: Moved from ../.
7767         * modules/crypto/arctwo: Moved from ../.
7768         * modules/crypto/arctwo-tests: Moved from ../.
7769         * modules/crypto/des: Moved from ../.
7770         * modules/crypto/des-tests: Moved from ../.
7771         * modules/crypto/gc-arcfour: Moved from ../.
7772         * modules/crypto/gc-arcfour-tests: Moved from ../.
7773         * modules/crypto/gc-arctwo: Moved from ../.
7774         * modules/crypto/gc-arctwo-tests: Moved from ../.
7775         * modules/crypto/gc-des: Moved from ../.
7776         * modules/crypto/gc-des-tests: Moved from ../.
7777         * modules/crypto/gc-hmac-md5: Moved from ../.
7778         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
7779         * modules/crypto/gc-hmac-sha1: Moved from ../.
7780         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
7781         * modules/crypto/gc-md2: Moved from ../.
7782         * modules/crypto/gc-md2-tests: Moved from ../.
7783         * modules/crypto/gc-md4: Moved from ../.
7784         * modules/crypto/gc-md4-tests: Moved from ../.
7785         * modules/crypto/gc-md5: Moved from ../.
7786         * modules/crypto/gc-md5-tests: Moved from ../.
7787         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
7788         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
7789         * modules/crypto/gc-random: Moved from ../.
7790         * modules/crypto/gc-rijndael: Moved from ../.
7791         * modules/crypto/gc-rijndael-tests: Moved from ../.
7792         * modules/crypto/gc-sha1: Moved from ../.
7793         * modules/crypto/gc-sha1-tests: Moved from ../.
7794         * modules/crypto/gc-tests: Moved from ../.
7795         * modules/crypto/hmac-md5: Moved from ../.
7796         * modules/crypto/hmac-md5-tests: Moved from ../.
7797         * modules/crypto/hmac-sha1: Moved from ../.
7798         * modules/crypto/hmac-sha1-tests: Moved from ../.
7799         * modules/crypto/md2: Moved from ../.
7800         * modules/crypto/md2-tests: Moved from ../.
7801         * modules/crypto/md4: Moved from ../.
7802         * modules/crypto/md4-tests: Moved from ../.
7803         * modules/crypto/md5: Moved from ../.
7804         * modules/crypto/md5-tests: Moved from ../.
7805         * modules/crypto/memxor: Moved from ../.
7806         * modules/crypto/rijndael: Moved from ../.
7807         * modules/crypto/rijndael-tests: Moved from ../.
7808         * modules/crypto/sha1: Moved from ../.
7809
7810 2007-03-30  James Youngman  <jay@gnu.org>
7811
7812         * tests/test-stat-time.c (prepare_test): use chmod() rather than
7813         rename() to change the ctime of a file (because ctime is unaffected
7814         by rename on jfs2 on AIX 5.1).
7815         (main): Start by doing cleanup, in case a previous run failed leaving
7816         test files behind.
7817
7818 2007-03-31  Bruno Haible  <bruno@clisp.org>
7819
7820         Support old proprietary implementations of iconv.
7821         * modules/iconv_open: New file.
7822         * lib/iconv_.h: New file.
7823         * m4/iconv_h.m4: New file.
7824         * lib/iconv_open.c: New file.
7825         * lib/iconv_open-aix.gperf: New file.
7826         * lib/iconv_open-hpux.gperf: New file.
7827         * lib/iconv_open-irix.gperf: New file.
7828         * lib/iconv_open-osf.gperf: New file.
7829         * m4/iconv_open.m4: New file.
7830         * modules/linebreak (Depends-on): Add iconv_open.
7831         * modules/striconv (Depends-on): Likewise.
7832         * modules/striconveh (Depends-on): Likewise.
7833         * modules/unicodeio (Depends-on): Likewise.
7834         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
7835         (iconv_t)(-1).
7836         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
7837         conversion if cd is (iconv_t)(-1).
7838         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
7839         is not possible.
7840
7841 2007-03-31  Bruno Haible  <bruno@clisp.org>
7842
7843         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
7844         work on Solaris either. Protect also second use of "autodetect_jp".
7845
7846 2007-03-31  Bruno Haible  <bruno@clisp.org>
7847
7848         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
7849         the function is not present.
7850
7851 2007-03-31  Bruno Haible  <bruno@clisp.org>
7852
7853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
7854         the function is not present.
7855
7856 2007-03-31  Bruno Haible  <bruno@clisp.org>
7857
7858         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
7859         a bug in HP-UX iconv_open().
7860
7861 2007-03-31  Bruno Haible  <bruno@clisp.org>
7862
7863         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
7864         (Mathematics <math.h>): New section, add fpieee.
7865         (Input/output <stdio.h>): Add fseterr.
7866         (Mathematics <math.h>): New section, add printf-frexp.
7867         (Container data structures): Add sublist.
7868         (Core language properties): Add fpucw, inline.
7869         (Functions for greatest-width integer types <inttypes.h>): Add
7870         imaxabs, imaxdiv, inttypes.
7871         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
7872         isnanl-nolibm, ldexp.
7873         (Mathematics <math.h>): New section, add printf-frexpl.
7874         (Support for systems lacking POSIX:2001): Add fprintf-posix,
7875         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
7876         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
7877         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
7878         (Unicode string functions): Add unistr/u*-mbtoucr.
7879         (Java): Add javacomp-script, javaexec-script.
7880         (C#): Add csharpcomp-script, csharpexec-script.
7881         (Support for building libraries and executables): Add havelib,
7882         relocatable-*.
7883         (Support for maintaining and releasing projects): Renamed from
7884         'Support for maintaining and release projects'. Add announce-gen.
7885
7886 2007-03-31  Bruno Haible  <bruno@clisp.org>
7887
7888         * README: Talk primarily about git.
7889         (git and CVS): Renamed from CVS.
7890         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
7891         gnulib is available through git.
7892         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
7893
7894 2007-03-30  Bruno Haible  <bruno@clisp.org>
7895
7896         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
7897         * lib/poll_.h: Likewise.
7898         * lib/stat_.h: Likewise.
7899         * lib/sys_time_.h: Likewise.
7900         * lib/sysexit_.h: Likewise.
7901         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
7902         * lib/stdbool_.h: Likewise.
7903         * lib/byteswap_.h: Add double-inclusion guard.
7904
7905 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
7906
7907         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
7908
7909 2007-03-30  Karl Berry  <karl@gnu.org>
7910
7911         * config/srclist-update: double space after USA in the license
7912         substitution, since that's how it's usually (?) written.
7913
7914 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
7915
7916         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
7917         reported by Bruno Haible.
7918
7919 2007-03-29  Bruno Haible  <bruno@clisp.org>
7920
7921         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
7922         a bug in AIX iconv().
7923
7924 2007-03-29  Bruno Haible  <bruno@clisp.org>
7925
7926         * modules/ldexpl-tests: New file.
7927         * tests/test-ldexpl.c: New file.
7928
7929 2007-03-29  Bruno Haible  <bruno@clisp.org>
7930
7931         * lib/ldexpl.c: Include fpucw.h.
7932         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
7933         multiplication.
7934         * modules/ldexpl (Depends-on): Add fpucw.
7935
7936 2007-03-29  Bruno Haible  <bruno@clisp.org>
7937
7938         * modules/ldexpl: New file.
7939         * m4/ldexpl.m4: New file.
7940         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
7941         set.
7942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
7943         REPLACE_LDEXPL.
7944         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
7945         REPLACE_LDEXPL.
7946         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
7947         gl_FUNC_LDEXPL_WORKS.
7948         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
7949         * modules/mathl (Files): Remove lib/ldexpl.c.
7950         (Depends-on): Add ldexpl.
7951
7952 2007-03-29  Bruno Haible  <bruno@clisp.org>
7953
7954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
7955
7956 2007-03-29  Bruno Haible  <bruno@clisp.org>
7957
7958         * tests/test-striconveh.c (main): Don't assume that a direct conversion
7959         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
7960         and possibly also HP-UX.
7961         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
7962         work on AIX, IRIX, HP-UX, OSF/1.
7963         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
7964         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
7965         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
7966         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
7967         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
7968         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
7969
7970 2007-03-29  Bruno Haible  <bruno@clisp.org>
7971
7972         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
7973
7974 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
7977         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
7978
7979 2007-03-29  Eric Blake  <ebb9@byu.net>
7980
7981         * lib/acl-internal.h: Remove redundant include.
7982         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
7983         Cygwin when a file is locked.
7984
7985 2007-03-29  Bruno Haible  <bruno@clisp.org>
7986
7987         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
7988         file.
7989         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
7990
7991 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
7992
7993         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
7994         try to remove a parent directory if the child couldn't be removed
7995         (except for the first rmdir, which could fail because the child
7996         doesn't exist).  Problem reported by Jeff Blaine in
7997         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
7998
7999 2007-03-28  Bruno Haible  <bruno@clisp.org>
8000
8001         * lib/striconveh.c (utf8conv_carefully): New function.
8002         (mem_cd_iconveh_internal): Invoke it.
8003
8004 2007-03-28  Bruno Haible  <bruno@clisp.org>
8005
8006         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
8007         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
8008         input.
8009         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
8010         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
8011         unistr/u8-uctomb.
8012
8013 2007-03-28  Bruno Haible  <bruno@clisp.org>
8014
8015         * modules/unistr/u8-mbtoucr: New file.
8016         * lib/unistr/u8-mbtoucr.c: New file.
8017         * modules/unistr/u16-mbtoucr: New file.
8018         * lib/unistr/u16-mbtoucr.c: New file.
8019         * modules/unistr/u16-mbtoucr: New file.
8020         * lib/unistr/u16-mbtoucr.c: New file.
8021         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
8022
8023 2007-03-27  Simon Josefsson  <simon@josefsson.org>
8024             Bruno Haible  <bruno@clisp.org>
8025
8026         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
8027         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
8028         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
8029
8030         * m4/stdio_h.m4: Add stubs for vasprintf too.
8031
8032         * modules/stdio: Support vasprintf in sed command.
8033
8034         * modules/vasprintf: Depend on stdio for prototypes.  Remove
8035         vasprintf.h.  Add stdio module indicator.
8036
8037         * lib/stdio_.h: Declare asprintf and vasprintf, based on
8038         vasprintf.h.
8039
8040         * lib/vasprintf.h: File removed.
8041
8042         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
8043         * lib/vasprintf.c: Ditto.
8044         * lib/xvasprintf.c: Ditto.
8045         * tests/test-vasprintf-posix.c: Ditto.
8046         * tests/test-vasprintf.c: Ditto.
8047
8048 2007-03-27  Bruno Haible  <bruno@clisp.org>
8049
8050         Make vasnprintf multithread-safe.
8051         * lib/vasnprintf.c (decimal_point_char): New function.
8052         (VASNPRINTF): Use it.
8053         Suggested by Simon Josefsson.
8054
8055 2007-03-27  Eric Blake  <ebb9@byu.net>
8056
8057         Support sub-second birthtime on cygwin.
8058         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
8059         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
8060         (get_stat_birthtime): Also work with st_birthtim.
8061
8062 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
8063
8064         * lib/stat-time.h (USE_BIRTHTIME): Remove.
8065         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
8066         (get_stat_birthtime_ns): Do not try to use "spare" fields.
8067         (get_stat_birthtime_ns): Simplify compile-time tests.
8068         (get_stat_birthtime): Change the API to look like
8069         get_stat_mtime etc., except return a negative tv_nsec on error.
8070         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
8071         Don't check for "spare" fields.
8072         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
8073         or for struct stat.st_birthtime, as these tests aren't used.
8074         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
8075
8076 2007-03-27  Bruno Haible  <bruno@clisp.org>
8077
8078         * lib/stat-time.h: Include <sys/stat.h>.
8079
8080 2007-03-27  James Youngman  <jay@gnu.org>
8081
8082         * lib/stat-time.h (get_stat_birthtime): New function for
8083           retrieving st_birthtime as provided by UFS2 (hence *BSD).
8084         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
8085           and its variants.
8086         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
8087         * modules/stat-time-test: New file.
8088         * tests/test-stat-time.c: New test, devised by Bruno Haible.
8089
8090 2007-03-26  Bruno Haible  <bruno@clisp.org>
8091
8092         Better support of signalling NaNs.
8093         * lib/atanl.c: Include isnanl.h.
8094         (atanl): Perform test for NaN at the beginning of the function and
8095         through a call to isnanl.
8096         * lib/cosl.c: Include isnanl.h.
8097         (cosl): Perform test for NaN at the beginning of the function and
8098         through a call to isnanl.
8099         * lib/ldexpl.c: Include isnanl.h.
8100         (ldexpl): Perform test for NaN through a call to isnanl.
8101         * lib/logl.c: Include isnanl.h.
8102         (logl): Perform test for NaN at the beginning of the function and
8103         through a call to isnanl.
8104         * lib/sinl.c: Include isnanl.h.
8105         (sinl): Perform test for NaN at the beginning of the function and
8106         through a call to isnanl.
8107         * lib/sqrtl.c: Include isnanl.h.
8108         (sqrtl): Perform test for NaN at the beginning of the function and
8109         through a call to isnanl.
8110         * lib/tanl.c: Include isnanl.h.
8111         (tanl): Perform test for NaN at the beginning of the function and
8112         through a call to isnanl.
8113         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
8114         * modules/mathl (Depends-on): Add isnanl.
8115
8116 2007-03-26  Eric Blake  <ebb9@byu.net>
8117
8118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
8119         regression in logic sense of previous patch.
8120
8121 2007-03-26  Bruno Haible  <bruno@clisp.org>
8122
8123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
8124         unportable shell command "if ! ...".
8125         Reported by Ralf Wildenhues.
8126
8127 2007-03-25  Bruno Haible  <bruno@clisp.org>
8128
8129         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
8130         <sysexits.h> file, and only add EX_CONFIG.
8131         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
8132         absolute file name and whether it is sufficient. Substitute also
8133         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
8134         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
8135         ABSOLUTE_SYSEXITS_H into sysexits.h.
8136
8137 2007-03-25  Bruno Haible  <bruno@clisp.org>
8138
8139         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
8140         hints is NULL.
8141
8142 2007-03-25  Bruno Haible  <bruno@clisp.org>
8143
8144         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
8145         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8146
8147 2007-03-25  Bruno Haible  <bruno@clisp.org>
8148
8149         * lib/vasnprintf.c: Include langinfo.h.
8150         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
8151         multithread-safe.
8152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
8153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
8154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
8160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8161         Reported by Simon Josefsson.
8162
8163 2007-03-25  Bruno Haible  <bruno@clisp.org>
8164
8165         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
8166         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
8167         * modules/vasnprintf (Depends-on): Add stdint.
8168
8169 2007-03-25  Bruno Haible  <bruno@clisp.org>
8170
8171         * modules/fpieee: New file.
8172         * m4/fpieee.m4: New file.
8173         * modules/isnan-nolibm (Depends-on): Add fpieee.
8174         * modules/isnanl-nolibm (Depends-on): Add fpieee.
8175         * modules/isnanl (Depends-on): Add fpieee.
8176
8177 2007-03-25  Bruno Haible  <bruno@clisp.org>
8178
8179         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
8180
8181 2007-03-25  Bruno Haible  <bruno@clisp.org>
8182
8183         Avoid test failures on IRIX 6.5.
8184         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
8185         (main): Use it.
8186         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
8187         macros.
8188         (main): Use them.
8189
8190 2007-03-25  Bruno Haible  <bruno@clisp.org>
8191
8192         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
8193         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
8194         exists but doesn't work.
8195         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
8196         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
8197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
8198         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
8199
8200 2007-03-25  Bruno Haible  <bruno@clisp.org>
8201
8202         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
8203         returns inf. Needed on IRIX 6.5.
8204
8205 2007-03-25  Bruno Haible  <bruno@clisp.org>
8206
8207         * tests/test-frexpl.c: Include isnanl-nolibm.h.
8208         (main): Use isnanl instead of x != x idiom.
8209         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
8210
8211         * tests/test-frexp.c: Include isnan.h.
8212         (main): Use isnan instead of x != x idiom.
8213         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
8214
8215 2007-03-25  Bruno Haible  <bruno@clisp.org>
8216
8217         * tests/test-frexp.c (NaN): New function/macro.
8218         (main): Use it instead of 0.0 / 0.0.
8219         * tests/test-isnan.c (NaN): New function/macro.
8220         (main): Use it instead of 0.0 / 0.0.
8221         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
8222         (test_function): Use it instead of 0.0 / 0.0.
8223         * tests/test-vasprintf-posix.c (NaN): New function/macro.
8224         (test_function): Use it instead of 0.0 / 0.0.
8225         * tests/test-snprintf-posix.h (NaN): New function/macro.
8226         (test_function): Use it instead of 0.0 / 0.0.
8227         * tests/test-sprintf-posix.h (NaN): New function/macro.
8228         (test_function): Use it instead of 0.0 / 0.0.
8229         * tests/test-fprintf-posix.h (NaN): New function/macro.
8230         (test_function): Use it instead of 0.0 / 0.0.
8231         * tests/test-printf-posix.h (NaN): New function/macro.
8232         (test_function): Use it instead of 0.0 / 0.0.
8233
8234         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
8235
8236 2007-03-25  Bruno Haible  <bruno@clisp.org>
8237
8238         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
8239
8240 2007-03-25  Bruno Haible  <bruno@clisp.org>
8241
8242         * lib/regexec.c (merge_state_with_log): Make static.
8243
8244 2007-03-25  Bruno Haible  <bruno@clisp.org>
8245
8246         * lib/trigl.c (kernel_rem_pio2): Make static.
8247
8248 2007-03-25  Bruno Haible  <bruno@clisp.org>
8249
8250         * lib/sincosl.c (sincosl_table): Make static.
8251
8252 2007-03-25  Bruno Haible  <bruno@clisp.org>
8253
8254         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
8255         if the compiler does not support C99.
8256
8257 2007-03-25  Bruno Haible  <bruno@clisp.org>
8258
8259         * modules/time (Makefile.am): Ensure all rule action lines start with a
8260         tab.
8261
8262 2007-03-24  Bruno Haible  <bruno@clisp.org>
8263
8264         * modules/tsearch-tests: New file.
8265         * tests/test-tsearch.sh: New file.
8266         * tests/test-tsearch.c: New file, mostly copied from glibc.
8267
8268         * modules/search-tests: New file.
8269         * tests/test-search.c: New file.
8270
8271         * modules/search: New file.
8272         * lib/search_.h: New file, incorporating lib/tsearch.h.
8273         * m4/search_h.m4: New file.
8274         * lib/tsearch.h: Remove file.
8275         * lib/tsearch.c: Include search.h instead of tsearch.h.
8276         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
8277         HAVE_TSEARCH.
8278         * modules/tsearch (Files): Remove lib/tsearch.h.
8279         (Depends-on): Add search.
8280         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
8281         (Include): Change tsearch.h into search.h.
8282
8283 2007-03-24  Bruno Haible  <bruno@clisp.org>
8284
8285         * modules/fpucw: New file.
8286         * lib/fpucw.h: New file.
8287         * lib/frexp.c: Include fpucw.h.
8288         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
8289         (FUNC): Use them.
8290         * lib/printf-frexp.c: Include fpucw.h.
8291         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
8292         (FUNC): Use them.
8293         * lib/vasnprintf.c: Include fpucw.h.
8294         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
8295         'long double' calculations.
8296         * tests/test-frexpl.c: Include fpucw.h.
8297         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
8298         * tests/test-printf-frexpl.c: Include fpucw.h.
8299         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
8300         * modules/frexpl (Depends-on): Add fpucw.
8301         * modules/printf-frexpl (Depends-on): Likewise.
8302         * modules/fprintf-posix (Depends-on): Likewise.
8303         * modules/snprintf-posix (Depends-on): Likewise.
8304         * modules/sprintf-posix (Depends-on): Likewise.
8305         * modules/vasnprintf-posix (Depends-on): Likewise.
8306         * modules/vasprintf-posix (Depends-on): Likewise.
8307         * modules/vfprintf-posix (Depends-on): Likewise.
8308         * modules/vsnprintf-posix (Depends-on): Likewise.
8309         * modules/vsprintf-posix (Depends-on): Likewise.
8310         * modules/frexpl-tests (Depends-on): Likewise.
8311         * modules/printf-frexpl-tests (Depends-on): Likewise.
8312
8313 2007-03-24  Bruno Haible  <bruno@clisp.org>
8314
8315         * lib/float+.h: New file.
8316         * lib/isnan.c: Include float+.h.
8317         (SIZE): New macro.
8318         (FUNC): Compare only SIZE bytes of the value.
8319         * lib/vasnprintf.c: Include float+.h.
8320         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
8321         SIZEOF_LDBL or SIZEOF_DBL bytes.
8322         * modules/isnan-nolibm (Files): Add lib/float+.h.
8323         * modules/isnanl-nolibm (Files): Add lib/float+.h.
8324         * modules/isnanl (Files): Add lib/float+.h.
8325         * modules/vasnprintf (Files): Add lib/float+.h.
8326
8327 2007-03-24  Bruno Haible  <bruno@clisp.org>
8328
8329         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
8330         include isnanl-nolibm.h.
8331
8332 2007-03-24  Bruno Haible  <bruno@clisp.org>
8333
8334         * tests/test-read-file.c (main): Don't produce spurious output for
8335         expected situations. Make the test fail if it encountered unexpected
8336         results.
8337
8338 2007-03-24  Bruno Haible  <bruno@clisp.org>
8339
8340         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
8341         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
8342
8343 2007-03-24  Bruno Haible  <bruno@clisp.org>
8344
8345         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
8346
8347 2007-03-24  Bruno Haible  <bruno@clisp.org>
8348
8349         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
8350         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
8351
8352         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
8353         * modules/utf8-ucs4: Turn into a symbolic link to module
8354         unistr/u8-mbtouc.
8355
8356         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
8357         utf8-ucs4-unsafe.
8358         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
8359         unistr/u8-mbtouc-unsafe.
8360
8361         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
8362         * modules/utf16-ucs4: Turn into a symbolic link to module
8363         unistr/u16-mbtouc.
8364
8365         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
8366         utf16-ucs4-unsafe.
8367         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
8368         unistr/u16-mbtouc-unsafe.
8369
8370         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
8371         * modules/ucs4-utf8: Turn into a symbolic link to module
8372         unistr/u8-ubtomb.
8373
8374         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
8375         * modules/ucs4-utf16: Turn into a symbolic link to module
8376         unistr/u16-ubtomb.
8377
8378 2007-03-24  Bruno Haible  <bruno@clisp.org>
8379
8380         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
8381         Enable the function only if HAVE_INLINE.
8382         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
8383         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
8384         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
8385         Enable the function only if HAVE_INLINE.
8386         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
8387         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
8388         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
8389         Enable the function only if HAVE_INLINE.
8390         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
8391         Enable the function only if HAVE_INLINE.
8392         * modules/utf8-ucs4: Update.
8393         * modules/utf8-ucs4-unsafe: Update.
8394         * modules/utf16-ucs4: Update.
8395         * modules/utf16-ucs4-unsafe: Update.
8396         * modules/ucs4-utf8: Update.
8397         * modules/ucs4-utf16: Update.
8398
8399 2007-03-24  Bruno Haible  <bruno@clisp.org>
8400
8401         * lib/utf8-ucs4.h: Remove file.
8402         * lib/utf8-ucs4-unsafe.h: Remove file.
8403         * lib/utf16-ucs4.h: Remove file.
8404         * lib/utf16-ucs4-unsafe.h: Remove file.
8405         * lib/ucs4-utf8.h: Remove file.
8406         * lib/ucs4-utf16.h: Remove file.
8407         * lib/unistr.h: Include their previous contents.
8408         * m4/utf-ucs4.m4: Remove file.
8409         * m4/ucs4-utf.m4: Remove file.
8410         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
8411         (Depends-on): Add unistr/base.
8412         (configure.ac): Remove gl_UTF_UCS4.
8413         (Makefile.am): Update.
8414         (Include): Change to unistr.h.
8415         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
8416         (Depends-on): Add unistr/base.
8417         (configure.ac): Remove gl_UTF_UCS4.
8418         (Makefile.am): Update.
8419         (Include): Change to unistr.h.
8420         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
8421         (Depends-on): Add unistr/base.
8422         (configure.ac): Remove gl_UTF_UCS4.
8423         (Makefile.am): Update.
8424         (Include): Change to unistr.h.
8425         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
8426         (Depends-on): Add unistr/base.
8427         (configure.ac): Remove gl_UTF_UCS4.
8428         (Makefile.am): Update.
8429         (Include): Change to unistr.h.
8430         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
8431         (Depends-on): Add unistr/base.
8432         (configure.ac): Remove gl_UCS4_UTF.
8433         (Makefile.am): Update.
8434         (Include): Change to unistr.h.
8435         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
8436         (Depends-on): Add unistr/base.
8437         (configure.ac): Remove gl_UCS4_UTF.
8438         (Makefile.am): Update.
8439         (Include): Change to unistr.h.
8440         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
8441         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
8442         utf8-ucs4-unsafe.h.
8443         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
8444         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
8445         utf16-ucs4-unsafe.h.
8446         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
8447         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
8448         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
8449         * lib/unistr/u8-strchr.c: Likewise.
8450         * lib/unistr/u8-strrchr.c: Likewise.
8451         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
8452         * lib/unistr/u16-strchr.c: Likewise.
8453         * lib/unistr/u16-strrchr.c: Likewise.
8454         * lib/striconveh.c: Update.
8455         * lib/linebreak.c: Update.
8456
8457 2007-03-24  Bruno Haible  <bruno@clisp.org>
8458
8459         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
8460         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
8461
8462 2007-03-22  Bruno Haible  <bruno@clisp.org>
8463
8464         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
8465
8466 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
8467
8468         * MODULES.html.sh (File system functions): New module write-any-file.
8469         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
8470         * m4/write-any-file.m4: New files.
8471
8472 2007-03-23  Eric Blake  <ebb9@byu.net>
8473
8474         * gnulib-tool: Rearrange space-tab sequences, since some editors
8475         like to eat them.
8476
8477 2007-03-23  Eric Blake  <ebb9@byu.net>
8478
8479         * lib/version-etc.c (version_etc_va): Update license wording to
8480         be more concise.  Recommended by Richard Stallman.
8481
8482 2007-03-22  Bruno Haible  <bruno@clisp.org>
8483
8484         * lib/poll.c (MSG_PEEK): New fallback definition.
8485
8486 2007-03-22  Bruno Haible  <bruno@clisp.org>
8487
8488         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
8489         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
8490         (main): Update.
8491         Fixes a compilation error on BeOS.
8492
8493 2007-03-22  Bruno Haible  <bruno@clisp.org>
8494
8495         * modules/frexpl-tests: New file.
8496         * tests/test-frexpl.c: New file.
8497
8498         * modules/frexpl: New file.
8499         * m4/frexpl.m4: New file.
8500         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
8501         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
8502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
8503         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
8504         (Depends-on): Add frexpl. Remove isnanl-nolibm.
8505         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
8506
8507 2007-03-22  Bruno Haible  <bruno@clisp.org>
8508
8509         * lib/frexpl.c: Share code with lib/frexp.c.
8510         * modules/mathl (Files): Add lib/frexp.c.
8511         (Depends-on): Add isnanl-nolibm.
8512
8513 2007-03-22  Bruno Haible  <bruno@clisp.org>
8514
8515         * modules/printf-frexp (Files): Add m4/frexp.m4.
8516         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
8517         only if the found frexp function actually works.
8518
8519 2007-03-22  Bruno Haible  <bruno@clisp.org>
8520
8521         * lib/frexp.c: Remove older implementation that uses divisions.
8522
8523 2007-03-21  Bruno Haible  <bruno@clisp.org>
8524
8525         * modules/frexp-tests: New file.
8526         * tests/test-frexp.c: New file.
8527
8528         * modules/frexp: New file.
8529         * lib/frexp.c: New file.
8530         * m4/frexp.m4: New file.
8531         * lib/math_.h (frexp): New declaration.
8532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
8533         REPLACE_FREXP.
8534         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
8535
8536 2007-03-21  Bruno Haible  <bruno@clisp.org>
8537
8538         * modules/isnanl-tests: New file.
8539         * tests/test-isnanl.c: New file.
8540
8541         * modules/isnanl: New file.
8542         * lib/isnanl.h: New file.
8543         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
8544         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
8545         gl_FUNC_ISNANL_WORKS.
8546         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
8547         New macros.
8548
8549 2007-03-21  Bruno Haible  <bruno@clisp.org>
8550
8551         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
8552         lib/isnanl.h.
8553         (Include): Update.
8554         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
8555         * lib/vasnprintf.c: Update.
8556         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
8557         tests/test-isnanl.h, remove tests/test-isnanl.c.
8558         (Makefile.am): Update.
8559         * tests/test-isnanl-nolibm.c: New file.
8560         * tests/test-isnanl.h: New file.
8561         * tests/test-isnanl.c: Remove file.
8562
8563 2007-03-21  Jim Meyering  <jim@meyering.net>
8564
8565         When trying to open ".", treat ESTALE like EACCES.
8566         * lib/savewd.c (savewd_save): Resort to forking not just upon
8567         failure with EACCES, but also when errno is ESTALE.
8568
8569 2007-03-20  Bruno Haible  <bruno@clisp.org>
8570
8571         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
8572         Needed on AIX 5.1. Reported by Matthew Woehlke.
8573
8574 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         Suggestions by Bruno Haible:
8577         * lib/acl-internal.h: Include "gettext.h" rather than rolling
8578         our own.
8579         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
8580         * modules/acl (Depends-on): Add gettext.
8581
8582 2007-03-19  Bruno Haible  <bruno@clisp.org>
8583
8584         * modules/iconvme: Remove file.
8585         * lib/iconvme.h: Remove file.
8586         * lib/iconvme.c: Remove file.
8587         * m4/iconvme.m4: Remove file.
8588
8589 2007-03-19  Bruno Haible  <bruno@clisp.org>
8590
8591         * doc/relocatable-maint.texi: Break long shell script line.
8592         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
8593
8594 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8595
8596         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
8597         handle file_has_acl.
8598         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
8599         * lib/acl.c: Move header inclusions and related macro defns into
8600         lib/acl-internal.h.
8601         (S_ISLNK): Remove defn, since that's now done for us.
8602         (file_has_acl): Move to lib/file-has-acl.c.
8603         Call acl_trivial if available.  This is the crucial part of the fix.
8604         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
8605         shared within the library.  Rewrite a bit, partly to make it compatible
8606         with the GNU coding style.
8607         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
8608         Remove unnecessary double-quotes.
8609         Don't test for acl_to_text; the build will catch that.
8610         Replace acl_entries if it doesn't exist and it is needed.
8611         Check for -lsec and acl_trivial (as used on Solaris 10).
8612         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
8613         lib/file-has-acl.c.
8614         (Depends-on): Add sys_stat, for S_ISLNK.
8615
8616 2007-03-19  Ben Pfaff  <blp@gnu.org>
8617
8618         * doc/gnulib.texi: Fix typos.
8619         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
8620
8621 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8622
8623         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
8624         If size is zero here, buf must be zero.
8625
8626 2007-03-19  Simon Josefsson  <simon@josefsson.org>
8627
8628         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
8629         <bruno@clisp.org>.
8630
8631 2007-03-18  Bruno Haible  <bruno@clisp.org>
8632
8633         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
8634         Suggested by Eric Blake.
8635
8636 2007-03-18  Ben Pfaff  <blp@gnu.org>
8637
8638         * doc/relocatable.texi: Recommend using as prefix a directory
8639         that does not exist and will never be created.  Based on
8640         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
8641         and others.
8642
8643 2007-03-17  Bruno Haible  <bruno@clisp.org>
8644
8645         * lib/fchownat.c: Include lchown.h.
8646
8647 2007-03-17  Bruno Haible  <bruno@clisp.org>
8648
8649         Fix endless loop when the given allocated size was > INT_MAX.
8650         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
8651         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
8652         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
8653         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
8654         * lib/sprintf.c (sprintf): Likewise.
8655
8656 2007-03-17  Bruno Haible  <bruno@clisp.org>
8657
8658         * tests/test-argp-2.sh (func_compare): Output a context diff.
8659
8660 2007-03-17  Bruno Haible  <bruno@clisp.org>
8661
8662         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
8663         locale's decimal-point character.
8664
8665 2007-03-17  Bruno Haible  <bruno@clisp.org>
8666
8667         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
8668         before comparing it. Needed because on some platforms (e.g. x86) a
8669         'long double' occupies less bytes than sizeof (long double).
8670
8671 2007-03-17  Bruno Haible  <bruno@clisp.org>
8672
8673         * tests/test-crc.c (main): Make printf statements 64-bit clean.
8674         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
8675         * tests/test-getaddrinfo.c (simple): Likewise.
8676         * tests/test-read-file.c (main): Likewise.
8677
8678 2007-03-17  Bruno Haible  <bruno@clisp.org>
8679
8680         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
8681
8682 2007-03-17  Bruno Haible  <bruno@clisp.org>
8683
8684         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
8685         unused variable.
8686
8687 2007-03-17  Bruno Haible  <bruno@clisp.org>
8688
8689         * tests/test-c-strcasecmp.c: Include c-strcase.h.
8690         * tests/test-c-strncasecmp.c: Likewise.
8691
8692 2007-03-17  Bruno Haible  <bruno@clisp.org>
8693
8694         * modules/stdlib (Depends-on): Add unistd.
8695         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
8696         Needed for MacOS X 10.3.
8697
8698 2007-03-17  Bruno Haible  <bruno@clisp.org>
8699
8700         * lib/unistr/u-strdup.h: Include <stdlib.h>.
8701
8702 2007-03-17  Bruno Haible  <bruno@clisp.org>
8703
8704         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
8705
8706 2007-03-17  Bruno Haible  <bruno@clisp.org>
8707
8708         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
8709         to reflect files copied from gnulib (with or without modifications).
8710         Suggested by Jim Meyering.
8711
8712 2007-03-17  Eric Blake  <ebb9@byu.net>
8713
8714         * NEWS: Document stdlib change from 2007-02-18.
8715
8716 2007-03-17  Jim Meyering  <jim@meyering.net>
8717
8718         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
8719         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
8720         someone uses a name containing shell meta-characters.
8721         Reported by Alfred M. Szmidt.
8722
8723         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
8724
8725 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
8726
8727         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
8728         and copy gettext configuration files only if configure.ac contains
8729         a use of AM_GNU_GETTEXT_VERSION.
8730
8731 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
8732
8733         * build-aux/bootstrap (gnulib_name): New variable.
8734         (gnulib_tool_options): Use it.
8735
8736 2007-03-13  Simon Josefsson  <simon@josefsson.org>
8737
8738         * tests/test-des.c: Use new namespace.
8739
8740 2007-03-15  Bruno Haible  <bruno@clisp.org>
8741
8742         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
8743         Reported by James Youngman <jay@gnu.org>.
8744
8745 2007-03-15  Bruno Haible  <bruno@clisp.org>
8746
8747         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
8748         declared prototype. Needed with cc on OSF/1 5.1.
8749
8750 2007-03-15  Bruno Haible  <bruno@clisp.org>
8751
8752         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
8753         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
8754         (struct gl_list_implementation): Add dispose_fn argument to the
8755         'create_empty', 'create' methods.
8756         (struct gl_list_impl_base): Add field 'dispose_fn'.
8757         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
8758         argument.
8759         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
8760         dispose_fn argument.
8761         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
8762         dispose_fn on the dropped values.
8763         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
8764         dispose_fn argument.
8765         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
8766         dropped values.
8767         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
8768         (gl_tree_remove_node): Call dispose_fn on the dropped value.
8769         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
8770         (gl_tree_remove_node): Call dispose_fn on the dropped value.
8771         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
8772         argument.
8773         (gl_tree_list_free): Call dispose_fn on the dropped values.
8774         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
8775         the dropped values.
8776         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8777         Add dispose_fn argument.
8778         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
8779         Call dispose_fn on the dropped values.
8780         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
8781         Add dispose_fn argument.
8782         (gl_sublist_create): Initialize the 'dispose_fn' field.
8783         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
8784         * tests/test-array_list.c (main): Update.
8785         * tests/test-carray_list.c (main): Update.
8786         * tests/test-avltree_list.c (main): Update.
8787         * tests/test-rbtree_list.c (main): Update.
8788         * tests/test-avltreehash_list.c (main): Update.
8789         * tests/test-rbtreehash_list.c (main): Update.
8790         * tests/test-linked_list.c (main): Update.
8791         * tests/test-linkedhash_list.c (main): Update.
8792         * tests/test-array_oset.c (main): Update.
8793
8794 2007-03-15  Bruno Haible  <bruno@clisp.org>
8795
8796         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
8797         (gl_oset_create_empty): Add dispose_fn argument.
8798         (struct gl_oset_implementation): Add dispose_fn argument to
8799         'create_empty' method.
8800         (struct gl_oset_impl_base): Add dispose_fn field.
8801         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
8802         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
8803         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
8804         values.
8805         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
8806         (gl_tree_oset_free): Call dispose_fn on the dropped values.
8807         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
8808         dropped value.
8809         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
8810         dropped value.
8811         * tests/test-array_oset.c (main): Update.
8812         * tests/test-avltree_oset.c (main): Update.
8813         * tests/test-rbtree_oset.c (main): Update.
8814         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
8815
8816 2007-03-13  Bruno Haible  <bruno@clisp.org>
8817
8818         * tests/test-stdbool.c (i): Update after last patch.
8819
8820 2007-03-12  Bruno Haible  <bruno@clisp.org>
8821
8822         * lib/quotearg.c: Include <wctype.h> early, before the definition of
8823         the iswprint macro. Needed on Solaris 2.5.1.
8824
8825 2007-03-12  Bruno Haible  <bruno@clisp.org>
8826
8827         * tests/test-printf-frexp.c (main): Declare x as volatile.
8828
8829 2007-03-12  Simon Josefsson  <simon@josefsson.org>
8830
8831         * doc/gnulib.texi (Build robot for gnulib): New section.
8832
8833 2007-03-12  Jim Meyering  <jim@meyering.net>
8834
8835         * build-aux/bootstrap: New file.
8836         * build-aux/bootstrap.conf: New file, from coreutils.
8837
8838 2007-03-11  Bruno Haible  <bruno@clisp.org>
8839
8840         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
8841
8842 2007-03-12  Simon Josefsson  <simon@josefsson.org>
8843
8844         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
8845         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
8846         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
8847
8848 2007-03-11  Bruno Haible  <bruno@clisp.org>
8849
8850         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
8851         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
8852
8853 2007-03-11  Bruno Haible  <bruno@clisp.org>
8854
8855         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
8856         formula. Needed for SunPRO C 5.0.
8857
8858 2007-03-11  Bruno Haible  <bruno@clisp.org>
8859
8860         * modules/long-options (Depends-on): Add getopt.
8861
8862 2007-03-11  Bruno Haible  <bruno@clisp.org>
8863
8864         * modules/modechange (Depends-on): Add stdbool.
8865
8866 2007-03-11  Bruno Haible  <bruno@clisp.org>
8867
8868         * modules/i-ring (Depends-on): Add stdbool.
8869
8870 2007-03-11  Bruno Haible  <bruno@clisp.org>
8871
8872         * modules/gc-des (Depends-on): Add stdbool.
8873
8874 2007-03-11  Bruno Haible  <bruno@clisp.org>
8875
8876         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
8877
8878 2007-03-11  Bruno Haible  <bruno@clisp.org>
8879
8880         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
8881
8882 2007-03-11  Bruno Haible  <bruno@clisp.org>
8883
8884         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
8885
8886 2007-03-11  Bruno Haible  <bruno@clisp.org>
8887
8888         * lib/vasnprintf.c (sprintf): Undefine.
8889
8890 2007-03-11  Bruno Haible  <bruno@clisp.org>
8891
8892         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
8893         initializers in SunPRO C and Compaq C compilers.
8894
8895 2007-03-11  Bruno Haible  <bruno@clisp.org>
8896
8897         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
8898         decrementing code ANSI C compliant.
8899
8900 2007-03-11  Bruno Haible  <bruno@clisp.org>
8901
8902         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
8903         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
8904
8905 2007-03-11  Bruno Haible  <bruno@clisp.org>
8906
8907         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
8908         <stdbool.h> substitute doesn't pass.
8909
8910 2007-03-11  Bruno Haible  <bruno@clisp.org>
8911
8912         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
8913
8914 2007-03-11  Bruno Haible  <bruno@clisp.org>
8915
8916         * gnulib-tool (func_create_megatestdir): Create also an autobuild
8917         script, for submission to autobuild.josefsson.org.
8918
8919 2007-03-10  Bruno Haible  <bruno@clisp.org>
8920
8921         * modules/canonicalize-lgpl-tests: New file.
8922         * tests/test-canonicalize-lgpl.sh: New file.
8923         * tests/test-canonicalize-lgpl.c: New file.
8924
8925         * modules/c-strcase-tests: New file.
8926         * tests/test-c-strcase.sh: New file.
8927         * tests/test-c-strcasecmp.c: New file.
8928         * tests/test-c-strncasecmp.c: New file.
8929
8930         * modules/atexit-tests: New file.
8931         * tests/test-atexit.sh: New file.
8932         * tests/test-atexit.c: New file.
8933
8934 2007-03-10  Bruno Haible  <bruno@clisp.org>
8935
8936         * tests/test-binary-io.sh: Use temporary filenames that are not so
8937         likely to clash with those of other tests (in a parallel make).
8938         * tests/test-binary-io.c: Likewise.
8939
8940 2007-03-10  Bruno Haible  <bruno@clisp.org>
8941
8942         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
8943         fallback; use #error instead.
8944         Suggested by Simon Josefsson.
8945
8946 2007-03-10  Bruno Haible  <bruno@clisp.org>
8947
8948         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
8949         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
8950         first and the last.
8951
8952 2007-03-10  Bruno Haible  <bruno@clisp.org>
8953
8954         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
8955
8956 2007-03-10  Bruno Haible  <bruno@clisp.org>
8957
8958         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
8959         "make distcheck".
8960         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
8961         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
8962         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
8963
8964 2007-03-10  Bruno Haible  <bruno@clisp.org>
8965
8966         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
8967         variable.
8968         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
8969         variable.
8970
8971 2007-03-09  Eric Blake  <ebb9@byu.net>
8972         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
8973
8974         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
8975         types are not being provided by gnulib.
8976         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
8977         types are supported.
8978
8979 2007-03-10  Bruno Haible  <bruno@clisp.org>
8980
8981         * lib/stdio_.h (__attribute__): New macro.
8982         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
8983         vsprintf): Specify __attribute__ __format__ for GCC.
8984         Suggested by Eric Blake.
8985
8986 2007-03-09  Bruno Haible  <bruno@clisp.org>
8987
8988         * modules/printf-posix-tests: New file.
8989         * tests/test-printf-posix.sh: New file.
8990         * tests/test-printf-posix.c: New file.
8991
8992         * modules/printf-posix: New file.
8993         * lib/printf.c: New file.
8994         * m4/printf-posix-rpl.m4: New file.
8995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
8996         REPLACE_PRINTF.
8997         * lib/stdio_.h (printf): New declaration.
8998         (format, __format__, ____printf____, ____scanf____, ____strftime____,
8999         ____strfmon____): New macros.
9000         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
9001         REPLACE_PRINTF.
9002
9003 2007-03-09  Bruno Haible  <bruno@clisp.org>
9004
9005         * tests/test-vasnprintf-posix2.sh: New file.
9006         * tests/test-vasnprintf-posix2.c: New file.
9007         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
9008         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
9009         (Makefile.am): Activate test-vasnprintf-posix2.sh.
9010
9011         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
9012         a locale dependent decimal point, rather than always '.'.
9013
9014 2007-03-09  Eric Blake  <ebb9@byu.net>
9015
9016         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
9017         spite of platforms like Tandem/NSK that define it to -1.
9018
9019 2007-03-08  Bruno Haible  <bruno@clisp.org>
9020
9021         * modules/vprintf-posix-tests: New file.
9022         * tests/test-vprintf-posix.sh: New file.
9023         * tests/test-vprintf-posix.c: New file.
9024         * tests/test-printf-posix.h: New file.
9025
9026         * modules/vprintf-posix: New file.
9027         * lib/vprintf.c: New file.
9028         * m4/vprintf-posix.m4: New file.
9029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
9030         REPLACE_VPRINTF.
9031         * lib/stdio_.h (vprintf): New declaration.
9032         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
9033         REPLACE_VPRINTF.
9034
9035 2007-03-08  Bruno Haible  <bruno@clisp.org>
9036
9037         * modules/fprintf-posix-tests: New file.
9038         * tests/test-fprintf-posix.sh: New file.
9039         * tests/test-fprintf-posix.c: New file.
9040
9041         * modules/fprintf-posix: New file.
9042         * lib/fprintf.c: New file.
9043         * m4/fprintf-posix.m4: New file.
9044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
9045         REPLACE_FPRINTF.
9046         * lib/stdio_.h (fprintf): New declaration.
9047         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
9048         REPLACE_FPRINTF.
9049
9050 2007-03-08  Bruno Haible  <bruno@clisp.org>
9051
9052         * modules/vfprintf-posix-tests: New file.
9053         * tests/test-vfprintf-posix.sh: New file.
9054         * tests/test-vfprintf-posix.c: New file.
9055         * tests/test-fprintf-posix.h: New file.
9056         * tests/test-fprintf-posix.out: New file.
9057
9058         * modules/vfprintf-posix: New file.
9059         * lib/vfprintf.c: New file.
9060         * m4/vfprintf-posix.m4: New file.
9061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
9062         REPLACE_VFPRINTF.
9063         * lib/stdio_.h (vfprintf): New declaration.
9064         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
9065         REPLACE_VFPRINTF.
9066
9067 2007-03-08  Bruno Haible  <bruno@clisp.org>
9068
9069         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
9070
9071 2007-03-08  Bruno Haible  <bruno@clisp.org>
9072
9073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
9074         instead of 'expr' invocations.
9075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9080         Suggested by Paul Eggert.
9081
9082 2007-03-08  Bruno Haible  <bruno@clisp.org>
9083
9084         * modules/fseterr-tests: New file.
9085         * tests/test-fseterr.c: New file.
9086
9087         * modules/fseterr: New file.
9088         * lib/fseterr.h: New file.
9089         * lib/fseterr.c: New file.
9090
9091 2007-03-08  Bruno Haible  <bruno@clisp.org>
9092
9093         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
9094         * lib/getopt_.h: Likewise.
9095         * lib/mbswidth.h: Likewise.
9096         * lib/setenv.h: Likewise.
9097         * lib/vasnprintf.h: Likewise.
9098         * lib/vasprintf.h: Likewise.
9099         * lib/verror.h: Likewise.
9100         * lib/xsetenv.h: Likewise.
9101         * lib/xvasprintf.h: Likewise.
9102
9103 2007-03-08  Jim Meyering  <jim@meyering.net>
9104
9105         * users.txt: Add parted.
9106
9107         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
9108
9109 2007-03-07  Bruno Haible  <bruno@clisp.org>
9110
9111         * m4/printf.m4: Make the shell script snippets copy&pastable.
9112
9113 2007-03-02  Bruno Haible  <bruno@clisp.org>
9114
9115         * lib/netinet_in_.h: New file.
9116         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
9117         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
9118         * modules/netinet_in (Files): Add lib/netinet_in_.h.
9119         (Depends-on): Add absolute-header.
9120         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
9121         into netinet/in.h.
9122
9123 2007-03-03  Bruno Haible  <bruno@clisp.org>
9124
9125         * lib/sys_select_.h: New file.
9126         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
9127         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
9128         * modules/sys_select (Files): Add lib/sys_select_.h.
9129         (Depends-on): Add absolute-header.
9130         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
9131         into sys/select.h.
9132
9133 2007-03-02  Bruno Haible  <bruno@clisp.org>
9134
9135         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
9136         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
9137         values.
9138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
9139         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
9140         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
9141         * modules/sys_socket (Depends-on): Add absolute-header.
9142         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
9143         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
9144         (Include): Remove requirement of inclusion of <sys/types.h>.
9145
9146 2007-03-02  Bruno Haible  <bruno@clisp.org>
9147
9148         * lib/byteswap_.h (bswap_32): Fix formula.
9149
9150 2007-03-06  Bruno Haible  <bruno@clisp.org>
9151
9152         * modules/sprintf-posix-tests: New file.
9153         * tests/test-sprintf-posix.c: New file.
9154
9155         * modules/sprintf-posix: New file.
9156         * lib/sprintf.c: New file.
9157         * m4/sprintf-posix.m4: New file.
9158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
9159         REPLACE_SPRINTF.
9160         * lib/stdio_.h (sprintf): New declaration.
9161         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
9162         REPLACE_SPRINTF.
9163
9164 2007-03-06  Bruno Haible  <bruno@clisp.org>
9165
9166         * modules/vsprintf-posix-tests: New file.
9167         * tests/test-vsprintf-posix.c: New file.
9168         * tests/test-sprintf-posix.h: New file.
9169
9170         * modules/vsprintf-posix: New file.
9171         * lib/vsprintf.c: New file.
9172         * m4/vsprintf-posix.m4: New file.
9173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
9174         REPLACE_VSPRINTF.
9175         * lib/stdio_.h (vsprintf): New declaration.
9176         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
9177         REPLACE_VSPRINTF.
9178
9179 2007-03-06  Bruno Haible  <bruno@clisp.org>
9180
9181         * modules/vsnprintf (Depend-on): Remove minmax.
9182
9183 2007-03-06  Bruno Haible  <bruno@clisp.org>
9184
9185         * modules/snprintf-posix-tests: New file.
9186         * tests/test-snprintf-posix.c: New file.
9187
9188         * modules/snprintf-posix: New file.
9189         * m4/snprintf-posix.m4: New file.
9190         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
9191         gl_FUNC_SNPRINTF.
9192         (gl_FUNC_SNPRINTF): Invoke it.
9193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
9194         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
9195         is set.
9196         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
9197
9198 2007-03-06  Bruno Haible  <bruno@clisp.org>
9199
9200         * modules/vsnprintf-posix-tests: New file.
9201         * tests/test-vsnprintf-posix.c: New file.
9202         * tests/test-snprintf-posix.h: New file.
9203
9204         * modules/vsnprintf-posix: New file.
9205         * m4/vsnprintf-posix.m4: New file.
9206         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
9207         gl_FUNC_VSNPRINTF.
9208         (gl_FUNC_VSNPRINTF): Invoke it.
9209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
9210         * lib/stdio_.h (vsnprintf): Define as a replacement if
9211         REPLACE_VSNPRINTF is set.
9212         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
9213
9214 2007-03-06  Bruno Haible  <bruno@clisp.org>
9215
9216         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
9217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
9218
9219 2007-03-06  Bruno Haible  <bruno@clisp.org>
9220
9221         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
9222         (asinl): Declare also if HAVE_DECL_ASINL is set.
9223         (atanl): Declare also if HAVE_DECL_ATANL is set.
9224         (ceill): Declare also if HAVE_DECL_CEILL is set.
9225         (cosl): Declare also if HAVE_DECL_COSL is set.
9226         (expl): Declare also if HAVE_DECL_EXPL is set.
9227         (floorl): Declare also if HAVE_DECL_FLOORL is set.
9228         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
9229         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
9230         (logl): Declare also if HAVE_DECL_LOGL is set.
9231         (sinl): Declare also if HAVE_DECL_SINL is set.
9232         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
9233         (tanl): Declare also if HAVE_DECL_TANL is set.
9234         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
9235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
9236         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
9237         declaration of frexpl, ldexpl.
9238         * modules/printf-frexpl (Depends-on): Add math.
9239         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
9240
9241 2007-03-05  Bruno Haible  <bruno@clisp.org>
9242
9243         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
9244         frexpl and ldexpl are declared.
9245         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
9246
9247 2007-03-05  Bruno Haible  <bruno@clisp.org>
9248
9249         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
9250         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
9251
9252 2007-03-05  Bruno Haible  <bruno@clisp.org>
9253
9254         * lib/stdio_.h: Include <stddef.h>.
9255
9256 2007-03-05  Bruno Haible  <bruno@clisp.org>
9257
9258         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
9259
9260 2007-03-05  Bruno Haible  <bruno@clisp.org>
9261
9262         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
9263         NetBSD 4, from Ralf Wildenhues.
9264
9265 2007-03-04  Bruno Haible  <bruno@clisp.org>
9266
9267         * lib/vasprintf.h: Update #if logic for the case when the functions
9268         exist but are overridden.
9269
9270 2007-03-04  Bruno Haible  <bruno@clisp.org>
9271
9272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
9273         implementations: glibc-2.4 and MacOS X 10.3.
9274         * tests/test-vasnprintf-posix.c (test_function): Test also the case
9275         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
9276         * tests/test-vasprintf-posix.c (test_function): Likewise.
9277
9278 2007-03-04  Bruno Haible  <bruno@clisp.org>
9279
9280         * modules/vasprintf-posix-tests: New file.
9281         * tests/test-vasprintf-posix.c: New file.
9282
9283         * modules/vasprintf-posix: New file.
9284         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
9285         defined.
9286         * m4/vasprintf-posix.m4: New file.
9287         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
9288         gl_FUNC_VASPRINTF.
9289         (gl_FUNC_VASPRINTF): Invoke it.
9290         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
9291         here.
9292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
9293
9294 2007-03-04  Bruno Haible  <bruno@clisp.org>
9295
9296         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
9297         REPLACE_GETTIMEOFDAY.
9298         * modules/sys_time (Makefile.am): Likewise.
9299         * m4/sys_time_h.m4: Likewise.
9300         * m4/gettimeofday.m4: Likewise.
9301
9302 2007-03-04  Bruno Haible  <bruno@clisp.org>
9303
9304         * modules/vasnprintf-posix-tests: New file.
9305         * tests/test-vasnprintf-posix.c: New file.
9306
9307         * modules/vasnprintf-posix: New file.
9308         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
9309         printf-frexpl.h.
9310         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
9311         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
9312         REPLACE_VASNPRINTF is defined.
9313         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
9314         gl_FUNC_VASNPRINTF.
9315         (gl_FUNC_VASNPRINTF): Invoke it.
9316         * m4/vasnprintf-posix.m4: New file.
9317         * m4/printf.m4: New file.
9318
9319 2007-03-04  Bruno Haible  <bruno@clisp.org>
9320
9321         Compile progreloc.c only if --enable-relocatable is specified.
9322         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
9323         if --enable-relocatable was specified.
9324         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
9325         lib_SOURCES.
9326
9327 2007-03-04  Jim Meyering  <jim@meyering.net>
9328
9329         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
9330         Use it consistently, rather than enumerating errno constants.
9331
9332 2007-03-04  Bruno Haible  <bruno@clisp.org>
9333
9334         * modules/xvasprintf-tests: New file.
9335         * tests/test-xvasprintf.c: New file.
9336
9337         * modules/vasprintf-tests: New file.
9338         * tests/test-vasprintf.c: New file.
9339
9340         * modules/vasnprintf-tests: New file.
9341         * tests/test-vasnprintf.c: New file.
9342
9343         * modules/vsnprintf-tests: New file.
9344         * tests/test-vsnprintf.c: New file.
9345
9346         * modules/snprintf-tests: New file.
9347         * tests/test-snprintf.c: New file.
9348
9349 2007-03-04  Bruno Haible  <bruno@clisp.org>
9350
9351         Compile relocatable.c only if --enable-relocatable is specified.
9352         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
9353         gl_RELOCATABLE_LIBRARY.
9354         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
9355         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
9356         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
9357         gl_RELOCATABLE_LIBRARY.
9358         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
9359         (Makefile.am): Remove lib_SOURCES.
9360         * modules/relocatable-lib-lgpl (configure.ac): Invoke
9361         gl_RELOCATABLE_LIBRARY.
9362         (Makefile.am): Remove lib_SOURCES.
9363         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
9364         always.
9365         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9366         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
9367
9368 2007-03-04  Bruno Haible  <bruno@clisp.org>
9369
9370         * modules/argmatch-tests: New file.
9371         * tests/test-argmatch.c: New file.
9372
9373         * tests/test-allocsa.c (main): Halve the number of loop runs.
9374
9375         * modules/alloca-opt-tests: New file.
9376         * tests/test-alloca-opt.c: New file.
9377
9378 2007-03-04  Jim Meyering  <jim@meyering.net>
9379
9380         Work around difference between Linux ACLs and Solaris 10 ZFS.
9381         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
9382         for EINVAL.
9383
9384 2007-03-03  Bruno Haible  <bruno@clisp.org>
9385
9386         * modules/relocatable-prog (Depends-on): Add back progreloc's
9387         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
9388
9389 2007-03-03  Bruno Haible  <bruno@clisp.org>
9390
9391         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
9392         * modules/relocatable-lib: New file.
9393
9394 2007-03-03  Bruno Haible  <bruno@clisp.org>
9395
9396         * modules/relocatable-prog: Renamed from modules/relocatable.
9397         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
9398
9399 2007-03-03  Bruno Haible  <bruno@clisp.org>
9400
9401         * modules/relocatable-script (Files): Add doc/relocatable.texi,
9402         m4/relocatable-lib.m4.
9403         (Depends-on): Remove 'relocatable'.
9404         (configure.ac): Add gl_RELOCATABLE_NOP.
9405
9406 2007-03-03  Bruno Haible  <bruno@clisp.org>
9407
9408         * modules/relocatable-prog-wrapper: New file.
9409         * modules/relocatable (Depends-on): Add it. Remove all other
9410         dependencies except progname.
9411         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
9412
9413         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
9414         (gl_FUNC_STRERROR): Nop.
9415         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
9416
9417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
9418         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
9419
9420         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
9421         (gl_FUNC_READLINK): Update.
9422
9423         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
9424
9425 2007-03-03  Bruno Haible  <bruno@clisp.org>
9426
9427         * lib/xreadlink.c: Include <unistd.h> unconditionally.
9428         * modules/xreadlink (Depends-on): Add unistd.
9429         * modules/xreadlink-with-size (Depends-on): Likewise.
9430
9431 2007-03-03  Bruno Haible  <bruno@clisp.org>
9432
9433         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
9434         extracted from gt_FUNC_SETENV.
9435         (gt_FUNC_SETENV): Remove macro.
9436         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
9437         remove gt_FUNC_SETENV.
9438
9439 2007-03-03  Bruno Haible  <bruno@clisp.org>
9440
9441         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
9442         ENABLE_RELOCATABLE here.
9443         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
9444
9445 2007-03-03  Bruno Haible  <bruno@clisp.org>
9446
9447         * modules/rbtreehash-list-tests (Depends-on): Add progname.
9448         * tests/test-rbtreehash_list.c: Include progname.h.
9449         (main): Call set_program_name.
9450
9451         * modules/rbtree-oset-tests (Depends-on): Add progname.
9452         * tests/test-rbtree_oset.c: Include progname.h.
9453         (main): Call set_program_name.
9454
9455         * modules/rbtree-list-tests (Depends-on): Add progname.
9456         * tests/test-rbtree_list.c: Include progname.h.
9457         (main): Call set_program_name.
9458
9459         * modules/linked-list-tests (Depends-on): Add progname.
9460         * tests/test-linked_list.c: Include progname.h.
9461         (main): Call set_program_name.
9462
9463 2007-03-03  Bruno Haible  <bruno@clisp.org>
9464
9465         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
9466         All uses of __restrict changed to _Restrict_.
9467         * lib/glob_.h (__restrict): Remove macro.
9468
9469 2007-03-02  Bruno Haible  <bruno@clisp.org>
9470
9471         * modules/gettext (configure.ac): Require gettext infrastructure
9472         from version 0.16.1.
9473
9474 2007-03-02  Bruno Haible  <bruno@clisp.org>
9475
9476         * modules/linkedhash-list-tests (Depends-on): Add progname.
9477         * tests/test-linkedhash_list.c: Include progname.h.
9478         (main): Call set_program_name.
9479
9480         * modules/carray-list-tests (Depends-on): Add progname.
9481         * tests/test-carray_list.c: Include progname.h.
9482         (main): Call set_program_name.
9483
9484         * modules/avltreehash-list-tests (Depends-on): Add progname.
9485         * tests/test-avltreehash_list.c: Include progname.h.
9486         (main): Call set_program_name.
9487
9488         * modules/avltree-oset-tests (Depends-on): Add progname.
9489         * tests/test-avltree_oset.c: Include progname.h.
9490         (main): Call set_program_name.
9491
9492         * modules/avltree-list-tests (Depends-on): Add progname.
9493         * tests/test-avltree_list.c: Include progname.h.
9494         (main): Call set_program_name.
9495
9496         * modules/array-oset-tests (Depends-on): Add progname.
9497         * tests/test-array_oset.c: Include progname.h.
9498         (main): Call set_program_name.
9499
9500         * modules/array-list-tests (Depends-on): Add progname.
9501         * tests/test-array_list.c: Include progname.h.
9502         (main): Call set_program_name.
9503
9504         * modules/argp-tests (Depends-on): Add progname.
9505         * tests/test-argp.c: Include argp.h first. Include progname.h.
9506         (main): Call set_program_name.
9507
9508 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
9509
9510         * doc/gnulib-tool.texi (Initial import): Reword description of
9511         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
9512         limited effect even if defined after the first system include.
9513
9514 2007-03-01  Bruno Haible  <bruno@clisp.org>
9515
9516         * build-aux/config.libpath: Update to libtool-1.5.22.
9517         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9518
9519 2007-03-01  Bruno Haible  <bruno@clisp.org>
9520
9521         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
9522         foo_CFLAGS.
9523         Reported by Ralf Wildenhues.
9524
9525 2007-03-01  Bruno Haible  <bruno@clisp.org>
9526
9527         * build-aux/install-reloc: Remove object files left over by some
9528         compilers.
9529         Reported by Ralf Wildenhues.
9530
9531 2007-03-01  Bruno Haible  <bruno@clisp.org>
9532
9533         * build-aux/install-reloc: Break long lines.
9534
9535 2007-03-01  Bruno Haible  <bruno@clisp.org>
9536
9537         * doc/relocatable.texi: Document that it may not work on OpenBSD.
9538         Reported by Ralf Wildenhues.
9539
9540 2007-03-01  Bruno Haible  <bruno@clisp.org>
9541
9542         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
9543         include ordering constraints.
9544
9545 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
9546
9547         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
9548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
9549         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
9550         as another example.
9551         * lib/time_.h: Fix misspelling.
9552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9553         Require gl_HEADER_TIME_H_DEFAULTS.
9554         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
9555         * m4/time_r.m4 (gl_TIME_R): Likewise.
9556         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
9557
9558 2007-03-01  Bruno Haible  <bruno@clisp.org>
9559
9560         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
9561         * m4/utimens.m4 (gl_UTIMENS): Likewise.
9562
9563 2007-03-01  Jim Meyering  <jim@meyering.net>
9564
9565         * modules/xreadlink (Maintainer): Add my name.
9566         * modules/xreadlink-with-size (Depends-on): Alphabetize.
9567
9568 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
9569             Bruno Haible  <bruno@clisp.org>
9570
9571         * build-aux/install-reloc: Compile also c-ctype.c.
9572         * build-aux/relocatable.sh.in: New file.
9573         * doc/relocatable.texi: New file.
9574         * doc/relocatable-maint.texi: New file.
9575         * doc/gnulib.texi: Include relocatable-maint.texi.
9576         * lib/progreloc.c: Include unistd.h unconditionally.
9577         * lib/relocwrapper.c: Include unistd.h unconditionally.
9578         Include c-ctype.h.
9579         (add_dotbin): Use c_tolower.
9580         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
9581         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
9582         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
9583         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
9584         to m4/relocatable-lib.m4.
9585         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
9586         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
9587         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
9588         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
9589         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
9590         * modules/relocatable: New file.
9591         * modules/relocatable-lib: New file.
9592         * modules/relocatable-script: New file.
9593
9594 2007-02-28  Bruno Haible  <bruno@clisp.org>
9595
9596         Import --enable-relocatable infrastructure.
9597         * build-aux/config.libpath: New file, from GNU gettext.
9598         * build-aux/install-reloc: New file, from GNU gettext.
9599         * build-aux/reloc-ldflags: New file, from GNU gettext.
9600         * lib/relocatable.h: New file, from GNU gettext.
9601         * lib/relocatable.c: New file, from GNU gettext.
9602         * lib/relocwrapper.c: New file, from GNU gettext.
9603         * m4/relocatable.m4: New file, from GNU gettext.
9604
9605 2007-02-28  Bruno Haible  <bruno@clisp.org>
9606
9607         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
9608
9609         * modules/xreadlink: New file, from GNU gettext with modifications.
9610         * lib/xreadlink.c: New file, from GNU gettext.
9611         * lib/xreadlink.h: Add comments.
9612         (xreadlink): New declaration.
9613
9614         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
9615         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
9616         lib/xreadlink-with-size.c.
9617         (configure.ac): Remove gl_XREADLINK invocation.
9618         (Makefile.am): Augment lib_SOURCES.
9619         * m4/xreadlink.m4: Remove file.
9620         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
9621         (xreadlink_with_size): Renamed from xreadink.
9622         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
9623         * modules/canonicalize (Depends-on): Replace xreadlink with
9624         xreadlink-with-size.
9625         * lib/canonicalize.c (canonicalize_filename_mode): Update.
9626
9627 2007-02-25  Jim Meyering  <jim@meyering.net>
9628
9629         * build-aux/announce-gen: When complaining about excess arguments,
9630         list them.
9631
9632 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         * README: Document signed integer overflow situation more
9635         accurately.
9636
9637 2007-02-25  Bruno Haible  <bruno@clisp.org>
9638
9639         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
9640         'a' or 'A' conversion.
9641
9642 2007-02-25  Bruno Haible  <bruno@clisp.org>
9643
9644         * modules/filename: Renamed from modules/pathname.
9645         (Files): Replace lib/pathname.h with lib/filename.h. Replace
9646         lib/concatpath.c with lib/concat-filename.c.
9647         (Makefile.am): Update.
9648         (Include): Replace pathname.h with filename.h.
9649         * lib/filename.h: Renamed from lib/pathname.h.
9650         (concatenated_filename): Renamed from concatenated_pathname.
9651         * lib/concat-filename.c: Renamed from lib/concatpath.c.
9652         (concatenated_filename): Renamed from concatenated_pathname.
9653         * lib/findprog.c: Include filename.h instead of pathname.h.
9654         (find_in_path): Update.
9655         * lib/javacomp.c: Include filename.h instead of pathname.h.
9656         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
9657         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
9658         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
9659         is_oldgcj_14_13_usable, is_javac_usable): Update.
9660         * lib/javaexec.c: Include filename.h instead of pathname.h.
9661         (execute_java_class): Update.
9662         * modules/findprog: Update.
9663         * modules/javacomp: Update.
9664         * modules/javaexec: Update.
9665         * MODULES.html.sh (File system functions): Add 'filename', remove
9666         'pathname'.
9667
9668 2007-02-25  Bruno Haible  <bruno@clisp.org>
9669
9670         * modules/printf-frexpl-tests: New file.
9671         * tests/test-printf-frexpl.c: New file.
9672
9673         * modules/printf-frexpl: New file.
9674         * lib/printf-frexpl.h: New file.
9675         * lib/printf-frexpl.c: New file.
9676         * m4/printf-frexpl.m4: New file.
9677
9678 2007-02-25  Bruno Haible  <bruno@clisp.org>
9679
9680         * modules/printf-frexp-tests: New file.
9681         * tests/test-printf-frexp.c: New file.
9682
9683         * modules/printf-frexp: New file.
9684         * lib/printf-frexp.h: New file.
9685         * lib/printf-frexp.c: New file.
9686         * m4/printf-frexp.m4: New file.
9687
9688 2007-02-25  Bruno Haible  <bruno@clisp.org>
9689
9690         Assume automake >= 1.10 for the tests.
9691         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
9692         * modules/arctwo-tests: Likewise.
9693         * modules/argp-tests: Likewise.
9694         * modules/avltree-list-tests: Likewise.
9695         * modules/avltree-oset-tests: Likewise.
9696         * modules/avltreehash-list-tests: Likewise.
9697         * modules/carray-list-tests: Likewise.
9698         * modules/crc-tests: Likewise.
9699         * modules/des-tests: Likewise.
9700         * modules/gc-arcfour-tests: Likewise.
9701         * modules/gc-arctwo-tests: Likewise.
9702         * modules/gc-des-tests: Likewise.
9703         * modules/gc-hmac-md5-tests: Likewise.
9704         * modules/gc-hmac-sha1-tests: Likewise.
9705         * modules/gc-md2-tests: Likewise.
9706         * modules/gc-md4-tests: Likewise.
9707         * modules/gc-md5-tests: Likewise.
9708         * modules/gc-pbkdf2-sha1-tests: Likewise.
9709         * modules/gc-rijndael-tests: Likewise.
9710         * modules/gc-sha1-tests: Likewise.
9711         * modules/gc-tests: Likewise.
9712         * modules/getaddrinfo-tests: Likewise.
9713         * modules/hmac-md5-tests: Likewise.
9714         * modules/hmac-sha1-tests: Likewise.
9715         * modules/linked-list-tests: Likewise.
9716         * modules/linkedhash-list-tests: Likewise.
9717         * modules/lock-tests: Likewise.
9718         * modules/md2-tests: Likewise.
9719         * modules/md4-tests: Likewise.
9720         * modules/md5-tests: Likewise.
9721         * modules/rbtree-list-tests: Likewise.
9722         * modules/rbtree-oset-tests: Likewise.
9723         * modules/rbtreehash-list-tests: Likewise.
9724         * modules/read-file-tests: Likewise.
9725         * modules/rijndael-tests: Likewise.
9726         * modules/stdint-tests: Likewise.
9727         * modules/tls-tests: Likewise.
9728
9729 2007-02-24  Bruno Haible  <bruno@clisp.org>
9730
9731         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
9732         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
9733         function; instead check whether isnan with a double argument links.
9734         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
9735         function; instead check whether isnan with a 'long double' argument
9736         links.
9737         Reported by Eric Blake <ebb9@byu.net>.
9738
9739 2007-02-24  Bruno Haible  <bruno@clisp.org>
9740
9741         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
9742         defined.
9743         * lib/isnanl.c: Remove all code. Just include isnan.c.
9744         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
9745
9746 2007-02-25  Jim Meyering  <jim@meyering.net>
9747
9748         Avoid conflicting types for 'unsetenv' on FreeBSD.
9749         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
9750         conflicting with FreeBSD's (5.0 and 6.1) function declaration
9751         in stdlib.h.
9752
9753 2007-02-24  Bruno Haible  <bruno@clisp.org>
9754
9755         * modules/isnanl-nolibm-tests: New file.
9756         * tests/test-isnanl.c: New file.
9757
9758         * modules/isnanl-nolibm: New file.
9759         * lib/isnanl.h: New file.
9760         * lib/isnanl.c: New file.
9761         * m4/isnanl.m4: New file.
9762
9763 2007-02-24  Bruno Haible  <bruno@clisp.org>
9764
9765         * modules/isnan-nolibm-tests: New file.
9766         * tests/test-isnan.c: New file.
9767
9768         * modules/isnan-nolibm: New file.
9769         * lib/isnan.h: New file.
9770         * lib/isnan.c: New file.
9771         * m4/isnan.m4: New file.
9772
9773 2007-02-24  Bruno Haible  <bruno@clisp.org>
9774
9775         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
9776         assume that an exponent fits in 20 bits.
9777
9778 2007-02-24  Jim Meyering  <jim@meyering.net>
9779
9780         * m4/regex.m4: Update the description of the configure-time option,
9781         --without-included-regex, to state accurately what the defaults are,
9782         and perhaps to give people an idea why using this option is risky.
9783
9784 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9785
9786         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
9787         loops on small arguments.  This attempts to avoid the problem
9788         Bruno Haible reported for AIX 4.3.2 in
9789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
9790
9791 2007-02-23  Bruno Haible  <bruno@clisp.org>
9792
9793         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
9794         Needed for help2man.
9795
9796 2007-02-23  Karl Berry  <karl@gnu.org>
9797
9798         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
9799         exists, foo.h should be cvs-ignored, not committed.
9800
9801 2007-02-23  Eric Blake  <ebb9@byu.net>
9802
9803         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
9804         * lib/stat-time.h (includes): Likewise.
9805         * lib/utimecmp.c (includes): Likewise.
9806         * lib/utimens.h (includes): Likewise.
9807         * lib/getdate.y (includes): Also include "timespec.h" for use
9808         internal to the module.
9809         * modules/utimens (Depends-on): Revert yesterday's patch.
9810         * modules/nanosleep (Depends-on): Add missing dependency.
9811
9812 2007-02-22  Bruno Haible  <bruno@clisp.org>
9813
9814         * lib/glob.c: Don't include getlogin_r.h.
9815
9816 2007-02-22  Jim Meyering  <jim@meyering.net>
9817
9818         * modules/utimens (Depends-on): Add timespec, required for
9819         utimens.h's inclusion of timespec.h.
9820
9821 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9822
9823         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
9824         long unreadable paths in GNU/Linux.  Problem reported by Andreas
9825         Schwab in
9826         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
9827         I'll try to think of a better way to fix the Solaris problem.
9828
9829         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
9830         like glibc; on Solaris 10, it fails with errno == EINVAL.
9831         POSIX says the behavior is unspecified if the first argument is NULL,
9832         so play it safe and never pass NULL to the system getcwd.
9833
9834 2007-02-21  Jim Meyering  <jim@meyering.net>
9835
9836         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
9837         of gettimeofday.  It would conflict with the one now always
9838         provided via sys_time_.h.  Reported by Matthew Woehlke, as
9839         an IRIX 6.5 build failure.
9840
9841 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9842
9843         Minor fixups to port to Solaris 10 with Sun C 5.8.
9844         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
9845         * modules/getcwd (Depends-on): Add dirfd.
9846         * lib/putenv.c (putenv): #undef it.
9847         (rpl_putenv): New decl.
9848         (malloc, free): Include <stdlib.h> rather than prototyping separately.
9849
9850 2007-02-20  Bruno Haible  <bruno@clisp.org>
9851
9852         * modules/stdio-tests: New file.
9853         * tests/test-stdio.c: New file.
9854
9855         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
9856         (Depends-on): Add stdio.
9857         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9858         (Include): Use <stdio.h> instead of vsnprintf.h.
9859         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
9860         HAVE_DECL_VSNPRINTF.
9861         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
9862
9863         * modules/snprintf (Files): Remove lib/snprintf.h.
9864         (Depends-on): Add stdio.
9865         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
9866         (Include): Use <stdio.h> instead of snprintf.h.
9867         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
9868         HAVE_DECL_SNPRINTF.
9869         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
9870         * lib/getaddrinfo.c: Likewise.
9871
9872         * modules/stdio: New file.
9873         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
9874         * lib/snprintf.h: Remove file.
9875         * lib/vsnprintf.h: Remove file.
9876         * lib/.cppi-disable: Remove snprintf.h.
9877         * m4/stdio_h.m4: New file.
9878         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
9879
9880 2007-02-20  Jim Meyering  <jim@meyering.net>
9881
9882         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
9883         used by e.g., mingw.  From Bruno Haible.
9884
9885 2007-02-19  Bruno Haible  <bruno@clisp.org>
9886
9887         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
9888         warnings.
9889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9890
9891 2007-02-19  Bruno Haible  <bruno@clisp.org>
9892
9893         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
9894         from mingw users.
9895
9896 2007-02-19  Bruno Haible  <bruno@clisp.org>
9897
9898         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
9899         warnings.
9900         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
9901
9902 2007-02-19  Jim Meyering  <jim@meyering.net>
9903
9904         Don't use FD after a successful "fdopendir (fd)".
9905         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
9906         Reset it by calling dirfd on the just-obtained DIR*.
9907
9908         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
9909         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
9910
9911 2007-02-18  Bruno Haible  <bruno@clisp.org>
9912
9913         * lib/readlink.c: Include <unistd.h>.
9914         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
9915         HAVE_READLINK.
9916         * modules/readlink (Depends-on): Add unistd.
9917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9918         (Include): Add <unistd.h>.
9919
9920         * lib/getlogin_r.h: Remove file.
9921         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
9922         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
9923         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
9924         HAVE_DECL_GETLOGIN_R.
9925         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
9926         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9927         (Include): Use <unistd.h> instead of getlogin_r.h.
9928
9929         * lib/getcwd.h: Remove file.
9930         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
9931         * lib/xgetcwd.c: Likewise.
9932         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
9933         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
9934         * modules/getcwd (Files): Remove lib/getcwd.h.
9935         (Depends-on): Add unistd.
9936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9937         (Include): Use <unistd.h> instad of getcwd.h.
9938
9939         * lib/ftruncate.c: Include <unistd.h> first.
9940         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
9941         Set HAVE_FTRUNCATE.
9942         * modules/ftruncate (Depends-on): Add unistd.
9943         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9944
9945         * lib/fchdir.c: Include <unistd.h> first.
9946         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
9947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
9948         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
9949         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9950         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
9951
9952         * lib/dup2.c: Include <unistd.h> first.
9953         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
9954         HAVE_DUP2.
9955         * modules/dup2 (Depends-on): Add unistd.
9956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9957
9958         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
9959         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
9960         REPLACE_CHOWN. Don't define chown as a macro here.
9961         * modules/chown (Depends-on): Add unistd.
9962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9963
9964         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
9965         Add definition for GL_LINK_WARNING.
9966         (chown, dup2): New declarations.
9967         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
9968         link warning.
9969         (ftruncate): New declaration.
9970         (getcwd): New declaration, taken from old getcwd.h.
9971         (getlogin_r): New declaration, taken from old getlogin_r.h.
9972         (readlink): New declaration.
9973         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
9974         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
9975         (gl_PREREQ_UNISTD): Remove macro.
9976         (gl_UNISTD_MODULE_INDICATOR): New macro.
9977         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
9978         many new variables. Don't set UNISTD_H.
9979         * modules/unistd (Description): Change.
9980         (Depends-on): Add link-warning.
9981         (configure.ac): Update.
9982         (Makefile.am): Create unistd.h always. Substitute many new variables
9983         into it.
9984
9985 2007-02-18  Bruno Haible  <bruno@clisp.org>
9986
9987         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
9988         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
9989         HAVE_GETSUBOPT.
9990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
9991         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
9992         * lib/getsubopt.h: Remove file.
9993         * modules/getsubopt (Files): Remove lib/getsubopt.h.
9994         (Depends-on): Add stdlib.
9995         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9996         (Includes): Use <stdlib.h> instead of getsubopt.h.
9997         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
9998         Set HAVE_GETSUBOPT.
9999         * lib/getsubopt.c: Don't include getsubopt.h.
10000
10001 2007-02-18  Bruno Haible  <bruno@clisp.org>
10002
10003         * modules/fchdir (Depends-on): Add dup2.
10004
10005 2007-02-18  Bruno Haible  <bruno@clisp.org>
10006
10007         * lib/stdlib_.h: Handle glibc's special invocation convention
10008         specially.
10009
10010 2007-02-18  Bruno Haible  <bruno@clisp.org>
10011
10012         * modules/stdlib-tests: New file.
10013         * tests/test-stdlib.c: New file.
10014
10015         * modules/mkstemp (Files): Remove lib/mkstemp.h.
10016         (Depends-on): Add stdlib.
10017         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10018         (Includes): Use <stdlib.h> instead of mkstemp.h.
10019         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
10020         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
10021         * lib/mkstemp.c: Don't include mkstemp.h.
10022         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
10023         * lib/stdlib--.h: Don't include mkstemp.h.
10024
10025         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
10026         (Depends-on): Add stdlib.
10027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10028         (Includes): Use <stdlib.h> instead of mkdtemp.h.
10029         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
10030         HAVE_MKDTEMP.
10031         * lib/mkdtemp.c: Don't include mkdtemp.h.
10032         * lib/clean-temp.c: Don't include mkdtemp.h.
10033
10034         * modules/exit (Files): Remove lib/exit.h.
10035         (Depends-on): Add stdlib.
10036         (Makefile.am): Remove lib_SOURCES.
10037         (Include): Use <stdlib.h> instead of exit.h.
10038         * lib/argmatch.c: Don't include exit.h.
10039         * lib/execute.c: Likewise.
10040         * lib/pagealign_alloc.c: Likewise.
10041         * lib/pipe.c: Likewise.
10042         * lib/wait-process.c: Likewise.
10043         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
10044         * lib/exitfail.c: Likewise.
10045         * lib/savewd.c: Likewise.
10046         * lib/xsetenv.c: Likewise.
10047
10048         * modules/stdlib: New file.
10049         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
10050         and extra comments about mkstemp().
10051         * lib/exit.h: Remove file.
10052         * lib/mkdtemp.h: Remove file.
10053         * lib/mkstemp.h: Remove file.
10054         * m4/stdlib_h.m4: New file.
10055         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
10056
10057 2007-02-18  Bruno Haible  <bruno@clisp.org>
10058
10059         * modules/math-tests: New file.
10060         * tests/test-math.c: New file.
10061
10062         * modules/math: New file.
10063         * modules/mathl (Files): Remove lib/mathl.h.
10064         (Depends-on): Add math.
10065         (Makefile.am): Don't mention mathl.h.
10066         (Include): Use <math.h> instead of mathl.h.
10067         * lib/math_.h: New file.
10068         * lib/mathl.h: Remove file.
10069         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
10070         mathl.h.
10071         * lib/asinl.c: Likewise.
10072         * lib/atanl.c: Likewise.
10073         * lib/ceill.c: Likewise.
10074         * lib/cosl.c: Likewise.
10075         * lib/expl.c: Likewise.
10076         * lib/floorl.c: Likewise.
10077         * lib/frexpl.c: Likewise.
10078         * lib/ldexpl.c: Likewise.
10079         * lib/logl.c: Likewise.
10080         * lib/sincosl.c: Likewise.
10081         * lib/sinl.c: Likewise.
10082         * lib/sqrtl.c: Likewise.
10083         * lib/tanl.c: Likewise.
10084         * lib/trigl.c: Likewise.
10085         * m4/math_h.m4: New file.
10086         * MODULES.html.sh (Mathematics): Add math.
10087
10088 2007-02-17  Bruno Haible  <bruno@clisp.org>
10089
10090         * modules/wctype-tests: New file.
10091         * tests/test-wctype.c: New file.
10092
10093         * modules/wchar-tests: New file.
10094         * tests/test-wchar.c: New file.
10095
10096         * modules/unistd-tests: New file.
10097         * tests/test-unistd.c: New file.
10098
10099         * modules/time-tests: New file.
10100         * tests/test-time.c: New file.
10101
10102         * modules/sysexits-tests: New file.
10103         * tests/test-sysexits.c: New file.
10104
10105         * modules/sys_time-tests: New file.
10106         * tests/test-sys_time.c: New file.
10107
10108         * modules/sys_stat-tests: New file.
10109         * tests/test-sys_stat.c: New file.
10110
10111         * modules/sys_socket-tests: New file.
10112         * tests/test-sys_socket.c: New file.
10113
10114         * modules/sys_select-tests: New file.
10115         * tests/test-sys_select.c: New file.
10116
10117         * modules/string-tests: New file.
10118         * tests/test-string.c: New file.
10119
10120         * modules/stdbool-tests: New file.
10121         * tests/test-stdbool.c: New file.
10122
10123         * modules/netinet_in-tests: New file.
10124         * tests/test-netinet_in.c: New file.
10125
10126         * modules/inttypes-tests: New file.
10127         * tests/test-inttypes.c: New file.
10128
10129         * modules/fcntl-tests: New file.
10130         * tests/test-fcntl.c: New file.
10131
10132         * modules/byteswap-tests: New file.
10133         * tests/test-byteswap.c: New file.
10134
10135         * modules/arpa_inet-tests: New file.
10136         * tests/test-arpa_inet.c: New file.
10137
10138 2007-02-17  Bruno Haible  <bruno@clisp.org>
10139
10140         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
10141         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
10142         if the corresponding module is not enabled. Emit link warnings if
10143         the function is used nevertheless.
10144         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
10145         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
10146         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
10147         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
10148         * modules/inttypes (Depends-on): Add link-warning.
10149         (Makefile.am): Copy the contents of build-aux/link-warning.h into
10150         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
10151         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
10152         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
10153         * modules/imaxdiv (configure.ac): Likewise.
10154         * modules/strtoimax (configure.ac): Likewise.
10155         * modules/strtoumax (configure.ac): Likewise.
10156
10157 2007-02-17  Bruno Haible  <bruno@clisp.org>
10158
10159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
10160         gl_STRING_MODULE_INDICATOR_DEFAULTS.
10161         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
10162         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
10163
10164 2007-02-17  Bruno Haible  <bruno@clisp.org>
10165
10166         * modules/link-warning: New file.
10167         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
10168         * lib/string_.h (GL_LINK_WARNING): Remove definition.
10169         * modules/string (Depends-on): Add link-warning.
10170         (Makefile.am): Copy the contents of build-aux/link-warning.h into
10171         string.h.
10172         * MODULES.html.sh (Support for building libraries and executables): Add
10173         link-warning.
10174
10175 2007-02-17  Bruno Haible  <bruno@clisp.org>
10176
10177         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
10178         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
10179         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
10180         long lines.
10181
10182 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
10183             Bruno Haible  <bruno@clisp.org>
10184
10185         * modules/tmpfile: New file.
10186         * lib/tmpfile.c: New file.
10187         * m4/tmpfile.m4: New file.
10188         * MODULES.html.sh (func_all_modules): New section "Input/output".
10189
10190 2007-02-15  Bruno Haible  <bruno@clisp.org>
10191
10192         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
10193         (supports_delete_on_close): New function.
10194         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
10195
10196 2007-02-14  Bruno Haible  <bruno@clisp.org>
10197
10198         * modules/mbspcasecmp-tests: New file.
10199         * tests/test-mbspcasecmp.sh: New file.
10200         * tests/test-mbspcasecmp.c: New file.
10201
10202         New module mbspcasecmp.
10203         * modules/mbspcasecmp: New file.
10204         * lib/mbspcasecmp.c: New file.
10205         * lib/string_.h (strncasecmp): Change warning message.
10206         (mbspcasecmp): New declaration.
10207         * m4/mbspcasecmp.m4: New file.
10208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10209         GNULIB_MBSPCASECMP.
10210         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
10211         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
10212
10213 2007-02-14  Bruno Haible  <bruno@clisp.org>
10214
10215         * modules/mbsncasecmp-tests: New file.
10216         * tests/test-mbsncasecmp.sh: New file.
10217         * tests/test-mbsncasecmp.c: New file.
10218
10219         New module mbsncasecmp.
10220         * modules/mbsncasecmp: New file.
10221         * lib/mbsncasecmp.c: New file.
10222         * lib/string_.h (mbsncasecmp): New declaration.
10223         * m4/mbsncasecmp.m4: New file.
10224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10225         GNULIB_MBSNCASECMP.
10226         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
10227         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
10228
10229 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
10232         Verify that it doesn't overlap with our flags.
10233         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
10234         do not have the desired effect in multibyte locales; instead, use
10235         mbscasecmp.
10236         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
10237         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
10238         we don't require GNU fnmatch ourselves (if our users require it, they
10239         should do so explicitly).
10240
10241         Fix regex code so it doesn't rely on strcasecmp.
10242         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
10243         Otherwise, include gnulib's langinfo.h.
10244         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
10245         undesirable behavior in non-C locales.  Instead, rely on localecharset.
10246         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
10247         * modules/regex (FILES): Remove m4/codeset.m4.
10248         (Depends-on): Add localcharset.  Remove strcase.
10249
10250 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10251
10252         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
10253         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10254
10255 2007-02-13  Bruno Haible  <bruno@clisp.org>
10256
10257         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
10258         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10259
10260 2007-02-12  Bruno Haible  <bruno@clisp.org>
10261
10262         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
10263         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
10264         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
10265         time warning rather than a link error.
10266
10267 2007-02-12  Bruno Haible  <bruno@clisp.org>
10268
10269         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
10270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10271         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10272
10273 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
10276         args, not 2.
10277
10278 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10279
10280         New module 'time', so that apps can include <time.h> as per
10281         POSIX and GNU instead of separate include files like time_r.h
10282         and timegm.h.  This implementation tries out a simpler approach
10283         for replacing decls in standard include files (as compared to
10284         the string module), somewhat as an experiment.
10285
10286         * config/srclist.txt: Comment out mktime.c for now.
10287         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
10288         since it doesn't apply any more.  Use generic wording instead.
10289         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
10290         'time'.
10291         * lib/time_.h, m4/time_h.m4, modules/time: New files.
10292         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
10293         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
10294         Don't include <sys/types.h>; no longer needed since we assume C89.
10295         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
10296         * lib/strftime.c: Likewise.
10297         * lib/time_r.c: Likewise.
10298         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
10299         * lib/nanosleep.c: Include <time.h> first, to check interface.
10300         * lib/strptime.c: Likewise.
10301         * lib/time_r.c: Likewise.
10302         * lib/timegm.c: Likewise.
10303         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
10304         needed.
10305         * lib/timegm.c: Don't include timegm.h; no longer needed.
10306         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
10307         time.h now handles any problems in that area.
10308         (struct timespec, nanosleep): Remove; time.h now arranges for these.
10309         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
10310         that time.h defines struct timespec.
10311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
10312         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
10313         handles that.
10314         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
10315         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
10316         needed.  Set REPLACE_LOCALTIME.
10317         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
10318         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
10319         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
10320         nanosleep; time_h.m4 now does that.  Don't require
10321         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
10322         module handles this now.
10323         * modules/getdate (Depends-on): Remove timespec.  Add time.
10324         * modules/nanosleep (Depends-on): Likewise.
10325         * modules/stat-time (Depends-on): Likewise.
10326         * modules/nanosleep (Include): Include time.h, not timespec.h.
10327         * modules/strptime (Files): Remove lib/strptime.h.
10328         (Depends-on): Add extensions, time.
10329         (Include): Include time.h, not strptime.h.
10330         * modules/time_r (Files): Remove lib/time_r.h.
10331         (Depends-on): Add time.
10332         (Include): Include time.h, not time_r.h.
10333         * modules/timegm: Likewise.
10334         * modules/timespec (Description): Now does timespec-related decls
10335         of our own, instead of struct timespec itself.
10336         (Depends-on): Add time; remove extensions.
10337         (Maintainer): Add self.
10338         * modules/utimecmp (Depends-on): Add time; remove timespec.
10339         * modules/utimens (Depends-on): Likewise.
10340         * modules/xnanosleep (Depends-on): Likewise.
10341
10342 2007-02-11  Bruno Haible  <bruno@clisp.org>
10343
10344         * lib/c-strstr.c: Include allocsa.h.
10345         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10346         * lib/c-strcasestr.c: Include allocsa.h.
10347         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10348         * lib/strcasestr.c: Include allocsa.h.
10349         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
10350         * lib/mbsstr.c: Include allocsa.h.
10351         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
10352         allocsa/freesa instead of malloc/free.
10353         * lib/mbscasestr.c: Include allocsa.h.
10354         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
10355         allocsa/freesa instead of malloc/free.
10356         * modules/c-strstr (Depends-on): Add allocsa.
10357         * modules/c-strcasestr (Depends-on): Likewise.
10358         * modules/strcasestr (Depends-on): Likewise.
10359         * modules/mbsstr (Depends-on): Likewise.
10360         * modules/mbscasestr (Depends-on): Likewise.
10361
10362 2007-02-11  Bruno Haible  <bruno@clisp.org>
10363
10364         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
10365
10366         * modules/mbsspn-tests: New file.
10367         * tests/test-mbsspn.sh: New file.
10368         * tests/test-mbsspn.c: New file.
10369
10370 2007-02-11  Bruno Haible  <bruno@clisp.org>
10371
10372         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
10373
10374         * modules/mbspbrk-tests: New file.
10375         * tests/test-mbspbrk.sh: New file.
10376         * tests/test-mbspbrk.c: New file.
10377
10378 2007-02-11  Bruno Haible  <bruno@clisp.org>
10379
10380         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
10381         unneeded cast.
10382
10383         * modules/mbscspn-tests: New file.
10384         * tests/test-mbscspn.sh: New file.
10385         * tests/test-mbscspn.c: New file.
10386
10387 2007-02-11  Bruno Haible  <bruno@clisp.org>
10388
10389         * modules/mbscasecmp-tests: New file.
10390         * tests/test-mbscasecmp.sh: New file.
10391         * tests/test-mbscasecmp.c: New file.
10392
10393 2007-02-11  Bruno Haible  <bruno@clisp.org>
10394
10395         Ensure O(n) worst-case complexity of mbscasestr.
10396         * lib/mbscasestr.c: Include stdbool.h.
10397         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
10398         functions.
10399         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
10400         the bookkeeping indicates that it's worth it.
10401         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
10402
10403         * modules/mbscasestr-tests: New file.
10404         * tests/test-mbscasestr1.c: New file.
10405         * tests/test-mbscasestr2.sh: New file.
10406         * tests/test-mbscasestr2.c: New file.
10407         * tests/test-mbscasestr3.sh: New file.
10408         * tests/test-mbscasestr3.c: New file.
10409         * tests/test-mbscasestr4.sh: New file.
10410         * tests/test-mbscasestr4.c: New file.
10411         * m4/locale-tr.m4: New file.
10412
10413 2007-02-11  Bruno Haible  <bruno@clisp.org>
10414
10415         Ensure O(n) worst-case complexity of mbsstr.
10416         * lib/mbsstr.c: Include stdbool.h.
10417         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
10418         functions.
10419         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
10420         bookkeeping indicates that it's worth it.
10421         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
10422
10423         * modules/mbsstr-tests: New file.
10424         * tests/test-mbsstr1.c: New file.
10425         * tests/test-mbsstr2.sh: New file.
10426         * tests/test-mbsstr2.c: New file.
10427         * tests/test-mbsstr3.sh: New file.
10428         * tests/test-mbsstr3.c: New file.
10429         * m4/locale-fr.m4: New file.
10430
10431 2007-02-11  Bruno Haible  <bruno@clisp.org>
10432
10433         * lib/mbsrchr.c (mbsrchr): Fix bug.
10434
10435         * modules/mbsrchr-tests: New file.
10436         * tests/test-mbsrchr.sh: New file.
10437         * tests/test-mbsrchr.c: New file.
10438
10439 2007-02-11  Bruno Haible  <bruno@clisp.org>
10440
10441         * lib/mbschr.c (mbschr): Fix bug.
10442
10443         * modules/mbschr-tests: New file.
10444         * tests/test-mbschr.sh: New file.
10445         * tests/test-mbschr.c: New file.
10446         * m4/locale-zh.m4: New file.
10447
10448 2007-02-11  Bruno Haible  <bruno@clisp.org>
10449
10450         Support for copying multibyte string iterators.
10451         * lib/mbiter.h: Include <string.h>.
10452         (mbiter_multi_copy): New function.
10453         (mbi_copy): New macro.
10454         * lib/mbuiter.h: Include <string.h>.
10455         (mbuiter_multi_copy): New function.
10456         (mbui_copy): New macro.
10457
10458 2007-02-11  Bruno Haible  <bruno@clisp.org>
10459
10460         New module mbslen.
10461         * modules/mbslen: New file.
10462         * lib/mbslen.c: New file.
10463         * lib/string_.h (mbslen): New declaration.
10464         * m4/mbslen.m4: New file.
10465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10466         GNULIB_MBSLEN.
10467         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
10468         * MODULES.html.sh (Internationalization functions): Add mbslen.
10469
10470 2007-02-11  Bruno Haible  <bruno@clisp.org>
10471
10472         Ensure O(n) worst-case complexity of strcasestr substitute.
10473         * lib/strcasestr.c: Include stdbool.h.
10474         (knuth_morris_pratt): New function.
10475         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
10476         bookkeeping indicates that it's worth it.
10477         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
10478
10479         * modules/strcasestr-tests: New file.
10480         * tests/test-strcasestr.c: New file.
10481
10482 2007-02-11  Bruno Haible  <bruno@clisp.org>
10483
10484         Ensure O(n) worst-case complexity of c_strcasestr.
10485         * lib/c-strcasestr.c: Include stdbool.h, string.h.
10486         (knuth_morris_pratt): New function.
10487         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
10488         the bookkeeping indicates that it's worth it.
10489         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
10490
10491         * modules/c-strcasestr-tests: New file.
10492         * tests/test-c-strcasestr.c: New file.
10493
10494 2007-02-11  Bruno Haible  <bruno@clisp.org>
10495
10496         Ensure O(n) worst-case complexity of c_strstr.
10497         * lib/c-strstr.c: Include stdbool.h, string.h.
10498         (knuth_morris_pratt): New function.
10499         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
10500         bookkeeping indicates that it's worth it.
10501         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
10502
10503         * lib/c-strstr.c: Complete rewrite for maintainability.
10504
10505         * modules/c-strstr-tests: New file.
10506         * tests/test-c-strstr.c: New file.
10507
10508 2007-02-11  Bruno Haible  <bruno@clisp.org>
10509
10510         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
10511         5.2.1 and earlier, whereby \055 was treated just like the range
10512         delimiter '-'.
10513         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
10514
10515 2007-02-08  Bruno Haible  <bruno@clisp.org>
10516
10517         * modules/regex (Depends-on): Add stdbool.
10518         Reported by Dalibor Topic <robilad@kaffe.org>.
10519
10520 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
10523         Prefer returning from main to exiting from it.
10524         Remove unnecessary parens after sizeof.
10525
10526 2007-02-05  Bruno Haible  <bruno@clisp.org>
10527
10528         New module mbssep.
10529         * modules/mbssep: New file.
10530         * lib/mbssep.c: New file.
10531         * lib/string_.h (strsep): Add a conditional link warning.
10532         (mbssep): New declaration.
10533         * m4/mbssep.m4: New file.
10534         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10535         GNULIB_MBSSEP.
10536         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
10537         * MODULES.html.sh (Internationalization functions): Add mbssep.
10538
10539 2007-02-05  Bruno Haible  <bruno@clisp.org>
10540
10541         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
10542         Optimize search in case of 1 delimiter.
10543
10544 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
10545
10546         * lib/acl.h: Include sys/types.h before sys/acl.h.
10547
10548 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
10549
10550         Merge upstream fix for glibc bugzilla #3957:
10551
10552         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
10553
10554         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
10555         bit for RE_HAT_LISTS_NOT_NEWLINE.
10556         (build_charclass_op): Remove bogus comment.
10557
10558 2007-02-05  Simon Josefsson  <simon@josefsson.org>
10559
10560         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
10561
10562 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10563
10564         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
10565         * lib/memmem.c [!defined _LIBC]: Include config.h.
10566
10567 2007-02-04  Bruno Haible  <bruno@clisp.org>
10568
10569         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
10570         warning message.
10571
10572 2007-02-04  Bruno Haible  <bruno@clisp.org>
10573
10574         New module mbstok_r.
10575         * modules/mbstok_r: New file.
10576         * lib/mbstok_r.c: New file.
10577         * lib/string_.h (strtok_r): Change argument names to match the
10578         comments. Add a conditional link warning.
10579         (mbstok_r): New declaration.
10580         * m4/mbstok_r.m4: New file.
10581         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10582         GNULIB_MBSTOK_R.
10583         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
10584         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
10585
10586 2007-02-04  Bruno Haible  <bruno@clisp.org>
10587
10588         New module mbsspn.
10589         * modules/mbsspn: New file.
10590         * lib/mbsspn.c: New file.
10591         * lib/string_.h (strspn): Add a conditional link warning.
10592         (mbsspn): New declaration.
10593         * m4/mbsspn.m4: New file.
10594         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10595         GNULIB_MBSSPN.
10596         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
10597         * MODULES.html.sh (Internationalization functions): Add mbsspn.
10598
10599 2007-02-04  Bruno Haible  <bruno@clisp.org>
10600
10601         New module mbspbrk.
10602         * modules/mbspbrk: New file.
10603         * lib/mbspbrk.c: New file.
10604         * lib/string_.h (strpbrk): Add a conditional link warning.
10605         (mbspbrk): New declaration.
10606         * m4/mbspbrk.m4: New file.
10607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10608         GNULIB_MBSPBRK.
10609         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
10610         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
10611
10612 2007-02-04  Bruno Haible  <bruno@clisp.org>
10613
10614         New module mbscspn.
10615         * modules/mbscspn: New file.
10616         * lib/mbscspn.c: New file.
10617         * lib/string_.h (strcspn): Add a conditional link warning.
10618         (mbscspn): New declaration.
10619         * m4/mbscspn.m4: New file.
10620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10621         GNULIB_MBSCSPN.
10622         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
10623         * MODULES.html.sh (Internationalization functions): Add mbscspn.
10624
10625 2007-02-04  Bruno Haible  <bruno@clisp.org>
10626
10627         New module mbscasestr, reduced goal of strcasestr.
10628         * modules/mbscasestr: New file.
10629         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
10630         (mbscasestr): Renamed from strcasestr.
10631         * lib/strcasestr.c: Don't include mbuiter.h.
10632         (strcasestr): Remove support for multibyte locales.
10633         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
10634         Change the conditional link warning.
10635         (mbscasestr): New declaration.
10636         * m4/mbscasestr.m4: New file.
10637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
10638         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
10639         REPLACE_STRCASESTR.
10640         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
10641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10642         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
10643         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
10644         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
10645         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
10646         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
10647         (Depends-on): Remove mbuiter.
10648         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
10649
10650 2007-02-04  Bruno Haible  <bruno@clisp.org>
10651
10652         Simplify handling of strncasecmp.
10653         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
10654         the conditional link warning.
10655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10656         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
10657         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
10658         * modules/strcase (configure.ac): Don't invoke
10659         gl_STRING_MODULE_INDICATOR.
10660         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
10661
10662 2007-02-04  Bruno Haible  <bruno@clisp.org>
10663
10664         New module mbscasecmp, reduced goal of strcasecmp.
10665         * modules/mbscasecmp: New file.
10666         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
10667         (mbscasecmp): Renamed from strcasecmp.
10668         * lib/strcasecmp.c: Don't include mbuiter.h.
10669         (strcasecmp): Remove support for multibyte locales.
10670         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
10671         Change the conditional link warning.
10672         (mbscasecmp): New declaration.
10673         * m4/mbscasecmp.m4: New file.
10674         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
10675         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
10676         REPLACE_STRCASECMP.
10677         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
10678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10679         GNULIB_MBSCASECMP.
10680         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
10681         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
10682         * modules/strcase (Files): Remove m4/mbrtowc.m4.
10683         (Depends-on): Remove mbuiter.
10684         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
10685
10686 2007-02-04  Bruno Haible  <bruno@clisp.org>
10687
10688         New module mbsstr. Remove module strstr.
10689         * modules/mbsstr: New file.
10690         * modules/strstr: Remove file.
10691         * lib/mbsstr.c: Renamed from lib/strstr.c.
10692         (mbsstr): Renamed from strstr.
10693         * lib/string_.h (strstr): Remove declaration. Change the conditional
10694         link warning.
10695         (mbsstr): New declaration.
10696         * m4/mbsstr.m4: New file.
10697         * m4/strstr.m4: Remove file.
10698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
10699         REPLACE_STRSTR.
10700         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
10701         Don't initialize GNULIB_STRSTR.
10702         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
10703         substitute GNULIB_STRSTR and REPLACE_STRSTR.
10704         * MODULES.html.sh (Internationalization functions): Add mbsstr.
10705         (Support for systems lacking ANSI C 89): Remove strstr.
10706
10707 2007-02-04  Bruno Haible  <bruno@clisp.org>
10708
10709         New module mbsrchr.
10710         * modules/mbsrchr: New file.
10711         * lib/mbsrchr.c: New file.
10712         * lib/string_.h (strrchr): Add a conditional link warning.
10713         (mbsrchr): New declaration.
10714         * m4/mbsrchr.m4: New file.
10715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10716         GNULIB_MBSRCHR.
10717         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
10718         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
10719
10720 2007-02-04  Bruno Haible  <bruno@clisp.org>
10721
10722         New module mbschr.
10723         * modules/mbschr: New file.
10724         * lib/mbschr.c: New file.
10725         * lib/string_.h (strchr): Add a conditional link warning.
10726         (mbschr): New declaration.
10727         * m4/mbschr.m4: New file.
10728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
10729         GNULIB_MBSCHR.
10730         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
10731         * MODULES.html.sh (Internationalization functions): Add mbschr.
10732
10733 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10734
10735         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
10736
10737         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
10738
10739 2007-02-04  Bruno Haible  <bruno@clisp.org>
10740
10741         New module description section 'configure.ac-early'.
10742         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
10743         (func_get_autoconf_early_snippet): New function.
10744         (func_import, func_create_testdir): Use it. Remove special cases for
10745         modules 'extensions' and 'lock'.
10746         * modules/extensions (configure.ac-early): Require
10747         gl_USE_SYSTEM_EXTENSIONS.
10748         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
10749
10750 2007-02-04  Bruno Haible  <bruno@clisp.org>
10751
10752         Make use of gcj-4.3's -fsource and -ftarget option.
10753         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
10754         and if so try the options -fsource and -ftarget.
10755         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
10756         source_version, ftarget_option, target_version arguments.
10757         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
10758         (is_envjavac_oldgcj_14_14_usable): Renamed from
10759         is_envjavac_gcj_14_14_usable.
10760         (is_envjavac_oldgcj_14_13_usable): Renamed from
10761         is_envjavac_gcj_14_13_usable.
10762         (is_gcj_present): Update.
10763         (is_gcj_43, is_gcj43_usable): New functions.
10764         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
10765         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
10766         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
10767         try the options -fsource and -ftarget.
10768
10769 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
10770
10771         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
10772         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
10773         larger value.
10774
10775 2007-02-03  Jim Meyering  <jim@meyering.net>
10776
10777         Give tools a better chance to allocate space for very large buffers.
10778         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
10779
10780         Make pwd and readlink work also when run with an unreadable parent dir
10781         on systems with openat support.
10782         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
10783         provided getcwd function, even when we have openat support.
10784         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
10785
10786 2007-02-02  Bruno Haible  <bruno@clisp.org>
10787
10788         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
10789         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
10790         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
10791         portability problems if one of these functions is only used on specific
10792         platforms.
10793         Reported by Paul Eggert.
10794
10795 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10796
10797         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
10798         is causing more trouble than it's curing.
10799         * lib/regex_internal.h (__mempcpy): Remove.
10800         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
10801         (and make the code a tad smaller to boot).
10802         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
10803
10804 2007-02-02  Jim Meyering  <jim@meyering.net>
10805
10806         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
10807         section, not in the Makefile.am: one.
10808
10809 2007-02-02  Eric Blake  <ebb9@byu.net>
10810
10811         * lib/strchrnul.c: Always include config.h first.
10812
10813         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
10814         gnulib strstr is not necessary here.
10815
10816 2007-02-02  Simon Josefsson  <simon@josefsson.org>
10817
10818         * m4/socklen.m4: Fix typo.
10819
10820 2007-02-02  Eric Blake  <ebb9@byu.net>
10821
10822         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
10823         * modules/netinet_in (Makefile.am): Likewise.
10824
10825 2007-02-01  Bruno Haible  <bruno@clisp.org>
10826
10827         * lib/string_.h (GL_LINK_WARNING): New macro.
10828         (strcasecmp, strstr, strcasestr): If provided by the system,
10829         conditionally define as a macro that leads to a warning instead of to
10830         an error.
10831         (strncasecmp): Conditionally define as a macro that leads to a warning.
10832
10833 2007-02-01  Karl Berry  <karl@gnu.org>
10834
10835         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
10836
10837 2007-02-01  Bruno Haible  <bruno@clisp.org>
10838
10839         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
10840         renamings.
10841
10842 2007-02-01  Eric Blake  <ebb9@byu.net>
10843
10844         * modules/regex (Depends-on): Revert dependence on mempcpy.
10845         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
10846         module's definition of mempcpy.
10847         Reported by Paul Eggert.
10848
10849 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
10850
10851         * lib/string_.h: If the gnulib module XYZ is not present, undefine
10852         the symbol XYZ before redefining it.  This fixes a problem with
10853         programs that don't use XYZ, when compiled on systems that define
10854         XYZ to something else.
10855
10856 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
10857
10858         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
10859         occurs when "mkdir -m foo" creates a setgid directory that is (1)
10860         writeable to group or other and (2) is intended to have a special
10861         mode bit that is set or cleared.  In such a case, the directory
10862         should be neither group- nor other-writeable until the special
10863         mode bits are right.
10864
10865 2007-01-31  Eric Blake  <ebb9@byu.net>
10866
10867         * modules/mountlist (Depends-on): Add strstr.
10868
10869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
10870         bug.
10871         * modules/string (Makefile.am): Remove redundant replacement.
10872         * modules/regex (Depends-on): Add mempcpy.
10873
10874 2007-01-31  Bruno Haible  <bruno@clisp.org>
10875
10876         New module description field 'Link'.
10877         * gnulib-tool (func_usage): Document --extract-link-directive.
10878         (sed_extract_prog): Recognize 'Link' directive.
10879         (func_get_link_directive): New function.
10880         (func_import): Show summary of link directives.
10881         Handle --extract-link-directive option.
10882         * modules/acl (Link): New section.
10883         * modules/clock-time (Link): New section.
10884         * modules/euidaccess (Link): New section.
10885         * modules/gettext (Link): New section.
10886         * modules/iconv (Link): New section.
10887         * modules/lock (Link): New section.
10888         * modules/nanosleep (Link): New section.
10889         * modules/readline (Link): New section.
10890
10891 2007-01-27  Bruno Haible  <bruno@clisp.org>
10892
10893         Enforce the use of gnulib modules for unportable <string.h> functions.
10894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
10895         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
10896         (gl_HEADER_STRING_H_BODY): Require it.
10897         * lib/string_.h: If the gnulib module XYZ is not present, redefine
10898         the symbol XYZ to one that gives a link error.
10899         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
10900         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
10901         * modules/mempcpy (configure.ac): Likewise.
10902         * modules/memrchr (configure.ac): Likewise.
10903         * modules/stpcpy (configure.ac): Likewise.
10904         * modules/stpncpy (configure.ac): Likewise.
10905         * modules/strcase (configure.ac): Likewise.
10906         * modules/strcasestr (configure.ac): Likewise.
10907         * modules/strchrnul (configure.ac): Likewise.
10908         * modules/strdup (configure.ac): Likewise.
10909         * modules/strndup (configure.ac): Likewise.
10910         * modules/strnlen (configure.ac): Likewise.
10911         * modules/strpbrk (configure.ac): Likewise.
10912         * modules/strsep (configure.ac): Likewise.
10913         * modules/strstr (configure.ac): Likewise.
10914         * modules/strtok_r (configure.ac): Likewise.
10915
10916 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
10917
10918         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
10919
10920 2007-01-30  Jim Meyering  <jim@meyering.net>
10921
10922         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
10923
10924 2007-01-29  Bruno Haible  <bruno@clisp.org>
10925
10926         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
10927         * lib/execute.c: Likewise.
10928         * lib/pipe.c: Likewise.
10929         * lib/printf-args.h: Likewise.
10930         * lib/printf-args.c: Likewise.
10931         * lib/printf-parse.c: Likewise.
10932         * lib/vasnprintf.c: Likewise.
10933
10934 2007-01-29  Eric Blake  <ebb9@byu.net>
10935
10936         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
10937         declaration.
10938
10939 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10940
10941         * lib/strptime.h (strptime): Use 'restrict' for args where
10942         POSIX requires this.
10943         * lib/strptime.c (strptime): Likewise.
10944         Change license notice from LGPL to GPL, since gnulib-tool will
10945         change this as needed.
10946         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
10947         defined.
10948         Include "strptime.h" first, to check interface.
10949         Do not #undef _LIBC and _NL_CURRENT.
10950         Do not include <stdlib.h>; no longer needed.
10951         Include "time_r.h" and declare ptime_locale_status
10952         only if _LIBC is not defined.
10953         (__P): Remove unused macro.
10954         (match_string): Bring back glibc version, but use it only if _LIBC
10955         is defined.
10956         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
10957         Remove unnecessary assertion and abort() call.
10958         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
10959         * m4/strptime.m4: Fix serial number comment.
10960         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
10961         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
10962         (Depends-on): Add time_r.
10963
10964 2007-01-29  Bruno Haible  <bruno@clisp.org>
10965
10966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10967         strptime.
10968         * modules/strptime (Depends-on): Add stdbool.
10969         * lib/strptime.h: Include <time.h> always. Add comments.
10970
10971 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
10972
10973         * modules/strptime: New file.
10974         * lib/strptime.h: New file.
10975         * lib/strptime.c: New file.
10976         * m4/strptime.m4: New file.
10977
10978 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10979
10980         * MODULES.html.sh: New module mpsort.
10981         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
10982
10983         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
10984         a circularity problem with HP-UX ia64 reported by Bob Proulx in
10985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
10986         All uses changed.
10987         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
10988         All uses changed.
10989         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
10990         to _Restrict_.
10991         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
10992         the parameter matches the prototype.
10993
10994 2007-01-28  Jim Meyering  <jim@meyering.net>
10995
10996         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
10997         sys/time.h here, reverting that part of the previous patch:
10998         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
10999
11000 2007-01-28  Bruno Haible  <bruno@clisp.org>
11001
11002         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
11003         value of $(SYS_TIME_H).
11004         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
11005         remove it conditionally, too. [added by Jim Meyering]
11006         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
11007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
11008         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
11009         GETTIMEOFDAY_REPLACEMENT to 1.
11010
11011 2007-01-28  Bruno Haible  <bruno@clisp.org>
11012
11013         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
11014         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
11015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
11016         Set UNISTD_H instead of UNISTD_H2.
11017         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
11018
11019 2007-01-28  Bruno Haible  <bruno@clisp.org>
11020
11021         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
11022         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
11023
11024 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11025
11026         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
11027         (func_create_testdir): Ensure C locale for `grep' and `tr'
11028         character ranges.
11029         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
11030         ACLOCAL_AMFLAGS parsing state machine.
11031
11032 2007-01-27  Bruno Haible  <bruno@clisp.org>
11033
11034         * modules/unistr/base: Update.
11035
11036 2007-01-27  Bruno Haible  <bruno@clisp.org>
11037
11038         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
11039         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
11040         * modules/unistr/u32-mbtouc-unsafe: Renamed from
11041         modules/unistr/u32-mbtouc.
11042         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
11043         * lib/unistr.h: Update.
11044         * lib/linebreak.c: Update.
11045         * modules/unistr/u32-mbtouc: Renamed from
11046         modules/unistr/u32-mbtouc-safe.
11047         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
11048         * lib/unistr.h: Update.
11049         * lib/unistr/u32-to-u8.c: Update.
11050         * lib/unistr/u32-to-u16.c: Update.
11051
11052 2007-01-27  Bruno Haible  <bruno@clisp.org>
11053
11054         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
11055         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
11056         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
11057         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
11058         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
11059         * modules/unistr/u16-mbtouc-unsafe: Renamed from
11060         modules/unistr/u16-mbtouc.
11061         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
11062         * lib/unistr.h: Update.
11063         * lib/linebreak.c: Update.
11064         * modules/linebreak: Update.
11065         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
11066         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
11067         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
11068         * modules/unistr/u16-mbtouc: Renamed from
11069         modules/unistr/u16-mbtouc-safe.
11070         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
11071         * lib/unistr.h: Update.
11072         * lib/unistr/u16-to-u8.c: Update.
11073         * modules/unistr/u16-to-u8: Update.
11074         * lib/unistr/u16-to-u32.c: Update.
11075         * modules/unistr/u16-to-u32: Update.
11076
11077 2007-01-27  Bruno Haible  <bruno@clisp.org>
11078
11079         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
11080         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
11081         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
11082         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
11083         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
11084         * modules/unistr/u8-mbtouc-unsafe: Renamed from
11085         modules/unistr/u8-mbtouc.
11086         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
11087         * lib/unistr.h: Update.
11088         * lib/striconveh.c: Update.
11089         * modules/striconveh: Update.
11090         * lib/linebreak.c: Update.
11091         * modules/linebreak: Update.
11092         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
11093         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
11094         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
11095         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
11096         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
11097         * lib/unistr.h: Update.
11098         * lib/striconveh.c: Update.
11099         * modules/striconveh: Update.
11100         * lib/unistr/u8-to-u16.c: Update.
11101         * modules/unistr/u8-to-u16: Update.
11102         * lib/unistr/u8-to-u32.c: Update.
11103         * modules/unistr/u8-to-u32: Update.
11104
11105 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11106
11107         Sync from Libtool.
11108         * lib/argz.c: Do not include strings.h nor memory.h, include
11109         string.h unconditionally.  Patch by Simon Josefsson.
11110
11111 2007-01-27  Bruno Haible  <bruno@clisp.org>
11112
11113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
11114         from gl_HEADER_STRING_H_BODY.
11115         (gl_HEADER_STRING_H_BODY): Require it.
11116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
11117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
11118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
11119         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
11120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11121         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
11122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
11124         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
11125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11126         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
11127         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
11128         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
11129         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11130         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11131
11132 2007-01-27  Bruno Haible  <bruno@clisp.org>
11133
11134         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
11135         check_PROGRAMS into noinst_PROGRAMS.
11136         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
11137         check_PROGRAMS in this case.
11138         (func_import): Set for_test to false.
11139         (func_create_testdir): Set for_test to true.
11140
11141 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11142             Bruno Haible  <bruno@clisp.org>
11143
11144         * modules/strcasestr (Files): Remove lib/strcasestr.h.
11145         (Depends-on): Add string.
11146         (Includes): Use <string.h> instead of strcasestr.h.
11147         * modules/string (Makefile.am): Also substitute the value of
11148         REPLACE_STRCASESTR.
11149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
11150         assume strcasestr is declared in <string.h> not <strings.h>. Also
11151         set REPLACE_STRCASESTR.
11152         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
11153         REPLACE_STRCASESTR.
11154         * lib/strcasestr.h: Remove file.
11155         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
11156         * lib/string_.h (strcasestr): New declaration.
11157
11158 2007-01-27  Bruno Haible  <bruno@clisp.org>
11159
11160         * lib/string_.h: Use 'extern'.
11161
11162 2007-01-27  Jim Meyering  <jim@meyering.net>
11163
11164         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
11165         of set-but-not-used local, "q".
11166
11167         * lib/mempcpy.c: Include <config.h> before <string.h>.
11168         This fixes a compilation error on HP-UX, due to the system's
11169         "restrict"-using mempcpy prototype.
11170
11171 2007-01-26  Bruno Haible  <bruno@clisp.org>
11172
11173         Small optimization.
11174         * lib/javacomp.c: Include c-strstr.h.
11175          (is_envjavac_gcj): Use c_strstr instead of strstr.
11176         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
11177
11178 2007-01-26  Bruno Haible  <bruno@clisp.org>
11179
11180         * MODULES.html.sh (Unicode string functions): Add the new modules.
11181
11182         * modules/uniconv/u32-strconv-to-locale: New file.
11183         * lib/uniconv/u32-strconv-to-locale.c: New file.
11184
11185         * modules/uniconv/u16-strconv-to-locale: New file.
11186         * lib/uniconv/u16-strconv-to-locale.c: New file.
11187
11188         * modules/uniconv/u8-strconv-to-locale: New file.
11189         * lib/uniconv/u8-strconv-to-locale.c: New file.
11190
11191         * modules/uniconv/u32-strconv-from-locale: New file.
11192         * lib/uniconv/u32-strconv-from-locale.c: New file.
11193
11194         * modules/uniconv/u16-strconv-from-locale: New file.
11195         * lib/uniconv/u16-strconv-from-locale.c: New file.
11196
11197         * modules/uniconv/u8-strconv-from-locale: New file.
11198         * lib/uniconv/u8-strconv-from-locale.c: New file.
11199
11200         * modules/uniconv/u32-strconv-to-enc: New file.
11201         * lib/uniconv/u32-strconv-to-enc.c: New file.
11202         * modules/uniconv/u32-strconv-to-enc-tests: New file.
11203         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
11204
11205         * modules/uniconv/u16-strconv-to-enc: New file.
11206         * lib/uniconv/u16-strconv-to-enc.c: New file.
11207         * lib/uniconv/u-strconv-to-enc.h: New file.
11208         * modules/uniconv/u16-strconv-to-enc-tests: New file.
11209         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
11210
11211         * modules/uniconv/u8-strconv-to-enc: New file.
11212         * lib/uniconv/u8-strconv-to-enc.c: New file.
11213         * modules/uniconv/u8-strconv-to-enc-tests: New file.
11214         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
11215
11216         * modules/uniconv/u32-strconv-from-enc: New file.
11217         * lib/uniconv/u32-strconv-from-enc.c: New file.
11218         * modules/uniconv/u32-strconv-from-enc-tests: New file.
11219         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
11220
11221         * modules/uniconv/u16-strconv-from-enc: New file.
11222         * lib/uniconv/u16-strconv-from-enc.c: New file.
11223         * modules/uniconv/u16-strconv-from-enc-tests: New file.
11224         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
11225
11226         * modules/uniconv/u8-strconv-from-enc: New file.
11227         * lib/uniconv/u8-strconv-from-enc.c: New file.
11228         * lib/uniconv/u-strconv-from-enc.h: New file.
11229         * modules/uniconv/u8-strconv-from-enc-tests: New file.
11230         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
11231
11232         * modules/uniconv/u32-conv-from-enc: New file.
11233         * lib/uniconv/u32-conv-from-enc.c: New file.
11234         * modules/uniconv/u32-conv-from-enc-tests: New file.
11235         * tests/uniconv/test-u32-conv-from-enc.c: New file.
11236
11237         * modules/uniconv/u16-conv-from-enc: New file.
11238         * lib/uniconv/u16-conv-from-enc.c: New file.
11239         * lib/uniconv/u-conv-from-enc.h: New file.
11240         * modules/uniconv/u16-conv-from-enc-tests: New file.
11241         * tests/uniconv/test-u16-conv-from-enc.c: New file.
11242
11243         * modules/uniconv/u8-conv-from-enc: New file.
11244         * lib/uniconv/u8-conv-from-enc.c: New file.
11245         * modules/uniconv/u8-conv-from-enc-tests: New file.
11246         * tests/uniconv/test-u8-conv-from-enc.c: New file.
11247
11248         * modules/uniconv/base: New file.
11249         * lib/uniconv.h: New file.
11250
11251 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
11252
11253         * doc/gnulib-tool.texi (Initial import): Update to match current
11254         behavior with strdup module.
11255         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
11256         * lib/memmem.h: Remove; all uses removed.  This is now done
11257         by <string.h>.
11258         * lib/mempcpy.h: Likewise.
11259         * lib/memrchr.h: Likewise.
11260         * lib/stpcpy.h: Likewise.
11261         * lib/stpncpy.h: Likewise.
11262         * lib/strcase.h: Likewise.
11263         * lib/strchrnul.h: Likewise.
11264         * lib/strdup.h: Likewise.
11265         * lib/strndup.h: Likewise.
11266         * lib/strnlen.h: Likewise.
11267         * lib/strpbrk.h: Likewise.
11268         * lib/strsep.h: Likewise.
11269         * lib/strstr.h: Likewise.
11270         * lib/strtok_r.h: Likewise.
11271         * lib/string_.h: New file.
11272         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
11273         Rely on <string.h> instead.
11274         * lib/canon-host.c: Likewise.
11275         * lib/chdir-long.c: Likewise.
11276         * lib/concatpath.c: Likewise.
11277         * lib/exclude.c: Likewise.
11278         * lib/fchdir.c: Likewise.
11279         * lib/getaddrinfo.c: Likewise.
11280         * lib/getcwd.c: Likewise.
11281         * lib/getsubopt.c: Likewise.
11282         * lib/glob.c: Likewise.
11283         * lib/hard-locale.c: Likewise.
11284         * lib/iconvme.c: Likewise.
11285         * lib/javacomp.c: Likewise.
11286         * lib/mempcpy.c: Likewise.
11287         * lib/memrchr.c: Likewise.
11288         * lib/regex_internal.h: Likewise.
11289         * lib/stpncpy.c: Likewise.
11290         * lib/strcasecmp.c: Likewise.
11291         * lib/strchrnul.c: Likewise.
11292         * lib/strdup.c: Likewise.
11293         * lib/striconv.c: Likewise.
11294         * lib/striconveh.c: Likewise.
11295         * lib/striconveha.c: Likewise.
11296         * lib/strncasecmp.c: Likewise.
11297         * lib/strndup.c: Likewise.
11298         * lib/strnlen.c: Likewise.
11299         * lib/strsep.c: Likewise.
11300         * lib/strstr.c: Likewise.
11301         * lib/strtok_r.c: Likewise.
11302         * lib/userspec.c: Likewise.
11303         * lib/w32spawn.h: Likewise.
11304         * lib/xstrndup.c: Likewise.
11305         * lib/mountlist.c (strstr): Remove decl.
11306         * m4/string_h.m4: New file.
11307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
11308         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
11309         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
11310         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
11311         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
11312         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
11313         Set REPLACE_STRCASECMP if necessary.
11314         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
11315         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
11316         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
11317         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
11318         HAVE_DECL_STRDUP if necessary.
11319         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
11320         since gl_FUNC_STRNDUP does that now.
11321         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
11322         Check for decl here...
11323         (gl_PREREQ_STRNLEN): ... not here.
11324         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
11325         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
11326         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
11327         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
11328         necessary.
11329         * modules/string: New file.
11330         * modules/memmem (Files): Remove special-purpose include file.
11331         (Depends-on): Add string.
11332         (Include): Include <string.h>, not the removed file.
11333         * modules/mempcpy: Likewise.
11334         * modules/memrchr: Likewise.
11335         * modules/stpcpy: Likewise.
11336         * modules/stpncpy: Likewise.
11337         * modules/strcase: Likewise.
11338         * modules/strchrnul: Likewise.
11339         * modules/strdup: Likewise.
11340         * modules/strndup: Likewise.
11341         * modules/strnlen: Likewise.
11342         * modules/strpbrk: Likewise.
11343         * modules/strsep: Likewise.
11344         * modules/strstr: Likewise.
11345         * modules/strtok_r: Likewise.
11346         * tests/test-dirname.c: Don't include "strdup.h", since
11347         <string.h> now suffices.
11348         * tests/test-memmem.c: Don't include "memmem.h", since
11349         <string.h> now suffices.
11350
11351 2007-01-25  Bruno Haible  <bruno@clisp.org>
11352
11353         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
11354         *resultp is 0.
11355
11356         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
11357         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
11358         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
11359         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
11360
11361         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
11362         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
11363         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
11364         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
11365         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
11366         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
11367
11368 2007-01-24  Bruno Haible  <bruno@clisp.org>
11369
11370         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
11371         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
11372         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
11373         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
11374         gl_FUNC_FTS_CORE.
11375         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
11376         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
11377         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11378         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
11379         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
11380         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
11381         gl_FUNC_FCHOWNAT.
11382         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
11383         gl_FUNC_STRFTIME.
11384         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
11385         Reported by Ralf Wildenhues.
11386
11387 2007-01-24  Bruno Haible  <bruno@clisp.org>
11388
11389         Drop AC_REQUIRE calls that are redundant with the module dependencies.
11390         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
11391         gl_GETADDRINFO.
11392         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
11393         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
11394         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
11395
11396 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
11399         Don't use 'exit'; just return from 'main'.
11400         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
11401
11402         * lib/fnmatch_.h: Readjust white space and comments to match
11403         glibc, to avoid spurious diffs.
11404
11405 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11406
11407         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
11408         2004-12-01 change by Jakub Jelinek, since this code won't compile
11409         if !LIBC.  Problem reported by Bob Proulx.
11410
11411 2007-01-23  Bruno Haible  <bruno@clisp.org>
11412
11413         * lib/striconveh.c: Include c-strcaseeq.h.
11414         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
11415         * modules/striconveh (Depends-on): Add c-strcaseeq.
11416
11417 2007-01-23  Bruno Haible  <bruno@clisp.org>
11418
11419         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
11420
11421         * modules/c-strcaseeq: New file.
11422         * lib/c-strcaseeq.h: New file.
11423
11424         * modules/streq: New file.
11425         * lib/streq.h: New file.
11426
11427 2007-01-23  Bruno Haible  <bruno@clisp.org>
11428
11429         * modules/striconveha-tests: New file.
11430         * tests/test-striconveha.c: New file.
11431
11432         * lib/striconveha.h: Include <stdbool.h>.
11433         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
11434         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
11435         (mem_iconveha_notranslit): Renamed from mem_iconveha.
11436         (mem_iconveha): New function.
11437         (str_iconveha_notranslit): Renamed from str_iconveha.
11438         (str_iconveha): New function.
11439         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
11440         c-strcase.
11441
11442 2007-01-23  Bruno Haible  <bruno@clisp.org>
11443
11444         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
11445         encodings without forgiving before trying any encoding with handler.
11446         (str_iconveha): Try all encodings without forgiving before trying any
11447         encoding with handler.
11448
11449 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11450
11451         Import the following changes from libc.
11452
11453         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
11454
11455         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
11456
11457         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
11458
11459         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
11460         normal_bracket label.
11461
11462         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
11463
11464         [BZ #361]
11465         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
11466         to normal_bracket after fetching the next character.
11467
11468 2007-01-22  Bruno Haible  <bruno@clisp.org>
11469
11470         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
11471         argument.
11472         * lib/striconveh.c (iconv_carefully_1): New function.
11473         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
11474         argument.
11475         (str_cd_iconveh): Update.
11476         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
11477         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
11478         * tests/test-striconveh.c (MAGIC): New macro.
11479         (new_offsets): New function.
11480         (main): Test call with and without offsets.
11481
11482 2007-01-22  Bruno Haible  <bruno@clisp.org>
11483
11484         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
11485         * modules/sys_select (Makefile.am): Likewise.
11486         * modules/sys_socket (Makefile.am): Likewise.
11487         * modules/sys_time (Makefile.am): Likewise.
11488
11489 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11490
11491         * modules/gettimeofday (License): Change from GPL to LGPL, since
11492         gettimeofday is a library function.
11493
11494 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11495
11496         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
11497
11498 2007-01-21  Bruno Haible  <bruno@clisp.org>
11499
11500         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
11501
11502 2007-01-21  Bruno Haible  <bruno@clisp.org>
11503
11504         * modules/striconveha: New file.
11505         * lib/striconveha.h: New file.
11506         * lib/striconveha.c: New file.
11507         * MODULES.html.sh (Internationalization functions): Add striconveha.
11508         * lib/striconv.c (str_iconv): Optimize the case of an empty input
11509         string.
11510         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
11511
11512 2007-01-21  Bruno Haible  <bruno@clisp.org>
11513
11514         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
11515         * lib/striconveh.c (str_iconveh): Likewise.
11516
11517 2007-01-21  Bruno Haible  <bruno@clisp.org>
11518
11519         * lib/striconveh.h (mem_iconveh): New declaration.
11520         * lib/striconveh.c (mem_iconveh): New function.
11521         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
11522
11523 2007-01-21  Bruno Haible  <bruno@clisp.org>
11524
11525         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
11526
11527         * lib/striconveh.h (mem_cd_iconveh): Change specification.
11528         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
11529         original result buffer.
11530         (str_cd_iconveh): Update.
11531         * tests/test-striconveh.c (main): Update.
11532
11533         * lib/striconv.h (mem_cd_iconv): Change specification.
11534         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
11535         result buffer.
11536         (str_cd_iconv): Update.
11537         * tests/test-striconv.c (main): Update.
11538
11539 2007-01-21  Bruno Haible  <bruno@clisp.org>
11540
11541         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
11542
11543 2007-01-20  Jim Meyering  <jim@meyering.net>
11544
11545         * lib/userspec.c (parse_with_separator): If a user or group string
11546         starts with "+", skip the corresponding name-to-ID look-up, since
11547         such a look-up must fail: user and group names may not include "+".
11548
11549 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11550
11551         * lib/poll.c: Include sys/time.h and time.h unconditionally,
11552         since we now assume the sys_time module.
11553         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
11554         check for sys/time.h; no longer needed.
11555         * modules/poll (Depends-on): Depend on sys_time.
11556
11557 2007-01-18  Bruno Haible  <bruno@clisp.org>
11558
11559         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
11560         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
11561
11562         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
11563         gettimeofday.
11564
11565         * tests/test-gettimeofday.c: Include <time.h>.
11566         (dummy): Remove variable.
11567
11568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
11569         gl_HEADER_SYS_TIME_H.
11570         (gl_HEADER_SYS_TIME_H): New macro.
11571
11572         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
11573         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11575         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
11576         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11577         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
11578         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
11579         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11580         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
11581         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
11582         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11583
11584         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
11585         last change; it caused a compilation error when cross-compiling to
11586         Cygwin.
11587
11588 2007-01-18  Jim Meyering  <jim@meyering.net>
11589
11590         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
11591         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
11592         than the race-prone "test -d sys || mkdir sys".
11593         (configure.ac): Use AC_PROG_MKDIR_P.
11594         * modules/sys_select: Likewise.
11595         * modules/sys_socket: Likewise.
11596         * modules/sys_time: Likewise.
11597
11598 2007-01-18  Eric Blake  <ebb9@byu.net>
11599
11600         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
11601         replace gettimeofday.
11602         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
11603         name, to avoid infinite recursion.
11604
11605 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
11606
11607         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
11608         module sys_time.
11609         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
11610         assume timespec.h defines struct timeval.
11611         * lib/settime.c: Likewise.
11612         * lib/utimens.c: Likewise.
11613         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
11614         since we now assume the gettimeofday module.
11615         * lib/tempname.c (__gen_tempname): Likewise.
11616         * lib/gettimeofday.h: Remove.
11617         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
11618         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
11619         Include <time.h>, for 'time()'.
11620         (localtime_buffer_addr): Also use this workaround if
11621         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
11622         to simplify the uses.  All uses changed.
11623         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
11624         that #undef is inside {}, and 'const' follows type name consistently.
11625         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
11626         (gettimeofday): Do not use the maximum possible value for
11627         tv->tv_usec, since that might break usages other than ls.c.
11628         Instead, we'll leave ls.c alone.  This undoes today's patch
11629         by Bruno.  Add a compile-time warning for 1s-clock resolution;
11630         we've never observed the problem but might as well keep the
11631         canary.
11632         * lib/nanosleep.c: Include timespec.h first, for interface check.
11633         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
11634         now assume the sys_time module.
11635         * lib/tempname.c: Likewise.
11636         * lib/timespec.h: Likewise.
11637         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
11638         needed.
11639         * lib/strftime.c: Likewise.
11640         * lib/timespec.h: Likewise.
11641         * lib/posixtm.c: Include posixtm.h first, for interface check.
11642         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
11643         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
11644         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
11645         * lib/sys_time_.h: New file.
11646         * lib/timespec.h (struct timespec): Use long int, not long.
11647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
11648         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
11649         Remove obsolescent call to AC_HEADER_TIME.
11650         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11652         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
11653         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
11654         Likewise.
11655         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11656         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
11657         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
11658         into the sys_time module.  Check for gettimeofday just once.
11659         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
11660         for gettimeofday signature to just check the signature.  Merely
11661         compile it, since linking doesn't test signature.  Improve test for
11662         whether gettimeofday.o is actually needed.
11663         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
11664         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
11665         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
11666         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11667         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
11668         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
11669         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
11670         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
11671         than worrying about sys/time.h.
11672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11673         Don't bother worrying about TIME_WITH_SYS_TIME.
11674         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11675         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
11676         * m4/sys_time_h.m4: New file.
11677         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
11678         Don't include sys/time.h.  Return from main rather than exiting.
11679         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
11680         all uses changed.
11681         * modules/gethrxtime (Depends-on): Add sys_time.
11682         * modules/gettime (Depends-on): Likewise.
11683         * modules/gettimeofday (Depends-on): Likewise.
11684         * modules/nanosleep (Depends-on): Likewise.
11685         * modules/settime (Depends-on): Likewise.
11686         * modules/tempname (Depends-on): Likewise.
11687         * modules/utimens (Depends-on): Likewise.
11688         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
11689         (Include:) Change back to <sys/time.h>.
11690         (Maintainer:) Add self.
11691         * modules/sys_time: New file.
11692         * modules/tempname (Depends-on): Add gettimeofday.
11693         * tests/test-gettimeofday.c: Include <sys/time.h>
11694         rather than gettimeofday.h.
11695
11696 2007-01-17  Bruno Haible  <bruno@clisp.org>
11697
11698         * gnulib-tool (func_get_license): Revert last patch. Instead, let
11699         the license default to GPL.
11700         (func_create_testdir): Don't complain if a module is LGPL and its
11701         tests module depends on GPLed modules.
11702
11703 2007-01-17  Bruno Haible  <bruno@clisp.org>
11704
11705         * lib/gettimeofday.c (gettimeofday): Add code for the case
11706         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
11707         maximum possible value for tv->tv_usec, rather than the minimum one.
11708
11709 2005-10-08  Martin Lambers  <marlam@marlam.de>
11710 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11711 2007-01-16  Bruno Haible  <bruno@clisp.org>
11712
11713         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
11714         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
11715         gl_FUNC_GETTIMEOFDAY.
11716         (Include): Add gettimeofday.h.
11717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
11718         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
11719         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
11720         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
11721         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
11722         * lib/gettimeofday.h: New file.
11723         * lib/gettimeofday.c: Include <sys/timeb.h>.
11724         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
11725         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
11726         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
11727         fall back on time().
11728
11729         * tests/test-gettimeofday.c: New file.
11730         * modules/gettimeofday-tests: New file.
11731
11732 2007-01-16  Eric Blake  <ebb9@byu.net>
11733
11734         * modules/fnmatch (Depends-on): Depend on wchar.
11735         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
11736         * m4/fnmatch.m4: Likewise.
11737         * modules/mbchar (Makefile.am): Assume <wchar.h>.
11738         * m4/mbchar.m4: Likewise.
11739         * modules/mbswidth (Depends-on): Depend on wchar.
11740         * lib/mbswidth.c: Assume <wchar.h>.
11741         * m4/mbswidth.m4: Likewise.
11742         * modules/quotearg (Depends-on): Depend on wchar.
11743         * lib/quotearg.c: Assume <wchar.h>.
11744         * m4/quotearg.m4: Likewise.
11745         * modules/regex (Depends-on): Depend on wchar.
11746         * lib/regex_internal.h: Assume <wchar.h>.
11747         * m4/regex.m4: Likewise.
11748         * modules/stdint (Depends-on): Depend on wchar.
11749         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
11750         * m4/stdint.m4: Likewise.
11751         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
11752         * modules/strftime (Depends-on): Depend on wchar.
11753         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
11754         * modules/strtol (Depends-on): Depend on wchar.
11755         * lib/strtol.c: Assume <wchar.h>.
11756         * modules/wcwidth (Depends-on): Depend on wchar.
11757         * lib/wcwidth.h: Assume <wchar.h>.
11758         * m4/wcwidth.m4: Likewise.
11759
11760 2007-01-16  Bruno Haible  <bruno@clisp.org>
11761
11762         * modules/csharpexec-script: New, created from...
11763         * modules/csharpexec: ... this.
11764
11765 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
11766
11767         * modules/javaexec-script: New, created from...
11768         * modules/javaexec: ... this.
11769
11770 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11771
11772         * modules/poll (Dependencies): Add sys_select.
11773
11774 2007-01-15  Jim Meyering  <jim@meyering.net>
11775
11776         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
11777         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
11778         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
11779         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
11780
11781 2007-01-15  Bruno Haible  <bruno@clisp.org>
11782
11783         * modules/striconveh: New file.
11784         * lib/striconveh.h: New file.
11785         * lib/striconveh.c: New file.
11786         * MODULES.html.sh (Internationalization functions): Add striconveh.
11787
11788         * modules/striconveh-tests: New file.
11789         * tests/test-striconveh.c: New file.
11790
11791 2007-01-15  Bruno Haible  <bruno@clisp.org>
11792
11793         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
11794         not from GNU libiconv or GNU libc.
11795
11796 2007-01-15  Bruno Haible  <bruno@clisp.org>
11797
11798         * doc/gnulib-intro.texi (Copyright): Explain the different license
11799         terms for module descriptions, autoconf macros, tests, documentation.
11800
11801 2007-01-14  Bruno Haible  <bruno@clisp.org>
11802
11803         * modules/striconv-tests: New file.
11804         * tests/test-striconv.c: New file.
11805
11806 2007-01-14  Bruno Haible  <bruno@clisp.org>
11807
11808         * modules/iconv-tests: New file.
11809         * tests/test-iconv.c: New file.
11810
11811 2007-01-14  Bruno Haible  <bruno@clisp.org>
11812
11813         * gnulib-tool (func_get_license): For test modules, use the license of
11814         the main module.
11815
11816 2007-01-14  Bruno Haible  <bruno@clisp.org>
11817
11818         * modules/iconv (Include): Clarify that <iconv.h> can only be included
11819         if iconv is found to exist.
11820
11821 2007-01-14  Bruno Haible  <bruno@clisp.org>
11822
11823         * modules/c-ctype-tests: New file.
11824         * tests/test-c-ctype.c: New file.
11825
11826 2007-01-14  Bruno Haible  <bruno@clisp.org>
11827
11828         * modules/binary-io-tests: New file.
11829         * tests/test-binary-io.sh: New file.
11830         * tests/test-binary-io.c: New file.
11831
11832 2007-01-14  Bruno Haible  <bruno@clisp.org>
11833
11834         * modules/array-oset-tests: New file.
11835         * tests/test-array_oset.c: New file.
11836
11837 2007-01-14  Bruno Haible  <bruno@clisp.org>
11838
11839         * modules/array-list-tests: New file.
11840         * tests/test-array_list.c: New file.
11841
11842 2007-01-14  Bruno Haible  <bruno@clisp.org>
11843
11844         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
11845         and make.
11846         Reported by Simon Josefsson in
11847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
11848
11849 2007-01-14  Bruno Haible  <bruno@clisp.org>
11850
11851         * modules/allocsa-tests: New file.
11852         * tests/test-allocsa.c: New file.
11853
11854 2007-01-14  Bruno Haible  <bruno@clisp.org>
11855
11856         * modules/fchdir (Depends-on): Add absolute-header.
11857         * modules/unistd (Depends-on): Likewise.
11858
11859 2006-12-30  Bruno Haible  <bruno@clisp.org>
11860
11861         * modules/fchdir: New file.
11862         * modules/unistd (Files): Add lib/unistd_.h.
11863         (Makefile.am): Generate unistd.h from unistd_.h.
11864         * lib/fchdir.c: New file.
11865         * lib/dirent_.h: New file.
11866         * lib/unistd_.h: New file.
11867         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
11868         * m4/fchdir.m4: New file.
11869         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
11870         (gl_HEADER_UNISTD): Invoke it.
11871         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
11872         function.
11873         * lib/backupfile.c (opendir, closedir): Undefine.
11874         * lib/chown.c (open, close): Undefine.
11875         * lib/clean-temp.c (open, close): Undefine.
11876         * lib/copy-file.c (open, close): Undefine.
11877         * lib/execute.c (open, close): Undefine.
11878         * lib/fsusage.c (open, close): Undefine.
11879         * lib/gc-gnulib.c (open, close): Undefine.
11880         * lib/getcwd.c (opendir, closedir): Undefine.
11881         * lib/glob.c (opendir, closedir): Undefine.
11882         * lib/javacomp.c (open, close): Undefine.
11883         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
11884         * lib/openat-proc.c (open, close): Undefine.
11885         * lib/pagealign_alloc.c (open, close): Undefine.
11886         * lib/pipe.c (open, close): Undefine.
11887         * lib/progreloc.c (open, close): Undefine.
11888         * lib/savedir.c (opendir, closedir): Undefine.
11889         * lib/utime.c (open, close): Undefine.
11890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
11891
11892 2007-01-10  Bruno Haible  <bruno@clisp.org>
11893
11894         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
11895
11896 2007-01-12  Eric Blake  <ebb9@byu.net>
11897
11898         Provide a robust <wchar.h>.  Further simplifications are now
11899         possible in other modules, but not included here.
11900         * modules/wchar: New module.
11901         * m4/wchar.m4: New file.
11902         * lib/wchar_.h: Likewise.
11903         * modules/mbchar (Depends-on): Depend on wchar, as the first use
11904         of the new module.
11905         * MODULES.html.sh (Extended multibyte and wide character utilities):
11906         New section.
11907
11908 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
11909
11910         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
11911         to a reasonable default for memory allocation.
11912         (xreadlink): Don't allocate a huge buffer, to work around a buggy
11913         file system that reports garbage st_size values for symlinks.
11914         Problem reported by Liyang Hu.
11915
11916 2007-01-11  Simon Josefsson  <simon@josefsson.org>
11917
11918         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
11919         Emacs .#* auto-save files).
11920
11921 2007-01-11  Bruno Haible  <bruno@clisp.org>
11922
11923         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
11924         directory.
11925
11926 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11927
11928         Use @...@ consistently in lib/wctype_.h.
11929         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
11930         on it being set to 1 or 0.
11931         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
11932         go back to AC_SUBSTing it.
11933         * modules/wctype (Makefile.am): Undo previous change.
11934
11935 2007-01-10  Eric Blake  <ebb9@byu.net>
11936
11937         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
11938         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
11939         * modules/wctype (Makefile.am): Likewise.
11940         Reported by Chris McGuire.
11941
11942 2007-01-10  Jim Meyering  <jim@meyering.net>
11943
11944         fts.c: a small readability/maintainability improvement
11945         * lib/fts.c (fts_read): Make this code slightly more readable and
11946         maintainable by hoisting the "sp->fts_cur = p" assignments to
11947         immediately follow the statements that set P.  Derived from
11948         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
11949
11950 2007-01-10  Eric Blake  <ebb9@byu.net>
11951
11952         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
11953         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
11954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11955         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11956         Reported by Chris McGuire.
11957
11958 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11959
11960         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
11961         in sed script.
11962
11963 2007-01-09  Bruno Haible  <bruno@clisp.org>
11964
11965         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
11966         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
11967         variables.
11968         (func_module): Use them.
11969
11970 2007-01-09  Bruno Haible  <bruno@clisp.org>
11971
11972         * modules/unistr/base: New file.
11973         * lib/unistr.h: New file.
11974
11975         * modules/unistr/u8-to-u16: New file.
11976         * lib/unistr/u8-to-u16.c: New file.
11977
11978         * modules/unistr/u8-to-u32: New file.
11979         * lib/unistr/u8-to-u32.c: New file.
11980
11981         * modules/unistr/u16-to-u8: New file.
11982         * lib/unistr/u16-to-u8.c: New file.
11983
11984         * modules/unistr/u16-to-u32: New file.
11985         * lib/unistr/u16-to-u32.c: New file.
11986
11987         * modules/unistr/u32-to-u8: New file.
11988         * lib/unistr/u32-to-u8.c: New file.
11989
11990         * modules/unistr/u32-to-u16: New file.
11991         * lib/unistr/u32-to-u16.c: New file.
11992
11993         * modules/unistr/u8-check: New file.
11994         * modules/unistr/u16-check: New file.
11995         * modules/unistr/u32-check: New file.
11996         * lib/unistr/u8-check.c: New file.
11997         * lib/unistr/u16-check.c: New file.
11998         * lib/unistr/u32-check.c: New file.
11999
12000         * modules/unistr/u8-chr: New file.
12001         * modules/unistr/u16-chr: New file.
12002         * modules/unistr/u32-chr: New file.
12003         * lib/unistr/u8-chr.c: New file.
12004         * lib/unistr/u16-chr.c: New file.
12005         * lib/unistr/u32-chr.c: New file.
12006
12007         * modules/unistr/u8-cmp: New file.
12008         * modules/unistr/u16-cmp: New file.
12009         * modules/unistr/u32-cmp: New file.
12010         * lib/unistr/u8-cmp.c: New file.
12011         * lib/unistr/u16-cmp.c: New file.
12012         * lib/unistr/u32-cmp.c: New file.
12013
12014         * modules/unistr/u8-cpy: New file.
12015         * modules/unistr/u16-cpy: New file.
12016         * modules/unistr/u32-cpy: New file.
12017         * lib/unistr/u8-cpy.c: New file.
12018         * lib/unistr/u16-cpy.c: New file.
12019         * lib/unistr/u32-cpy.c: New file.
12020         * lib/unistr/u-cpy.h: New file.
12021
12022         * modules/unistr/u8-cpy-alloc: New file.
12023         * modules/unistr/u16-cpy-alloc: New file.
12024         * modules/unistr/u32-cpy-alloc: New file.
12025         * lib/unistr/u8-cpy-alloc.c: New file.
12026         * lib/unistr/u16-cpy-alloc.c: New file.
12027         * lib/unistr/u32-cpy-alloc.c: New file.
12028         * lib/unistr/u-cpy-alloc.h: New file.
12029
12030         * modules/unistr/u8-endswith: New file.
12031         * modules/unistr/u16-endswith: New file.
12032         * modules/unistr/u32-endswith: New file.
12033         * lib/unistr/u8-endswith.c: New file.
12034         * lib/unistr/u16-endswith.c: New file.
12035         * lib/unistr/u32-endswith.c: New file.
12036         * lib/unistr/u-endswith.h: New file.
12037
12038         * modules/unistr/u8-mblen: New file.
12039         * modules/unistr/u16-mblen: New file.
12040         * modules/unistr/u32-mblen: New file.
12041         * lib/unistr/u8-mblen.c: New file.
12042         * lib/unistr/u16-mblen.c: New file.
12043         * lib/unistr/u32-mblen.c: New file.
12044
12045         * modules/unistr/u8-mbtouc: New file.
12046         * modules/unistr/u16-mbtouc: New file.
12047         * modules/unistr/u32-mbtouc: New file.
12048         * lib/unistr/u8-mbtouc.c: New file.
12049         * lib/unistr/u16-mbtouc.c: New file.
12050         * lib/unistr/u32-mbtouc.c: New file.
12051
12052         * modules/unistr/u8-mbtouc-safe: New file.
12053         * modules/unistr/u16-mbtouc-safe: New file.
12054         * modules/unistr/u32-mbtouc-safe: New file.
12055         * lib/unistr/u8-mbtouc-safe.c: New file.
12056         * lib/unistr/u16-mbtouc-safe.c: New file.
12057         * lib/unistr/u32-mbtouc-safe.c: New file.
12058
12059         * modules/unistr/u8-move: New file.
12060         * modules/unistr/u16-move: New file.
12061         * modules/unistr/u32-move: New file.
12062         * lib/unistr/u8-move.c: New file.
12063         * lib/unistr/u16-move.c: New file.
12064         * lib/unistr/u32-move.c: New file.
12065         * lib/unistr/u-move.h: New file.
12066
12067         * modules/unistr/u8-next: New file.
12068         * modules/unistr/u16-next: New file.
12069         * modules/unistr/u32-next: New file.
12070         * lib/unistr/u8-next.c: New file.
12071         * lib/unistr/u16-next.c: New file.
12072         * lib/unistr/u32-next.c: New file.
12073
12074         * modules/unistr/u8-prev: New file.
12075         * modules/unistr/u16-prev: New file.
12076         * modules/unistr/u32-prev: New file.
12077         * lib/unistr/u8-prev.c: New file.
12078         * lib/unistr/u16-prev.c: New file.
12079         * lib/unistr/u32-prev.c: New file.
12080
12081         * modules/unistr/u8-set: New file.
12082         * modules/unistr/u16-set: New file.
12083         * modules/unistr/u32-set: New file.
12084         * lib/unistr/u8-set.c: New file.
12085         * lib/unistr/u16-set.c: New file.
12086         * lib/unistr/u32-set.c: New file.
12087         * lib/unistr/u-set.h: New file.
12088
12089         * modules/unistr/u8-startswith: New file.
12090         * modules/unistr/u16-startswith: New file.
12091         * modules/unistr/u32-startswith: New file.
12092         * lib/unistr/u8-startswith.c: New file.
12093         * lib/unistr/u16-startswith.c: New file.
12094         * lib/unistr/u32-startswith.c: New file.
12095         * lib/unistr/u-startswith.h: New file.
12096
12097         * modules/unistr/u8-stpcpy: New file.
12098         * modules/unistr/u16-stpcpy: New file.
12099         * modules/unistr/u32-stpcpy: New file.
12100         * lib/unistr/u8-stpcpy.c: New file.
12101         * lib/unistr/u16-stpcpy.c: New file.
12102         * lib/unistr/u32-stpcpy.c: New file.
12103         * lib/unistr/u-stpcpy.h: New file.
12104
12105         * modules/unistr/u8-stpncpy: New file.
12106         * modules/unistr/u16-stpncpy: New file.
12107         * modules/unistr/u32-stpncpy: New file.
12108         * lib/unistr/u8-stpncpy.c: New file.
12109         * lib/unistr/u16-stpncpy.c: New file.
12110         * lib/unistr/u32-stpncpy.c: New file.
12111         * lib/unistr/u-stpncpy.h: New file.
12112
12113         * modules/unistr/u8-strcat: New file.
12114         * modules/unistr/u16-strcat: New file.
12115         * modules/unistr/u32-strcat: New file.
12116         * lib/unistr/u8-strcat.c: New file.
12117         * lib/unistr/u16-strcat.c: New file.
12118         * lib/unistr/u32-strcat.c: New file.
12119         * lib/unistr/u-strcat.h: New file.
12120
12121         * modules/unistr/u8-strchr: New file.
12122         * modules/unistr/u16-strchr: New file.
12123         * modules/unistr/u32-strchr: New file.
12124         * lib/unistr/u8-strchr.c: New file.
12125         * lib/unistr/u16-strchr.c: New file.
12126         * lib/unistr/u32-strchr.c: New file.
12127
12128         * modules/unistr/u8-strcmp: New file.
12129         * modules/unistr/u16-strcmp: New file.
12130         * modules/unistr/u32-strcmp: New file.
12131         * lib/unistr/u8-strcmp.c: New file.
12132         * lib/unistr/u16-strcmp.c: New file.
12133         * lib/unistr/u32-strcmp.c: New file.
12134
12135         * modules/unistr/u8-strcpy: New file.
12136         * modules/unistr/u16-strcpy: New file.
12137         * modules/unistr/u32-strcpy: New file.
12138         * lib/unistr/u8-strcpy.c: New file.
12139         * lib/unistr/u16-strcpy.c: New file.
12140         * lib/unistr/u32-strcpy.c: New file.
12141         * lib/unistr/u-strcpy.h: New file.
12142
12143         * modules/unistr/u8-strcspn: New file.
12144         * modules/unistr/u16-strcspn: New file.
12145         * modules/unistr/u32-strcspn: New file.
12146         * lib/unistr/u8-strcspn.c: New file.
12147         * lib/unistr/u16-strcspn.c: New file.
12148         * lib/unistr/u32-strcspn.c: New file.
12149         * lib/unistr/u-strcspn.h: New file.
12150
12151         * modules/unistr/u8-strdup: New file.
12152         * modules/unistr/u16-strdup: New file.
12153         * modules/unistr/u32-strdup: New file.
12154         * lib/unistr/u8-strdup.c: New file.
12155         * lib/unistr/u16-strdup.c: New file.
12156         * lib/unistr/u32-strdup.c: New file.
12157         * lib/unistr/u-strdup.h: New file.
12158
12159         * modules/unistr/u8-strlen: New file.
12160         * modules/unistr/u16-strlen: New file.
12161         * modules/unistr/u32-strlen: New file.
12162         * lib/unistr/u8-strlen.c: New file.
12163         * lib/unistr/u16-strlen.c: New file.
12164         * lib/unistr/u32-strlen.c: New file.
12165         * lib/unistr/u-strlen.h: New file.
12166
12167         * modules/unistr/u8-strmblen: New file.
12168         * modules/unistr/u16-strmblen: New file.
12169         * modules/unistr/u32-strmblen: New file.
12170         * lib/unistr/u8-strmblen.c: New file.
12171         * lib/unistr/u16-strmblen.c: New file.
12172         * lib/unistr/u32-strmblen.c: New file.
12173
12174         * modules/unistr/u8-strmbtouc: New file.
12175         * modules/unistr/u16-strmbtouc: New file.
12176         * modules/unistr/u32-strmbtouc: New file.
12177         * lib/unistr/u8-strmbtouc.c: New file.
12178         * lib/unistr/u16-strmbtouc.c: New file.
12179         * lib/unistr/u32-strmbtouc.c: New file.
12180
12181         * modules/unistr/u8-strncat: New file.
12182         * modules/unistr/u16-strncat: New file.
12183         * modules/unistr/u32-strncat: New file.
12184         * lib/unistr/u8-strncat.c: New file.
12185         * lib/unistr/u16-strncat.c: New file.
12186         * lib/unistr/u32-strncat.c: New file.
12187         * lib/unistr/u-strncat.h: New file.
12188
12189         * modules/unistr/u8-strncmp: New file.
12190         * modules/unistr/u16-strncmp: New file.
12191         * modules/unistr/u32-strncmp: New file.
12192         * lib/unistr/u8-strncmp.c: New file.
12193         * lib/unistr/u16-strncmp.c: New file.
12194         * lib/unistr/u32-strncmp.c: New file.
12195
12196         * modules/unistr/u8-strncpy: New file.
12197         * modules/unistr/u16-strncpy: New file.
12198         * modules/unistr/u32-strncpy: New file.
12199         * lib/unistr/u8-strncpy.c: New file.
12200         * lib/unistr/u16-strncpy.c: New file.
12201         * lib/unistr/u32-strncpy.c: New file.
12202         * lib/unistr/u-strncpy.h: New file.
12203
12204         * modules/unistr/u8-strnlen: New file.
12205         * modules/unistr/u16-strnlen: New file.
12206         * modules/unistr/u32-strnlen: New file.
12207         * lib/unistr/u8-strnlen.c: New file.
12208         * lib/unistr/u16-strnlen.c: New file.
12209         * lib/unistr/u32-strnlen.c: New file.
12210         * lib/unistr/u-strnlen.h: New file.
12211
12212         * modules/unistr/u8-strpbrk: New file.
12213         * modules/unistr/u16-strpbrk: New file.
12214         * modules/unistr/u32-strpbrk: New file.
12215         * lib/unistr/u8-strpbrk.c: New file.
12216         * lib/unistr/u16-strpbrk.c: New file.
12217         * lib/unistr/u32-strpbrk.c: New file.
12218         * lib/unistr/u-strpbrk.h: New file.
12219
12220         * modules/unistr/u8-strrchr: New file.
12221         * modules/unistr/u16-strrchr: New file.
12222         * modules/unistr/u32-strrchr: New file.
12223         * lib/unistr/u8-strrchr.c: New file.
12224         * lib/unistr/u16-strrchr.c: New file.
12225         * lib/unistr/u32-strrchr.c: New file.
12226
12227         * modules/unistr/u8-strspn: New file.
12228         * modules/unistr/u16-strspn: New file.
12229         * modules/unistr/u32-strspn: New file.
12230         * lib/unistr/u8-strspn.c: New file.
12231         * lib/unistr/u16-strspn.c: New file.
12232         * lib/unistr/u32-strspn.c: New file.
12233         * lib/unistr/u-strspn.h: New file.
12234
12235         * modules/unistr/u8-strstr: New file.
12236         * modules/unistr/u16-strstr: New file.
12237         * modules/unistr/u32-strstr: New file.
12238         * lib/unistr/u8-strstr.c: New file.
12239         * lib/unistr/u16-strstr.c: New file.
12240         * lib/unistr/u32-strstr.c: New file.
12241         * lib/unistr/u-strstr.h: New file.
12242
12243         * modules/unistr/u8-strtok: New file.
12244         * modules/unistr/u16-strtok: New file.
12245         * modules/unistr/u32-strtok: New file.
12246         * lib/unistr/u8-strtok.c: New file.
12247         * lib/unistr/u16-strtok.c: New file.
12248         * lib/unistr/u32-strtok.c: New file.
12249         * lib/unistr/u-strtok.h: New file.
12250
12251         * modules/unistr/u8-uctomb: New file.
12252         * modules/unistr/u16-uctomb: New file.
12253         * modules/unistr/u32-uctomb: New file.
12254         * lib/unistr/u8-uctomb.c: New file.
12255         * lib/unistr/u16-uctomb.c: New file.
12256         * lib/unistr/u32-uctomb.c: New file.
12257
12258         * MODULES.html.sh (Unicode string functions): Add the new modules.
12259
12260 2007-01-08  Bruno Haible  <bruno@clisp.org>
12261
12262         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
12263         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
12264         subdirectories.
12265
12266 2007-01-08  Karl Berry  <karl@gnu.org>
12267
12268         * doc/error.texi: mention that main() fns must set program_name
12269         when progname is used.
12270
12271 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
12272
12273         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
12274         WCTYPE_H is empty, for the benefit of builds from non-distclean
12275         directories.  Problem reported by Eric Blake in
12276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
12277
12278 2007-01-08  Bruno Haible  <bruno@clisp.org>
12279
12280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
12281         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
12282         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
12283         PROVIDE_CANONICALIZE_FILENAME_MODE.
12284         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
12285
12286 2007-01-08  Bruno Haible  <bruno@clisp.org>
12287
12288         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
12289         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
12290         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
12291         * lib/fts.c: Likewise.
12292         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
12293
12294 2006-12-25  Bruno Haible  <bruno@clisp.org>
12295
12296         * modules/utf8-ucs4-safe: New file.
12297         * lib/utf8-ucs4-safe.h: New file.
12298         * lib/unistr/utf8-ucs4-safe.c: New file.
12299
12300         * modules/utf16-ucs4-safe: New file.
12301         * lib/utf16-ucs4-safe.h: New file.
12302         * lib/unistr/utf16-ucs4-safe.c: New file.
12303
12304         * MODULES.html.sh (Unicode string functions): Add the new modules.
12305
12306 2007-01-08  Bruno Haible  <bruno@clisp.org>
12307
12308         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
12309         (Depends-on): Add unitypes.
12310         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
12311         (u8_mbtouc_aux): Move out to separate file.
12312         (u8_mbtouc): Use ucs4_t, uint8_t types.
12313         * lib/unistr/utf8-ucs4.c: New file.
12314
12315         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
12316         (Depends-on): Add unitypes.
12317         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
12318         (u16_mbtouc_aux): Move out to separate file.
12319         (u16_mbtouc): Use ucs4_t, uint16_t types.
12320         * lib/unistr/utf16-ucs4.c: New file.
12321
12322         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
12323         (Depends-on): Add unitypes.
12324         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
12325         (u8_uctomb_aux): Move out to separate file.
12326         (u8_uctomb): Use ucs4_t, uint8_t types.
12327         * lib/unistr/ucs4-utf8.c: New file.
12328
12329         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
12330         (Depends-on): Add unitypes.
12331         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
12332         (u16_uctomb_aux): Move out to separate file.
12333         (u16_uctomb): Use ucs4_t, uint16_t types.
12334         * lib/unistr/ucs4-utf16.c: New file.
12335
12336 2006-12-25  Bruno Haible  <bruno@clisp.org>
12337
12338         * modules/unitypes: New file.
12339         * lib/unitypes.h: New file.
12340         * MODULES.html.sh (func_all_modules): New section "Unicode string
12341         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
12342         this section. Add unitypes.
12343
12344 2007-01-08  Bruno Haible  <bruno@clisp.org>
12345
12346         Avoid variable names that conflict with those from libtool.
12347         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
12348         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
12349         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
12350         library_names_spec to acl_library_names_spec, hardcode_* to
12351         acl_hardcode_*.
12352         Reported by Ralf Wildenhues.
12353
12354 2007-01-08  Bruno Haible  <bruno@clisp.org>
12355
12356         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
12357         definition.
12358         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
12359         definition.
12360         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
12361         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
12362         definition.
12363         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
12364         definition.
12365         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
12366         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
12367         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
12368         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
12369         definition.
12370         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
12371         definition.
12372         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
12373         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
12374         GC_USE_<algorithm>.
12375         * lib/gc-libgcrypt.c: Likewise.
12376         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
12377         * modules/gc-arctwo (configure.ac): Likewise.
12378         * modules/gc-des (configure.ac): Likewise.
12379         * modules/gc-hmac-md5 (configure.ac): Likewise.
12380         * modules/gc-hmac-sha1 (configure.ac): Likewise.
12381         * modules/gc-md2 (configure.ac): Likewise.
12382         * modules/gc-md4 (configure.ac): Likewise.
12383         * modules/gc-md5 (configure.ac): Likewise.
12384         * modules/gc-random (configure.ac): Likewise.
12385         * modules/gc-rijndael (configure.ac): Likewise.
12386         * modules/gc-sha1 (configure.ac): Likewise.
12387
12388 2007-01-08  Bruno Haible  <bruno@clisp.org>
12389
12390         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
12391         macro definition.
12392         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
12393         definition.
12394         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
12395         definition.
12396         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
12397         * modules/fcntl-safer (configure.ac): Likewise.
12398         * modules/fopen-safer (configure.ac): Likewise.
12399         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
12400         GNULIB_FWRITEERROR macro definition.
12401
12402 2007-01-08  Bruno Haible  <bruno@clisp.org>
12403
12404         * m4/gnulib-common.m4: New file.
12405         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
12406         (func_get_filelist): Add m4/gnulib-common.m4.
12407
12408 2007-01-08  Bruno Haible  <bruno@clisp.org>
12409
12410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
12411         command.
12412
12413 2007-01-08  Jim Meyering  <jim@meyering.net>
12414
12415         Use a more robust test for a "can't happen" condition.
12416         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
12417         narrowed the st_size value.  Presuming the "can't happen" condition
12418         is true, that narrowing could conceivably convert an invalid st_size
12419         value into a valid one.  Instead, use a change based on Matthew
12420         Woehlke's original patch.
12421
12422         Slight readability improvement: use an assert-like macro
12423         in place of literal "abort ()" uses.
12424         * lib/fts.c (fts_assert): Define.
12425         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
12426         Use this macro instead of a bare 'abort'.
12427
12428 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12429
12430         Don't worry about using IRIX 5.3's wctype.h broken definitions;
12431         simply work around them.
12432         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
12433         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
12434         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
12435         declaring.
12436         Don't bother to define as macros, since the standard doesn't require it.
12437         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
12438         longer worry about IRIX 5.3.
12439         (HAVE_WCTYPE_CTMP_BUG): Remove.
12440
12441 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
12442
12443         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
12444         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
12445         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
12446         Problems reported by Georg Schwarz for IRIX 5.3.
12447
12448         * gnulib-tool (autoconf_minversion): Take the maximum version number
12449         found, not the minimum.  Problem reported by James Youngman.
12450
12451 2007-01-03  Karl Berry  <karl@gnu.org>
12452
12453         * doc/error.texi: new file, explaining interaction with progname.
12454         * doc/gnulib.texi: include it.  Update copyright.
12455
12456 2007-01-03  Simon Josefsson  <simon@josefsson.org>
12457
12458         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
12459         AC_CANONICAL_HOST, to improve autobuild outputs.
12460
12461 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
12462             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12463
12464         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
12465         sockets, server sockets, and other file descriptors.  Count errors
12466         to compute the return value.  Reorder the code a bit to be easier
12467         to follow.  Don't set event bits that were not requested (except
12468         POLLERR and POLLHUP).
12469
12470 2007-01-01  Bruno Haible  <bruno@clisp.org>
12471
12472         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
12473
12474 2007-01-03  Jim Meyering  <jim@meyering.net>
12475
12476         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
12477
12478 2007-01-02  Bruno Haible  <bruno@clisp.org>
12479
12480         * modules/settime (Include): Require timespec.h.
12481         * modules/nanosleep (Include): Likewise.
12482
12483 2007-01-01  Bruno Haible  <bruno@clisp.org>
12484
12485         * gnulib-tool (func_emit_copyright_notice): Bump year.
12486         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
12487
12488 2007-01-01  Bruno Haible  <bruno@clisp.org>
12489
12490         Improve support for OpenBSD.
12491         * build-aux/config.rpath (libname_spec): Export.
12492         (library_names_spec): New variable. Export.
12493         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
12494         library_names_spec from the config.rpath output. Locate shared library
12495         through the name pattern in library_names_spec.
12496
12497 2007-01-01  Eric Blake  <ebb9@byu.net>
12498
12499         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
12500
12501 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
12502
12503         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
12504         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
12505         assume the C locale, and avoid an "eval" that could cause trouble.
12506         Problem with SORT reported by Bob Proulx.
12507
12508         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
12509         Define.  Trivial patch from Henning Nielsen Lund, originally
12510         sent to bug-grep@gnu.org today.
12511
12512 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12513
12514         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
12515         struct stat.  Problem reported by Henning Nielsen Lund.
12516         * lib/acl.c: Include acl.h first, to check interface.  Don't
12517         bother to include sys/types.h and sys/stat.h again.
12518
12519 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12520
12521         Import the following change from libc; problem reported by
12522         Sven Verdoolaege.
12523
12524         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
12525
12526         [BZ #1373]
12527         * lib/argp.h: Remove __NTH for __argp_usage inline function.
12528
12529 2006-12-28  Jim Meyering  <jim@meyering.net>
12530
12531         * build-aux/announce-gen: Do not assume that the package
12532         builds any of tar.gz, tar.bz2, and .xdelta files.
12533         Suggestion from Simon Josefsson.
12534
12535 2006-12-28  Simon Josefsson  <simon@josefsson.org>
12536
12537         * modules/announce-gen: New file.
12538
12539 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12540
12541         * lib/mbchar.h: Just include <wctype.h>; the wctype module
12542         handles its gotchas now.
12543         * lib/mbswidth.c: Likewise.
12544         * lib/wcwidth.h: Likewise.
12545         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
12546         and iswcntrl; the wctype module does this stuff now.
12547         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12549         * modules/mbchar (Depends-on): Add wctype.
12550         * modules/mbswidth (Depends-on): Likewise.
12551         * modules/wcwidth (Depends-on): Likewise.
12552
12553 2006-12-27  Eric Blake  <ebb9@byu.net>
12554
12555         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
12556         module uses more than what <wctype.h> is required to provide.
12557
12558 2006-12-26  Eric Blake  <ebb9@byu.net>
12559
12560         * gnulib-tool (sed_extract_prog): Avoid space-tab.
12561
12562 2006-12-26  Eric Blake  <ebb9@byu.net>
12563
12564         * modules/absolute-header: New module.
12565         * modules/fcntl (Depends-on): Depend on it.
12566         * modules/inttypes (Depends-on): Likewise.
12567         * modules/stdint (Depends-on): Likewise.
12568         * modules/sys_stat (Depends-on): Likewise.
12569         * modules/wctype (Depends-on): Likewise.
12570         * MODULES.html.sh (Support for building libraries and
12571         executables): Document it.
12572
12573 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12574
12575         * gnulib-tool (SED): Remove, undoing previous change.
12576         The problem was that it broke coreutils on Solaris, because
12577         "sed --posix" leaked into a makefile.
12578         (sed): New alias, if 'alias' and GNU sed.
12579
12580 2006-12-24  Jim Meyering  <jim@meyering.net>
12581
12582         Work around an fchownat bug in glibc-2.4:
12583         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
12584         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
12585         in spite of the -P option.
12586         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
12587         New macros.
12588         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
12589         * modules/openat (Files): Add lib/fchownat.c.
12590         * lib/openat.c (fchownat): Don't define here.  Move to...
12591         * lib/fchownat.c: ...this new file.
12592
12593 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12594
12595         Fix bug reported by Bruno Haible in
12596         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
12597         where quotearg.c didn't compile on Mac OS X 10.2 because it
12598         lacks <wchar.h> and wint_t.
12599         * lib/wctype_.h (__wctype_wint_t): New type.
12600         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
12601         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
12602         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
12603         Arg is now of type __wctype_wint_t, not wint_t.
12604         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
12605         substitute HAVE_WINT_T.
12606         * modules/wctype (Files): Add m4/wint_t.m4.
12607         (wctype.h): Substitute HAVE_WINT_T.
12608
12609 2006-12-23  Bruno Haible  <bruno@clisp.org>
12610
12611         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
12612
12613 2006-12-23  Bruno Haible  <bruno@clisp.org>
12614
12615         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
12616         S_ISLNK.
12617         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
12618         mingw.
12619
12620 2006-12-22  Bruno Haible  <bruno@clisp.org>
12621
12622         * lib/copy-file.c: Include acl.h.
12623         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
12624         Close the file descriptors only after being done with copy_acl.
12625         * modules/copy-file (Depends-on): Add acl.
12626
12627 2006-12-22  Bruno Haible  <bruno@clisp.org>
12628
12629         * gnulib-tool (SED): New variable.
12630         Use $SED instead of sed everywhere.
12631
12632 2006-12-22  Bruno Haible  <bruno@clisp.org>
12633
12634         * modules/no-c++: New file.
12635         * m4/no-c++.m4: New file.
12636         * MODULES.html.sh (Support for building libraries and executables):
12637         Add no-c++.
12638
12639 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12640
12641         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
12642         Include <limits.h>, and use its INT_MAX to rewrite the
12643         j loop so that it does not overflow 'int'.  Problem reported by
12644         Ralf Wildenhues in
12645         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
12646         Play it safe by shifting left by 1 rather than multiplying by 2,
12647         as GCC is less likely to optimize this away when the value
12648         is signed (when it assumes overflow leads to undefined behavior).
12649         Also, don't assume time_t uses two's complement.
12650
12651 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12652
12653         * MODULES.html.sh: New module wctype.
12654         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
12655         * lib/fnmatch.c: Don't bother to include <wchar.h> before
12656         <wctype.h>, since the new wctype module should fix this.
12657         * lib/quotearg.c: Include <wctype.h> unconditionally, since
12658         the wctype module should arrange for it.
12659         * lib/regex_internal.h: Likewise.
12660         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
12661         since the wctype module should handle this now.
12662         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
12663         * modules/fnmatch (Depends-on): Add wctype.
12664         * modules/quotearg (Depends-on): Likewise.
12665         * modules/regex (Depends-on): Likewise.
12666
12667 2006-12-19  Bruno Haible  <bruno@clisp.org>
12668
12669         * lib/strdup.h [C++]: Wrap definitions in extern "C".
12670         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
12671
12672 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12673
12674         * modules/savewd (Depends-on): Fix dependency on fcntl.
12675
12676 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
12679         conforms to C99, rather than relying on the user's environment
12680         setting of STDINT_H.
12681
12682 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12683         and Eric Blake  <ebb9@byu.net>
12684
12685         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
12686         This is more consistent with the other defines here.
12687         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
12688         Port to z/OS.  Problem reported by Paul Gilmartin.
12689         Change local vars to use gl_ prefix rather than ac_.
12690         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
12691         with other defines.
12692         * modules/double-slash-root: New module.
12693         * modules/dirname (Files): Remove m4/double-slash-root.m4.
12694         (Depends-on): Add double-slash-root.
12695         * MODULES.html.sh (File system functions): Mention new module.
12696
12697 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12698
12699         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
12700         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
12701         This is for the benefit of gzip, which doesn't do i18n.
12702
12703 2006-12-12  Jim Meyering  <jim@meyering.net>
12704
12705         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
12706         Reported by Andreas Schwab <schwab@suse.de>.
12707
12708 2006-12-12  Bruno Haible  <bruno@clisp.org>
12709
12710         Merge these changes.
12711         2006-09-05  Bruno Haible  <bruno@clisp.org>
12712         * lib/iconvme.c (iconv_string): No need to save and restore errno when
12713         iconv_alloc succeeded.
12714         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
12715         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
12716         test for " && dest " at the end - dest is always != NULL there. Call
12717         iconv with 4xNULL arguments initially, to reset the state. Call iconv
12718         with 2xNULL arguments, also to flush the state storage. Handle the
12719         IRIX iconv behaviour. Realloc the final result, to throw away unused
12720         memory.
12721
12722 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
12723
12724         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
12725         and fchmodat unconditionally, since glibc 2.4 has them.
12726         Problem reported by Arkadiusz Miskiewicz.
12727
12728 2006-12-10  Bruno Haible  <bruno@clisp.org>
12729
12730         * gnulib-tool (func_import): Show the include files only for those
12731         modules that are copied and specified.
12732         Reported by Karl Berry.
12733
12734 2006-12-08  Jim Meyering  <jim@meyering.net>
12735
12736         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
12737         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
12738
12739         * build-aux/announce-gen: Add two new options, both optional:
12740         --bootstrap-tools=TOOL_LIST
12741               a comma-separated list of tools, e.g.,
12742               autoconf,automake,bison,gnulib
12743         --gnulib-snapshot-date=DATE
12744               if gnulib is in the bootstrap tool list,
12745               then report this as the snapshot date.
12746               If not specified, use the current date/time.
12747               If you specify a date here, be sure it's UTC.
12748
12749 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12750
12751         * tests/test-argp-2.sh: Fix test to match actual output.
12752         (func_compare): Fix sed script to be portable.
12753
12754 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
12755
12756         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
12757         workaround for this case.  It is not autoconfigured now; offhand
12758         it's hard to see how to autoconfigure it.
12759
12760 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
12761
12762         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
12763         a directory that is about to be chowned.  Such a directory's
12764         initial file permissions should permit the owner only and this
12765         should not be changed until after the chown, since the group and
12766         other bits would be incorrect if they granted permission before
12767         the chown.
12768
12769         Fix porting problem for iswctype reported by Georg Schwarz in:
12770         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
12771         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
12772         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
12773         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
12774         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12775
12776 2006-12-03  Jim Meyering  <jim@meyering.net>
12777
12778         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
12779         p->fts_statp may not yet be defined.
12780         (fts_read): Instead, set it in the caller, once p->fts_statp is
12781         sure to be defined, and corresponds to a top-level directory.
12782         This bug made du -x fail.  Here's the coreutils test case:
12783         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
12784         Reported by Mike Frysinger.
12785
12786 2006-12-01  Jim Meyering  <jim@meyering.net>
12787
12788         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
12789         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
12790         Reported by Simon Josefsson.
12791
12792 2006-11-30  Jim Meyering  <jim@meyering.net>
12793
12794         * m4/warning.m4: Use the all-permissive copyright notice
12795         recommended by RMS (rather than LGPL).
12796         * m4/vararrays.m4: Likewise.
12797         * m4/flexmember.m4: Likewise.
12798
12799 2006-11-29  Bruno Haible  <bruno@clisp.org>
12800
12801         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
12802         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
12803         using +=.
12804         Reported by Simon Josefsson <simon@josefsson.org>.
12805
12806 2006-11-28  James Youngman <jay@gnu.org>
12807
12808         * README: Advise users that they might find the bug-gnulib@gnu.org
12809         and autotools-announce@gnu.org mailing lists useful.
12810
12811 2006-11-28  Bruno Haible  <bruno@clisp.org>
12812
12813         * m4/ptrdiff_max.m4: Remove file.
12814
12815 2006-11-21  Bruno Haible  <bruno@clisp.org>
12816
12817         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
12818         _AC_COMPUTE_INT.
12819         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12820         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
12821         _AC_COMPUTE_INT.
12822         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12823         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
12824         _AC_COMPUTE_INT.
12825         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12826
12827 2006-11-28  Jim Meyering  <jim@meyering.net>
12828
12829         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
12830         warning from "gcc -Wshadow" about shadowing the builtin.
12831
12832 2006-11-27  Bruno Haible  <bruno@clisp.org>
12833
12834         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
12835         _AC_COMPUTE_INT.
12836         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
12837
12838 2006-11-27  Bruno Haible  <bruno@clisp.org>
12839             Paul Eggert  <eggert@cs.ucla.edu>
12840
12841         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
12842
12843 2006-11-26  Bruno Haible  <bruno@clisp.org>
12844
12845         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
12846         noinst_LTLIBRARIES.
12847
12848 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12849             Bruno Haible  <bruno@clisp.org>
12850
12851         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
12852         if compiling with "gcc -ansi".
12853
12854 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
12855
12856         Fix some incompatibilities with gcc -ansi -pedantic.
12857         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
12858         if compiling pedantically with GCC, unless it's C99 or later.
12859         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
12860         it mishandles gcc -ansi -pedantic as well.
12861         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
12862         if gcc -pedantic.
12863         * lib/regexec.c (check_node_accept_bytes): Don't use auto
12864         initializers for struct if -pedantic, unless it's C99 or later.
12865
12866 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
12867
12868         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
12869         Don't close an fd more than once. Identical atimes indicate
12870         success, not failure.
12871
12872 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
12873
12874         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
12875
12876 2006-11-23  Jim Meyering  <jim@meyering.net>
12877
12878         * build-aux/announce-gen: New file.  From coreutils.
12879
12880 2006-11-22  Jim Meyering  <jim@meyering.net>
12881
12882         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
12883         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
12884         (fts_read): Use a temporary to narrow the overused st_size member
12885         before using it in a switch statement.  Reported by Matthew Woehlke.
12886
12887         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
12888         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12889
12890 2006-11-20  Bruno Haible  <bruno@clisp.org>
12891
12892         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
12893         changequote instead of pairs of brackets.
12894         Reported by Andreas Schwab <schwab@suse.de>.
12895
12896 2006-11-21  Jim Meyering  <jim@meyering.net>
12897
12898         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
12899         so as to remain compatible with older compilers.
12900         Patch from Michael Deutschmann.
12901
12902 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12903
12904         * MODULES.html.sh (File system functions): Add openat.
12905
12906         * lib/openat.h (rpl_fstatat): New macro, if
12907         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
12908         (fstatat): Define to rpl_fstatat under the same conditions,
12909         unless COMPILING_FSTATAT.
12910         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
12911         seems to have the bug.
12912         * lib/fstatat.c: New file.
12913         * modules/openat (Files): Add it.
12914
12915 2006-11-20  Bruno Haible  <bruno@clisp.org>
12916
12917         * Makefile: New file.
12918
12919 2006-11-20  Jim Meyering  <jim@meyering.net>
12920
12921         The beginnings of syntax-related checks for gnulib.
12922         * lib/Makefile: New file.
12923         * lib/t-idcache: New script.  Ensure that the two halves of
12924         idcache.c stay in sync.
12925
12926         * lib/idcache.c: Adjust comments in user- and group- portions to
12927         be more accurate, and to be consistent with one another.
12928
12929 2006-11-20  Jim Meyering  <jim@meyering.net>
12930
12931         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
12932         continue using the flexible array member (thus, this module performs
12933         half as many malloc calls), with the addition that...
12934         (getgroup, getuser): Consistently record a non-match via an empty
12935         "name" string, and map an empty string match to a NULL return value.
12936         * modules/idcache (Depends-on): Re-add flexmember.
12937
12938         * lib/idcache.c (getuser): Remove all uses of the register keyword.
12939         (getuidbyname, getgroup, getgidbyname): Likewise.
12940
12941         Use cleaner syntax: NULL rather than 0.
12942         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
12943
12944 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
12945
12946         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
12947         It mishandled the case where the group was missing.
12948         Problem reported by Greg Schafer.
12949         * modules/idcache: Likewise.
12950
12951 2006-11-18  Jim Meyering  <jim@meyering.net>
12952
12953         * check-module (%exempt_header): Add exception for some
12954         conditionally-included headers.
12955
12956         * modules/i-ring (Depends-on): Add verify.
12957         (License): Change to LGPL.
12958
12959 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
12960
12961         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
12962         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
12963         and inttostr.h.  Use snprintf rather than uinttostr, so that
12964         LGPLed code doesn't depend on GPLed.
12965
12966 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12967
12968         * modules/inline (License): Change from GPL to LGPL.
12969
12970 2006-11-17  Jim Meyering  <jim@meyering.net>
12971
12972         * modules/d-type (License): Switch to LGPL.
12973
12974 2006-11-15  Bruno Haible  <bruno@clisp.org>
12975
12976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
12977
12978 2006-11-15  Eric Blake  <ebb9@byu.net>
12979
12980         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
12981         the module dependency.
12982
12983 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12984             Bruno Haible  <bruno@clisp.org>
12985
12986         * gnulib-tool (func_create_testdir): Add license consistency check.
12987
12988 2006-11-15  Eric Blake  <ebb9@byu.net>
12989
12990         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
12991         random "(cached)" in configure output.
12992
12993 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12994
12995         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
12996         test for conforming inttypes.h is both announced and cached.
12997
12998         * MODULES.html.sh (seen_modules, seen_files): New variables.
12999         (func_module): Rewrite to use a few less gnulib-tool and sed
13000         invocations.  Avoid a couple of quadratic algorithms for ...
13001         (missed_modules, missed_files): ... these, with ...
13002         (func_append, func_tmpdir): ... these new functions, from
13003         gnulib-tool.  Analogously, install traps for cleanup.
13004
13005         * tests/test-gc.c (main): Remove unused variables.
13006         * tests/test-read-file.c: Include stdlib.h, for 'free'.
13007
13008 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         * modules/inttostr (License): Change to LGPL.
13011
13012 2006-11-14  Eric Blake  <ebb9@byu.net>
13013
13014         * modules/tempname (License): Change to LGPL.
13015
13016 2006-11-14  Eric Blake  <ebb9@byu.net>
13017
13018         * doc/functions.texi (Function Portability): *printf functions on
13019         Cygwin now understand all POSIX size specifiers.
13020
13021 2006-11-14  Bruno Haible  <bruno@clisp.org>
13022
13023         * modules/c-ctype (License): Change to LGPL.
13024
13025 2006-11-12  Bruno Haible  <bruno@clisp.org>
13026
13027         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13028         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
13029         for GNOME libraries, for which the include files are installed in
13030         subdirectories of $prefix/include.
13031
13032 2006-11-12  Bruno Haible  <bruno@clisp.org>
13033
13034         * m4/lib-link.m4: Require at least autoconf-2.54.
13035         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
13036         name to underscores for the --with option.
13037
13038 2006-11-13  Bruno Haible  <bruno@clisp.org>
13039
13040         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
13041         the tests directory.
13042         Reported by Ralf Wildenhues.
13043
13044 2006-11-13  Bruno Haible  <bruno@clisp.org>
13045
13046         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
13047         (func_emit_initmacro_end): Undo the override here.
13048         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
13049         Works around the famous automake error in coreutils.
13050
13051 2006-11-13  Eric Blake  <ebb9@byu.net>
13052
13053         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
13054         element, not its node.
13055
13056 2006-11-12  Bruno Haible  <bruno@clisp.org>
13057
13058         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
13059         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
13060
13061 2006-11-12  Bruno Haible  <bruno@clisp.org>
13062
13063         * gnulib-tool: New option --local-symlink.
13064         (func_usage): Document it.
13065         (lsymbolic): New variable.
13066         (func_import, func_create_testdir): If --symlink was not specified,
13067         test whether --local-symlink was specified and the file comes from
13068         the local_gnulib_dir.
13069
13070 2006-11-12  Bruno Haible  <bruno@clisp.org>
13071
13072         * gnulib-tool (func_ln): New function.
13073         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
13074
13075 2006-11-12  Bruno Haible  <bruno@clisp.org>
13076
13077         Finish support for source files in subdirectories.
13078         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
13079         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
13080         AUTOMAKE_OPTIONS.
13081         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
13082
13083 2006-11-12  Bruno Haible  <bruno@clisp.org>
13084
13085         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13086         EXTRA_lib_SOURCES augmentation.
13087         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
13088
13089 2006-11-12  Jim Meyering  <jim@meyering.net>
13090
13091         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
13092         file descriptors.  This also averts a failure on systems with
13093         native openat support when a traversed directory lacks "x" access.
13094         * lib/fts_.h: Include "i-ring.h"
13095         (struct FTS) [fts_fd_ring]: New member.
13096         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
13097         (FCHDIR): Add parentheses.
13098         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
13099         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
13100         When descending, rather than simply closing the previous
13101         fts_cwd_fd value, push that file descriptor onto the ring.
13102         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
13103         (fts_open): Initialize the new fd_ring member.
13104         (fts_close): Clear the ring.
13105         (fts_safe_changedir): When possible, use our new fd_ring to skip
13106         the diropen and fstat and dev/ino comparison that would normally
13107         accompany a virtual `chdir ("..")'.
13108
13109         * modules/fts (Depends-on): Add i-ring.
13110         * modules/i-ring: New module.
13111         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
13112         * m4/i-ring.m4: New file.
13113
13114 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13115
13116         * gnulib-tool (func_create_testdir): Fix replacement of
13117         `build-aux' in configure.ac.  Run autotools in gltests
13118         subdirectory.
13119         (func_create_testdir, func_create_megatestdir, test): There is
13120         no need for '--force' in most autotool invocations in a new
13121         tree.  Actually fail the whole test if any of the tools, or the
13122         configure or make stages fail.
13123
13124         Sync from Automake.
13125         * build-aux/gnupload: Revert last change.  Add pointer to upload
13126         instructions of the GNU Maintenance Instructions.
13127         Suggestion by Karl Berry.
13128
13129 2006-11-10  Jim Meyering  <jim@meyering.net>
13130
13131         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
13132
13133 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13134
13135         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
13136         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
13137         (bind_textdomain_codeset) [! ENABLE_NLS]:
13138         Evaluate all the arguments.  That way, callers get compatible behavior
13139         if the arguments have side effects.  Also, it avoids some GCC
13140         diagnostics in some cases; Joel E. Denny reported problems when Bison
13141         was configured with --enable-gcc-warnigs.
13142
13143 2006-11-10  Jim Meyering  <jim@meyering.net>
13144
13145         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
13146         relevant options in CFLAGS (like -O, -fno-inline) are taken into
13147         account.
13148
13149 2006-11-10  Jim Meyering  <jim@meyering.net>
13150
13151         * modules/inline: New file/module.
13152         * modules/xalloc (Files): Remove m4/inline.m4.
13153         (Depends-on): Add inline, instead.
13154         * modules/oset: Likewise.
13155         * modules/list: Likewise.
13156
13157 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
13158
13159         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
13160         Problem reported by Matthew Woehlke.
13161
13162 2006-11-09  Bruno Haible  <bruno@clisp.org>
13163
13164         * lib/tempname.c (gen_tempname): Remove variant that invokes
13165         __gen_tempname.
13166         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
13167         __gen_tempname.
13168
13169 2006-11-08  Bruno Haible  <bruno@clisp.org>
13170
13171         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
13172         to 'yes' instead of 'cross-compiling'.
13173
13174 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
13175
13176         * lib/quotearg.h (quotearg_free): New decl.
13177         * lib/quotearg.c (quotearg_free): New function.
13178         (slot0, nslots, slotvec0, slotvec):
13179         Now file-scope so that quotearg_free can get at them.
13180
13181 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13182
13183         Sync from Automake.
13184         * build-aux/gnupload: Add missing 'gnu' to example URL.
13185         Report by Karl Berry.
13186
13187 2006-11-08  Bruno Haible  <bruno@clisp.org>
13188
13189         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
13190         Suggested by Paul Eggert.
13191
13192 2006-11-08  Jim Meyering  <jim@meyering.net>
13193
13194         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
13195         It's already included if !_LIBC.
13196         (fts_safe_changedir): Add a comment.
13197
13198 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
13201         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
13202         Matthew Woehlke.
13203
13204         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
13205         definitions up, to avoid colliding with change below.
13206         (static_inline) [HAVE_INLINE]: New macro.
13207         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
13208         Provide extern decls when !HAVE_INLINE.  Do not define unless
13209         static_inline is defined, either by us or by xmalloc.c.  Use
13210         static_inline rather than static inline.
13211         (XCALLOC): Optimize sizeof(T) = 1 case.
13212         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
13213
13214 2006-11-07  Bruno Haible  <bruno@clisp.org>
13215
13216         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
13217         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
13218         AC_C_INLINE.
13219         * modules/xalloc (Files): Add m4/inline.m4.
13220
13221 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13222
13223         * README: Fix typo.
13224         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
13225         (Miscellanous Notes): ...from this.
13226
13227 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
13228
13229         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
13230         Mention that offsetof should be used instead of sizeof.
13231         From Bruno Haible.
13232
13233 2006-11-07  Bruno Haible  <bruno@clisp.org>
13234
13235         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
13236
13237 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13238
13239         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
13240         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
13241         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
13242         (gl_tree_add_before, gl_tree_add_after):
13243         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
13244         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
13245         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
13246         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
13247         (gl_linked_add_after, gl_linked_add_at): Likewise.
13248         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
13249         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
13250         (gl_tree_add_before, gl_tree_add_after): Likewise.
13251         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
13252         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
13253         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13254
13255 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13256
13257         * lib/gl_oset.h: Use C comment style, not C++ comment style.
13258
13259 2006-11-06  Bruno Haible  <bruno@clisp.org>
13260
13261         * m4/inline.m4: New file.
13262         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
13263         * modules/list (Files): Add m4/inline.m4.
13264         * modules/oset (Files): Likewise.
13265
13266 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13267
13268         * lib/idcache.c: Include <stddef.h>, for offsetof.
13269         (struct userid.name): Change from char * to a flexible array member.
13270         All uses changed.
13271         * modules/idcache (Depends-on): Add flexmember.
13272
13273         * MODULES.html.sh (Core language properties): New module flexmember.
13274         * modules/flexmember, m4/flexmember.m4: New files.
13275
13276         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
13277         inline functions that are identical with the old xnmalloc_inline,
13278         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
13279         that we can avoid some unnecessary integer multiplications and
13280         divisions in the common case where the element size is known at
13281         compile time.
13282         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
13283         needed.
13284         (xnboundedmalloc): Remove.
13285         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
13286         arguments, for consistency with rest of this header.
13287         (xcharalloc): Rewrite using XNMALLOC.
13288         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
13289         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
13290         versions have been moved to lib/xalloc.h and renamed to be the
13291         non-*_inline versions.
13292         (xmalloc, xrealloc): Implement without reference to the xnmalloc
13293         and xnrealloc functions, since those functions are now inline and
13294         now call us.
13295         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
13296         renaming described above.
13297         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
13298         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
13299         captures the dependency in AC_C_INLINE.
13300
13301         New module canonicalize-lgpl, proposed by Charles Wilson in
13302         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
13303         with a few small changes afterwards.
13304         * MODULES.html.sh (File system functions): New module
13305         canonicalize-lgpl.
13306         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
13307         and canonicalize_file_name.
13308         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
13309         * modules/canonicalize-lgpl: New files.
13310
13311 2006-11-05  Bruno Haible  <bruno@clisp.org>
13312
13313         * gnulib-tool (func_import, func_create_testdir): Create directories
13314         also for files in subdirectories of lib/.
13315
13316 2006-11-05  Bruno Haible  <bruno@clisp.org>
13317
13318         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
13319         ANSI C compliant.
13320
13321 2006-11-03  Bruno Haible  <bruno@clisp.org>
13322
13323         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
13324         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
13325         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
13326         (xnboundedmalloc): New inline function.
13327         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
13328         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
13329         xmalloc.
13330         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
13331         xmalloc.
13332         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
13333         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
13334         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
13335         xmalloc.
13336         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
13337         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
13338         xmalloc.
13339         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
13340         gl_tree_add_after): Use XMALLOC instead of xmalloc.
13341         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
13342         xmalloc.
13343         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
13344         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
13345         gl_tree_add_after): Use XMALLOC instead of xmalloc.
13346         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
13347         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
13348         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
13349         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
13350
13351 2006-11-03  Bruno Haible  <bruno@clisp.org>
13352
13353         * lib/c-ctype.h [C++]: Define functions without name mangling.
13354         * lib/fwriteerror.h [C++]: Likewise.
13355         * lib/gcd.h [C++]: Likewise.
13356         * lib/linebreak.h [C++]: Likewise.
13357
13358 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13359
13360         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
13361         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
13362         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
13363         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
13364         Check for functions and headers just once.
13365         Check for declaration of canonicalize_file_name.
13366         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
13367
13368 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13369
13370         * gnulib-tool (func_import): Fix typo in actioncmd.
13371
13372 2006-11-02  Bruno Haible  <bruno@clisp.org>
13373
13374         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
13375         newline sequence in the Makefile.am snippet as a space, like "make"
13376         does.
13377         Reported by Roger Persson <perrog@gmail.com>.
13378
13379 2006-11-01  Bruno Haible  <bruno@clisp.org>
13380
13381         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
13382         already declared in <string.h>.
13383         * lib/strcase.h (strncasecmp): Don't declare it if yes.
13384
13385 2006-11-01  Bruno Haible  <bruno@clisp.org>
13386
13387         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
13388         * lib/strcase.h: Include <string.h>.
13389         (strcasecmp): Define to rpl_strcasecmp here.
13390
13391 2006-11-01  Bruno Haible  <bruno@clisp.org>
13392
13393         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
13394
13395 2006-11-01  Eric Blake  <ebb9@byu.net>
13396
13397         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
13398
13399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
13400
13401 2006-10-29  Bruno Haible  <bruno@clisp.org>
13402
13403         Make it compile in C++ mode.
13404         * lib/full-write.c (full_rw): Add a cast.
13405
13406 2006-11-01  Bruno Haible  <bruno@clisp.org>
13407
13408         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
13409         be POSIX compliant.
13410         Reported by Roger Persson <perrog@gmail.com>.
13411
13412 2006-11-01  Eric Blake  <ebb9@byu.net>
13413
13414         * lib/getopt_.h: Fix comments.
13415
13416 2006-10-31  Eric Blake  <ebb9@byu.net>
13417
13418         * modules/tmpdir (Depends-on): Add sys_stat.
13419         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
13420         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
13421         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
13422         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
13423         tempname.
13424
13425 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13426
13427         Avoid some C++ diagnostics reported by Bruno Haible.
13428         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
13429         xmalloc.
13430         (quotearg_alloc): Use xcharalloc rather than xmalloc.
13431         (struct slotvec): Move to top level.
13432         (quotearg_n_options): Rewrite to avoid xmalloc.
13433         * lib/xalloc.h (xcharalloc): New function.
13434         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
13435         [defined __cplusplus]: Add function template that provides result
13436         type propagation.  This part of the change is from Bruno Haible.
13437
13438 2006-10-29  Bruno Haible  <bruno@clisp.org>
13439
13440         Make it compile in C++ mode.
13441         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
13442         * lib/strnlen1.c (strnlen1): Cast memchr result.
13443         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
13444         * lib/clean-temp.c (string_equals, string_hash): Add casts.
13445         (create_temp_dir): Rename local variable 'template'.
13446         (compile_csharp_using_sscli): Add cast.
13447         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
13448         * lib/findprog.c (find_in_path): Likewise.
13449         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
13450         * lib/wait-process.c (register_slave_subprocess): Likewise.
13451
13452 2006-10-22  Bruno Haible  <bruno@clisp.org>
13453
13454         * modules/tsearch: New file.
13455         * lib/tsearch.h: New file.
13456         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
13457         * m4/tsearch.m4: New file.
13458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
13459
13460 2006-10-29  Eric Blake  <ebb9@byu.net>
13461
13462         * lib/arcfour.c: Assume config.h.
13463         * lib/arctwo.c: Likewise.
13464         * lib/base64.c: Likewise.
13465         * lib/check-version.c: Likewise.
13466         * lib/crc.c: Likewise.
13467         * lib/des.c: Likewise.
13468         * lib/gc-gnulib.c: Likewise.
13469         * lib/gc-libgcrypt.c: Likewise.
13470         * lib/gc-pbkdf2-sha1.c: Likewise.
13471         * lib/getaddrinfo.c: Likewise.
13472         * lib/getdelim.c: Likewise.
13473         * lib/getline.c: Likewise.
13474         * lib/hmac-md5.c: Likewise.
13475         * lib/hmac-sha1.c: Likewise.
13476         * lib/iconvme.c: Likewise.
13477         * lib/md2.c: Likewise.
13478         * lib/md4.c: Likewise.
13479         * lib/memxor.c: Likewise.
13480         * lib/read-file.c: Likewise.
13481         * lib/readline.c: Likewise.
13482         * lib/rijndael-alg-fst.c: Likewise.
13483         * lib/rijndael-api-fst.c: Likewise.
13484         * lib/xgetdomainname.c: Likewise.
13485
13486 2006-10-28  Eric Blake  <ebb9@byu.net>
13487
13488         * lib/xstrndup.c: Assume config.h.
13489
13490 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
13491
13492         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
13493         stat-macros.h is now for our own macros, whereas stat_h is for
13494         macros in the <sys/stat.h> name space.
13495         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
13496         (STAT_MACROS_H): Remove.
13497         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
13498         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
13499         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
13500         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
13501         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
13502         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
13503         Move these macros to ...
13504         * lib/stat_.h: here.  Don't include stat-macros.h.
13505         * lib/canonicalize.c: Don't include stat-macros.h.
13506         * lib/chown.c: Likewise.
13507         * lib/euidaccess.c: Likewise.
13508         * lib/file-type.c: Likewise.
13509         * lib/filemode.c: Likewise.
13510         * lib/glob.c: Likewise.
13511         * lib/isapipe.c: Likewise.
13512         * lib/lchown.c: Likewise.
13513         * lib/lstat.c: Likewise.
13514         * lib/mkdir-p.c: Likewise.
13515         * lib/rmdir.c: Likewise.
13516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
13517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
13518         unless mkdir isn't declared, to speed up 'configure'.
13519         Always create sys/stat.h, since it's unlikely any real sys/stat.h
13520         would define all the S_* symbols.
13521         * modules/canonicalize (Depends-on):
13522         Depend on sys_stat, not stat-macros.
13523         * modules/chown: Likewise.
13524         * modules/euidaccess: Likewise.
13525         * modules/filemode: Likewise.
13526         * modules/file-type: Likewise.
13527         * modules/glob: Likewise.
13528         * modules/isapipe: Likewise.
13529         * modules/lchown: Likewise.
13530         * modules/lstat: Likewise.
13531         * modules/mkancesdirs: Likewise.
13532         * modules/rmdir: Likewise.
13533         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
13534         * modules/modechange: Likewise.
13535         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
13536         (configure.ac): Remove gl_STAT_MACROS.
13537         * modules/sys_stat (Depends-on): Remove stat-macros.
13538
13539 2006-10-27  Bruno Haible  <bruno@clisp.org>
13540
13541         * m4/signed.m4: Remove file.
13542         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
13543         invocation.
13544         * modules/vasnprintf (Files): Remove m4/signed.m4.
13545
13546 2006-10-27  Bruno Haible  <bruno@clisp.org>
13547
13548         Update to GNU gettext 0.16.
13549         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
13550         m4/inttypes-h.m4, m4/signed.m4.
13551         * m4/gettext.m4: Update to GNU gettext 0.16.
13552         * m4/intl.m4: New file, from GNU gettext.
13553         * m4/intldir.m4: New file, from GNU gettext.
13554         * config/srclist.txt: Update
13555
13556 2006-10-27  Eric Blake  <ebb9@byu.net>
13557
13558         * MODULES.html.sh: Document tempname.
13559         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
13560         dependencies.
13561         (Files): Move lib/tempname.c...
13562         * modules/tempname: ...to this new module.
13563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
13564         (gl_PREREQ_TEMPNAME): Move...
13565         * m4/tempname.m4: ...to this new file.
13566         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
13567         * modules/sys_stat (Depends-on): Add stat-macros.
13568         * lib/stat_.h (includes): Pick up stat macros.
13569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
13570         if stat macros are broken.
13571         * lib/tempname.c (includes): No need to include "stat-macros.h".
13572         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
13573         (direxists, __path_search) [!_LIBC]: Don't compile these in
13574         gnulib; the tmpdir module covers that.
13575         * lib/tempname.h: New file.
13576
13577 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13578
13579         * COPYING: Explain how gnulib-tool converts licence headers.
13580         Almost all wording by Eric Blake.
13581
13582 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13583
13584         * lib/mbchar.h (is_basic_table): Make read-only.
13585         * lib/mbchar.c (is_basic_table): Likewise.
13586         Reported by John Darrington.
13587
13588 2006-10-25  Bruno Haible  <bruno@clisp.org>
13589
13590         * lib/progname.h (set_program_name): Undefine before defining.
13591
13592 2006-10-25  Bruno Haible  <bruno@clisp.org>
13593
13594         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
13595         false for non-gcc C++ compilers.
13596         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13597
13598 2006-10-24  Bruno Haible  <bruno@clisp.org>
13599
13600         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
13601         iconv implementations like Irix iconv.
13602
13603 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13604
13605         * modules/vararrays: New file.
13606         * m4/vararrays.m4: New file, taken from diffutils.
13607         * MODULES.html.sh: New module vararrays.
13608
13609 2006-10-24  Karl Berry  <karl@gnu.org>
13610
13611         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
13612         Don't call GNU Unix.
13613
13614 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13615
13616         * users.txt: Add Libtool.
13617
13618         Sync from Libtool:
13619
13620         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13621
13622         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
13623         to gnulib's policy of including config.h unconditionally.
13624
13625 2006-10-24  Bruno Haible  <bruno@clisp.org>
13626
13627         * modules/wcwidth (Files): Add m4/wint_t.m4.
13628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
13629         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
13630
13631 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
13632
13633         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
13634         to pacify GCC with some -W flags enabled.  Problem reported by
13635         Bruno Haible.
13636
13637 2006-10-24  Jim Meyering  <jim@meyering.net>
13638
13639         * MODULES.html.sh: Remove uinttostr.  It's not a module.
13640         Reported by Karl Berry.
13641
13642 2006-10-23  Bruno Haible  <bruno@clisp.org>
13643
13644         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
13645
13646 2006-10-24  Bruno Haible  <bruno@clisp.org>
13647
13648         * lib/gl_list.h: Use C comment style, not C++ comment style.
13649
13650 2006-10-23  Eric Blake  <ebb9@byu.net>
13651
13652         * lib/getaddrinfo.c (includes): Add missing include.
13653
13654 2006-10-23  Bruno Haible  <bruno@clisp.org>
13655             Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         Ability to rename obstack_free.
13658         * lib/obstack.h (__obstack_free): New macro. Declare instead of
13659         obstack_free.
13660         (obstack_free): Invoke the __obstack_free macro.
13661         * lib/obstack.c (obstack_free): Use __obstack_free macro.
13662
13663 2006-10-23  Bruno Haible  <bruno@clisp.org>
13664             Paul Eggert  <eggert@cs.ucla.edu>
13665
13666         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
13667         __argc, __argv from the declaration. (They are defined as macros on
13668         mingw.)
13669
13670 2006-10-22  Bruno Haible  <bruno@clisp.org>
13671
13672         * doc/gnulib-intro.texi: New file.
13673         * doc/gnulib.texi: Include it.
13674
13675 2006-10-21  Bruno Haible  <bruno@clisp.org>
13676
13677         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
13678         "Introduction", "Miscellanous Notes", "Particular Modules".
13679
13680 2006-10-21  Bruno Haible  <bruno@clisp.org>
13681
13682         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13683         Change mostlyclean-local rule to avoid sh syntax error from bash
13684         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
13685
13686 2006-10-23  Jim Meyering  <jim@meyering.net>
13687
13688         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
13689         in place of snprintf.
13690
13691         * modules/inttostr (Files): Add lib/uinttostr.c.
13692         * lib/uinttostr.c (inttostr): New file/function.
13693         * lib/inttostr.h (uinttostr): Declare.
13694         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
13695         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
13696         Add uinttostr.
13697         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
13698
13699 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
13700
13701         * lib/canonicalize.c (ELOOP): Define if not already defined.
13702         Problem reported by Bruno Haible in
13703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
13704
13705 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
13706
13707         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
13708         Problem reported by Perry Smith and Ville Laurikari.
13709
13710         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
13711         uses.
13712
13713 2006-10-19  Bruno Haible  <bruno@clisp.org>
13714
13715         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
13716         for mingw.
13717
13718 2006-10-19  Bruno Haible  <bruno@clisp.org>
13719
13720         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
13721         Needed for mingw.
13722
13723 2006-10-19  Bruno Haible  <bruno@clisp.org>
13724
13725         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
13726
13727 2006-10-19  Bruno Haible  <bruno@clisp.org>
13728
13729         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
13730         it.
13731
13732 2006-10-19  Bruno Haible  <bruno@clisp.org>
13733
13734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
13735         invocation.
13736
13737 2006-10-19  Bruno Haible  <bruno@clisp.org>
13738
13739         * gnulib-tool (func_create_testdir): Don't include ftruncate and
13740         mountlist by default.
13741
13742 2006-10-16  Bruno Haible  <bruno@clisp.org>
13743
13744         * lib/c-strstr.c: Include c-strstr.h.
13745
13746 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
13747
13748         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
13749         in a slash.
13750
13751 2006-10-18  Bruno Haible  <bruno@clisp.org>
13752
13753         * lib/lock.h [C++]: Wrap definitions in extern "C".
13754
13755 2006-10-18  Bruno Haible  <bruno@clisp.org>
13756
13757         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
13758         gl_LIBOBJS list.
13759
13760 2006-10-18  Bruno Haible  <bruno@clisp.org>
13761
13762         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
13763
13764 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
13765
13766         * lib/xstrtol.h: Include gettext.h.
13767         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
13768         Problem reported by Eric Blake.
13769         * modules/xstrtol (Depends-on): Add gettext-h.
13770
13771 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
13772
13773         * lib/strftime.c (advance): New macro.
13774         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
13775         incomplete type, so you can't add 0 to it.  Problem and patch
13776         reported by Eelco Dolstra for dietlibc.
13777
13778 2006-10-18  Jim Meyering  <jim@meyering.net>
13779
13780         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
13781         type for a local, and rename it: s/up/user_proc/.
13782
13783 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
13784
13785         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
13786         READ_UTMP_USER_PROCESS.
13787         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
13788
13789 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
13790
13791         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
13792         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
13793
13794 2006-10-17  Eric Blake  <ebb9@byu.net>
13795
13796         * lib/sigprocmask.c (sigprocmask): Fix typo.
13797
13798         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
13799
13800         * modules/clean-temp (Makefile.am): Don't add to make output...
13801         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
13802         config.h.
13803
13804 2006-10-17  Bruno Haible  <bruno@clisp.org>
13805
13806         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
13807         differently if DEFAULT_TEXT_DOMAIN is set.
13808
13809 2006-10-16  Bruno Haible  <bruno@clisp.org>
13810
13811         * lib/clean-temp.c: Include fwriteerror.h.
13812
13813 2006-10-16  Bruno Haible  <bruno@clisp.org>
13814
13815         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
13816
13817 2006-10-16  Bruno Haible  <bruno@clisp.org>
13818
13819         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
13820         * lib/sigprocmask.h: Include <sys/types.h>.
13821         (sigset_t): Use the system's definition if present.
13822
13823 2006-10-17  Eric Blake  <ebb9@byu.net>
13824
13825         * lib/xvasprintf.c (includes): Assume config.h.
13826         * lib/xasprintf.c (includes): Likewise.
13827
13828 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
13829
13830         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
13831         at least as wide as intmax_t.
13832
13833 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
13834
13835         (Imported from Automake.)
13836         * build-aux/gnupload: Update to version 1.1 of directive file.
13837
13838 2006-10-16  Eric Blake  <ebb9@byu.net>
13839
13840         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
13841         match Automake 1.10a.
13842
13843 2006-10-14  Bruno Haible  <bruno@clisp.org>
13844
13845         * modules/sigprocmask: New file.
13846         * lib/sigprocmask.h: New file.
13847         * lib/sigprocmask.c: New file.
13848         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
13849         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
13850         request sigprocmask.o.
13851         (gl_PREREQ_SIGPROCMASK): New macro.
13852         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
13853         (Depends-on): Add sigprocmask.
13854         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
13855         gt_SIGNALBLOCKING. Test for 'raise' only once.
13856         * lib/fatal-signal.c: Include sigprocmask.h.
13857         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
13858         unblock_fatal_signals): Define always.
13859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13860         sigprocmask.
13861
13862 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13863
13864         Sync from Automake.
13865         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
13866         which incorrectly sets the mode of an existing destination
13867         directory.  In some cases the unpatched install-sh could do the
13868         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
13869         system.  We hope this is rare in practice, but it's clearly worth
13870         fixing.  Problem reported by Alex Unleashed in
13871         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
13872         Also, don't bother to check for -m bugs unless we're using -m;
13873         suggested by Stepan Kasal.
13874
13875 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13876
13877         Sync from Automake.
13878         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
13879         `-c' flag, so they appear at the same position as in %FASTDEP%
13880         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
13881         which ignores unknown options only after the first non-option.
13882         Bug report against M4 by Nelson H. F. Beebe.
13883
13884 2006-10-13  Jim Meyering  <jim@meyering.net>
13885
13886         Fix a bug in yesterday's change.
13887         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
13888         p->fts_statp->st_dev would be used uninitialized.
13889         Ensures that we always call fts_stat on the very first entry.
13890         Miklos Szeredi reported that find -xdev stopped working.
13891
13892 2006-10-12  Bruno Haible  <bruno@clisp.org>
13893
13894         * gnulib-tool (func_get_automake_snippet): Append an automatically
13895         computed EXTRA_DIST augmentation.
13896         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
13897         * modules/alloca-opt (Makefile.am): Likewise.
13898         * modules/allocsa (Makefile.am): Likewise.
13899         * modules/arcfour (Makefile.am): Likewise.
13900         * modules/arctwo (Makefile.am): Likewise.
13901         * modules/argmatch (Makefile.am): Likewise.
13902         * modules/argz (Makefile.am): Likewise.
13903         * modules/atexit (Makefile.am): Likewise.
13904         * modules/backupfile (Makefile.am): Likewise.
13905         * modules/byteswap (Makefile.am): Likewise.
13906         * modules/c-strtod (Makefile.am): Likewise.
13907         * modules/c-strtold (Makefile.am): Likewise.
13908         * modules/calloc (Makefile.am): Likewise.
13909         * modules/canon-host (Makefile.am): Likewise.
13910         * modules/canonicalize (Makefile.am): Likewise.
13911         * modules/chdir-long (Makefile.am): Likewise.
13912         * modules/chdir-safer (Makefile.am): Likewise.
13913         * modules/check-version (Makefile.am): Likewise.
13914         * modules/chown (Makefile.am): Likewise.
13915         * modules/cloexec (Makefile.am): Likewise.
13916         * modules/close-stream (Makefile.am): Likewise.
13917         * modules/closeout (Makefile.am): Likewise.
13918         * modules/crc (Makefile.am): Likewise.
13919         * modules/csharpexec (Makefile.am): Likewise.
13920         * modules/cycle-check (Makefile.am): Likewise.
13921         * modules/des (Makefile.am): Likewise.
13922         * modules/dev-ino (Makefile.am): Likewise.
13923         * modules/dirfd (Makefile.am): Likewise.
13924         * modules/dirname (Makefile.am): Likewise.
13925         * modules/dup2 (Makefile.am): Likewise.
13926         * modules/eealloc (Makefile.am): Likewise.
13927         * modules/error (Makefile.am): Likewise.
13928         * modules/euidaccess (Makefile.am): Likewise.
13929         * modules/exclude (Makefile.am): Likewise.
13930         * modules/exitfail (Makefile.am): Likewise.
13931         * modules/fcntl-safer (Makefile.am): Likewise.
13932         * modules/fcntl (Makefile.am): Likewise.
13933         * modules/file-type (Makefile.am): Likewise.
13934         * modules/fileblocks (Makefile.am): Likewise.
13935         * modules/filemode (Makefile.am): Likewise.
13936         * modules/filenamecat (Makefile.am): Likewise.
13937         * modules/fnmatch (Makefile.am): Likewise.
13938         * modules/fopen-safer (Makefile.am): Likewise.
13939         * modules/fpending (Makefile.am): Likewise.
13940         * modules/fprintftime (Makefile.am): Likewise.
13941         * modules/free (Makefile.am): Likewise.
13942         * modules/fsusage (Makefile.am): Likewise.
13943         * modules/ftruncate (Makefile.am): Likewise.
13944         * modules/fts (Makefile.am): Likewise.
13945         * modules/gc-arcfour (Makefile.am): Likewise.
13946         * modules/gc-des (Makefile.am): Likewise.
13947         * modules/gc-hmac-md5 (Makefile.am): Likewise.
13948         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
13949         * modules/gc-md4 (Makefile.am): Likewise.
13950         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
13951         * modules/gc-sha1 (Makefile.am): Likewise.
13952         * modules/gc (Makefile.am): Likewise.
13953         * modules/getaddrinfo (Makefile.am): Likewise.
13954         * modules/getcwd (Makefile.am): Likewise.
13955         * modules/getdelim (Makefile.am): Likewise.
13956         * modules/getdomainname (Makefile.am): Likewise.
13957         * modules/getgroups (Makefile.am): Likewise.
13958         * modules/gethostname (Makefile.am): Likewise.
13959         * modules/gethrxtime (Makefile.am): Likewise.
13960         * modules/getline (Makefile.am): Likewise.
13961         * modules/getloadavg (Makefile.am): Likewise.
13962         * modules/getlogin_r (Makefile.am): Likewise.
13963         * modules/getndelim2 (Makefile.am): Likewise.
13964         * modules/getopt (Makefile.am): Likewise.
13965         * modules/getpagesize (Makefile.am): Likewise.
13966         * modules/getpass-gnu (Makefile.am): Likewise.
13967         * modules/getpass (Makefile.am): Likewise.
13968         * modules/getsubopt (Makefile.am): Likewise.
13969         * modules/gettime (Makefile.am): Likewise.
13970         * modules/gettimeofday (Makefile.am): Likewise.
13971         * modules/getugroups (Makefile.am): Likewise.
13972         * modules/getusershell (Makefile.am): Likewise.
13973         * modules/glob (Makefile.am): Likewise.
13974         * modules/group-member (Makefile.am): Likewise.
13975         * modules/hard-locale (Makefile.am): Likewise.
13976         * modules/hash (Makefile.am): Likewise.
13977         * modules/hmac-md5 (Makefile.am): Likewise.
13978         * modules/hmac-sha1 (Makefile.am): Likewise.
13979         * modules/human (Makefile.am): Likewise.
13980         * modules/idcache (Makefile.am): Likewise.
13981         * modules/imaxabs (Makefile.am): Likewise.
13982         * modules/imaxdiv (Makefile.am): Likewise.
13983         * modules/inet_ntop (Makefile.am): Likewise.
13984         * modules/inet_pton (Makefile.am): Likewise.
13985         * modules/intprops (Makefile.am): Likewise.
13986         * modules/inttostr (Makefile.am): Likewise.
13987         * modules/inttypes (Makefile.am): Likewise.
13988         * modules/isapipe (Makefile.am): Likewise.
13989         * modules/javaversion (Makefile.am): Likewise.
13990         * modules/lchmod (Makefile.am): Likewise.
13991         * modules/lchown (Makefile.am): Likewise.
13992         * modules/localcharset (Makefile.am): Likewise.
13993         * modules/long-options (Makefile.am): Likewise.
13994         * modules/lstat (Makefile.am): Likewise.
13995         * modules/malloc (Makefile.am): Likewise.
13996         * modules/mathl (Makefile.am): Likewise.
13997         * modules/mbchar (Makefile.am): Likewise.
13998         * modules/md2 (Makefile.am): Likewise.
13999         * modules/md4 (Makefile.am): Likewise.
14000         * modules/md5 (Makefile.am): Likewise.
14001         * modules/memcasecmp (Makefile.am): Likewise.
14002         * modules/memchr (Makefile.am): Likewise.
14003         * modules/memcmp (Makefile.am): Likewise.
14004         * modules/memcoll (Makefile.am): Likewise.
14005         * modules/memcpy (Makefile.am): Likewise.
14006         * modules/memmem (Makefile.am): Likewise.
14007         * modules/memmove (Makefile.am): Likewise.
14008         * modules/mempcpy (Makefile.am): Likewise.
14009         * modules/memrchr (Makefile.am): Likewise.
14010         * modules/memset (Makefile.am): Likewise.
14011         * modules/memxor (Makefile.am): Likewise.
14012         * modules/mkancesdirs (Makefile.am): Likewise.
14013         * modules/mkdir-p (Makefile.am): Likewise.
14014         * modules/mkdir (Makefile.am): Likewise.
14015         * modules/mkdtemp (Makefile.am): Likewise.
14016         * modules/mkstemp (Makefile.am): Likewise.
14017         * modules/mktime (Makefile.am): Likewise.
14018         * modules/modechange (Makefile.am): Likewise.
14019         * modules/mountlist (Makefile.am): Likewise.
14020         * modules/nanosleep (Makefile.am): Likewise.
14021         * modules/obstack (Makefile.am): Likewise.
14022         * modules/openat (Makefile.am): Likewise.
14023         * modules/pagealign_alloc (Makefile.am): Likewise.
14024         * modules/pathmax (Makefile.am): Likewise.
14025         * modules/physmem (Makefile.am): Likewise.
14026         * modules/poll (Makefile.am): Likewise.
14027         * modules/posixtm (Makefile.am): Likewise.
14028         * modules/posixver (Makefile.am): Likewise.
14029         * modules/putenv (Makefile.am): Likewise.
14030         * modules/quote (Makefile.am): Likewise.
14031         * modules/quotearg (Makefile.am): Likewise.
14032         * modules/raise (Makefile.am): Likewise.
14033         * modules/read-file (Makefile.am): Likewise.
14034         * modules/readline (Makefile.am): Likewise.
14035         * modules/readlink (Makefile.am): Likewise.
14036         * modules/readtokens (Makefile.am): Likewise.
14037         * modules/readutmp (Makefile.am): Likewise.
14038         * modules/realloc (Makefile.am): Likewise.
14039         * modules/regex (Makefile.am): Likewise.
14040         * modules/rename-dest-slash (Makefile.am): Likewise.
14041         * modules/rename (Makefile.am): Likewise.
14042         * modules/rijndael (Makefile.am): Likewise.
14043         * modules/rmdir (Makefile.am): Likewise.
14044         * modules/rpmatch (Makefile.am): Likewise.
14045         * modules/safe-read (Makefile.am): Likewise.
14046         * modules/safe-write (Makefile.am): Likewise.
14047         * modules/same-inode (Makefile.am): Likewise.
14048         * modules/same (Makefile.am): Likewise.
14049         * modules/save-cwd (Makefile.am): Likewise.
14050         * modules/savedir (Makefile.am): Likewise.
14051         * modules/setenv (Makefile.am): Likewise.
14052         * modules/settime (Makefile.am): Likewise.
14053         * modules/sha1 (Makefile.am): Likewise.
14054         * modules/sig2str (Makefile.am): Likewise.
14055         * modules/snprintf (Makefile.am): Likewise.
14056         * modules/stat-macros (Makefile.am): Likewise.
14057         * modules/stat-time (Makefile.am): Likewise.
14058         * modules/stdbool (Makefile.am): Likewise.
14059         * modules/stdint (Makefile.am): Likewise.
14060         * modules/stdlib-safer (Makefile.am): Likewise.
14061         * modules/stpcpy (Makefile.am): Likewise.
14062         * modules/stpncpy (Makefile.am): Likewise.
14063         * modules/strcase (Makefile.am): Likewise.
14064         * modules/strcasestr (Makefile.am): Likewise.
14065         * modules/strchrnul (Makefile.am): Likewise.
14066         * modules/strcspn (Makefile.am): Likewise.
14067         * modules/strdup (Makefile.am): Likewise.
14068         * modules/strerror (Makefile.am): Likewise.
14069         * modules/strftime (Makefile.am): Likewise.
14070         * modules/strndup (Makefile.am): Likewise.
14071         * modules/strnlen (Makefile.am): Likewise.
14072         * modules/strpbrk (Makefile.am): Likewise.
14073         * modules/strsep (Makefile.am): Likewise.
14074         * modules/strstr (Makefile.am): Likewise.
14075         * modules/strtod (Makefile.am): Likewise.
14076         * modules/strtoimax (Makefile.am): Likewise.
14077         * modules/strtok_r (Makefile.am): Likewise.
14078         * modules/strtol (Makefile.am): Likewise.
14079         * modules/strtoll (Makefile.am): Likewise.
14080         * modules/strtoul (Makefile.am): Likewise.
14081         * modules/strtoull (Makefile.am): Likewise.
14082         * modules/strtoumax (Makefile.am): Likewise.
14083         * modules/strverscmp (Makefile.am): Likewise.
14084         * modules/sys_socket (Makefile.am): Likewise.
14085         * modules/sys_stat (Makefile.am): Likewise.
14086         * modules/sysexits (Makefile.am): Likewise.
14087         * modules/time_r (Makefile.am): Likewise.
14088         * modules/timegm (Makefile.am): Likewise.
14089         * modules/timespec (Makefile.am): Likewise.
14090         * modules/tmpfile-safer (Makefile.am): Likewise.
14091         * modules/trim (Makefile.am): Likewise.
14092         * modules/unistd-safer (Makefile.am): Likewise.
14093         * modules/unlinkdir (Makefile.am): Likewise.
14094         * modules/unlocked-io (Makefile.am): Likewise.
14095         * modules/userspec (Makefile.am): Likewise.
14096         * modules/utime (Makefile.am): Likewise.
14097         * modules/utimecmp (Makefile.am): Likewise.
14098         * modules/utimens (Makefile.am): Likewise.
14099         * modules/vasnprintf (Makefile.am): Likewise.
14100         * modules/vasprintf (Makefile.am): Likewise.
14101         * modules/vsnprintf (Makefile.am): Likewise.
14102         * modules/xalloc (Makefile.am): Likewise.
14103         * modules/xgetcwd (Makefile.am): Likewise.
14104         * modules/xnanosleep (Makefile.am): Likewise.
14105         * modules/xreadlink (Makefile.am): Likewise.
14106         * modules/xstrtod (Makefile.am): Likewise.
14107         * modules/xstrtol (Makefile.am): Likewise.
14108         * modules/xstrtold (Makefile.am): Likewise.
14109         * modules/yesno (Makefile.am): Likewise.
14110         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
14111
14112 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14113
14114         * modules/error (Makefile.am): Distribute files through
14115         EXTRA_DIST, not lib_SOURCES.
14116
14117 2006-10-12  Eric Blake  <ebb9@byu.net>
14118
14119         * modules/error (Makefile.am): Distribute files in /lib.
14120         * modules/obstack (Makefile.am): Likewise.
14121
14122 2006-10-12  Bruno Haible  <bruno@clisp.org>
14123
14124         * modules/acl (Makefile.am): Distribute all files in lib/ through
14125         EXTRA_DIST.
14126         * modules/arcfour (Makefile.am): Likewise.
14127         * modules/arctwo (Makefile.am): Likewise.
14128         * modules/argmatch (Makefile.am): Likewise.
14129         * modules/argz (Makefile.am): Likewise.
14130         * modules/atexit (Makefile.am): Likewise.
14131         * modules/backupfile (Makefile.am): Likewise.
14132         * modules/c-strtod (Makefile.am): Likewise.
14133         * modules/c-strtold (Makefile.am): Likewise.
14134         * modules/calloc (Makefile.am): Likewise.
14135         * modules/canon-host (Makefile.am): Likewise.
14136         * modules/canonicalize (Makefile.am): Likewise.
14137         * modules/chdir-long (Makefile.am): Likewise.
14138         * modules/chdir-safer (Makefile.am): Likewise.
14139         * modules/check-version (Makefile.am): Likewise.
14140         * modules/chown (Makefile.am): Likewise.
14141         * modules/cloexec (Makefile.am): Likewise.
14142         * modules/close-stream (Makefile.am): Likewise.
14143         * modules/closeout (Makefile.am): Likewise.
14144         * modules/crc (Makefile.am): Likewise.
14145         * modules/cycle-check (Makefile.am): Likewise.
14146         * modules/des (Makefile.am): Likewise.
14147         * modules/dirfd (Makefile.am): Likewise.
14148         * modules/dirname (Makefile.am): Likewise.
14149         * modules/dup2 (Makefile.am): Likewise.
14150         * modules/euidaccess (Makefile.am): Likewise.
14151         * modules/exclude (Makefile.am): Likewise.
14152         * modules/exitfail (Makefile.am): Likewise.
14153         * modules/fcntl-safer (Makefile.am): Likewise.
14154         * modules/file-type (Makefile.am): Likewise.
14155         * modules/fileblocks (Makefile.am): Likewise.
14156         * modules/filemode (Makefile.am): Likewise.
14157         * modules/filenamecat (Makefile.am): Likewise.
14158         * modules/fnmatch (Makefile.am): Likewise.
14159         * modules/fopen-safer (Makefile.am): Likewise.
14160         * modules/fpending (Makefile.am): Likewise.
14161         * modules/fprintftime (Makefile.am): Likewise.
14162         * modules/free (Makefile.am): Likewise.
14163         * modules/fsusage (Makefile.am): Likewise.
14164         * modules/ftruncate (Makefile.am): Likewise.
14165         * modules/fts (Makefile.am): Likewise.
14166         * modules/gc (Makefile.am): Likewise.
14167         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
14168         * modules/getaddrinfo (Makefile.am): Likewise.
14169         * modules/getcwd (Makefile.am): Likewise.
14170         * modules/getdelim (Makefile.am): Likewise.
14171         * modules/getdomainname (Makefile.am): Likewise.
14172         * modules/getgroups (Makefile.am): Likewise.
14173         * modules/gethostname (Makefile.am): Likewise.
14174         * modules/gethrxtime (Makefile.am): Likewise.
14175         * modules/getline (Makefile.am): Likewise.
14176         * modules/getloadavg (Makefile.am): Likewise.
14177         * modules/getlogin_r (Makefile.am): Likewise.
14178         * modules/getopt (Makefile.am): Likewise.
14179         * modules/getpass (Makefile.am): Likewise.
14180         * modules/getpass-gnu (Makefile.am): Likewise.
14181         * modules/getsubopt (Makefile.am): Likewise.
14182         * modules/gettime (Makefile.am): Likewise.
14183         * modules/gettimeofday (Makefile.am): Likewise.
14184         * modules/getugroups (Makefile.am): Likewise.
14185         * modules/getusershell (Makefile.am): Likewise.
14186         * modules/glob (Makefile.am): Likewise.
14187         * modules/group-member (Makefile.am): Likewise.
14188         * modules/hard-locale (Makefile.am): Likewise.
14189         * modules/hash (Makefile.am): Likewise.
14190         * modules/hmac-md5 (Makefile.am): Likewise.
14191         * modules/hmac-sha1 (Makefile.am): Likewise.
14192         * modules/human (Makefile.am): Likewise.
14193         * modules/idcache (Makefile.am): Likewise.
14194         * modules/imaxabs (Makefile.am): Likewise.
14195         * modules/imaxdiv (Makefile.am): Likewise.
14196         * modules/inet_ntop (Makefile.am): Likewise.
14197         * modules/inet_pton (Makefile.am): Likewise.
14198         * modules/inttostr (Makefile.am): Likewise.
14199         * modules/isapipe (Makefile.am): Likewise.
14200         * modules/lchown (Makefile.am): Likewise.
14201         * modules/long-options (Makefile.am): Likewise.
14202         * modules/lstat (Makefile.am): Likewise.
14203         * modules/malloc (Makefile.am): Likewise.
14204         * modules/mathl (Makefile.am): Likewise.
14205         * modules/mbchar (Makefile.am): Likewise.
14206         * modules/md2 (Makefile.am): Likewise.
14207         * modules/md4 (Makefile.am): Likewise.
14208         * modules/md5 (Makefile.am): Likewise.
14209         * modules/memcasecmp (Makefile.am): Likewise.
14210         * modules/memchr (Makefile.am): Likewise.
14211         * modules/memcmp (Makefile.am): Likewise.
14212         * modules/memcoll (Makefile.am): Likewise.
14213         * modules/memcpy (Makefile.am): Likewise.
14214         * modules/memmem (Makefile.am): Likewise.
14215         * modules/memmove (Makefile.am): Likewise.
14216         * modules/mempcpy (Makefile.am): Likewise.
14217         * modules/memrchr (Makefile.am): Likewise.
14218         * modules/memset (Makefile.am): Likewise.
14219         * modules/memxor (Makefile.am): Likewise.
14220         * modules/mkancesdirs (Makefile.am): Likewise.
14221         * modules/mkdir (Makefile.am): Likewise.
14222         * modules/mkdir-p (Makefile.am): Likewise.
14223         * modules/mkdtemp (Makefile.am): Likewise.
14224         * modules/mkstemp (Makefile.am): Likewise.
14225         * modules/mktime (Makefile.am): Likewise.
14226         * modules/modechange (Makefile.am): Likewise.
14227         * modules/mountlist (Makefile.am): Likewise.
14228         * modules/nanosleep (Makefile.am): Likewise.
14229         * modules/openat (Makefile.am): Likewise.
14230         * modules/pagealign_alloc (Makefile.am): Likewise.
14231         * modules/physmem (Makefile.am): Likewise.
14232         * modules/poll (Makefile.am): Likewise.
14233         * modules/posixtm (Makefile.am): Likewise.
14234         * modules/posixver (Makefile.am): Likewise.
14235         * modules/putenv (Makefile.am): Likewise.
14236         * modules/quote (Makefile.am): Likewise.
14237         * modules/quotearg (Makefile.am): Likewise.
14238         * modules/raise (Makefile.am): Likewise.
14239         * modules/read-file (Makefile.am): Likewise.
14240         * modules/readline (Makefile.am): Likewise.
14241         * modules/readlink (Makefile.am): Likewise.
14242         * modules/readtokens (Makefile.am): Likewise.
14243         * modules/readutmp (Makefile.am): Likewise.
14244         * modules/realloc (Makefile.am): Likewise.
14245         * modules/regex (Makefile.am): Likewise.
14246         * modules/rename (Makefile.am): Likewise.
14247         * modules/rename-dest-slash (Makefile.am): Likewise.
14248         * modules/rijndael (Makefile.am): Likewise.
14249         * modules/rmdir (Makefile.am): Likewise.
14250         * modules/rpmatch (Makefile.am): Likewise.
14251         * modules/safe-read (Makefile.am): Likewise.
14252         * modules/safe-write (Makefile.am): Likewise.
14253         * modules/same (Makefile.am): Likewise.
14254         * modules/save-cwd (Makefile.am): Likewise.
14255         * modules/savedir (Makefile.am): Likewise.
14256         * modules/setenv (Makefile.am): Likewise.
14257         * modules/settime (Makefile.am): Likewise.
14258         * modules/sha1 (Makefile.am): Likewise.
14259         * modules/sig2str (Makefile.am): Likewise.
14260         * modules/snprintf (Makefile.am): Likewise.
14261         * modules/stdlib-safer (Makefile.am): Likewise.
14262         * modules/stpcpy (Makefile.am): Likewise.
14263         * modules/stpncpy (Makefile.am): Likewise.
14264         * modules/strcase (Makefile.am): Likewise.
14265         * modules/strcasestr (Makefile.am): Likewise.
14266         * modules/strchrnul (Makefile.am): Likewise.
14267         * modules/strcspn (Makefile.am): Likewise.
14268         * modules/strdup (Makefile.am): Likewise.
14269         * modules/strerror (Makefile.am): Likewise.
14270         * modules/strftime (Makefile.am): Likewise.
14271         * modules/strndup (Makefile.am): Likewise.
14272         * modules/strnlen (Makefile.am): Likewise.
14273         * modules/strpbrk (Makefile.am): Likewise.
14274         * modules/strsep (Makefile.am): Likewise.
14275         * modules/strstr (Makefile.am): Likewise.
14276         * modules/strtod (Makefile.am): Likewise.
14277         * modules/strtoimax (Makefile.am): Likewise.
14278         * modules/strtok_r (Makefile.am): Likewise.
14279         * modules/strtol (Makefile.am): Likewise.
14280         * modules/strtoll (Makefile.am): Likewise.
14281         * modules/strtoul (Makefile.am): Likewise.
14282         * modules/strtoull (Makefile.am): Likewise.
14283         * modules/strtoumax (Makefile.am): Likewise.
14284         * modules/strverscmp (Makefile.am): Likewise.
14285         * modules/time_r (Makefile.am): Likewise.
14286         * modules/timegm (Makefile.am): Likewise.
14287         * modules/tmpfile-safer (Makefile.am): Likewise.
14288         * modules/unistd-safer (Makefile.am): Likewise.
14289         * modules/unlinkdir (Makefile.am): Likewise.
14290         * modules/userspec (Makefile.am): Likewise.
14291         * modules/utime (Makefile.am): Likewise.
14292         * modules/utimecmp (Makefile.am): Likewise.
14293         * modules/utimens (Makefile.am): Likewise.
14294         * modules/vasnprintf (Makefile.am): Likewise.
14295         * modules/vasprintf (Makefile.am): Likewise.
14296         * modules/vsnprintf (Makefile.am): Likewise.
14297         * modules/xalloc (Makefile.am): Likewise.
14298         * modules/xgetcwd (Makefile.am): Likewise.
14299         * modules/xnanosleep (Makefile.am): Likewise.
14300         * modules/xreadlink (Makefile.am): Likewise.
14301         * modules/xstrtod (Makefile.am): Likewise.
14302         * modules/xstrtol (Makefile.am): Likewise.
14303         * modules/xstrtold (Makefile.am): Likewise.
14304         * modules/yesno (Makefile.am): Likewise.
14305
14306 2006-10-12  Jim Meyering  <jim@meyering.net>
14307
14308         * m4/getloadavg.m4: Revert the change below.
14309
14310         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
14311         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
14312         fail with a symlink, which is what coreutils' ./bootstrap now
14313         creates by default.
14314
14315 2006-10-12  Bruno Haible  <bruno@clisp.org>
14316
14317         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
14318         mingw.
14319         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
14320         MSVC and mingw explicitly.
14321
14322 2006-10-11  Simon Josefsson  <jas@extundo.com>
14323             Bruno Haible  <bruno@clisp.org>
14324
14325         Add support for multiple gnulib-tool invocations in the scope of a
14326         single configure.ac file.
14327         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
14328         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
14329         with the same contents as the _LIBADD variable.
14330         (func_emit_initmacro_start, func_emit_initmacro_end,
14331         func_emit_initmacro_done): New functions.
14332         (func_import, func_create_testdir): Invoke them. Allow the identifiers
14333         gl_LIBOBJS and gl_LTLIBOBJS.
14334
14335 2006-10-11  Bruno Haible  <bruno@clisp.org>
14336
14337         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
14338         (func_create_testdir): Don't create po/Makefile.am, don't invoke
14339         autoreconf. Instead, invoke autopoint explicitly but move back the
14340         *.m4 files from gnulib.
14341
14342 2006-10-11  Bruno Haible  <bruno@clisp.org>
14343
14344         * gnulib-tool (func_usage): Make module names after --create-testdir
14345         optional.
14346         (func_create_testdir): If no module was specified, use nearly all
14347         modules.
14348
14349 2006-10-12  Jim Meyering  <jim@meyering.net>
14350
14351         Big performance improvement for fts-based tools that use FTS_NOSTAT.
14352         Avoid spurious inode-mismatch problems on non-POSIX file systems.
14353         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
14354         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
14355         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
14356         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
14357         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
14358         (fts_set_stat_required): New function.
14359         (fts_open): Defer the calls to fts_stat, if possible or requested.
14360         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
14361         into fts_stat itself.
14362         (fts_read): Perform any required (deferred) fts_stat call.
14363         (fts_build): Likewise, for the directory we're about to open and read.
14364         In the readdir loop, carefully decide whether each entry will require
14365         an eventual call to fts_stat, using dirent.d_type info if available.
14366         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
14367         a command line argument into this function.  Update all callers.
14368         Map a return value of FTS_DOT to FTS_D for a command line argument.
14369         * modules/fts (Depends-on): Add d-type.  Alphabetize.
14370         Thanks to Miklos Szeredi for his tenacity and for the initial
14371         bug report about "find" failing on a FUSE-based file system.
14372
14373         * lib/fts.c (fts_open): Use consistent indentation.
14374
14375 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
14376
14377         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
14378         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
14379         reported by Jim Meyering.  All uses of cache variables renamed
14380         to match Autoconf's.
14381         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
14382         the other one.
14383
14384         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14385         Fix misspelling in diagnostic.
14386
14387 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
14390         defined.  Problem reported by Matthew Woehlke.
14391
14392         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
14393         Add support for Tandem NonStop R series.
14394         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
14395         Use new macro.
14396
14397         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
14398         (has_trailing_slash): Omit size arg; all callers changed.
14399         Omit 'inline', since it doesn't help performance and we'd
14400         need to configure it.
14401         Don't count //, ///, etc. as having a trailing slash.
14402         As a side effect, this removes a C99ism reported by Matthew Woehlke.
14403         (rpl_rename_dest_slash): On failure, use rename's errno rather
14404         than (in some cases) an incorrect or junk errno.
14405         Simplify code by removing need to compute length; this does
14406         cause it to make two passes instead of one over the file name,
14407         but it's worth it.
14408
14409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
14410         change, since Autoconf's version may no longer be appropriate now
14411         that we are using CVS Autoconf's version.  Add support for Tandem.
14412
14413 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14414             Bruno Haible  <bruno@clisp.org>
14415
14416         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
14417         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
14418         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
14419         gl_AC_TYPE_LONG_LONG.
14420
14421         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
14422         instead of HAVE_LONG_LONG.
14423         * lib/printf-args.c (printf_fetchargs): Likewise.
14424         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14425         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14426         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
14427         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
14428         gl_AC_TYPE_LONG_LONG.
14429
14430 2006-10-11  Bruno Haible  <bruno@clisp.org>
14431
14432         * m4/longlong.m4: Add comments.
14433         * m4/ulonglong.m4: Likewise.
14434
14435 2006-10-10  Bruno Haible  <bruno@clisp.org>
14436
14437         Make it possible to #define stpcpy, strdup to aliases.
14438         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
14439         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
14440
14441 2006-10-10  Bruno Haible  <bruno@clisp.org>
14442
14443         Make it possible to #define gcd to an alias.
14444         * lib/gcd.c: Include config.h.
14445
14446 2006-10-10  Bruno Haible  <bruno@clisp.org>
14447
14448         Make it possible to #define c_isascii to an alias.
14449         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
14450         defined. Undefine the macros before defining them, to avoid gcc
14451         warnings.
14452         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
14453         define NO_C_CTYPE_MACROS early.
14454
14455 2006-10-10  Bruno Haible  <bruno@clisp.org>
14456
14457         Make it possible to #define set_program_name to an alias.
14458         * lib/progname.c: Don't undefine set_program_name; instead, undefine
14459         ENABLE_RELOCATABLE early.
14460
14461 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14462
14463         Port to Tandem NSK OSS, which has 64-bit signed int but at most
14464         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
14465         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
14466         More generally, don't assume that 64-bit signed int is available
14467         if unsigned int is, and vice versa.
14468         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
14469         unsigned symbols, not on their signed counterparts.
14470         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
14471         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
14472         (UINT64_C, UINTMAX_C):
14473         Likewise.
14474         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
14475         unsigned counterparts.
14476         (Have_long_long, Unsigned): New macros.
14477         (Int): Renamed from INT.
14478         (strtoimax): Use the new macros.
14479         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
14480         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
14481         * modules/inttypes (inttypes.h): Substitute
14482         HAVE_UNSIGNED_LONG_LONG_INT.
14483         * modules/stdint (stdint.h): Likewise.
14484         (Files): Add m4/ulonglong.m4.
14485
14486 2006-10-10  Bruno Haible  <bruno@clisp.org>
14487
14488         Fix a gcc -Wshadow warning.
14489         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
14490         to 'bucket'.
14491         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
14492         gl_linked_indexof_from_to): Likewise.
14493         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
14494         Likewise.
14495         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
14496         Likewise.
14497         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
14498         Reported by Eric Blake.
14499
14500 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
14501
14502         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
14503         for NetBSD.  Problem reported by Bruno Haible.
14504
14505 2006-10-09  Jim Meyering  <jim@meyering.net>
14506
14507         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
14508         Patch from Bruno Haible.
14509
14510 2006-10-09  Jim Meyering  <jim@meyering.net>
14511
14512         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
14513         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
14514         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
14515
14516 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14517
14518         Don't include <config.h> twice; this doesn't work in some cases,
14519         e.g., when config.h has "#define intmax_t long long int" and
14520         we include <config.h>, <inttypes.h>, <config.h> in that order.
14521         Problem reported by Matthew Woehlke in:
14522         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
14523         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
14524         * lib/fts-cycle.c: Don't include config.h.
14525         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
14526         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
14527         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
14528         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
14529         inttypes.h.
14530         * lib/xstrtoumax.c: Likewise.
14531         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
14532         __strtol and the like, so that this module is more like its siblings.
14533         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
14534         Remove; no longer needed now that we assume gnulib inttypes.h.
14535
14536 2006-10-08  Bruno Haible  <bruno@clisp.org>
14537
14538         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
14539         option.
14540
14541 2006-10-07  Jim Meyering  <jim@meyering.net>
14542
14543         * modules/inttypes (inttypes.h): Revert what seems to have been
14544         an inadvertent part of today's change: use "|", not "/" in the
14545         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
14546
14547 2006-10-07  Bruno Haible  <bruno@clisp.org>
14548
14549         * modules/sublist: New file.
14550
14551 2006-10-07  Bruno Haible  <bruno@clisp.org>
14552
14553         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
14554         * modules/argz (argz.h): Likewise.
14555         * modules/arpa_inet (arpa/inet.h): Likewise.
14556         * modules/byteswap (byteswap.h): Likewise.
14557         * modules/configmake (configmake.h): Likewise.
14558         * modules/fcntl (fcntl.h): Likewise.
14559         * modules/fnmatch (fnmatch.h): Likewise.
14560         * modules/getopt (getopt.h): Likewise.
14561         * modules/glob (glob.h): Likewise.
14562         * modules/inttypes (inttypes.h): Likewise.
14563         * modules/netinet_in (netinet/in.h): Likewise.
14564         * modules/poll (poll.h): Likewise.
14565         * modules/stdbool (stdbool.h): Likewise.
14566         * modules/stdint (stdint.h): Likewise.
14567         * modules/sys_select (sys/select.h): Likewise.
14568         * modules/sys_socket (sys/socket.h): Likewise.
14569         * modules/sys_stat (sys/stat.h): Likewise.
14570         * modules/sysexits (sysexits.h): Likewise.
14571         * modules/unistd (unistd.h): Likewise.
14572         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14573         Add a "DO NOT EDIT" comment to the generated file.
14574         (func_import): Likewise for gnulib-comp.m4.
14575
14576 2006-10-07  Bruno Haible  <bruno@clisp.org>
14577
14578         * lib/gl_sublist.h: New file.
14579         * lib/gl_sublist.c: New file.
14580
14581 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14582
14583         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
14584         name (relative to the original working directory) and the file
14585         name component (relative to the temporary working directory).  All
14586         callers changed.
14587         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
14588         * lib/mkdir-p.c (make_dir_parents): Likewise.
14589         * lib/mkdir-p.h (make_dir_parents): Likewise.
14590
14591 2006-10-06  Eric Blake  <ebb9@byu.net>
14592
14593         Define several macros for use by the clean-temp module.
14594         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
14595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
14596         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
14597
14598         * lib/clean-temp.h (close_stream_temp): New declaration.
14599         * lib/clean-temp.c (includes): Pull in headers according to what
14600         other modules are in use.
14601         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
14602
14603 2006-10-06  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
14606         instead of fopen, fwriteerror.
14607
14608 2006-10-06  Bruno Haible  <bruno@clisp.org>
14609
14610         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
14611         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
14612         int.
14613         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
14614         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
14615         Return an error indicator.
14616         Suggested by Eric Blake.
14617
14618 2006-10-06  Bruno Haible  <bruno@clisp.org>
14619
14620         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
14621         Reported by Eric Blake.
14622
14623 2006-10-06  Bruno Haible  <bruno@clisp.org>
14624
14625         * modules/closeout (Description): Mention stderr too.
14626
14627 2006-10-06  Bruno Haible  <bruno@clisp.org>
14628         and Paul Eggert  <eggert@cs.ucla.edu>
14629
14630         * lib/closeout.c (close_stdout): Also close stderr.
14631         * lib/closeout.h: Update comment.
14632
14633 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14634
14635         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
14636         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
14637         * lib/dirchownmod.c: Include lchown.h.
14638         * lib/lchown.c: Don't include files that lchown.h now includes.
14639         Don't declare chown, since lchown.h now does that.
14640         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
14641         (lchown): Define to rpl_chown if lchown is declared but
14642         does not exist.  Declare using a prototype if lchown is not
14643         declared.  Add a copyright notice.
14644         * lib/mkstemp.h: Include <unistd.h>.
14645         * lib/openat.c: Include lchown.h.
14646
14647         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
14648         we now test for that separately.
14649         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
14650         rather than O_NOFOLLOW, when testing whether it's possible to
14651         avoid a race condition reliably.
14652         * lib/savewd.c (savewd_chdir): Likewise.
14653
14654         Remove macros that are no longer needed now that stdint.h is
14655         reliable.
14656         * lib/fsusage.c (UINTMAX_MAX): Remove.
14657         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
14658         * lib/utimecmp.c (SIZE_MAX): Remove.
14659
14660         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
14661
14662         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
14663         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
14664         O_NOATIME works.
14665
14666 2006-10-05  Bruno Haible  <bruno@clisp.org>
14667
14668         * lib/gl_list.h (gl_sortedlist_search_from_to,
14669         gl_sortedlist_indexof_from_to): New declarations.
14670         (gl_list_implementation): New fields sortedlist_search_from_to,
14671         sortedlist_indexof_from_to.
14672         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
14673         inline functions.
14674         * lib/gl_list.c (gl_sortedlist_search_from_to,
14675         gl_sortedlist_indexof_from_to): New functions.
14676         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
14677         function.
14678         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
14679         (gl_array_sortedlist_search_from_to): New function.
14680         (gl_array_list_implementation): Update.
14681         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
14682         function.
14683         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
14684         (gl_carray_sortedlist_search_from_to): New function.
14685         (gl_carray_list_implementation): Update.
14686         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
14687         gl_linked_sortedlist_indexof_from_to): New functions.
14688         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14689         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14690         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
14691         gl_tree_sortedlist_indexof_from_to): New functions.
14692         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14693         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14694         Update.
14695         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14696         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
14697         Update.
14698
14699 2006-10-05  Bruno Haible  <bruno@clisp.org>
14700
14701         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
14702         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
14703         (struct gl_list_implementation): Add fields search_from_to,
14704         indexof_from_to. Remove fields search, indexof.
14705         (gl_list_search): Use the search_from_to method.
14706         (gl_list_search_from, gl_list_search_from_to): New functions.
14707         (gl_list_indexof): Use the indexof_from_to method.
14708         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
14709         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
14710         (gl_list_search_from, gl_list_search_from_to): New functions.
14711         (gl_list_indexof): Use the indexof_from_to method.
14712         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
14713         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
14714         gl_array_indexof. Add start_index, end_index arguments.
14715         (gl_array_search_from_to): Renamed from gl_array_search. Add
14716         start_index, end_index arguments.
14717         (gl_array_remove, gl_array_list_implementation): Update.
14718         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
14719         gl_carray_indexof. Add start_index, end_index arguments.
14720         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
14721         start_index, end_index arguments.
14722         (gl_carray_remove, gl_carray_list_implementation): Update.
14723         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
14724         gl_linked_search. Add start_index, end_index arguments.
14725         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
14726         start_index, end_index arguments.
14727         (gl_linked_remove): Update.
14728         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
14729         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
14730         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
14731         field to 'size_t'.
14732         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
14733         gl_tree_search. Add start_index, end_index arguments.
14734         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
14735         start_index, end_index arguments.
14736         (gl_tree_remove): Update.
14737         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
14738         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
14739         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
14740         function.
14741         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
14742         gl_tree_search. Add start_index, end_index arguments.
14743         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
14744         start_index, end_index arguments.
14745         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
14746         Update.
14747         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
14748
14749 2006-10-05  Bruno Haible  <bruno@clisp.org>
14750
14751         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
14752
14753         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
14754         fwriteerror_temp): New declarations.
14755         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
14756         (descriptors): New variable.
14757         (cleanup): First, close the descriptors.
14758         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
14759         fclose_temp, fwriteerror_temp): New functions.
14760
14761 2006-10-04  Jim Meyering  <jim@meyering.net>
14762
14763         * lib/fts.c (fts_open): Tiny comment change.
14764
14765 2006-10-04  Bruno Haible  <bruno@clisp.org>
14766
14767         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
14768         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
14769         gl_LOCK_BODY.
14770         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
14771         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
14772         gl_LOCK_EARLY_BODY.
14773         (gl_LOCK): Require gl_LOCK_BODY.
14774
14775 2006-10-04  Bruno Haible  <bruno@clisp.org>
14776
14777         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
14778         (gl_oset_search_atleast): New declaration.
14779         (struct gl_oset_implementation): Add field 'search_atleast'.
14780         (gl_oset_search_atleast): New inline function.
14781         * lib/gl_oset.c (gl_oset_search_atleast): New function.
14782         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
14783         (gl_array_oset_implementation): Update.
14784         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
14785         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
14786         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
14787
14788 2006-10-04  Bruno Haible  <bruno@clisp.org>
14789
14790         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
14791
14792 2006-10-03  Bruno Haible  <bruno@clisp.org>
14793
14794         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
14795         from gl_avltreehash_list_implementation.
14796
14797 2006-10-03  Bruno Haible  <bruno@clisp.org>
14798
14799         * lib/gl_oset.c (gl_oset_add): Fix return type.
14800
14801 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
14802
14803         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
14804
14805 2006-10-02  Eric Blake  <ebb9@byu.net>
14806
14807         * modules/strnlen (Depends-on): Add extensions.
14808
14809 2006-10-02  Eric Blake  <ebb9@byu.net>
14810
14811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
14812         definition in 2.60+.
14813
14814 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14815
14816         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
14817         checks.
14818
14819 2006-10-02  Bruno Haible  <bruno@clisp.org>
14820
14821         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
14822         to the AUTOMAKE_OPTIONS.
14823         Reported by Jim Meyering.
14824
14825 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
14826
14827         Work around bug in Solaris 10 /proc file system:
14828         /proc/self/fd/NNN/.. isn't the parent directory of
14829         the directory whose file descriptor is NNN.  This needs to
14830         be worked around at run time, not compile time, since a
14831         program might be built on Solaris 8, where things work, and
14832         run on Solaris 10.
14833         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
14834         to use the following interface instead:
14835         (OPENAT_BUFFER_SIZE): New macro.
14836         (openat_proc_name): New function.
14837         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
14838         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
14839         Likewise.
14840         * lib/openat-proc.c: New file.
14841         * modules/openat (Files): Add lib/openat-proc.c.
14842         (Depends-on): Add same-inode, stdbool.
14843         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
14844
14845 2006-09-29  Bruno Haible  <bruno@clisp.org>
14846
14847         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
14848         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
14849         argument. Set stdout_closed before testing for ferror, not after.
14850         (fwriteerror, fwriteerror_no_ebadf): New functions.
14851
14852 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14853
14854         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
14855
14856 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
14857
14858         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
14859         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
14860
14861 2006-09-28  Jim Meyering  <jim@meyering.net>
14862
14863         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
14864         Include <unistd.h>.
14865
14866 2006-09-28  Bruno Haible  <bruno@clisp.org>
14867
14868         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
14869         * modules/linkedhash-list (Depends-on): Likewise.
14870         * modules/rbtreehash-list (Depends-on): Likewise.
14871
14872 2006-09-28  Bruno Haible  <bruno@clisp.org>
14873
14874         * lib/strndup.h: Simplify the redefinition of strndup.
14875         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
14876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
14877
14878 2006-09-28  Bruno Haible  <bruno@clisp.org>
14879
14880         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
14881         * lib/gl_linkedhash_list.c: Likewise.
14882         * lib/gl_rbtreehash_list.c: Likewise.
14883
14884 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
14885
14886         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
14887         getaddrinfo.
14888
14889         * lib/__fpending.h: Don't include <stdio_ext.h> unless
14890         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
14891         it causes <stdio_ext.h> to cause a compile-time error.
14892         Problem reported by Nelson H. F. Beebe.
14893         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
14894         of HAVE_DECL___PENDING.
14895
14896         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
14897         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
14898         declaration.
14899
14900 2006-09-27  Jim Meyering  <jim@meyering.net>
14901
14902         This file could end up with a definition for a function
14903         named __strndup, rather than rpl_strndup on a system with
14904         incomplete weak_alias support.
14905         * lib/strndup.c (strndup): Rename from __strndup.
14906         Remove #defines that used to map __strndup to strndup.
14907         Don't use K&R prototypes.
14908         Remove LIBC-related code, since this file is not sync'd with glibc.
14909         * lib/strndup.h: Revamp, accordingly.
14910         * m4/strndup.m4: Modernize.
14911
14912 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         * modules/savewd (Depends-on): Add 'raise'.
14915         * lib/savewd.c: Include <signal.h>, for 'raise'.
14916
14917 2006-09-26  Jim Meyering  <jim@meyering.net>
14918
14919         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
14920         when we detect Darwin 8.7.0's acl_get_file bug.
14921         Rearrange to perform the new (below) run-test while $LIBS
14922         contains any acl-related library.  Set USE_ACL at the end.
14923         (gl_ACL_GET_FILE): New function.
14924
14925 2006-09-26  Eric Blake  <ebb9@byu.net>
14926
14927         * lib/verror.c: Include <config.h> unconditionally.
14928
14929 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         * modules/clock-time (Maintainer): Add self.
14932         * modules/getlogin_r (Depends-on): Add extensions.
14933
14934 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14935
14936         * modules/clock-time: New module.
14937         * modules/nanosleep (Depends-on): Add clock-time.
14938         * modules/gethrxtime (Depends-on): Likewise.
14939         * modules/gettime (Depends-on): Likewise.
14940         * modules/settime (Depends-on): Likewise.
14941
14942         * modules/fts-lgpl: Depend on openat.
14943         * modules/mkancesdirs: Depend on savewd.
14944         * modules/mkdir-p: Likewise.
14945
14946 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14947
14948         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
14949
14950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
14951         `gl_have_arbitrary_file_name_length_limit' to
14952         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
14953         actually works between configure runs.
14954
14955 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14956             Bruno Haible  <bruno@clisp.org>
14957
14958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
14959
14960 2006-09-25  Jim Meyering  <jim@meyering.net>
14961
14962         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
14963         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
14964
14965 2006-09-25  Eric Blake  <ebb9@byu.net>
14966
14967         * gnulib-tool (func_import, func_create_testdir): Fix typos in
14968         exec's in 2006-09-18 patch when shuffling fds.
14969
14970 2006-09-25  Bruno Haible  <bruno@clisp.org>
14971
14972         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
14973         Reported by Jim Meyering.
14974
14975 2006-09-24  Jim Meyering  <jim@meyering.net>
14976
14977         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
14978         compare a pointer against a literal "0".  That caused failures with
14979         at least HP-UX's hpcc.
14980
14981 2006-09-22  Simon Josefsson  <jas@extundo.com>
14982
14983         * modules/gc-sha1:
14984         * modules/gc-md4:
14985         * modules/gc-hmac-sha1:
14986         * modules/gc-hmac-md5:
14987         * modules/gc-des:
14988         * modules/gc-arcfour: Distribute more files.
14989
14990 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14991
14992         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
14993         (gl_linked_iterator_from_to): Initialize struct completely.
14994         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
14995         (gl_tree_iterator_from_to): Likewise
14996         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
14997         * lib/gl_array_list.c [lint] (gl_array_iterator)
14998         (gl_array_iterator_from_to): Likewise.
14999         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
15000         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
15001         (gl_carray_iterator_from_to): Likewise.
15002
15003         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
15004         * lib/md4.c (md4_process_block): Remove unused variable.
15005         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
15006         parentheses for clarity.
15007
15008 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15009
15010         * modules/bison-i18n (Depends-on): Add gettext.
15011
15012 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15013
15014         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
15015         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15016         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
15017         also add missing comma that caused broken test.
15018         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
15019         stdlib.h, for `abort'.
15020         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
15021         variables.
15022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
15023         include unistd.h if present, for `rmdir'.
15024         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
15025         variables.
15026         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
15027         in the process include standard headers for prototypes.
15028         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
15029         gets declared on GNU/Linux.
15030         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
15031         unistd.h, for `rmdir'.
15032         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
15033
15034         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
15035         always true.
15036         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
15037
15038         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
15039
15040 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15041
15042         * gnulib-tool (func_version): Create output all at once.  This
15043         may help avoid triggering unnecessary SIGPIPEs, and at any
15044         rate it doesn't hurt.
15045
15046 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15047             Bruno Haible  <bruno@clisp.org>
15048
15049         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
15050         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15051         * m4/signed.m4 (bh_C_SIGNED): Likewise.
15052
15053         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
15054         (gl_FUNC_VASPRINTF): Invoke it.
15055
15056 2006-09-22  Bruno Haible  <bruno@clisp.org>
15057
15058         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
15059         getloadavg.c as first argument.
15060
15061 2006-09-22  Bruno Haible  <bruno@clisp.org>
15062
15063         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
15064         at the beginning of the gl_INIT macro.
15065         * modules/getloadavg (configure.ac): Pass $gl_source_base to
15066         gl_GETLOADAVG.
15067
15068 2006-09-22  Bruno Haible  <bruno@clisp.org>
15069
15070         * gnulib-tool (func_create_megatestdir): Don't include the config-h
15071         module.
15072         Suggested by Ralf Wildenhues.
15073
15074 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         Import this patch from libc:
15077
15078         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
15079
15080         * lib/regex_internal.c (re_string_reconstruct): Handle
15081         offset < pstr->valid_raw_len && pstr->offsets_needed case.
15082         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
15083         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
15084         re_string_context_at.
15085
15086         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
15087         now requires it.
15088         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
15089         gl_REGEX now does it for us.
15090         (gl_REGEX): Add test taken from
15091         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
15092
15093         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
15094         Check that large offsets work.  Modernize Autoconf usages.
15095         Prefer "yes" to mean a good thing rather than a bad.
15096         Don't put "#define mkstemp" in config.h, as this might interfere
15097         with standard system headers that "#define mkstemp mkstemp64".
15098
15099         * modules/mkstemp (Depends-on): Add extensions, so that
15100         mkstemp is visible on some platforms.
15101         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
15102         (Include): Change to "mkstemp.h" from <stdlib.h>.
15103         (Files): Add mkstemp.h.
15104
15105         * lib/mkstemp.h: New file, since some standard headers
15106         #define mkstemp.
15107         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
15108         Include "mkstemp.h".
15109         Make the _LIBC code resemble glibc original more,
15110         e.g., use K&R style.
15111         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
15112         (mkstemp): Remove, since mkstemp.h does this for us.
15113         * lib/stdlib--.h: Include mkstemp.h.
15114
15115         Import this patch from libc:
15116
15117         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
15118
15119         * lib/tempname.c (__gen_tempname): Change attempts_min
15120         into a macro.  Use preprocessor to decide how to initialize
15121         attempts [Coverity CID 67].
15122
15123 2006-09-20  Bruno Haible  <bruno@clisp.org>
15124
15125         * lib/mkdtemp.c: Import from libc.
15126         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
15127                 * sysdeps/posix/tempname.c (__gen_tempname): Change
15128                 attempts_min into a macro.  Use preprocessor to decide how to
15129                 initialize attempts [Coverity CID 67].
15130         2001-11-27  Paul Eggert  <eggert@twinsun.com>
15131                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
15132                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
15133
15134 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15135
15136         * gnulib-tool (func_exit): New function, to allow to pass the
15137         exit status portably through the trap.  Use everywhere.
15138         (--help, --version): Signal a write error.
15139         (trap): catch SIGPIPE, for write errors.
15140         Exit at the end of the trap, with the correct exit status.
15141
15142 2006-09-19  Karl Berry  <karl@gnu.org>
15143
15144         * doc/gnulib.texi: note about the license texinfo files.
15145
15146 2006-09-19  Eric Blake  <ebb9@byu.net>
15147
15148         * gnulib-tool: Avoid space-tab.
15149
15150 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15151
15152         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
15153         that prevented coreutils 6.1 from building.  Problem reported
15154         by Petter Reinholdtsen.
15155
15156 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
15157
15158         * gnulib-tool (avoidlist): Fix typo that broke options like
15159         --avoid=lock that are used by coreutils bootstrap.
15160
15161 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
15162
15163         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
15164         more systematically.
15165
15166 2006-09-18  Jim Meyering  <jim@meyering.net>
15167
15168         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
15169
15170 2006-09-18  Bruno Haible  <bruno@clisp.org>
15171
15172         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
15173
15174 2006-09-18  Bruno Haible  <bruno@clisp.org>
15175
15176         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
15177         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
15178         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
15179         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
15180         * m4/gettext.m4: Require autoconf >= 2.52.
15181         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
15182         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
15183         of gl_cv_header_inttypes_h.
15184
15185 2006-09-18  Bruno Haible  <bruno@clisp.org>
15186
15187         * lib/javaversion.c: Include configmake.h.
15188
15189 2006-09-18  Bruno Haible  <bruno@clisp.org>
15190
15191         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
15192         avoid that the while loops be executed in a subshell.
15193
15194 2006-09-18  Bruno Haible  <bruno@clisp.org>
15195
15196         * MODULES.html.sh (func_module): Break long lines.
15197         Suggested by Bruce Korb <bkorb@gnu.org>.
15198
15199 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15200
15201         Speed up by a factor of 1.12.
15202         * gnulib-tool (nl): New variable.
15203         (func_import): Rewrite include directive extraction to only read each
15204         directive once.
15205
15206 2006-09-17  Bruno Haible  <bruno@clisp.org>
15207
15208         * modules/javaversion (Makefile.am): Remove DEFS setting.
15209         (Depends-on): Add configmake, for PKGDATADIR definition.
15210
15211 2006-09-17  Bruno Haible  <bruno@clisp.org>
15212
15213         * gnulib-tool (func_create_testdir): Rewrite all files at once.
15214
15215 2006-09-17  Bruno Haible  <bruno@clisp.org>
15216
15217         * gnulib-tool (func_append): New function, stolen from libtool.m4.
15218         (func_modules_transitive_closure, func_modules_add_dummy,
15219         func_modules_to_filelist, func_import, func_create_testdir,
15220         func_create_megatestdir, ...): Use it wherever possible.
15221         Suggested by Ralf Wildenhues.
15222
15223 2006-09-16  Karl Berry  <karl@gnu.org>
15224
15225         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
15226         to avoid sectioning errors.
15227         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
15228         [ifinfo]: blank line after @center-ed titles.
15229         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
15230         Spell FSF address consistently with others.
15231         (These changes approved by rms.)
15232
15233 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15234
15235         Speed up by a factor of 1.61.
15236         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
15237         already checked module names again.
15238
15239 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15240
15241         Speed up by a factor of 1.13.
15242         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
15243         for new_files, and the input to func_add_or_update.
15244
15245 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15246
15247         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
15248         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
15249
15250 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15251
15252         * modules/mkancesdirs (Depends-on): Add fcntl.
15253         * modules/savewd: New file.
15254         * MODULES.html.sh (File system functions): Add savewd.
15255
15256         * modules/configmake (Makefile.am): Add support for the
15257         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
15258
15259 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15260
15261         * m4/savewd.m4: New file.
15262
15263 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15264
15265         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
15266         (dirchownmod): New arg FD.  All callers changed.
15267         Use FD rather than opening the directory ourself, as opening is
15268         now the caller's responsibility.
15269         * lib/dirchownmod.h: Likewise.
15270         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
15271         hosts that require <sys/types.h> before <sys/stat.h>.  Include
15272         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
15273         (test_dir): Remove.
15274         (mkancesdirs): Return length of prefix of FILE that has already
15275         been made, or -2 if there is a child doing the work.  Redo
15276         algorithm so that it is O(N) rather than O(N**2).  Optimize away
15277         ".", and treat ".." specially since it might stray back into
15278         already-created areas.  Use a subprocess if necessary.  New arg
15279         WD; all users changed.  MAKE_DIR function should now return 1
15280         if it creates a directory that is not readable.  Return -2 if
15281         a child process is spun off.
15282         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
15283         Adjust signature to match code.
15284         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
15285         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
15286         all users changed.
15287         * lib/savewd.c, lib/savewd.h: New files.
15288
15289 2006-09-15  Jim Meyering  <jim@meyering.net>
15290
15291         * modules/rename-dest-slash: New module.
15292         * MODULES.html.sh (posix_compat): Add it here.
15293
15294         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
15295
15296 2006-09-15  Jim Meyering  <jim@meyering.net>
15297
15298         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
15299         file.
15300
15301         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
15302
15303 2006-09-15  Jim Meyering  <jim@meyering.net>
15304
15305         * lib/rename-dest-slash.c (has_trailing_slash): Use
15306         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
15307         (rpl_rename_dest_slash): Perform the cheaper trailing slash
15308         test before testing whether SRC is a directory.
15309         Suggestions from Bruno Haible.
15310
15311         Avoid a warning about an unused variable.
15312         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
15313         into the #ifdef block where it's used.
15314
15315         * lib/rename-dest-slash.c: New file.
15316
15317 2006-09-14  Bruno Haible  <bruno@clisp.org>
15318
15319         * lib/allocsa.c: Include <config.h> unconditionally.
15320         * lib/asnprintf.c: Likewise.
15321         * lib/asprintf.c: Likewise.
15322         * lib/c-strcasecmp.c: Likewise.
15323         * lib/c-strcasestr.c: Likewise.
15324         * lib/c-strncasecmp.c: Likewise.
15325         * lib/c-strstr.c: Likewise.
15326         * lib/classpath.c: Likewise.
15327         * lib/clean-temp.c: Likewise.
15328         * lib/concatpath.c: Likewise.
15329         * lib/copy-file.c: Likewise.
15330         * lib/csharpcomp.c: Likewise.
15331         * lib/csharpexec.c: Likewise.
15332         * lib/execute.c: Likewise.
15333         * lib/fatal-signal.c: Likewise.
15334         * lib/findprog.c: Likewise.
15335         * lib/fwriteerror.c: Likewise.
15336         * lib/gl_array_list.c: Likewise.
15337         * lib/gl_array_oset.c: Likewise.
15338         * lib/gl_avltree_list.c: Likewise.
15339         * lib/gl_avltree_oset.c: Likewise.
15340         * lib/gl_avltreehash_list.c: Likewise.
15341         * lib/gl_carray_list.c: Likewise.
15342         * lib/gl_linked_list.c: Likewise.
15343         * lib/gl_linkedhash_list.c: Likewise.
15344         * lib/gl_list.c: Likewise.
15345         * lib/gl_oset.c: Likewise.
15346         * lib/gl_rbtree_list.c: Likewise.
15347         * lib/gl_rbtree_oset.c: Likewise.
15348         * lib/gl_rbtreehash_list.c: Likewise.
15349         * lib/imaxabs.c: Likewise.
15350         * lib/imaxdiv.c: Likewise.
15351         * lib/javacomp.c: Likewise.
15352         * lib/javaexec.c: Likewise.
15353         * lib/javaversion.c: Likewise.
15354         * lib/linebreak.c: Likewise.
15355         * lib/localcharset.c: Likewise.
15356         * lib/lock.c: Likewise.
15357         * lib/mbchar.c: Likewise.
15358         * lib/mbswidth.c: Likewise.
15359         * lib/mkdtemp.c: Likewise.
15360         * lib/pipe.c: Likewise.
15361         * lib/printf-args.c: Likewise.
15362         * lib/printf-parse.c: Likewise.
15363         * lib/progname.c: Likewise.
15364         * lib/progreloc.c: Likewise.
15365         * lib/readlink.c: Likewise.
15366         * lib/sh-quote.c: Likewise.
15367         * lib/stpcpy.c: Likewise.
15368         * lib/stpncpy.c: Likewise.
15369         * lib/strcasecmp.c: Likewise.
15370         * lib/strcasestr.c: Likewise.
15371         * lib/strcspn.c: Likewise.
15372         * lib/striconv.c: Likewise.
15373         * lib/strncasecmp.c: Likewise.
15374         * lib/strnlen1.c: Likewise.
15375         * lib/strstr.c: Likewise.
15376         * lib/strtok_r.c: Likewise.
15377         * lib/tls.c: Likewise.
15378         * lib/tmpdir.c: Likewise.
15379         * lib/unicodeio.c: Likewise.
15380         * lib/unsetenv.c: Likewise.
15381         * lib/vasnprintf.c: Likewise.
15382         * lib/vasprintf.c: Likewise.
15383         * lib/wait-process.c: Likewise.
15384         * lib/xallocsa.c: Likewise.
15385         * lib/xsetenv.c: Likewise.
15386         * lib/xstriconv.c: Likewise.
15387
15388 2006-09-13  Simon Josefsson  <jas@extundo.com>
15389
15390         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
15391         that internally, suggested by Ralf Wildenhues
15392         <Ralf.Wildenhues@gmx.de>.
15393
15394 2006-09-13  Simon Josefsson  <jas@extundo.com>
15395
15396         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
15397         @LIBOBJS@.
15398         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15399
15400 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         * lib/_fpending.c: Include <config.h> unconditionally, since we no
15403         longer worry about uses that don't define HAVE_CONFIG_H.
15404         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
15405         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
15406         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
15407         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
15408         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
15409         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
15410         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
15411         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
15412         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
15413         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
15414         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
15415         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
15416         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
15417         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
15418         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
15419         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
15420         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
15421         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
15422         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
15423         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
15424         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
15425         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
15426         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
15427         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
15428         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
15429         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
15430         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
15431         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
15432         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
15433         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
15434         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
15435         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
15436         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
15437         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
15438         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
15439         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
15440         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
15441         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
15442         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
15443         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
15444         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
15445         Likewise.
15446
15447 2006-09-13  Eric Blake  <ebb9@byu.net>
15448
15449         * lib/getopt.c: Fix typo in last commit.
15450
15451 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15452
15453         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
15454         dgettext.
15455
15456 2006-09-12  Jim Meyering  <jim@meyering.net>
15457
15458         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
15459         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
15460         Reported by Nelson H. F. Beebe.
15461
15462 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
15463
15464         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
15465         program_invocation_name and program_invocation_short_name are
15466         initialized.
15467         * lib/argp-namefrob.h: Move declarations of program_invocation_name
15468         and program_invocation_short_name to argp.h, so they are visible
15469         to user programs.
15470         * lib/argp.h: Likewise
15471
15472 2006-09-10  Bruno Haible  <bruno@clisp.org>
15473
15474         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
15475         m4/inttypes_h.m4, m4/uintmax_t.m4.
15476
15477 2006-09-10  Bruno Haible  <bruno@clisp.org>
15478
15479         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
15480         gl_AC_TYPE_UINTMAX_T.
15481
15482 2006-09-10  Bruno Haible  <bruno@clisp.org>
15483
15484         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
15485
15486 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
15487
15488         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
15489         convention.  Text proposed by Bruno Haible.
15490         (struct argp_option): Document the use of N_() wrappers.
15491
15492         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
15493         '\v', and translate the two parts separately, instead of feeding
15494         the whole string to gettext.  This allows to exclude
15495         '\v' from the strings visible to the translator by writing doc
15496         strings as N_("..") "\v" N_("..").
15497
15498 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
15499
15500         * config/srclist.txt: Undo latest change; the bug was fixed.
15501
15502 2006-09-09  Bruno Haible  <bruno@clisp.org>
15503
15504         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
15505         assignments if building a library without libtool.
15506         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
15507         in func_emit_lib_Makefile_am.
15508         (func_import): When building a static library libfoo.a, arrange to
15509         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
15510         (func_create_testdir): Likewise.
15511         * modules/gc (configure.ac, Makefile.am): If building statically,
15512         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
15513         * modules/iconvme (configure.ac, Makefile.am): Likewise.
15514         * modules/striconv (configure.ac, Makefile.am): Likewise.
15515         Based on a suggestion by Ralf Wildenhues.
15516
15517 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15518
15519         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15520         Check for unistd.h too, since Autoconf doesn't assume POSIX.
15521         Also:
15522
15523         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15524         Add year_2050_test to catch glibc bug 2821
15525         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
15526
15527         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15528         Prefer #ifdef to #if.
15529
15530         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
15531         Return from 'main' instead of calling 'exit'.
15532
15533 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         * lib/mktime.c (guess_time_tm): Fix bug where mktime
15536         returned the maximum time_t value rather than (time_t) -1.
15537         Problem originally reported by William Bardwell
15538         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
15539
15540         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
15541         Moved to here ...
15542         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
15543         ... from here.
15544
15545 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
15548         2821 is fixed.
15549
15550 2006-09-08  Jim Meyering  <jim@meyering.net>
15551
15552         Don't make generated files read-only.  That would bother too many
15553         people.  However, do retain the ability to work when targets are
15554         read-only: remove the destination and temporary files before writing
15555         them (when generated via sed or echo), or by using the -f option for
15556         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
15557         * modules/alloca-opt, modules/argz, modules/arpa_inet:
15558         * modules/byteswap, modules/configmake, modules/fcntl:
15559         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
15560         * modules/localcharset, modules/netinet_in, modules/poll:
15561         * modules/stdbool, modules/stdint, modules/sys_select:
15562         * modules/sys_socket, modules/sys_stat, modules/sysexits:
15563
15564 2006-09-08  Jim Meyering  <jim@meyering.net>
15565
15566         Avoid new build failure on FreeBSD 6.0.
15567         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
15568         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
15569         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
15570
15571 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15572
15573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
15574
15575 2006-09-07  Jim Meyering  <jim@meyering.net>
15576
15577         Fix global typo in last change: use chmod u-w, not chmod u-x.
15578         Spotted by Paul Eggert and Bruce Korb.
15579         * modules/alloca-opt, modules/argz, modules/arpa_inet:
15580         * modules/byteswap, modules/configmake, modules/fcntl:
15581         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
15582         * modules/localcharset, modules/netinet_in, modules/poll:
15583         * modules/stdbool, modules/stdint, modules/sys_select:
15584         * modules/sys_socket, modules/sys_stat, modules/sysexits:
15585
15586 2006-09-06  Jim Meyering  <jim@meyering.net>
15587
15588         Make generated files be read-only.
15589         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
15590         Ensure that each generated file is now read-only.
15591         * modules/argz: Likewise.
15592         * modules/arpa_inet: Likewise.
15593         * modules/byteswap: Likewise.
15594         * modules/configmake: Likewise.
15595         * modules/fcntl: Likewise.
15596         * modules/fnmatch: Likewise.
15597         * modules/getopt: Likewise.
15598         * modules/glob: Likewise.
15599         * modules/inttypes: Likewise.
15600         * modules/netinet_in: Likewise.
15601         * modules/poll: Likewise.
15602         * modules/stdbool: Likewise.
15603         * modules/stdint: Likewise.
15604         * modules/sys_select: Likewise.
15605         * modules/sys_socket: Likewise.
15606         * modules/sys_stat: Likewise.
15607         * modules/sysexits: Likewise.
15608         * modules/localcharset: Same as above, but continue using temporary
15609         file named "t-$@" (why different?) rather than the "$@-t" used
15610         everywhere else.
15611
15612         * modules/sysexits (Makefile.am): Replace literal occurrences
15613         of "sysexit.h" more readable, and more consistent, "$@".
15614
15615 2006-09-06  Bruno Haible  <bruno@clisp.org>
15616
15617         * modules/striconv: New file.
15618         * modules/xstriconv: New file.
15619         * MODULES.html.sh (Internationalization functions): Add striconv,
15620         xstriconv.
15621
15622 2006-09-06  Bruno Haible  <bruno@clisp.org>
15623
15624         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
15625         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
15626         not using libtool correctly.
15627
15628 2006-09-06  Bruno Haible  <bruno@clisp.org>
15629
15630         * lib/striconv.h: New file.
15631         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
15632         iconvstring.c.
15633         * lib/xstriconv.h: New file.
15634         * lib/xstriconv.c: New file.
15635
15636 2006-09-06  Bruno Haible  <bruno@clisp.org>
15637
15638         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15639         lib_..._LDFLAGS.
15640
15641 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15642
15643         * lib/argz_.h: Sync from Libtool.
15644
15645         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
15646                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15647
15648         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
15649
15650 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
15651
15652         * modules/trim: New file.
15653
15654 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
15655
15656         * lib/trim.h: New file.
15657         * lib/trim.c: New file.
15658
15659 2006-09-05  Bruno Haible  <bruno@clisp.org>
15660
15661         * MODULES.html.sh (String handling): Add trim.
15662
15663 2006-09-04  Karl Berry  <karl@gnu.org>
15664
15665         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
15666         until next release.
15667
15668 2006-09-03  Bruno Haible  <bruno@clisp.org>
15669
15670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
15671         correctly.
15672
15673 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15674
15675         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
15676         not gl_GETLOADAVG.  Omit unneeded semicolons.
15677         Problems reported by Ralf Wildenhues in
15678         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
15679         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
15680         at the end, which is the usual gnulib style.
15681
15682         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
15683         of doing all the work ourselves.
15684         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
15685         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
15686
15687 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15688
15689         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
15690         Problem reported by Ralf Wildenhues in
15691         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
15692
15693         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
15694         HAVE_STRUCT_STATFS_F_FSTYPENAME.
15695
15696 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15697
15698         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
15699         yesterday's patch by changing test -n to test -z.
15700
15701 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15702
15703         * modules/getloadavg (Files): Add m4/getloadavg.m4.
15704         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
15705         the former is now obsolescent.
15706
15707         * modules/chdir-long (Depends-on): Add fcntl.
15708
15709 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15710
15711         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
15712         obsolescent, and programs should use gnulib instead.
15713         * m4/getloadavg.m4: New file, with contents taken from Autoconf
15714         but with prefixes changed.
15715
15716 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
15719         or stdbool.h, because they might not exist while configuring.
15720
15721         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
15722         Don't include unistd.h or limits.h; not needed, since chdir-long.h
15723         does that for us.
15724         (O_DIRECTORY): Remove.
15725
15726 2006-08-31  Eric Blake  <ebb9@byu.net>
15727
15728         * gnulib-tool: Don't let emacs change spaces to TAB.
15729
15730 2006-08-31  Bruno Haible  <bruno@clisp.org>
15731
15732         * gnulib-tool: When calling func_import more than once, do it in a
15733         subshell.
15734         Reported by Eric Blake <ebb9@byu.net>.
15735
15736 2006-08-31  Bruno Haible  <bruno@clisp.org>
15737
15738         * gnulib-tool (nl): Remove variable.
15739         (sed_transform_lib_file): Use more robust test for config-h module.
15740         (func_import): Fix typo in 2006-08-25 patch.
15741
15742 2006-08-31  Bruno Haible  <bruno@clisp.org>
15743
15744         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
15745         specified, augment Makefile.am variables instead of assigning them.
15746
15747 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15748
15749         Work around a bug in both the Linux and SunOS 64-bit kernels:
15750         nanosleep mishandles sleeps for longer than 2**31 seconds.
15751         Problem reported by Frank v Waveren in
15752         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
15753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
15754         Check for nanosleep bug.
15755         (LIB_NANOSLEEP): Append clock_gettime library if needed.
15756
15757 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15758
15759         Work around a bug in both the Linux and SunOS 64-bit kernels:
15760         nanosleep mishandles sleeps for longer than 2**31 seconds.
15761         Problem reported by Frank v Waveren in
15762         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
15763         * lib/nanosleep.c (BILLION): New constant.
15764         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
15765         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
15766         implementation.
15767
15768 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         * modules/nanosleep (Depends-on): Add gettime.
15771
15772 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15773         and Simon Josefsson  <jas@extundo.com>
15774         and Oskar Liljeblad  <oskar@osk.mine.nu>
15775
15776         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
15777         * gnulib-tool (func_import): New license type 'unmodifiable license
15778         text'.
15779         * modules/fdl: Use it.  Longer description.
15780         * module/gpl, module/lgpl: New files.
15781
15782 2006-08-30  Jim Meyering  <jim@meyering.net>
15783
15784         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
15785         shadowing the parameter.
15786
15787 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15788
15789         Sync from Libtool:
15790
15791         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15792
15793         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
15794         sharing with gnulib.  Report by Eric Blake.
15795
15796 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15797
15798         * modules/isapipe: New file.
15799         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
15800
15801 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15802
15803         * modules/configmake (Makefile.am): Add a comment, and omit
15804         the CONFIGMAKE_ prefix from generated macro names.  Suggested
15805         by Bruno Haible.
15806
15807 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15808
15809         * m4/isapipe.m4: New file.
15810
15811 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15812
15813         * lib/isapipe.c, lib/isapipe.h: New files.
15814
15815 2006-08-29  Jim Meyering  <jim@meyering.net>
15816
15817         * modules/configmake (Makefile.am): Make configmake.h depend on
15818         Makefile.  Otherwise, a stale configmake.h could hang around.
15819
15820 2006-08-29  Eric Blake  <ebb9@byu.net>
15821
15822         * lib/error.c (error_at_line, print_errno_message): Match libc, after
15823         resolution of upstream bug 3044.
15824
15825 2006-08-29  Bruno Haible  <bruno@clisp.org>
15826
15827         * modules/localcharset (Depends-on): Add configmake.
15828         (Makefile.am): Remove setting of LIBDIR through DEFS.
15829
15830 2006-08-29  Bruno Haible  <bruno@clisp.org>
15831
15832         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
15833         defined.
15834
15835 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15836
15837         * modules/fcntl: New file.
15838         * modules/chdir-safer (Depends-on): Add fcntl.
15839         * modules/fts: Likewise.
15840         * modules/mkdir-p: Likewise.
15841
15842         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
15843         This undoes the most recent change, since we're now addressing the
15844         problem in a different way.
15845
15846         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
15847         into output, since the output might be called Makefile.am even
15848         if $makefile_name is something different.
15849         (func_import): Use $makefile_am rather than
15850         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
15851         empty.
15852
15853         * modules/inttypes (Files): Add m4/inttypes-h.m4.
15854
15855 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15856
15857         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
15858         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
15859         recent change to stdint.m4, since we're now addressing the problem in a
15860         different way.
15861
15862 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15863
15864         * m4/fcntl_h.m4: New file.
15865
15866 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
15867
15868         * lib/fcntl_.h: New file.
15869         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
15870         the fcntl module.
15871         * lib/dirchownmod.c: Likewise.
15872         * lib/fts.c: Likewise.
15873
15874         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
15875         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
15876         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
15877         just before including <inttypes.h>, to avoid circular inclusion.
15878
15879 2006-08-28  Jim Meyering  <jim@meyering.net>
15880
15881         * doc/visibility.texi: Actually read and correct the grammar of the
15882         sentence affected by yesterday's change.
15883
15884 2006-08-28  Eric Blake  <ebb9@byu.net>
15885
15886         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
15887         needs wrapper.
15888
15889 2006-08-28  Eric Blake  <ebb9@byu.net>
15890
15891         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
15892
15893 2006-08-28  Eric Blake  <ebb9@byu.net>
15894
15895         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
15896
15897 2006-08-28  Bruno Haible  <bruno@clisp.org>
15898
15899         * modules/c-strstr: New file, from GNU gettext.
15900         * MODULES.html.sh (String handling): Add c-strstr.
15901
15902 2006-08-28  Bruno Haible  <bruno@clisp.org>
15903
15904         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
15905         macros.
15906         Reported by Eric Blake.
15907
15908 2006-08-28  Bruno Haible  <bruno@clisp.org>
15909
15910         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
15911         (VASNPRINTF): Return a string of length > INT_MAX without failing.
15912         * lib/vasprintf.c: Include errno.h, limits.h.
15913         (EOVERFLOW): New fallback definition.
15914         (vasprintf): Test here whether the string length is > INT_MAX.
15915         * lib/vsnprintf.c: Include errno.h, limits.h.
15916         (EOVERFLOW): New fallback definition.
15917         (vsnprintf): Fix bug when generated string was too long for the buffer.
15918         Test here whether the string length is > INT_MAX.
15919
15920 2006-08-28  Bruno Haible  <bruno@clisp.org>
15921
15922         * lib/inttypes_.h (SCNX*): Remove definitions.
15923         Reported by Eric Blake.
15924
15925 2006-08-28  Bruno Haible  <bruno@clisp.org>
15926
15927         * lib/c-strstr.h: New file, from GNU gettext.
15928         * lib/c-strstr.c: New file, from GNU gettext.
15929
15930 2006-08-28  Bruno Haible  <bruno@clisp.org>
15931
15932         * gnulib-tool: Reorder some statements.
15933
15934 2006-08-28  Bruno Haible  <bruno@clisp.org>
15935
15936         * gnulib-tool: New option --makefile-name.
15937         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
15938         $makefile_name.
15939         (func_import): Write $makefile_name to the cache file, and read it from
15940         there unless explicitly specified. Use $makefile_name as file name
15941         instead of Makefile.am. Adjust the recommendations accordingly.
15942
15943 2006-08-28  Bruno Haible  <bruno@clisp.org>
15944
15945         * gnulib-tool (func_verify_module): Check against misapplying patch.
15946
15947 2006-08-28  Bruno Haible  <bruno@clisp.org>
15948
15949         * gnulib-tool (func_relativize, func_relconcat): New functions.
15950         Give an error if --local-dir is given with --update.
15951         Remove trailing slashes from $local_gnulib_dir.
15952         (func_import): Store the relativized $local_gnulib_dir in
15953         gnulib-cache.m4, and read it from there if not specified explicitly.
15954
15955 2006-08-28  Bruno Haible  <bruno@clisp.org>
15956
15957         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
15958         is the current directory. Respect also $local_gnulib_dir.
15959
15960 2006-08-28  Bruno Haible  <bruno@clisp.org>
15961             Simon Josefsson  <jas@extundo.com>
15962
15963         BeOS portability.
15964         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
15965
15966 2006-08-27  Jim Meyering  <jim@meyering.net>
15967
15968         * doc/visibility.texi: Remove duplicate word: "pointer".
15969
15970 2006-08-26  Bruno Haible  <bruno@clisp.org>
15971
15972         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
15973         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
15974         (Makefile.am): Create inttypes.h from inttypes_.h.
15975         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
15976
15977         * modules/imaxabs: New file.
15978
15979         * modules/imaxdiv: New file.
15980
15981 2006-08-26  Bruno Haible  <bruno@clisp.org>
15982
15983         * m4/inttypes.m4: New file.
15984         * m4/_inttypes_h.m4: Remove file.
15985         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
15986         PRI_MACROS_BROKEN.
15987         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
15988
15989         * m4/imaxabs.m4: New file.
15990
15991         * m4/imaxdiv.m4: New file.
15992
15993 2006-08-26  Bruno Haible  <bruno@clisp.org>
15994
15995         * lib/inttypes_.h: New file.
15996         * lib/inttypes.h: Remove file.
15997         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
15998
15999         * lib/imaxabs.c: New file.
16000
16001         * lib/imaxdiv.c: New file.
16002
16003 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         New config-h module, so that "make" output needn't be cluttered
16006         by -DHAVE_CONFIG_H.
16007         * MODULES.html.sh (Support for building libraries and executables):
16008         Add config-h.
16009         * modules/config-h: New file.
16010         * gnulib-tool (nl, sed_transform_lib_file): New vars.
16011         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
16012         the config-h module is used.
16013
16014         New configmake module, so that "make" output needn't be cluttered
16015         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
16016         * MODULES.html.sh (Support for building libraries and executables):
16017         Add configmake.
16018         * modules/configmake: New file.
16019
16020 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16021
16022         * m4/config-h.m4: New file.
16023
16024 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16025
16026         * config/srclist.txt: Add elisp-comp.
16027
16028 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16029
16030         * MODULES.html.sh (Support for building libraries and executables):
16031         Add elisp-comp.
16032         * build-aux/elisp-comp: New file.
16033         * modules/elisp-comp: New file.
16034
16035 2006-08-24  Bruno Haible  <bruno@clisp.org>
16036
16037         * gnulib-tool (func_create_testdir): Use non-default values of
16038         sourcebase and m4base.
16039
16040 2006-08-24  Bruno Haible  <bruno@clisp.org>
16041
16042         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
16043         HTML structure.
16044
16045 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16046
16047         * modules/openat (Depends-on): Add lchown.
16048
16049 2006-08-23  Bruno Haible  <bruno@clisp.org>
16050
16051         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
16052         of gl_LOCK_EARLY instead of gl_LOCK.
16053
16054 2006-08-23  Bruno Haible  <bruno@clisp.org>
16055
16056         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
16057         on OSF/1 to no.
16058         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
16059
16060 2006-08-23  Bruno Haible  <bruno@clisp.org>
16061
16062         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
16063         as unusable.
16064
16065         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
16066         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
16067         (gl_LOCK): New macro.
16068
16069 2006-08-22  Simon Josefsson  <jas@extundo.com>
16070
16071         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
16072         to md5 module.
16073
16074 2006-08-22  Simon Josefsson  <jas@extundo.com>
16075
16076         * MODULES.html.sh: Add "Support for maintaining and release
16077         projects".
16078
16079         * build-aux/gnupload: New file, from coreutils.
16080
16081 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16082
16083         Avoid the need for AC_LIBSOURCES in m4 macros.
16084         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
16085         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
16086         * modules/check-version (EXTRA_DIST): Add check-version.h.
16087         * modules/crc (EXTRA_DIST): Add crc.h.
16088         * modules/des (EXTRA_DIST): Add des.h.
16089         * modules/gc (EXTRA_DIST): Add gc.h.
16090         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
16091         * modules/getline (EXTRA_DIST): Add getline.h.
16092         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
16093         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
16094         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
16095         * modules/md2 (EXTRA_DIST): Add md2.h.
16096         * modules/md4 (EXTRA_DIST): Add md4.h.
16097         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
16098         * modules/read-file (EXTRA_DIST): Add read-file.h.
16099         * modules/readline (EXTRA_DIST): Add readline.h.
16100         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
16101         rijndael-api-fst.h.
16102
16103 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16104
16105         * m4/rijndael.m4 (gl_ARCFOUR):
16106         * m4/arctwo.m4 (gl_ARCTWO):
16107         * m4/check-version.m4 (gl_CHECK_VERSION):
16108         * m4/crc.m4 (gl_CRC):
16109         * m4/des.m4 (gl_DES):
16110         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
16111         * m4/gc.m4 (gl_GC):
16112         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
16113         * m4/getline.m4 (gl_FUNC_GETLINE):
16114         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
16115         * m4/hmac-md5.m4 (gl_HMAC_MD5):
16116         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
16117         * m4/md2.m4 (gl_MD2):
16118         * m4/md4.m4 (gl_MD4):
16119         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
16120         * m4/read-file.m4 (gl_FUNC_READ_FILE):
16121         * m4/readline.m4 (gl_FUNC_READLINE):
16122         * m4/rijndael.m4 (gl_RIJNDAEL):
16123         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
16124         to get the necessary .h files and whatnot.
16125
16126 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16127
16128         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
16129         gnulib rather than the other way around.
16130         * config/srclistvars.sh (COREUTILS): Remove.
16131
16132 2006-08-22  Jim Meyering  <jim@meyering.net>
16133
16134         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
16135
16136         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
16137
16138 2006-08-22  Eric Blake  <ebb9@byu.net>
16139
16140         * modules/regexprops-generic: New file.
16141         * MODULES.html.sh (Support for building documentation): List it.
16142
16143 2006-08-22  Eric Blake  <ebb9@byu.net>
16144
16145         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
16146         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
16148         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16149
16150 2006-08-22  Bruno Haible  <bruno@clisp.org>
16151
16152         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
16153         and lib_LTLIBRARIES like the other lib_* variables.
16154
16155 2006-08-22  Bruno Haible  <bruno@clisp.org>
16156
16157         * build-aux/x-to-1.in: New file, from GNU gettext.
16158
16159 2006-08-22  Bruno Haible  <bruno@clisp.org>
16160
16161         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
16162         <utmpx.h> exists.
16163
16164 2006-08-22  Bruno Haible  <bruno@clisp.org>
16165
16166         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
16167         <utmpx.h> exists.
16168
16169 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16170
16171         BeOS portability.
16172         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
16173         exist.
16174         Problem reported by Bruno Haible.
16175
16176 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16177
16178         Avoid the need for AC_LIBSOURCES in m4 macros.
16179         * modules/acl (EXTRA_DIST): Add acl.h.
16180         * modules/argmatch (Files): Add m4/argmatch.m4.
16181         (configure.ac): Add gl_ARGMATCH.
16182         (EXTRA_DIST): Renamed from lib_SOURCES, for
16183         consistency with the other modules.  Remove argmatch.c.
16184         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
16185         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
16186         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
16187         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
16188         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
16189         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
16190         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
16191         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
16192         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
16193         * modules/closeout (EXTRA_DIST): Add closeout.h.
16194         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
16195         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
16196         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
16197         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
16198         dirname.h; remove basename.c and stripslash.c.
16199         * modules/exclude (EXTRA_DIST): Add exclude.h.
16200         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
16201         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
16202         * modules/file-type (EXTRA_DIST): Add file-type.h.
16203         * modules/filemode (EXTRA_DIST): Add filemode.h.
16204         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
16205         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
16206         * modules/fpending (EXTRA_DIST): Add __fpending.h.
16207         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
16208         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
16209         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
16210         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
16211         * modules/getdate (EXTRA_DIST): Add getdate.c.
16212         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
16213         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
16214         * modules/getpass (EXTRA_DIST): Add getpass.h.
16215         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
16216         * modules/group-member (EXTRA_DIST): Add group-member.h.
16217         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
16218         * modules/hash (EXTRA_DIST): Add hash.h.
16219         * modules/human (EXTRA_DIST): Add human.h.
16220         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
16221         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
16222         * modules/lchown (EXTRA_DIST): Add lchown.h.
16223         * modules/long-options (EXTRA_DIST): Add long-options.h.
16224         * modules/lstat (EXTRA_DIST): Add lstat.h.
16225         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
16226         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
16227         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
16228         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
16229         * modules/memxor (EXTRA_DIST): Add memxor.h.
16230         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
16231         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
16232         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
16233         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
16234         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
16235         * modules/physmem (EXTRA_DIST): Add physmem.h.
16236         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
16237         * modules/posixver (EXTRA_DIST): Add posixver.h.
16238         * modules/quote (EXTRA_DIST): Add quote.h.
16239         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
16240         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
16241         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
16242         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
16243         regex_internal.h regexec.c.
16244         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
16245         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
16246         * modules/same (EXTRA_DIST): Add same.h.
16247         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
16248         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
16249         * modules/savedir (EXTRA_DIST): Add savedir.h.
16250         * modules/sha1 (EXTRA_DIST): Add sha1.h.
16251         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
16252         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
16253         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
16254         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
16255         * modules/strdup (EXTRA_DIST): Add strdup.h.
16256         * modules/strftime (EXTRA_DIST): Add strftime.h.
16257         * modules/strndup (EXTRA_DIST): Add strndup.h.
16258         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
16259         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
16260         * modules/time_r (EXTRA_DIST): Add time_r.h.
16261         * modules/timespec (EXTRA_DIST): Add timespec.h.
16262         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
16263         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
16264         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
16265         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
16266         * modules/userspec (EXTRA_DIST): Add userspec.h.
16267         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
16268         * modules/utimens (EXTRA_DIST): Add utimens.h.
16269         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
16270         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
16271         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
16272         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
16273         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
16274         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
16275         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
16276         * modules/yesno (EXTRA_DIST): Add yesno.h.
16277
16278 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
16279
16280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
16281
16282         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
16283         * m4/dev-ino.m4, same-inode.m4: Remove.
16284
16285         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
16286         * m4/acl.m4 (AC_FUNC_ACL):
16287         * m4/backupfile.m4 (gl_BACKUPFILE):
16288         * m4/c-strtod.m4 (gl_C99_STRTOLD):
16289         * m4/canon-host.m4 (gl_CANON_HOST):
16290         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
16291         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
16292         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
16293         * m4/cloexec.m4 (gl_CLOEXEC):
16294         * m4/close-stream.m4 (gl_CLOSE_STREAM):
16295         * m4/closeout.m4 (gl_CLOSEOUT):
16296         * m4/dirfd.m4 (gl_FUNC_DIRFD):
16297         * m4/dirname.m4 (gl_DIRNAME):
16298         * m4/exclude.m4 (gl_EXCLUDE):
16299         * m4/exitfail.m4 (gl_EXITFAIL):
16300         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
16301         * m4/file-type.m4 (gl_FILE_TYPE):
16302         * m4/filemode.m4 (gl_FILEMODE):
16303         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
16304         * m4/fpending.m4 (gl_FUNC_FPENDING):
16305         * m4/fprintftime.m4 (gl_FPRINTFTIME):
16306         * m4/fts.m4 (gl_FUNC_FTS):
16307         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
16308         * m4/getdate.m4 (gl_GETDATE):
16309         * m4/gethrxtime.m4 (gl_GETHRXTIME):
16310         * m4/getpagesize.m4 (gl_GETPAGESIZE):
16311         * m4/getpass.m4 (gl_FUNC_GETPASS):
16312         * m4/gettime.m4 (gl_GETTIME):
16313         * m4/getugroups.m4 (gl_GETUGROUPS):
16314         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
16315         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
16316         * m4/hard-locale.m4 (gl_HARD_LOCALE):
16317         * m4/hash.m4 (gl_HASH):
16318         * m4/idcache.m4 (gl_IDCACHE):
16319         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
16320         * m4/lchown.m4 (gl_FUNC_LCHOWN):
16321         * m4/long-options.m4 (gl_LONG_OPTIONS):
16322         * m4/lstat.m4 (gl_FUNC_LSTAT):
16323         * m4/md5.m4 (gl_MD5):
16324         * m4/memcasecmp.m4 (gl_MEMCASECMP):
16325         * m4/memcoll.m4 (gl_MEMCOLL):
16326         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
16327         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
16328         * m4/memxor.m4 (gl_MEMXOR):
16329         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
16330         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
16331         * m4/modechange.m4 (gl_MODECHANGE):
16332         * m4/mountlist.m4 (gl_MOUNTLIST):
16333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
16334         * m4/openat.m4 (gl_FUNC_OPENAT):
16335         * m4/pathmax.m4 (gl_PATHMAX):
16336         * m4/physmem.m4 (gl_PHYSMEM):
16337         * m4/posixtm.m4 (gl_POSIXTM):
16338         * m4/posixver.m4 (gl_POSIXVER):
16339         * m4/quote.m4 (gl_QUOTE):
16340         * m4/quotearg.m4 (gl_QUOTEARG):
16341         * m4/readtokens.m4 (gl_READTOKENS):
16342         * m4/readutmp.m4 (gl_READUTMP):
16343         * m4/regex.m4 (gl_REGEX):
16344         * m4/safe-read.m4 (gl_SAFE_READ):
16345         * m4/safe-write.m4 (gl_SAFE_WRITE):
16346         * m4/same.m4 (gl_SAME):
16347         * m4/save-cwd.m4 (gl_SAVE_CWD):
16348         * m4/savedir.m4 (gl_SAVEDIR):
16349         * m4/settime.m4 (gl_SETTIME):
16350         * m4/sha1.m4 (gl_SHA1):
16351         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
16352         * m4/stat-macros.m4 (gl_STAT_MACROS):
16353         * m4/stat-time.m4 (gl_STAT_TIME):
16354         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
16355         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
16356         * m4/strdup.m4 (gl_FUNC_STRDUP):
16357         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
16358         * m4/strndup.m4 (gl_FUNC_STRNDUP):
16359         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
16360         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
16361         * m4/time_r.m4 (gl_TIME_R):
16362         * m4/timespec.m4 (gl_TIMESPEC):
16363         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
16364         * m4/unlinkdir.m4 (gl_UNLINKDIR):
16365         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
16366         * m4/userspec.m4 (gl_USERSPEC):
16367         * m4/utimecmp.m4 (gl_UTIMECMP):
16368         * m4/utimens.m4 (gl_UTIMENS):
16369         * m4/xalloc.m4 (gl_XALLOC):
16370         * m4/xgetcwd.m4 (gl_XGETCWD):
16371         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
16372         * m4/xreadlink.m4 (gl_XREADLINK):
16373         * m4/xstrtod.m4 (gl_XSTRTOD):
16374         * m4/yesno.m4 (gl_YESNO):
16375         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
16376         to get the necessary .h files and whatnot.
16377
16378 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
16379             Bruno Haible  <bruno@clisp.org>
16380
16381         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
16382         /bin/sh understanding of '!' conditional negation.
16383
16384 2006-08-21  Jim Meyering  <jim@meyering.net>
16385
16386         * modules/openat (Depends-on): Really alphabetize.
16387
16388         * modules/acl (Depends-on): Add error and quote.
16389
16390         * check-module (find_included_lib_files): Add at-func.c to the
16391         ok-to-include-more-than-once white list.
16392
16393         * modules/openat (Depends-on): Add lstat.  Alphabetize.
16394
16395 2006-08-21  Bruno Haible  <bruno@clisp.org>
16396
16397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16398         Emit a pkgdata_DATA variable only if some snippets add contents to it.
16399         Reported by Martin Lambers <marlam@marlam.de>.
16400
16401 2006-08-21  Bruno Haible  <bruno@clisp.org>
16402
16403         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
16404         specify an installation location, don't emit a noinst_LIBRARIES or
16405         noinst_LTLIBRARIES assignment.
16406
16407 2006-08-21  Bruno Haible  <bruno@clisp.org>
16408
16409         BeOS portability.
16410         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
16411         BeOS has mbrtowc() but no <wctype.h>.
16412
16413 2006-08-21  Bruno Haible  <bruno@clisp.org>
16414
16415         BeOS portability.
16416         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
16417         exist.
16418
16419 2006-08-21  Bruno Haible  <bruno@clisp.org>
16420
16421         BeOS portability.
16422         * lib/mbchar.h: Include <wctype.h> only if it exists.
16423
16424 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16425
16426         Remove files that are no longer needed by their respective modules.
16427         * m4/obstack.m4: Remove.
16428         * m4/strerror_r.m4: Remove.
16429         * m4/uint32_t.m4: Remove.
16430         * m4/uintptr_t.m4: Remove.
16431         * m4/ullong_max.m4: Remove.
16432         * m4/xstrtoimax.m4: Remove.
16433         * m4/xstrtoumax.m4: Remove.
16434
16435         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
16436         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
16437         dependencies now capture this.
16438
16439         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16440         Do not use AC_LIBSOURCES, since gnulib modules now do this.
16441         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
16442         * m4/human.m4 (gl_HUMAN): Likewise.
16443         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
16444         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
16445
16446         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
16447
16448         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
16449         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
16450         stdint.
16451         * m4/human.m4 (gl_HUMAN): Likewise.
16452         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
16453         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
16454         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
16455         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
16456         * m4/xstrtol (gl_XSTRTOL): Likewise.
16457
16458         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
16459         AC_TYPE_LONG_LONG_INT.
16460         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
16461         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
16462         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
16463         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
16464
16465         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
16466         on stdbool.
16467
16468         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
16469         (gl_PREREQ_XSTRTOUL): Remove.
16470
16471         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
16472
16473         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
16474         mode.
16475
16476 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16477
16478         Add and change modules to make it easier for coreutils to use
16479         gnulib-tool.
16480         * modules/backupfile (Files): Remove m4/d-ino.m4.
16481         (Depends-on): Add d-ino.
16482         * modules/cycle-check (Depends-on): Add stdint.
16483         (lib_SOURCES): Add cycle-check.h.
16484         * modules/d-ino: New module.
16485         * modules/d-type: New module.
16486         * modules/error (Files): Remove m4/strerror_r.m4.
16487         * modules/filemode (Files): Add m4/st_dm_mode.m4.
16488         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
16489         m4/inttypes_h.m4, m4/uintmax_t.m4.
16490         (Depends-on): Add stdint.
16491         (lib_SOURCES): Add fsusage.h.
16492         * modules/getcwd (Files): Remove d-ino.m4.
16493         (Depends-on): Add d-ino.
16494         * modules/getndelim2 (Depends-on): Add stdint.
16495         * modules/glob (Files): Remove m4/d-type.m4.
16496         (Depends-on): Add d-type.
16497         * modules/host-os: New module.
16498         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
16499         m4/inttypes_h.m4, m4/uintmax_t.m4.
16500         * Depends-on: Add stdint.
16501         (lib_SOURCES): Add human.h.
16502         * modules/inttostr (Files): Remove m4/intmax_t.m4,
16503         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
16504         m4/uintmax_t.m4, m4/ulonglong.m4.
16505         (Depends-on): Add stdint.
16506         (EXTRA_DIST): Add inttostr.h.
16507         * modules/lchmod: New module.
16508         * modules/link-follow: New module.
16509         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
16510         (Depends-on): Add lchmod.
16511         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
16512         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
16513         (Depends-on): Add stdint.
16514         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
16515         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
16516         (Depends-on): Add stdint.
16517         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
16518         * modules/perl: New module.
16519         * modules/regex (Depends-on): Add stdint.
16520         * modules/rmdir-errno: New module.
16521         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
16522         m4/intmax_t.m4.
16523         (Depends-on): Add stdint.
16524         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
16525         m4/uintmax_t.m4.
16526         (Depends-on): Add stdint.
16527         * modules/unlink-busy: New module.
16528         * modules/utimecmp (Depends-on): Add stdint.
16529         * modules/uptime: New module.
16530         * modules/winsz-ioctl: New module.
16531         * modules/winsz-termios: New module.
16532         * modules/xnanosleep (Depends-on): Add nanosleep.
16533         * modules/ullong_max: Remove.
16534         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
16535         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
16536         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
16537         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
16538         (Depends-on): Add inttypes.
16539         (lib_SOURCES): Add xstrtol.h.
16540         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
16541         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
16542         * MODULES.html.sh: Move 'assert' into the assert section.
16543         Move 'dummy' into the linking section.
16544         Remove ullong_max.
16545         Add section for compatibility checks for POSIX:2001 functions,
16546         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
16547         winsz-ioctl, and winsz-termios into it.
16548         Add lchmod.
16549         Add top-level Misc section and put host-os, perl, and uptime
16550         into it.
16551
16552 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16553
16554         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
16555         now assume the stdint module.  Do not include inttypes.h.
16556         * lib/fsusage.h: Likewise.
16557         * lib/getndelim2.c: Likewise.
16558         * lib/human.h: Likewise.
16559         * lib/inttostr.h: Likewise.
16560         * lib/obstack.c: Likewise.
16561         * lib/regex_internal.h: Likewise.
16562         * lib/tempname.c: Likewise.
16563         * lib/utimecmp.c: Likewise.
16564         * lib/xstrtol.h: Likewise.
16565
16566         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
16567
16568         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
16569         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
16570         * lib/xtime.h: Likewise.
16571
16572 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         * modules/openat (Files): Add lib/fchmodat.c.
16575         Fixes problem reported by Jay Youngman.
16576
16577 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16578
16579         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
16580         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
16581
16582 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16583             Bruno Haible  <bruno@clisp.org>
16584
16585         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
16586         and is a script that invokes bison. Tighten the code. Add comments.
16587
16588 2006-08-18  Jim Meyering  <jim@meyering.net>
16589
16590         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
16591         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
16592         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
16593         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
16594
16595 2006-08-18  Bruno Haible  <bruno@clisp.org>
16596
16597         * modules/bison-i18n: New file.
16598         * MODULES.html.sh (Internationalization functions): Add it.
16599
16600 2006-08-18  Bruno Haible  <bruno@clisp.org>
16601
16602         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
16603         sys/statvfs.h. When getmntinfo was found, check its declaration and
16604         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
16605
16606 2006-08-18  Bruno Haible  <bruno@clisp.org>
16607
16608         * m4/bison-i18n.m4: New file, from bison.
16609
16610 2006-08-18  Bruno Haible  <bruno@clisp.org>
16611
16612         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
16613         (ME_DUMMY): Treat "kernfs" as a dummy.
16614         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
16615
16616 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16617
16618         Update from coreutils.
16619
16620         2006-08-15  Jim Meyering  <jim@meyering.net>
16621
16622         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
16623
16624         2006-01-17  Jim Meyering  <jim@meyering.net>
16625
16626         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
16627
16628         2006-01-11  Jim Meyering  <jim@meyering.net>
16629
16630         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
16631         Check for the lchmod function.
16632
16633 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16634
16635         Update from coreutils.
16636
16637         * lib/__fpending.h: Add copyright notice.
16638         * lib/fprintftime.h: Likewise.
16639         * lib/savedir.c: Use (C) in copyright notice.
16640         * lib/savedir.h: Likewise.
16641
16642         2006-08-15  Jim Meyering  <jim@meyering.net>
16643
16644         * lib/at-func.c: New file, with the logic of all emulated at-functions.
16645         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
16646         in support of the EXPECTED_ERRNO macro.
16647         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
16648         definitions.  Instead, define the appropriate symbols and include
16649         "at-func.c".
16650         * lib/mkdirat.c (mkdirat): Likewise.
16651         * lib/fchmodat.c (fchmodat): Likewise.
16652         (ENOSYS): Remove definition.
16653         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
16654         it.  Don't include "unistd--.h" -- it wasn't ever used.
16655
16656         2006-01-17  Jim Meyering  <jim@meyering.net>
16657
16658         Rewrite fts.c not to change the current working directory,
16659         by using openat, fstatat, fdopendir, etc..
16660
16661         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
16662         (HAVE_OPENAT_SUPPORT): Define.
16663         [_LIBC] (fchdir): Don't undef or define; no longer used.
16664         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
16665         Now, this `function' always succeeds, and consumes its file descriptor
16666         parameter -- so callers must not close such FDs.  Update callers.
16667         (diropen_fd, opendirat, cwd_advance_fd): New functions.
16668         (diropen): Add parameter, SP.  Adjust all callers.
16669         Implement using diropen_fd, rather than open.
16670         (fts_open): Initialize new member, fts_cwd_fd.
16671         Remove fts_rft-setting code.
16672         (fts_close): Close fts_cwd_fd, if necessary.
16673         (__opendir2): Define in terms of opendir or opendirat,
16674         depending on whether the FST_NOCHDIR flag is set.
16675         (fts_build): Since fts_safe_changedir consumes its FD, and since
16676         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
16677         and close the dup'd file descriptor upon failure.
16678         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
16679         (fts_safe_changedir): Tweak semantics to reflect that this function
16680         now calls cwd_advance_fd and hence consumes its FD argument.
16681         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
16682         [struct FTS] (fts_rft): Remove now-unused member.
16683         [struct FTS] (fts_cycle.state): Improve comment.
16684
16685         * lib/openat.c (openat_needs_fchdir): New function.
16686         * lib/openat.h (openat_needs_fchdir): Declare it.
16687
16688 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16689
16690         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
16691         Problem and fix reported by Pádraig Brady in
16692         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
16693
16694 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16695
16696         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
16697
16698 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16699
16700         * lib/memcoll.c (memcoll): Optimize for the common case where the
16701         arguments are bytewise equal.
16702
16703 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16704
16705         * doc/regexprops-generic.texi: Add a copyright notice.
16706
16707 2006-08-15  Bruno Haible  <bruno@clisp.org>
16708
16709         * modules/tmpdir (License): Change to LGPL.
16710
16711 2006-08-15  Bruno Haible  <bruno@clisp.org>
16712
16713         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
16714         module.
16715
16716 2006-08-14  Simon Josefsson  <jas@extundo.com>
16717
16718         * config/srclist.txt: Add gnupload.
16719
16720 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16721
16722         Change copyright notice from LGPL 2 to GPL 2, since that's the
16723         standard form used in the gnulib repository.
16724         * tests/test-lock.c: Likewise.
16725         * tests/test-stdint.c: Likewise.
16726         * tests/test-tls.c: Likewise.
16727
16728         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
16729         prelude-manager.  User shorter URLs for GNU projects, without '?'.
16730         Add copyright notice.
16731
16732         * check-module: Add copyright notice.  Output a copyright
16733         notice if "--version" is specified.
16734         * modules/COPYING: New file.
16735         * tests/test-getaddrinfo.c: Add copyright notice.
16736         * tests/test-verify.c: Likewise.
16737
16738 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16739
16740         Change copyright notice from LGPL 2 to GPL 2, since that's the
16741         standard form used in the gnulib repository.
16742         * lib/lock.c: LGPL -> GPL.
16743         * lib/lock.h: Likewise.
16744         * lib/strnlen1.c: Likewise.
16745         * lib/strnlen1.h: Likewise.
16746         * lib/tls.c: Likewise.
16747         * lib/tls.h: Likewise.
16748         * lib/tmpdir.c: Likewise.
16749
16750         * lib/TODO: Remove; this belongs only in coreutils.
16751
16752 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16753
16754         Add copyright notices to long-enough files that lack them, since
16755         otherwise the files aren't clearly free.  Use the same notice that
16756         getdate.texi already uses.
16757         * doc/alloca-opt.texi: Add copyright notice.
16758         * doc/alloca.texi: Likewise.
16759         * doc/ctime.texi: Likewise.
16760         * doc/functions.texi: Likewise.
16761         * doc/gcd.texi: Likewise.
16762         * doc/gnulib-tool.texi: Likewise.
16763         * doc/inet_ntoa.texi: Likewise.
16764         * doc/visibility.texi: Likewise.
16765
16766         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
16767         * doc/quote.texi: Add copyright notice.
16768
16769         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
16770         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
16771         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
16772         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
16773         is now obsolete, and give a pointer to the Sun list.
16774         Add copyright notice.
16775
16776 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
16777
16778         * config/srclistvars.sh: Add copyright notice.
16779
16780 2006-08-14  Eric Blake  <ebb9@byu.net>
16781
16782         Import the following change from libc:
16783
16784         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
16785
16786         Upstream bug 2997.
16787         * lib/misc/error.c: Add space between program name and message if file
16788         name is missing.
16789
16790 2006-08-12  Karl Berry  <karl@gnu.org>
16791
16792         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
16793         remove, these originate in gnulib now.
16794
16795 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16796
16797         * doc/Makefile (standards.info standards.html standards.dvi):
16798         Also depend on make-stds.texi.
16799
16800 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16801
16802         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
16803         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
16804
16805         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
16806         in wchar_t.  Problem reported by Eric Blake.
16807
16808         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
16809         LEN is smaller than SIZE.  Suggested by Bruno Haible.
16810         Also, help the compiler to keep LEN in a register.
16811
16812 2006-08-11  Eric Blake  <ebb9@byu.net>
16813
16814         * users.txt: Sort.  Add tar.
16815
16816 2006-08-11  Bruno Haible  <bruno@clisp.org>
16817
16818         * users.txt: New file.
16819
16820 2006-08-11  Bruno Haible  <bruno@clisp.org>
16821
16822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
16823         before <wchar.h>. Needed for OSF/1 and BSD/OS.
16824
16825 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16826
16827         * modules/snprintf (Depends-on): Remove minmax.
16828         (Maintainer): Add self and Bruno.
16829
16830 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16831
16832         * lib/.cppi-disable: Add snprintf.h, socket_.h.
16833         * lib/snprintf.c: Include <errno.h> and <limits.h>.
16834         (EOVERFLOW): Define if the system does not.
16835         Do not include "minmax.h"; it wasn't used.
16836         (snprintf): Don't assume size_t promotes to an unsigned type.
16837         Fix bug when generated string was too long for the buffer: the
16838         buffer's contents are supposed to be the initial prefix of the
16839         output.  Don't assume vasnprintf returns EOVERFLOW if the size
16840         exceeds INT_MAX; do the check ourselves.
16841
16842         Import the following changes from libc:
16843
16844         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
16845
16846         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
16847         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
16848         set wc to the byte which couldn't be converted.
16849         (re_string_reconstruct): Don't clear valid_raw_len before calling
16850         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
16851         tip_context using re_string_context_at.
16852
16853         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
16854
16855         * lib/posix/regex.h: g++ still cannot handled [restrict].
16856
16857         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
16858
16859         * lib/posix/regex.h: Remove special handling for VMS.
16860
16861 2006-08-10  Jim Meyering  <jim@meyering.net>
16862
16863         * modules/same-inode: New module.
16864         * modules/dev-ino: New module.
16865         * modules/cycle-check: Depend on these modules, rather than simply
16866         including their .h files.
16867         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
16868         required via m4/cycle-check.m4.
16869         * modules/same: Depend on new same-inode module, rather than
16870         including same-inode.h.
16871         * modules/chdir-safer: New file.
16872
16873         * modules/chown (Depends-on): Add stat-macros.
16874
16875 2006-08-10  Jim Meyering  <jim@meyering.net>
16876
16877         * m4/cycle-check.m4: New file.
16878         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
16879         * m4/dev-ino.m4, m4/same-inode.m4: New files.
16880
16881 2006-08-10  Eric Blake  <ebb9@byu.net>
16882
16883         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
16884         in from original proposal.
16885
16886 2006-08-10  Eric Blake  <ebb9@byu.net>
16887         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16888
16889         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
16890         namespace.
16891
16892 2006-08-10  Bruno Haible  <bruno@clisp.org>
16893
16894         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
16895         as well.
16896
16897 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16898
16899         Sync from coreutils.
16900
16901         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
16902
16903         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
16904         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
16905
16906 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         * modules/restrict: Remove; no longer needed now that we assume
16909         Autoconf 2.59 or later.
16910         * MODULES.html.sh: Remove 'restrict'.
16911         * modules/argp (Depends-on): Remove 'restrict'.
16912         * modules/base64 (Depends-on): Likewise.
16913         * modules/gc (Depends-on): Likewise.
16914         * modules/getaddrinfo (Depends-on): Likewise.
16915         * modules/glob (Depends-on): Likewise.
16916         * modules/inet_ntop (Depends-on): Likewise.
16917         * modules/inet_pton (Depends-on): Likewise.
16918         * modules/memxor (Depends-on): Likewise.
16919         * modules/regex (Depends-on): Likewise.
16920         * modules/strtok_r (Depends-on): Likewise.
16921         * modules/time_r (Depends-on): Likewise.
16922
16923 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16924
16925         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
16926         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
16927         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
16928         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
16929         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16930         * m4/memxor.m4 (gl_MEMXOR): Likewise.
16931         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
16932         gl_C_RESTRICT replaced by AC_C_RESTRICT.
16933
16934         Merge from coreutils.
16935         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
16936         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
16937         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
16938         * m4/time_r.m4 (gl_TIME_R): Likewise.
16939
16940 2006-08-09  Karl Berry  <karl@gnu.org>
16941
16942         * config/srclist.txt: no more gettext-tools, per Bruno.
16943
16944 2006-08-08  Eric Blake  <ebb9@byu.net>
16945
16946         * modules/verror: New module.
16947         * MODULES.html.sh: Document it.
16948
16949 2006-08-08  Eric Blake  <ebb9@byu.net>
16950
16951         * lib/verror.h, lib/verror.c: New files.
16952
16953 2006-08-08  Eric Blake  <ebb9@byu.net>
16954
16955         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
16956         verror_at_line output complies with GNU Coding Standards even when
16957         file is NULL.
16958
16959 2006-08-07  Bruno Haible  <bruno@clisp.org>
16960
16961         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
16962         versions of AIX.
16963         Reported by Ralf Wildenhues.
16964
16965 2006-08-07  Bruno Haible  <bruno@clisp.org>
16966
16967         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
16968         in an AC_DEFUN. Needed so that the autoconf snippets can use
16969         AC_REQUIRE.
16970
16971 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16972
16973         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16974         Initialize pkgdata_DATA.
16975         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
16976         overriding it.
16977
16978 2006-08-06  Eric Blake  <ebb9@byu.net>
16979
16980         * lib/error.h: Fold in some upstream changes from glibc.
16981         * lib/error.c: Likewise.
16982
16983 2006-08-04  Bruno Haible  <bruno@clisp.org>
16984
16985         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16986         Make the mostlyclean-local rule depend on mostlyclean-generic.
16987         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
16988
16989 2006-07-31  Bruno Haible  <bruno@clisp.org>
16990
16991         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
16992         <stdlib.h>, <string.h>.
16993
16994 2006-07-30  Bruno Haible  <bruno@clisp.org>
16995
16996         * modules/readlink (License): Change to LGPL.
16997
16998 2006-07-30  Bruno Haible  <bruno@clisp.org>
16999
17000         * modules/javaversion (Makefile.am): Distribute javaversion.java and
17001         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
17002         set PKGDATADIR to point to it.
17003
17004 2006-07-30  Bruno Haible  <bruno@clisp.org>
17005
17006         * modules/csharpexec (configure.ac): Comment out macro invocation.
17007         * modules/javaexec (configure.ac): Likewise.
17008         * modules/javacomp-script (configure.ac): Likewise.
17009
17010         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
17011
17012 2006-07-30  Bruno Haible  <bruno@clisp.org>
17013
17014         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
17015         linked-list.
17016
17017 2006-07-30  Bruno Haible  <bruno@clisp.org>
17018
17019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
17020
17021 2006-07-30  Bruno Haible  <bruno@clisp.org>
17022
17023         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17024         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
17025         get removed.
17026
17027 2006-07-29  Bruno Haible  <bruno@clisp.org>
17028
17029         Make it possible for gnulib-tool to work with locally modified or
17030         augmented gnulib repositories.
17031         * gnulib-tool (func_usage): Document --local-dir option.
17032         (local_gnulib_dir): New variable.
17033         Handle --local-dir option.
17034         (func_lookup_file): New function.
17035         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
17036         (func_get_description, func_get_filelist, func_get_description,
17037         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
17038         func_get_automake_snippet, func_get_include_directive,
17039         func_get_license, func_get_maintainer): Use func_lookup_file.
17040         (func_import, func_create_testdir): Use func_lookup_file.
17041
17042 2006-07-29  Bruno Haible  <bruno@clisp.org>
17043
17044         * modules/setenv (Depends-on): Add unistd.
17045
17046 2006-07-29  Bruno Haible  <bruno@clisp.org>
17047
17048         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
17049
17050 2006-07-29  Bruno Haible  <bruno@clisp.org>
17051
17052         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
17053
17054 2006-07-29  Bruno Haible  <bruno@clisp.org>
17055
17056         * gnulib-tool (import, update): If there is no Makefile.am, look at
17057         aclocal.m4, instead of bailing out.
17058
17059 2006-07-29  Bruno Haible  <bruno@clisp.org>
17060
17061         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
17062         Categorize the options by when they are useful.
17063
17064 2006-07-29  Bruno Haible  <bruno@clisp.org>
17065
17066         * gnulib-tool (func_usage): Document option --no-libtool.
17067         Handle option --no-libtool.
17068         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
17069         for changed semantics of $libtool variable.
17070         (func_import): Likewise. If libtool is not used, show this through
17071         an option --no-libtool.
17072         (func_create_testdir): Update.
17073
17074 2006-07-29  Bruno Haible  <bruno@clisp.org>
17075
17076         * gnulib-tool (func_import): Extend error message about missing
17077         --doc-base.
17078
17079 2006-07-29  Bruno Haible  <bruno@clisp.org>
17080
17081         * gnulib-tool (func_import): Don't create the $docbase directory if
17082         there is no file to store there.
17083
17084 2006-07-29  Bruno Haible  <bruno@clisp.org>
17085
17086         * gnulib-tool (autoconf_minversion): If a --dir option is given and
17087         relevant, look for configure.ac there, not in the current directory.
17088         Also use a simple search for AC_PREREQ, not "autoconf --trace".
17089
17090 2006-07-29  Bruno Haible  <bruno@clisp.org>
17091
17092         * gnulib-tool (SORT): New variable.
17093         (func_usage): Undocument --assume-autoconf option.
17094         Remove --assume-autoconf option handling.
17095         (autoconf_minversion): Determine from the contents of configure.ac.
17096         (func_import): Remove autoconf_minversion handling.
17097         Suggested by Eric Blake.
17098
17099 2006-07-29  Bruno Haible  <bruno@clisp.org>
17100
17101         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
17102
17103 2006-07-29  Bruno Haible  <bruno@clisp.org>
17104
17105         * config/srclist.txt (*setenv.[ch]): Remove rules.
17106
17107 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17108
17109         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
17110
17111 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17112
17113         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
17114         arpa/inet.h.
17115
17116 2006-07-28  Simon Josefsson  <jas@extundo.com>
17117
17118         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
17119         * modules/inet_pton (Depends-on): Likewise.
17120
17121 2006-07-28  Simon Josefsson  <jas@extundo.com>
17122
17123         * m4/netinet_in_h.m4: New file.
17124
17125 2006-07-28  Simon Josefsson  <jas@extundo.com>
17126
17127         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
17128         #include's.
17129
17130 2006-07-28  Simon Josefsson  <jas@extundo.com>
17131
17132         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
17133         #include's.
17134
17135 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
17136
17137         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
17138         setgid on directories only if they set these bits.
17139         * lib/modechange.h: Remove obsolete comment about masks.
17140
17141 2006-07-28  Eric Blake  <ebb9@byu.net>
17142
17143         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
17144         macro expansion.
17145
17146 2006-07-28  Bruno Haible  <bruno@clisp.org>
17147
17148         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
17149
17150 2006-07-28  Bruno Haible  <bruno@clisp.org>
17151
17152         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
17153
17154 2006-07-28  Bruno Haible  <bruno@clisp.org>
17155
17156         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17157         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
17158         Define fallbacks.
17159         Avoids link error on FreeBSD 4.x.
17160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17161
17162         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
17163         encoding.
17164         * lib/mbswidth.c (iswcntrl): Likewise.
17165
17166 2006-07-27  Bruno Haible  <bruno@clisp.org>
17167
17168         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
17169         test.
17170
17171 2006-07-27  Bruno Haible  <bruno@clisp.org>
17172
17173         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
17174         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
17175         defined.
17176
17177 2006-07-26  Eric Blake  <ebb9@byu.net>
17178
17179         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
17180
17181 2006-07-26  Eric Blake  <ebb9@byu.net>
17182
17183         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
17184         like mingw that lack mkstemp.
17185         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
17186         avoid compilation warning on mingw.
17187
17188 2006-07-26  Bruno Haible  <bruno@clisp.org>
17189
17190         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
17191         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
17192         INT_FAST*_MIN, INTPTR_MIN.
17193
17194 2006-07-25  Bruno Haible  <bruno@clisp.org>
17195
17196         * modules/version-etc (Depends-on): Add stdarg.
17197
17198 2006-07-25  Bruno Haible  <bruno@clisp.org>
17199
17200         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
17201         complex commands.
17202
17203 2006-07-25  Bruno Haible  <bruno@clisp.org>
17204
17205         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
17206         defined in <stdarg.h> or config.h.
17207
17208 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
17209
17210         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
17211         (gl_STDIO_SAFER): Remove.
17212
17213 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
17214
17215         * MODULES.html.sh (File stream based Input/Output):
17216         Add fopen-safer, tmpfile-safer; remove stdio-safer.
17217         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
17218         * modules/fopen-safer, modules/tmpfile-safer: New files.
17219         * modules/stdio-safer: Remove.
17220
17221 2006-07-24  Bruno Haible  <bruno@clisp.org>
17222
17223         * modules/tmpdir: New file.
17224         * MODULES.html.sh (File system functions): Add it.
17225
17226 2006-07-24  Bruno Haible  <bruno@clisp.org>
17227
17228         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
17229         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
17230
17231 2006-07-24  Bruno Haible  <bruno@clisp.org>
17232
17233         * modules/clean-temp: New file.
17234
17235 2006-07-24  Bruno Haible  <bruno@clisp.org>
17236
17237         * m4/tmpdir.m4: New file, from GNU gettext.
17238
17239 2006-07-24  Bruno Haible  <bruno@clisp.org>
17240
17241         * lib/tmpdir.h: New file, from GNU gettext.
17242         * lib/tmpdir.c: New file, from GNU gettext.
17243
17244 2006-07-24  Bruno Haible  <bruno@clisp.org>
17245
17246         * lib/clean-temp.h: New file, from GNU gettext.
17247         * lib/clean-temp.c: New file, from GNU gettext.
17248
17249 2006-07-23  Eric Blake  <ebb9@byu.net>
17250
17251         * modules/stdio-safer (Files): Add tmpfile-safer.c.
17252         (Depends-on): Add binary-io.
17253
17254 2006-07-23  Eric Blake  <ebb9@byu.net>
17255
17256         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
17257
17258 2006-07-23  Eric Blake  <ebb9@byu.net>
17259
17260         * lib/tmpfile-safer.c: New file.
17261         * lib/stdio-safer.h (fopen_safer): Add prototype.
17262         * lib/stdio--.h (tmpfile): Make safer.
17263
17264 2006-07-23  Bruno Haible  <bruno@clisp.org>
17265
17266         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
17267         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
17268         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
17269         gl_linked_remove_at): Use it.
17270
17271 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17272         and Simon Josefsson <jas@extundo.com>
17273
17274         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
17275
17276         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
17277
17278 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17279
17280         * modules/close-stream: New file.
17281         * modules/closeout (Description): Make it clear that it exits
17282         with a diagnostic on error.
17283         (Depends-on): Add close-stream.  Remove fpending, stdbool.
17284         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
17285
17286 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17287
17288         * m4/close-stream.m4: New file.
17289
17290 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
17291
17292         * lib/close-stream.c, lib/close-stream.h: New files.
17293
17294 2006-07-22  Bruno Haible  <bruno@clisp.org>
17295
17296         Merge from GNU gettext 0.15.
17297
17298         2006-05-01  Bruno Haible  <bruno@clisp.org>
17299
17300                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
17301
17302         2006-07-22  Bruno Haible  <bruno@clisp.org>
17303
17304                 * modules/javaversion: New file.
17305                 * MODULES.html.sh (Java): Add javaversion.
17306
17307         2006-03-12  Bruno Haible  <bruno@clisp.org>
17308
17309                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
17310
17311         2005-12-04  Bruno Haible  <bruno@clisp.org>
17312
17313                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
17314                 (untested).
17315
17316         2006-06-21  Bruno Haible  <bruno@clisp.org>
17317
17318                 Avoid warnings from recent versions of mcs.
17319                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
17320                 -o, -L, -r any more. Use options documented since mcs-1.0
17321                 instead. Similarly for -g.
17322
17323         2005-12-04  Bruno Haible  <bruno@clisp.org>
17324
17325                 * build-aux/csharpcomp.sh.in: Suffix for resources is
17326                 .resources, not .resource.
17327
17328         2005-07-09  Bruno Haible  <bruno@clisp.org>
17329
17330                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
17331                 add a .dll suffix.
17332                 Reported by Mark Junker <mjscod@gmx.de>.
17333
17334         2006-07-22  Bruno Haible  <bruno@clisp.org>
17335
17336                 * modules/gettext: Upgrade to gettext-0.15.
17337                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
17338                 m4/visibility.m4.
17339                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
17340
17341 2006-07-22  Bruno Haible  <bruno@clisp.org>
17342
17343         Merge from GNU gettext 0.15.
17344
17345         2006-03-25  Bruno Haible  <bruno@clisp.org>
17346
17347                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
17348
17349         2006-07-21  Bruno Haible  <bruno@clisp.org>
17350
17351                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
17352                 "1.1".
17353
17354         2006-05-09  Bruno Haible  <bruno@clisp.org>
17355
17356                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
17357                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
17358                 for the conftestver execution.
17359
17360         2006-05-01  Bruno Haible  <bruno@clisp.org>
17361
17362                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
17363                 optional target-version argument. Verify that the compiler
17364                 groks source of the specified source-version, or add -source
17365                 option as necessary. Verify that the compiler produces
17366                 bytecode in the specified target-version, or add -target and
17367                 -source options as necessary. Make the result of the test
17368                 available as variable CONF_JAVAC. Also log error output in
17369                 config.log.
17370
17371         2006-03-11  Bruno Haible  <bruno@clisp.org>
17372
17373                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
17374
17375         2006-05-09  Bruno Haible  <bruno@clisp.org>
17376
17377                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
17378                 CLASSPATH_SEPARATOR to a semicolon.
17379
17380         2006-03-12  Bruno Haible  <bruno@clisp.org>
17381
17382                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
17383                 available as variable CONF_JAVA, for subsequent autoconf
17384                 tests. Also log error output in config.log.
17385
17386         2006-07-19  Bruno Haible  <bruno@clisp.org>
17387
17388                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
17389                 that getline works on glibc2 systems. Needed to avoid trouble
17390                 in relocatable.c.
17391                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
17392
17393         2005-12-04  Bruno Haible  <bruno@clisp.org>
17394
17395                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
17396                 launcher (untested).
17397
17398         2005-12-04  Bruno Haible  <bruno@clisp.org>
17399
17400                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
17401
17402         2006-07-22  Bruno Haible  <bruno@clisp.org>
17403
17404                 * gettext.m4: Update from GNU gettext-0.15.
17405                 * nls.m4: Likewise.
17406                 * po.m4: Likewise.
17407                 * inttypes-pri.m4: Likewise.
17408                 * inttypes-h.m4: Renamed from inttypes.m4.
17409                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
17410
17411 2006-07-22  Bruno Haible  <bruno@clisp.org>
17412
17413         Merge from GNU gettext 0.15.
17414
17415         2005-07-05  Bruno Haible  <bruno@clisp.org>
17416
17417                 * printf-args.c (printf_fetchargs): Work around broken
17418                 definition of wint_t on mingw.
17419
17420         2005-02-12  Bruno Haible  <bruno@clisp.org>
17421
17422                 * xallocsa.h: Add extern "C" for C++.
17423
17424         2006-05-17  Bruno Haible  <bruno@clisp.org>
17425
17426                 Cygwin portability.
17427                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
17428
17429         2006-04-30  Bruno Haible  <bruno@clisp.org>
17430
17431                 * progreloc.c: Include <mach-o/dyld.h> if available.
17432                 (find_executable): Use _NSGetExecutablePath when possible.
17433
17434         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
17435
17436                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
17437                 function.
17438
17439         2005-12-29  Bruno Haible  <bruno@clisp.org>
17440
17441                 * progreloc.c (set_program_name_and_installdir): Fix
17442                 compilation error.
17443
17444         2005-12-04  Bruno Haible  <bruno@clisp.org>
17445
17446                 Cygwin portability.
17447                 * progreloc.c: Include <windows.h> also on Cygwin.
17448                 (find_executable): Add support for Cygwin.
17449                 (set_program_name_and_installdir): Handle also platforms with
17450                 nonempty EXEEXT.
17451
17452         2006-07-11  Bruno Haible  <bruno@clisp.org>
17453
17454                 * javacomp.c: Fix a comment.
17455                 Reported by Jim Meyering.
17456
17457         2006-04-30  Bruno Haible  <bruno@clisp.org>
17458
17459                 * javacomp.h (compile_java_class): Add source_version,
17460                 target_version arguments.
17461                 * javacomp.c: Rewritten to choose only a compiler that
17462                 respects the specified source_version and target_version.
17463
17464         2006-06-27  Bruno Haible  <bruno@clisp.org>
17465
17466                 Assume correct S_ISDIR macro.
17467                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
17468
17469         2006-07-22  Bruno Haible  <bruno@clisp.org>
17470
17471                 * javaversion.h: New file, from GNU gettext.
17472                 * javaversion.c: New file, from GNU gettext.
17473                 * javaversion.java: New file, from GNU gettext.
17474                 * javaversion.class: New file, from GNU gettext.
17475
17476         2006-05-17  Bruno Haible  <bruno@clisp.org>
17477
17478                 Cygwin portability.
17479                 * javaexec.c (execute_java_class): Test for jview program
17480                 also on Cygwin.
17481
17482         2006-04-09  Bruno Haible  <bruno@clisp.org>
17483
17484                 * fatal-signal.c: Don't include string.h.
17485                 (at_fatal_signal): Use a copying loop instead of memcpy.
17486
17487         2005-12-04  Bruno Haible  <bruno@clisp.org>
17488
17489                 * csharpexec.c: Add support for 'clix' launcher (untested).
17490                 (execute_csharp_using_sscli): New function.
17491                 (execute_csharp_program): Call it.
17492
17493         2006-06-21  Bruno Haible  <bruno@clisp.org>
17494
17495                 Avoid warnings from recent versions of mcs.
17496                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
17497                 -o, -L, -r any more. Use options documented since mcs-1.0
17498                 instead. Similarly for -g.
17499
17500         2005-07-09  Bruno Haible  <bruno@clisp.org>
17501
17502                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
17503                 add a .dll suffix.
17504                 Reported by Mark Junker <mjscod@gmx.de>.
17505
17506         2006-06-17  Bruno Haible  <bruno@clisp.org>
17507
17508                 * config.charset: Update for NetBSD 3.0.
17509
17510         2006-05-17  Bruno Haible  <bruno@clisp.org>
17511
17512                 Cygwin portability.
17513                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
17514
17515         2006-05-16  Bruno Haible  <bruno@clisp.org>
17516
17517                 * localcharset.c [CYGWIN]: Include <windows.h>.
17518                 (get_charset_aliases): For Cygwin, return the same CPxxx
17519                 aliases list as under WIN32.
17520                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
17521                 the environment variables. Fall back to GetACP().
17522
17523         2006-04-05  Bruno Haible  <bruno@clisp.org>
17524
17525                 * config.charset: Update Juan Manuel Guerrero's address.
17526
17527         2005-02-12  Bruno Haible  <bruno@clisp.org>
17528
17529                 * allocsa.h: Add extern "C" for C++.
17530
17531         2005-02-10  Bruno Haible  <bruno@clisp.org>
17532
17533                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
17534                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
17535
17536         2006-07-22  Bruno Haible  <bruno@clisp.org>
17537
17538                 * gettext.h: Update to GNU gettext-0.15.
17539
17540 2006-07-22  Bruno Haible  <bruno@clisp.org>
17541
17542         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
17543         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
17544         lib-prefix.m4, longdouble.m4, ssize_t.m4.
17545
17546 2006-07-21  Eric Blake  <ebb9@byu.net>
17547
17548         * modules/stdlib-safer: New file.
17549         * MODULES.html.sh (File stream based Input/Output): Add
17550         stdlib-safer.
17551
17552 2006-07-21  Eric Blake  <ebb9@byu.net>
17553
17554         * lib/stdlib-safer.h: New file from coreutils, required by
17555         stdlib--.h.
17556
17557 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
17560
17561 2006-07-20  Bruno Haible  <bruno@clisp.org>
17562
17563         * gnulib-tool: Recognize new option --assume-autoconf.
17564         (autoconf_minversion): New variable.
17565         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
17566
17567 2006-07-20  Bruno Haible  <bruno@clisp.org>
17568
17569         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
17570
17571 2006-07-19  Derek R. Price  <derek@ximbiot.com>
17572
17573         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
17574         Reindent and repaginate.
17575
17576 2006-07-19  Derek Price  <derek@ximbiot.com>
17577
17578         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
17579         Correct grammar.
17580
17581 2006-07-17  Bruno Haible  <bruno@clisp.org>
17582
17583         * modules/list: New file.
17584         * modules/array-list: New file.
17585         * modules/carray-list, modules/carray-list-tests: New files.
17586         * modules/linked-list, modules/linked-list-tests: New files.
17587         * modules/avltree-list, modules/avltree-list-tests: New files.
17588         * modules/rbtree-list, modules/rbtree-list-tests: New files.
17589         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
17590         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
17591         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
17592         * modules/oset: New file.
17593         * modules/array-oset: New file.
17594         * modules/avltree-oset, modules/avltree-oset-tests: New files.
17595         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
17596         * tests/test-carray_list.c: New file.
17597         * tests/test-linked_list.c: New file.
17598         * tests/test-avltree_list.c: New file.
17599         * tests/test-rbtree_list.c: New file.
17600         * tests/test-linkedhash_list.c: New file.
17601         * tests/test-avltreehash_list.c: New file.
17602         * tests/test-rbtreehash_list.c: New file.
17603         * tests/test-avltree_oset.c: New file.
17604         * tests/test-rbtree_oset.c: New file.
17605         * MODULES.html.sh (Container data structures): New section.
17606
17607 2006-07-17  Bruno Haible  <bruno@clisp.org>
17608
17609         * m4/gl_list.m4: New file.
17610
17611 2006-07-17  Bruno Haible  <bruno@clisp.org>
17612
17613         * lib/gl_list.h: New file.
17614         * lib/gl_list.c: New file.
17615         * lib/gl_array_list.h: New file.
17616         * lib/gl_array_list.c: New file.
17617         * lib/gl_carray_list.h: New file.
17618         * lib/gl_carray_list.c: New file.
17619         * lib/gl_linked_list.h: New file.
17620         * lib/gl_linked_list.c: New file.
17621         * lib/gl_anylinked_list1.h: New file.
17622         * lib/gl_anylinked_list2.h: New file.
17623         * lib/gl_avltree_list.h: New file.
17624         * lib/gl_avltree_list.c: New file.
17625         * lib/gl_anyavltree_list1.h: New file.
17626         * lib/gl_anyavltree_list2.h: New file.
17627         * lib/gl_rbtree_list.h: New file.
17628         * lib/gl_rbtree_list.c: New file.
17629         * lib/gl_anyrbtree_list1.h: New file.
17630         * lib/gl_anyrbtree_list2.h: New file.
17631         * lib/gl_anytree_list1.h: New file.
17632         * lib/gl_anytree_list2.h: New file.
17633         * lib/gl_linkedhash_list.h: New file.
17634         * lib/gl_linkedhash_list.c: New file.
17635         * lib/gl_anyhash_list1.h: New file.
17636         * lib/gl_anyhash_list2.h: New file.
17637         * lib/gl_avltreehash_list.h: New file.
17638         * lib/gl_avltreehash_list.c: New file.
17639         * lib/gl_rbtreehash_list.h: New file.
17640         * lib/gl_rbtreehash_list.c: New file.
17641         * lib/gl_anytreehash_list1.h: New file.
17642         * lib/gl_anytreehash_list2.h: New file.
17643
17644         * lib/gl_oset.h: New file.
17645         * lib/gl_oset.c: New file.
17646         * lib/gl_array_oset.h: New file.
17647         * lib/gl_array_oset.c: New file.
17648         * lib/gl_avltree_oset.h: New file.
17649         * lib/gl_avltree_oset.c: New file.
17650         * lib/gl_rbtree_oset.h: New file.
17651         * lib/gl_rbtree_oset.c: New file.
17652         * lib/gl_anytree_oset.h: New file.
17653
17654 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17655
17656         * m4/mkancesdirs.m4: New file.
17657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
17658         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
17659         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
17660         it.
17661
17662 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17663
17664         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
17665         * lib/mkancesdirs.h: New files.
17666         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
17667         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
17668         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
17669         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
17670         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
17671         callers changed.  Revamp internals significantly, by not
17672         attempting to create directories that are temporarily more
17673         permissive than the final results.  Do not attempt to use
17674         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
17675         This removes some race conditions, fixes some bugs, and simplifies
17676         things.  Use new dirchownmod function to do owner and mode changes.
17677         * lib/mkdir-p.h: Likewise.
17678         * lib/modechange.c (octal_to_mode): New function.
17679         (struct mode_change): New member mentioned.
17680         (make_node_op_equals): New arg mentioned.  All callers changed.
17681         (mode_compile): Keep track of which mode bits the user has explicitly
17682         mentioned.
17683         (mode_adjust): New arg DIR, so that we implement the X op correctly.
17684         New arg PMODE_BITS, to keep track of which mode bits the user
17685         mentioned; it treats S_ISUID and S_ISGID speciall.
17686         All callers changed.
17687         * lib/modechange.h: Likewise.
17688
17689 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
17690
17691         * MODULES.html.sh: Add mkancestors.
17692         * modules/mkancesdirs: New module.
17693         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
17694         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
17695         The chdir-safer and afs files are now orphans; I'll remove them
17696         unless someone speaks up.
17697         Add lib/dirchownmod.c, lib/dirchownmod.h.
17698         (Depends-on): Remove alloca, chown, save-cwd, dirname.
17699         Add lchown, mkancesdirs.
17700         (Maintainer): Add self.
17701
17702 2006-07-15  Karl Berry  <karl@gnu.org>
17703
17704         * gnulib-tool: help message wording/arrangement.
17705
17706 2006-07-14  Simon Josefsson  <jas@extundo.com>
17707
17708         * doc/gnulib.texi (Libtool and Windows): New section.
17709
17710 2006-07-12  Simon Josefsson  <jas@extundo.com>
17711
17712         * modules/gendocs (License): Fix license, approved by Karl.
17713
17714 2006-07-12  Eric Blake  <ebb9@byu.net>
17715
17716         * MODULES.html.sh: Add gendocs.
17717
17718 2006-07-11  Eric Blake  <ebb9@byu.net>
17719
17720         * modules/fdl: New module, to install doc/fdl.texi.
17721         * MODULES.html.sh: Add new section for documentation modules.
17722         * gnulib-tool: Avoid space-tab.
17723         (--doc-base): New option, to manage files from doc.
17724
17725 2006-07-11  Eric Blake  <ebb9@byu.net>
17726
17727         * m4/absolute-header.m4: Fix comments to match recent change.
17728
17729 2006-07-11  Eric Blake  <ebb9@byu.net>
17730
17731         * gnulib-tool: List --doc-base before --tests-base.
17732
17733 2006-07-11  Derek R. Price  <derek@ximbiot.com>
17734
17735         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
17736
17737 2006-07-11  Bruno Haible  <bruno@clisp.org>
17738
17739         * README: Mention where to put documentation.
17740
17741 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17742
17743         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
17744
17745 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17746
17747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
17748         to stdint.m4.
17749
17750 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17751
17752         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
17753         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
17754         "no/such/file/stdint.h" when there is no such file, so that
17755         the resulting C code can be parsed by dodgy compilers.
17756         Problems reported by Bob Proulx.
17757
17758 2006-07-10  Derek R. Price  <derek@ximbiot.com>
17759
17760         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
17761         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
17762         macros into the GNU _D_EXACT_NAMLEN.
17763         * lib/savedir.c:  Likewise.
17764         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
17765
17766 2006-07-10  Derek R. Price  <derek@ximbiot.com>
17767         and Paul Eggert  <eggert@cs.ucla.edu>
17768
17769         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
17770         * m4/savedir.m4:
17771         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
17772         macros into the GNU _D_EXACT_NAMLEN.
17773
17774 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17775
17776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
17777         around the absolute name, to work around a problem with the HP-UX
17778         11.23 native C compiler, reported by Bob Proulx.
17779
17780 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17781
17782         * doc/maintain.texi, make-stds.texi: Sync from
17783         <http://savannah.gnu.org/projects/gnustandards>.
17784
17785 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17786
17787         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
17788
17789 2006-07-09  Jim Meyering  <jim@meyering.net>
17790
17791         * m4/glob.m4: Remove a doubled word in a comment.
17792
17793 2006-07-09  Jim Meyering  <jim@meyering.net>
17794
17795         * lib/argp-pv.c: Remove a doubled word in a comment.
17796         * lib/check-version.c (check_version): Likewise.
17797         * lib/javacomp.c (compile_java_class): Likewise.
17798
17799 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17800
17801         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
17802         for the benefit of people using Autoconf 2.60.  If you want to
17803         support older Autoconf versions you can copy m4/onceonly_2_57.m4
17804         (or m4/onceonly.m4, if pre-2.57) manually.
17805
17806 2006-07-08  Jim Meyering  <jim@meyering.net>
17807
17808         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
17809         comment.
17810         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
17811         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
17812         comment.
17813
17814 2006-07-08  Jim Meyering  <jim@meyering.net>
17815
17816         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
17817
17818 2006-07-07  Simon Josefsson  <jas@extundo.com>
17819
17820         * tests/test-crc.c: Change expected crc value, the test vector
17821         were probably computed using the old broken crc.c?
17822
17823 2006-07-06  Simon Josefsson  <jas@extundo.com>
17824
17825         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
17826         now the canonical place for the M4 file).
17827
17828         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
17829         from the sys_socket dependency now.
17830
17831         * modules/inet_pton (Files): Ditto.
17832
17833         * modules/inet_ntop (Files): Ditto.
17834
17835 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
17836
17837         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
17838         not gl_PREREQ_GETUSERSHELL.
17839
17840 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17841
17842         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
17843         with only one argument, for Autoconf 2.60.
17844         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
17845         expand to nothing, so add a shell command to avoid syntax error.
17846         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
17847
17848 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17849
17850         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
17851
17852 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17853
17854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
17855         no longer needed.  Check for isblank decl.
17856         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
17857         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
17858         of existence.
17859
17860 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17861
17862         * lib/getloadavg.c: Use __VMS, not VMS.
17863         * lib/getopt.c: Likewise.
17864         * lib/getpagesize.h: Likewise.
17865         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
17866         and probably does not work.
17867
17868 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17869
17870         * lib/.cppi-disable: Add wcwidth.
17871         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
17872         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
17873         (ISGRAPH): Remove.  All uses changed to isgraph.
17874         (FOLD) [!defined _LIBC]: Remove special case.
17875         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
17876         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
17877         HAVE_ISBLANK.
17878         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
17879         case.
17880
17881 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
17882
17883         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
17884         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
17885         brackets.  Other minor changes to suppress some compiler
17886         warnings.
17887
17888 2006-07-06  Derek R. Price  <derek@ximbiot.com>
17889         and Paul Eggert  <eggert@cs.ucla.edu>
17890
17891         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
17892         of invoking obsolescent AC_HEADER_DIRENT macro.
17893         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17894         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
17895         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17897         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
17898         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17899         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
17900         * m4/readdir.m4: Remove; no longer needed.
17901
17902 2006-07-06  Derek R. Price  <derek@ximbiot.com>
17903         and Paul Eggert  <eggert@cs.ucla.edu>
17904
17905         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
17906         Don't worry about this obsolete case any more.
17907         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
17908         directories.
17909         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
17910         worry about this obsolete case any more.
17911         * lib/fts.c: Likewise.
17912         * lib/getcwd.c: Likewise.
17913         * lib/glob.h: Likewise.
17914         * lib/savedir.c: Likewise.
17915
17916 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17917
17918         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
17919         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
17920         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
17921         needed.
17922         All uses removed.
17923         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
17924         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
17925         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
17926         needed.
17927         * m4/getdate.m4 (gl_GETDATE): Likewise.
17928         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
17929         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
17930         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17931         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
17932         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
17933         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17934         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
17935         needed.
17936
17937 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17938
17939         * lib/memcasecmp.c: Include <limits.h>.
17940         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
17941         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
17942         Don't assume isdigit succeeds only on '0' through '9'.
17943
17944 2006-07-05  Eric Blake  <ebb9@byu.net>
17945
17946         * modules/getaddrinfo (Depends-on): Add snprintf.
17947
17948 2006-07-05  Eric Blake  <ebb9@byu.net>
17949
17950         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
17951         to avoid 'header present but could not be compiled' on cygwin.
17952
17953 2006-07-05  Eric Blake  <ebb9@byu.net>
17954
17955         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
17956         missing from netdb.h.
17957         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
17958
17959 2006-07-05  Derek R. Price  <derek@ximbiot.com>
17960
17961         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
17962         no longer needed.
17963         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
17964         * m4/getdate.m4 (gl_GETDATE): Likewise.
17965         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
17966         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
17967         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17968         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
17969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17970
17971 2006-07-05  Derek R. Price  <derek@ximbiot.com>
17972
17973         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
17974         All uses of is_space replaced by isspace.
17975         * lib/exit.h: Don't talk about STDC_HEADERS.
17976         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
17977         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
17978         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
17979         replaced by isprint etc.
17980         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
17981         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
17982         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
17983         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
17984         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
17985         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
17986
17987 2006-07-05  Bruno Haible  <bruno@clisp.org>
17988
17989         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
17990         the function exists, before testing against AIX.
17991         Reported by Martin Lambers <marlam@marlam.de>.
17992
17993 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17994
17995         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
17996         From Mark D. Baushke.
17997
17998 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17999
18000         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
18001         to the absolute name, not just one, to bypass Sun C 5.8's
18002         "warning: #include of /usr/include/... may be non-portable".
18003
18004 2006-07-04  Eric Blake  <ebb9@byu.net>
18005
18006         * modules/dirname-tests: New test module.
18007         * tests/test-dirname.c: New file, replacing dirname.c
18008         TEST_DIRNAME section that was recently deleted.
18009
18010 2006-07-04  Bruno Haible  <bruno@clisp.org>
18011
18012         Assume ANSI C header files and <ctype.h> functions.
18013         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
18014         (mbsnwidth): Use isprint, iscntrl instead.
18015
18016 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18017
18018         Merge from coreutils.
18019         * MODULES.html.sh: Add xstrtold.
18020         * modules/xstrtold: New file.
18021         * modules/cycle-check (Files): Add lib/same-inode.h.
18022         * modules/dirname (Files): Add m4/double-slash-root.m4.
18023         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
18024         * modules/mkdir-p (Files): Add lib/same-inode.h.
18025         * modules/same (Files): Add lib/same-inode.h.
18026
18027 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18028
18029         * m4/absolute-header.m4: Renamed from full-header-path.m4.
18030         This is to keep the terminology clean; POSIX talks about
18031         "absolute pathnames", not "full pathnames", but the GNU
18032         Coding Standards say to use "path" for something else;
18033         so use "absolute" to keep both sides happy.
18034         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
18035         Set gl_absolute_header, not gl_full_header_path.
18036         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
18037         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
18038         All uses changed.
18039
18040         Merge from coreutils.
18041
18042         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18043
18044         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
18045         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
18046         want to require the building of c-strtod.o.
18047         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
18048         needs -lm directly.
18049         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
18050
18051         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
18052
18053         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
18054         --as-needed option if available.  Problem reported by Albert Chin in
18055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
18056         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
18057         cc merely issues a bunch of annoying warnings for --as-needed
18058         (this problem was reported by Bob Proulx).  Also, try linking with
18059         -lm to detect a bug in binutils 2.16 (this problem was reported
18060         by Ralf Wildenhues).
18061
18062         2006-06-18  Jim Meyering  <jim@meyering.net>
18063
18064         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
18065         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
18066         macro.
18067         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
18068         also check for glibc-2.4's abort-inducing bug.
18069
18070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
18071         Low-probability clean-up should be to use rmdir to get rid of
18072         the just-created directory, not unlink.
18073
18074         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
18075         configure fail, and request a bug report to inform us about it.
18076         Add a comment that, barring reports to the contrary, in 2007 we'll
18077         assume ftruncate is universally available.
18078
18079         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
18080
18081         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
18082
18083         2006-03-12  Jim Meyering  <jim@meyering.net>
18084
18085         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
18086         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
18087         * m4/same.m4 (gl_SAME): Likewise.
18088         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
18089
18090         2006-03-11  Eric Blake  <ebb9@byu.net>
18091
18092         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
18093         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
18094         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
18095         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
18096
18097 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18098
18099         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
18100         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
18101         reported by Mark D. Baushke, one in
18102         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
18103
18104         Merge from coreutils.
18105
18106         * lib/.cppi-disable: Add stdint_.h.
18107         * lib/.cvsignore: Add stdint.h.
18108
18109         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18110
18111         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
18112         both double and long double versions.
18113         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
18114         * lib/xstrtold.c: New file.
18115         * lib/xstrtod.h (xstrtold): New decl.
18116
18117         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18118
18119         * lib/filemode.c (setst): Remove.
18120         (strmode): Rewrite to avoid setst.  This makes the code shorter,
18121         (arguably) clearer, and the generated code is a bit smaller on my
18122         Debian GNU/Linux stable x86 host.
18123
18124         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
18125
18126         * lib/filemode.c: Include "filemode.h" first, to test the interface.
18127         Assume that filemode.h includes sys/types.h and sys/stat.h.
18128         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
18129         (ftypelet): Reorder to put common cases first, for efficiency.
18130         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
18131         to do 'M'.
18132         (strmode): Renamed from mode_string, and now stores 12 bytes instead
18133         of 10, for compatibility with FreeBSD.  All callers changed.
18134         (filemodestring): Now stores 12 bytes instead of 10, and sets file
18135         types that can't be deduced solely from st_mode.  First arg is now a
18136         const pointer.
18137         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
18138         (strmode): Renamed from mode_string.
18139         (filemodestring): New decl.
18140         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
18141         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
18142         needed.
18143         (S_ISPORT, S_ISWHT): New macros, if not already defined.
18144
18145         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
18146
18147         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
18148         fsusage.h now does that.  Include fsusage.h first, to test interface.
18149         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
18150         at most one method (the old code could have generated decls that
18151         didn't conform to C89, not that this was ever exercised).
18152         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
18153
18154         2006-03-19  Jim Meyering  <jim@meyering.net>
18155
18156         Work even in a chroot where d_ino values for entries in "/"
18157         don't match the stat.st_ino values for the same names.
18158         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
18159         number, iterate through all entries again, using lstat instead.
18160         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
18161         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
18162
18163         * lib/getcwd.c (__getcwd): Clarify a comment.
18164         Use memcpy in place of a call to strcpy.
18165
18166         2006-03-12  Jim Meyering  <jim@meyering.net>
18167
18168         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
18169         matches that of the current directory (which we're about to chdir ".."
18170         out of), then save the dev-ino of the parent, instead.
18171
18172         * lib/same-inode.h (SAME_INODE): New file/macro.
18173         * lib/chdir-safer.c (SAME_INODE): Remove definition.
18174         Include "same-inode.h", instead.
18175         * lib/same.c: Likewise.
18176         * lib/cycle-check.h: Include "same-inode.h".
18177         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
18178         * lib/cycle-check.c (SAME_INODE): Remove definition.
18179         * lib/root-dev-ino.h: Include "same-inode.h".
18180
18181         2006-03-11  Eric Blake  <ebb9@byu.net>
18182
18183         * lib/same.c (same_name): s/base_name/last_component/
18184         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
18185         * lib/filenamecat.c (file_name_concat): Likewise.
18186
18187         2006-03-11  Eric Blake  <ebb9@byu.net>,
18188                     Paul Eggert  <eggert@cs.ucla.edu>
18189
18190         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
18191         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
18192         drive prefix.
18193         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
18194         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
18195         (last_component): New method.
18196         * lib/dirname.c (dir_len): Determine when drive letters need a
18197         subsequent slash.  Preserve // when it is special.
18198         (dir_name): Don't append dot when drive letter is absolute.
18199         [TEST_DIRNAME]: Move into a full-blown gnulib test.
18200         * lib/basename.c (base_name): New semantics - malloc the result.
18201         Preserve // when it is special.  Preserve relative files that look
18202         like drive letters.
18203         (base_len): Preserve // when it is special.
18204         (last_component): New method, similar to old base_name semantics.
18205         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
18206         base_name.  Strip redundant slashes from ///.
18207
18208 2006-07-03  Jim Meyering  <jim@meyering.net>
18209
18210         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
18211         macro is used before the first cycle_check call.
18212
18213 2006-07-03  Eric Blake  <ebb9@byu.net>
18214
18215         * modules/dirname (Depends-on): Add xstrndup.
18216
18217 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18218
18219         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
18220         test cases, so that config.log is a bit easier to follow.
18221
18222 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18223
18224         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
18225         both are 64 bits, since this seems to be the tradition, and this
18226         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
18227         we ever run into a host that prefers long long to long in this
18228         case, we'll need another configure-time test.  Problem reported by
18229         Jim Meyering.
18230
18231 2006-07-02  Eric Blake  <ebb9@byu.net>
18232
18233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
18234
18235 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18236
18237         * modules/inttypes (Depends-on): No longer depends on stdint.
18238         * modules/stdint (Description): Say more about assumptions.
18239         Say that the fast types might differ.  Say macros are used.
18240         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
18241         (Makefile.am): Revise list of substituted symbols to match
18242         new stdint.m4.
18243         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
18244         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
18245         * tests/test-stdint.c (verify_same_types)
18246         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
18247         the code conforms to C99/C89.
18248         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
18249         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
18250
18251 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18252
18253         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
18254         but fix a bug, by requiring at least 64 bits.
18255         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
18256         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
18257         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
18258         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
18259
18260         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
18261         changes.  Make 2.59 a prerequisite.  Check and substitute for
18262         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
18263         inttypes.h.  Do not use special include files; just use the
18264         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
18265         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
18266         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
18267         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
18268         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
18269         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
18270         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
18271         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
18272         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
18273         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
18274         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
18275         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
18276         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
18277         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
18278         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
18279         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
18280         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
18281         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
18282         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
18283         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
18284         WINT_MAX.  Check for C99 conformance more strictly, by detecting
18285         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
18286         not check for things that C99 does not require, e.g., int8_t.  If
18287         a test isn't needed unless <stdint.h> isn't working, and is
18288         unlikely to be needed for any other reason, then don't do it
18289         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
18290         size_t, since we assume C89 freestanding at least.  Do not check
18291         for sig_atomic_t, wchar_t, or wint_t, since the code now does
18292         the right thing even if the types are not defined.  Instead use:
18293         (gl_STDINT_TYPE_PROPERTIES): New macro.
18294         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
18295         testing whether <sys/types.h> clashes, as Autoconf does this for
18296         us now.  All uses removed.
18297         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
18298         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
18299         (gl_CHECK_TYPE_SAME):
18300         Remove; no longer needed.
18301         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
18302         exists, since we'll return 0 anyway in that case.
18303         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
18304
18305 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18306
18307         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
18308         possible collision with system files.
18309         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
18310         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
18311         WCHAR_MIN and WCHAR_MAX in this case.
18312         (<stddef.h>): Do not include; no longer needed.
18313         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
18314         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
18315         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
18316         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
18317         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
18318         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
18319         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
18320         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
18321         !defined(__c99))]: Include in this case too, since it's harmless
18322         now.
18323         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
18324         dangerous to do so.
18325         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
18326         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
18327         (_STDINT_MIN, _STDINT_MAX): New macros.
18328         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
18329         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
18330         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
18331         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
18332         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
18333         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
18334         macros, not typedefs; this simplifies things quite a bit.
18335         Use long int for all types narrower than int64_t.
18336         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
18337         Define in terms of long long int or int64_t or long int,
18338         not int64_t or int32_t.  This saves some compile-time testing.
18339         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
18340         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
18341         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
18342         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
18343         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
18344         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
18345         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
18346         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
18347         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
18348         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
18349         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
18350         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
18351         undef any previous version and define our own version, for
18352         simplicity and consistency with the new macros for types.
18353         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
18354         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
18355         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
18356         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
18357         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
18358         @WINT_T_SUFFIX@ to keep things simple here.
18359         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
18360         Simplify by assuming typical 8/16/32/64 host, since we're
18361         already doing that elsewhere anyway.
18362         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
18363         and assume long long int is 64 bits if available.  This
18364         speeds up 'configure'.
18365
18366 2006-07-01  Eric Blake  <ebb9@byu.net>
18367
18368         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
18369         Reported by Andreas Buening.
18370
18371 2006-07-01  Eric Blake  <ebb9@byu.net>
18372
18373         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
18374
18375 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
18376
18377         * lib/getaddrinfo.c: fixed typo
18378
18379 2006-06-29  Jim Meyering  <jim@meyering.net>
18380
18381         * modules/strftime (Maintainer): Add my name, since with the
18382         FPRINTFTIME changes strftime.c has forked from glibc.
18383
18384 2006-06-29  Eric Blake  <ebb9@byu.net>
18385
18386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
18387
18388 2006-06-29  Eric Blake  <ebb9@byu.net>
18389
18390         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
18391
18392 2006-06-29  Eric Blake  <ebb9@byu.net>
18393
18394         * lib/stat_.h: New file.
18395
18396 2006-06-29  Eric Blake  <ebb9@byu.net>
18397
18398         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
18399         unused static function.
18400
18401 2006-06-29  Eric Blake  <ebb9@byu.net>
18402
18403         * doc/functions.texi (Function Portability): Document missing lstat
18404         on mingw.
18405
18406 2006-06-29  Eric Blake  <ebb9@byu.net>
18407
18408         * MODULES.html.sh: Add sys_stat.
18409         * modules/sys_stat: New module.
18410         * modules/mkstemp (Depends-on): Add sys_stat.
18411
18412 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18413
18414         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
18415
18416 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18417
18418         * m4/c-bs-a.m4: Removed.
18419
18420 2006-06-29  Derek R. Price  <derek@ximbiot.com>
18421
18422         * lib/strftime.c: Assume strftime() exists.
18423
18424 2006-06-29  Derek Price  <derek@ximbiot.com>
18425
18426         * modules/c-bs-a: Removed - \a is C89.
18427         * MODULES.html.sh: Remove c-bs-a.
18428
18429 2006-06-29  Bruno Haible  <bruno@clisp.org>
18430
18431         * modules/wcwidth (License): Change to LGPL.
18432
18433 2006-06-28  Simon Josefsson  <jas@extundo.com>
18434
18435         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
18436         on _WIN32.
18437
18438         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
18439         getnameinfo.
18440
18441 2006-06-28  Simon Josefsson  <jas@extundo.com>
18442
18443         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
18444
18445 2006-06-28  Simon Josefsson  <jas@extundo.com>
18446
18447         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
18448         functions there.  It will succeed on Windows XP, but on Windows
18449         2000 and (presumably) earlier, it will fail, and use the internal
18450         re-implementation.
18451         (use_win32_p): New function.
18452         (getaddrinfo): Use strtoul on servname, to support numeric ports.
18453         Support AI_NUMERICSERV to disable getservbyname.
18454         (getnameinfo): New function, only supports
18455         NI_NUMERICHOST|NI_NUMERICSERV for now.
18456
18457         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
18458         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
18459         getnameinfo.
18460
18461 2006-06-28  Eric Blake  <ebb9@byu.net>
18462
18463         * modules/wcwidth: New file.
18464         * modules/mbchar (Depends-on): Add wcwidth.
18465         * modules/mbswidth (Depends-on): Add wcwidth.
18466         * MODULES.html.sh: Add wcwidth.
18467
18468 2006-06-28  Eric Blake  <ebb9@byu.net>
18469
18470         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
18471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
18472
18473 2006-06-28  Eric Blake  <ebb9@byu.net>
18474
18475         * lib/xvasprintf.h: Fix comments.
18476
18477 2006-06-28  Eric Blake  <ebb9@byu.net>
18478
18479         * lib/mbchar.h (wcwidth): Include wcwidth.h.
18480         * lib/mbswidth.c (wcwidth): Move from here...
18481         * lib/wcwidth.h: ...to this new file.
18482
18483 2006-06-28  Derek R. Price  <derek@ximbiot.com>
18484
18485         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
18486
18487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
18488         it's obsolete.
18489         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
18490
18491 2006-06-28  Derek R. Price  <derek@ximbiot.com>
18492
18493         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
18494         Autoconf 2.60 says this stuff was obsolete.
18495
18496 2006-06-28  Bruno Haible  <bruno@clisp.org>
18497
18498         * modules/wcwidth (Files): Add m4/wchar_t.m4.
18499
18500 2006-06-28  Bruno Haible  <bruno@clisp.org>
18501
18502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
18503         gt_TYPE_WCHAR_T.
18504
18505 2006-06-28  Bruno Haible  <bruno@clisp.org>
18506
18507         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
18508         declaration for wcwidth.
18509         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
18510
18511 2006-06-28  Bruno Haible  <bruno@clisp.org>
18512
18513         * lib/mkdtemp.c [MINGW]: Include <io.h>.
18514         (mkdir): Define using _mkdir.
18515
18516 2006-06-28  Bruno Haible  <bruno@clisp.org>
18517
18518         * lib/getaddrinfo.h: Fix POSIX URL.
18519         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
18520         _WIN32.
18521         (use_win32_p): Make static.
18522         (getaddrinfo): Reject service name if it is empty or does not consist
18523         solely of decimal digits, or if its value is > 65535.
18524         (getnameinfo): Remove useless casts.
18525
18526 2006-06-27  Simon Josefsson  <jas@extundo.com>
18527
18528         * modules/sys_select: New file, suggested by Bruno Haible, Paul
18529         Eggert and Martin Lambers.
18530
18531 2006-06-27  Simon Josefsson  <jas@extundo.com>
18532
18533         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
18534         Eggert and Martin Lambers.
18535
18536 2006-06-27  Bruno Haible  <bruno@clisp.org>
18537
18538         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
18539         result to 0, not to empty.
18540         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
18541
18542 2006-06-27  Bruno Haible  <bruno@clisp.org>
18543
18544         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
18545
18546 2006-06-26  Simon Josefsson  <jas@extundo.com>
18547
18548         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
18549         present.
18550
18551 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
18552
18553         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
18554         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
18555         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
18556
18557 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
18558
18559         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
18560
18561 2006-06-26  Bruno Haible  <bruno@clisp.org>
18562
18563         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
18564
18565 2006-06-26  Bruno Haible  <bruno@clisp.org>
18566
18567         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
18568
18569 2006-06-26  Bruno Haible  <bruno@clisp.org>
18570
18571         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
18572         SGI C compiler in pre-C99 mode.
18573         Suggested by Mark D. Baushke and Larry Jones.
18574
18575 2006-06-26  Bruno Haible  <bruno@clisp.org>
18576
18577         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
18578         WCHAR_MAX.
18579         Reported by Mark D. Baushke and Larry Jones.
18580
18581 2006-06-26  Bruno Haible  <bruno@clisp.org>
18582
18583         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
18584         in pre-C99 mode.
18585         Suggested by Mark D. Baushke and Larry Jones.
18586
18587 2006-06-23  Simon Josefsson  <jas@extundo.com>
18588             Bruno Haible  <bruno@clisp.org>
18589
18590         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
18591         Emit mostlyclean-local rule.
18592         (func_emit_tests_Makefile_am): Likewise.
18593         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
18594
18595 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
18596
18597         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
18598
18599 2006-06-23  Bruno Haible  <bruno@clisp.org>
18600
18601         * tests/test-stdint.c: Update to match ISO C 99 Technical
18602         Corrigendum 1.
18603
18604 2006-06-23  Bruno Haible  <bruno@clisp.org>
18605
18606         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
18607
18608 2006-06-23  Bruno Haible  <bruno@clisp.org>
18609
18610         * lib/stdint_.h: Treat IRIX like OpenBSD.
18611
18612 2006-06-23  Bruno Haible  <bruno@clisp.org>
18613
18614         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
18615         ISO C 99 Technical Corrigendum 1.
18616
18617 2006-06-22  Simon Josefsson  <jas@extundo.com>
18618
18619         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
18620         MinGW.
18621
18622 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
18623
18624         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
18625         needed.  Some compiler complained about some of them.  Problem reported
18626         by Larry Jones in
18627         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
18628
18629 2006-06-21  Simon Josefsson  <jas@extundo.com>
18630
18631         * tests/test-getaddrinfo.c: New file.
18632
18633         * modules/getaddrinfo-tests: New file.
18634
18635         * MODULES.html.sh: Add inet_pton.
18636
18637         * modules/inet_pton: New file.
18638
18639 2006-06-21  Simon Josefsson  <jas@extundo.com>
18640
18641         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
18642         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
18643         of using the (limited) gnulib implementation on Windows XP.
18644
18645         * m4/inet_pton.m4: New file.
18646
18647 2006-06-21  Simon Josefsson  <jas@extundo.com>
18648
18649         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
18650         variable.
18651
18652         * lib/socket_.h: Don't define WINVER.
18653
18654         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
18655         slightly modified to work in gnulib.
18656
18657 2006-06-21  Simon Josefsson  <jas@extundo.com>
18658
18659         * doc/gnulib.texi (Windows sockets): Add.
18660
18661 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18662
18663         * lib/read-file.c (fread_file): Start with buffer allocation of
18664         0 bytes rather than 1 byte; this simplifies the code.
18665         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
18666         code to free buffer and save/restore errno.
18667         (internal_read_file): Remove unused local.
18668
18669 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18670
18671         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
18672         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
18673         Problem reported by Denis Excoffier in
18674         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
18675
18676 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18677
18678         * modules/sys_socket, modules/socklen: Include sys/types since
18679         FreeBSD 4.x's sys/socket.h needs it.
18680
18681 2006-06-19  Simon Josefsson  <jas@extundo.com>
18682
18683         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
18684
18685 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
18686
18687         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
18688
18689 2006-06-19  Bruno Haible  <bruno@clisp.org>
18690
18691         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
18692         and FULL_PATH_INTTYPES_H in angle brackets.
18693         Reported by Mark D. Baushke <mdb@gnu.org>.
18694
18695 2006-06-17  Eric Blake  <ebb9@byu.net>
18696
18697         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
18698         errno.
18699
18700 2006-06-17  Bruno Haible  <bruno@clisp.org>
18701
18702         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
18703         <sys/inttypes.h>.
18704
18705 2006-06-17  Bruno Haible  <bruno@clisp.org>
18706
18707         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
18708         whether errno is declared. Assume <errno.h> declares errno.
18709
18710 2006-06-17  Bruno Haible  <bruno@clisp.org>
18711
18712         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
18713
18714 2006-06-17  Bruno Haible  <bruno@clisp.org>
18715
18716         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
18717         problem on Solaris 2.5.1.
18718
18719 2006-06-16  Eric Blake  <ebb9@byu.net>
18720
18721         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
18722         * lib/unicodeio.c [!defined errno]: Likewise.
18723         * lib/strtol.c [!defined errno]: Likewise.
18724         * lib/strtod.c [!defined errno]: Likewise.
18725
18726 2006-06-15  Eric Blake  <ebb9@byu.net>
18727
18728         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
18729
18730 2006-06-15  Eric Blake  <ebb9@byu.net>
18731
18732         * config/srclist.txt (ssize_t.m4): Lose sync.
18733
18734 2006-06-15  Bruno Haible  <bruno@clisp.org>
18735
18736         * modules/stdint (Files): Include m4/full-header-path.m4,
18737         m4/size_max.m4, m4/wchar_t.m4.
18738         (Makefile.am): Many more substitutions.
18739         * modules/stdint-tests: New file.
18740         * tests/test-stdint.c: New file.
18741
18742 2006-06-15  Bruno Haible  <bruno@clisp.org>
18743
18744         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
18745         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
18746         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
18747         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
18748         gl_CHECK_TYPE_SAME): New macros.
18749
18750 2006-06-15  Bruno Haible  <bruno@clisp.org>
18751
18752         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
18753
18754 2006-06-15  Bruno Haible  <bruno@clisp.org>
18755
18756         * lib/stdint_.h: Rewritten to be fully auto-configured.
18757         Fixes bug on HP-UX/IA64.
18758
18759 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18760
18761         * lib/getdate.y (__attribute__): Don't define if already defined.
18762         Problem reported by Larry Jones.
18763         * lib/utimens.c (__attribute__): Likewise.
18764
18765 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18766
18767         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
18768         reported by Andreas Schwab.
18769
18770 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18771             Bruno Haible  <bruno@clisp.org>
18772
18773         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
18774         check for the declaration of strnlen and a run test that exposes the
18775         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
18776         rpl_strndup.
18777
18778 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18779             Bruno Haible  <bruno@clisp.org>
18780
18781         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
18782
18783 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18784
18785         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
18786         compile test, for Tru64 4.0D.
18787
18788 2006-05-28  Karl Berry  <karl@gnu.org>
18789
18790         * config/srclist.txt (printf-args.c): lose sync.
18791
18792 2006-05-26  Martin Lambers  <marlam@marlam.de>
18793
18794         * lib/getpass.c: Updates the test for the native W32 API, and adds
18795         missing includes, thus fixing compilation warnings.
18796
18797 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18798
18799         * lib/exclude.c (exclude_fnmatch): New function.
18800         (excluded_file_name): Call exclude_fnmatch.
18801         * lib/exclude.h (excluded_file_name): New prototype
18802
18803 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18804
18805         * lib/tempname.c (small_open, large_open): New macros.
18806         (__open, __open64) [!_LIBC]: Remove.
18807         (__gen_tempname): Use small_open and large_open instead of __open
18808         and __open64.  This fixes a portability bug on HP-UX 11.11i
18809         reported by Simon Wing-Tang in
18810         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
18811
18812 2006-05-24  Bruno Haible  <bruno@clisp.org>
18813
18814         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
18815         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
18816         Reported by Thorsten Maerz <torte@netztorte.de> via
18817         Aaron Stone <aaron@serendipity.cx>.
18818
18819 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18820
18821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
18822         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
18823         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
18824         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
18825         not really conditional on the cache.
18826         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
18827
18828 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18829
18830         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
18831         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
18832         (my_usleep): Don't mishandle maximum value.
18833
18834 2006-05-19  Jim Meyering  <jim@meyering.net>
18835
18836         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
18837
18838 2006-05-17  Bruno Haible  <bruno@clisp.org>
18839
18840         Cygwin portability.
18841         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
18842
18843 2006-05-17  Bruno Haible  <bruno@clisp.org>
18844
18845         * lib/stdint_.h: Fix recognition of Cygwin.
18846
18847 2006-05-15  Bruno Haible  <bruno@clisp.org>
18848
18849         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
18850         on libtool patch by Ralf Wildenhues.
18851
18852 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18853
18854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
18855         test for C99 conformance; (bool) 0.5 is an integer constant
18856         expression, but (bool) -0.5 is not.  Problem reported by Fedor
18857         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
18858
18859 2006-05-11  Simon Josefsson  <jas@extundo.com>
18860
18861         * m4/xvasprintf.m4: Fix obvious typo.
18862
18863 2006-05-11  Jim Meyering  <jim@meyering.net>
18864
18865         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
18866         James Lemley.
18867
18868 2006-05-10  Simon Josefsson  <jas@extundo.com>
18869
18870         * lib/md4.c: Typo fix, update copyright years.
18871         (K1, K2): Don't use L because it turn computations into 64-bit on
18872         64-bit platforms.
18873
18874 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
18875
18876         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
18877         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
18878         unwanted sign propagation, e.g., on hosts with 64-bit int.
18879         There still are some problems with reeelly weird theoretical hosts
18880         (e.g., 33-bit int) but it's not worth worrying about now.
18881         * lib/sha1.c (rol): Likewise.
18882         (K1, K2, K3, K4): Remove unnecessary L suffix.
18883
18884 2006-05-10  Bruno Haible  <bruno@clisp.org>
18885
18886         * lib/des.c: Cast to avoid warnings.
18887
18888 2006-05-09  Bruno Haible  <bruno@clisp.org>
18889
18890         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
18891         (Depends-on): Depend also on xsize, stdarg.
18892         (configure.ac): Add gl_XVASPRINTF.
18893
18894 2006-05-09  Bruno Haible  <bruno@clisp.org>
18895
18896         * m4/xvasprintf.m4: New file.
18897
18898 2006-05-09  Bruno Haible  <bruno@clisp.org>
18899
18900         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
18901         (EOVERFLOW): Define fallback value.
18902         (xstrcat): New function.
18903         (xvasprintf): Recognize the special case of a string concatenation.
18904
18905 2006-05-08  Eric Blake  <ebb9@byu.net>
18906
18907         * gnulib-tool (func_version): Base copyright year on CVS date.
18908         (func_emit_copyright_notice): New function.
18909         (func_emit_lib_Makefile_am): Use it.
18910         (func_emit_tests_Makefile_am): Likewise.
18911         (func_import): Likewise.
18912
18913 2006-05-08  Bruno Haible  <bruno@clisp.org>
18914
18915         * modules/stdarg: New file.
18916         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
18917
18918 2006-05-08  Bruno Haible  <bruno@clisp.org>
18919
18920         * m4/stdarg.m4: New file, from GNU gettext.
18921
18922 2006-05-08  Bruno Haible  <bruno@clisp.org>
18923
18924         * config/srclist.txt (build-aux/config.rpath): different from latest
18925         release.
18926
18927 2006-05-08  Bruno Haible  <bruno@clisp.org>
18928
18929         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
18930
18931 2006-05-05  Jim Meyering  <jim@meyering.net>
18932
18933         * m4/warning.m4: New file, derived from bison's file by the same name.
18934
18935 2006-05-03  Bruno Haible  <bruno@clisp.org>
18936
18937         * lib/stdint_.h: Shorter URL.
18938         * lib/inttypes.h: Likewise.
18939
18940 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18941
18942         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
18943
18944 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18945
18946         * lib/verify.h: Document the internals better.  Most of this change
18947         was written by Bruno Haible.
18948
18949 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
18950
18951         * doc/verify.texi: New file, partly based on a proposal by
18952         Bruno Haible.
18953
18954 2006-05-02  Bruno Haible  <bruno@clisp.org>
18955
18956         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
18957         test from here...
18958         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
18959
18960 2006-04-29  Bruno Haible  <bruno@clisp.org>
18961
18962         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
18963         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
18964
18965 2006-04-29  Bruno Haible  <bruno@clisp.org>
18966
18967         * gnulib-tool: Make --update option actually work.
18968
18969 2006-04-29  Bruno Haible  <bruno@clisp.org>
18970
18971         * doc/gcd.texi: New file.
18972         * doc/gnulib.texi: Include it.
18973
18974 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18975
18976         * lib/getdate.y (get_date): When adding relative date, start with the
18977         initial time, not with the result of the first mktime call.
18978
18979 2006-04-25  Bruno Haible  <bruno@clisp.org>
18980
18981         * gnulib-tool (func_import): Output the include directives in three
18982         blocks, sorted separately.
18983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18984
18985 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18986
18987         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
18988         to define main with arguments, for C++.  Reported by Eric Blake.
18989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
18990         Prefer 'int main ()' to 'int main (void)', for C++.
18991         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18992         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
18993         for 'main', for C99 and C++.
18994
18995 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
18998         Don't assume that exit status -1 is valid.
18999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19000         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19001         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19002         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
19003         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
19004         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
19005         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
19006         functions can be used without declaring them, or that you can
19007         exit with status -1.
19008         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
19009
19010 2006-04-24  Karl Berry  <karl@gnu.org>
19011
19012         * config/srclist.txt (longdouble.m4): sync lost.
19013
19014 2006-04-24  Eric Blake  <ebb9@byu.net>
19015
19016         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
19017
19018 2006-04-24  Bruno Haible  <bruno@clisp.org>
19019
19020         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
19021         poll() implementation in AIX.
19022         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19023
19024 2006-04-24  Bruno Haible  <bruno@clisp.org>
19025
19026         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
19027         assigned exactly once.
19028
19029 2006-04-23  Claudio Fontana  <claudio@gnu.org>
19030             Bruno Haible  <bruno@clisp.org>
19031
19032         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
19033         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
19034         for AM_CPPFLAGS.
19035
19036 2006-04-23  Bruno Haible  <bruno@clisp.org>
19037
19038         * modules/copy-file: Depend on unistd.
19039         * modules/execute: Likewise.
19040         * modules/fatal-signal: Likewise.
19041         * modules/findprog: Likewise.
19042         * modules/mkdtemp : Likewise.
19043         * modules/pipe: Likewise.
19044         * modules/wait-process: Likewise.
19045
19046 2006-04-23  Bruno Haible  <bruno@clisp.org>
19047
19048         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
19049         condition was already detected.
19050         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19051
19052 2006-04-23  Bruno Haible  <bruno@clisp.org>
19053
19054         * lib/copy-file.c: Include <unistd.h> unconditionally.
19055         * lib/execute.c: Likewise.
19056         * lib/fatal-signal.c: Likewise.
19057         * lib/findprog.c: Likewise.
19058         * lib/mkdtemp.c: Likewise.
19059         * lib/pipe.h: Likewise.
19060         * lib/pipe.c: Likewise.
19061         * lib/wait-process.h: Likewise.
19062
19063 2006-04-23  Bruno Haible  <bruno@clisp.org>
19064
19065         * gnulib-tool (func_usage): Fix --import description. Document
19066         --update.
19067         (func_import): Create temporary file in a temporary directory, if
19068         --dry-run is specified. Silence errors from 'grep' when there are no
19069         m4 files in $m4dir.
19070         (func_create_testdir): Silence errors from 'grep' when there are no
19071         m4 files in $m4dir.
19072         Reported by Karl Berry <karl@freefriends.org>.
19073
19074 2006-04-20  Bruno Haible  <bruno@clisp.org>
19075
19076         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
19077         one argument, so that the code will be portable to Autoconf 2.60.
19078         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
19079         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
19080         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
19081
19082 2006-04-19  Derek Price  <derek@ximbiot.com>
19083             Eric Blake  <ebb9@byu.net>
19084
19085         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
19086         rather than "/full/path.h".  Update comment to match.  Shorten &
19087         generalize m4_translit call via AS_TR_CPP.
19088
19089 2006-04-19  Derek Price  <derek@ximbiot.com>
19090             Eric Blake  <ebb9@byu.net>
19091
19092         * lib/inttypes.h: Correct grammar in comment.
19093
19094 2006-04-18  Derek Price  <derek@ximbiot.com>
19095             Paul Eggert  <eggert@cs.ucla.edu>
19096
19097         * modules/inttypes: New file.
19098         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
19099
19100 2006-04-18  Derek Price  <derek@ximbiot.com>
19101             Paul Eggert  <eggert@cs.ucla.edu>
19102
19103         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
19104         New files.
19105
19106 2006-04-18  Derek Price  <derek@ximbiot.com>
19107             Paul Eggert  <eggert@cs.ucla.edu>
19108
19109         * lib/inttypes.h: New file.
19110         * lib/strtoimax.c: Assume <inttypes.h>.
19111
19112 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
19113
19114         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
19115         isn't mounted.  Problem reported by Kir Kolyshkin.
19116
19117 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
19118
19119         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
19120         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
19121         Derek R. Price.
19122         * lib/regex.h (RE_DUP_MAX): Update comment to match current
19123         implementation.
19124
19125 2006-04-12  Eric Blake  <ebb9@byu.net>
19126
19127         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
19128         is now done automatically by the corresponding Autoconf macro.
19129
19130 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19131
19132         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
19133         time_r.h.
19134
19135 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19136
19137         Merge regex changes from libc, removing some of our
19138         POSIX-conformance changes that were rejected and redoing them in a
19139         less-intrusive way.
19140
19141         * lib/regcomp.c (re_compile_internal, init_dfa):
19142         Length arg is now size_t, not Idx.  All uses changed.
19143         (peek_token): Forward decl now says internal_function.
19144         (__re_error_msgid, __re_error_msgid_idx):
19145         Now static rather than extern with attribute_hidden.
19146         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
19147         For some reason libc prefers K&R style defns for external functions.
19148         (regerror) [!defined _LIBC]: Likewise.
19149         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
19150         (seek_collating_symbol_entry, lookup_collation_sequence_value):
19151         (build_range_exp, build_collating_symbol):
19152         Use K&R-style defn.
19153         (re_compile_fastmap): Use '\0' to memset, not 0.
19154         (utf8_sb_map): Make the calculations more obvious.
19155         (init_dfa, parse_bracket_exp, build_charclass_op):
19156         Call calloc and cast result, as glibc does.
19157         (init_word_char, fetch_token, peek_token, peek_token_bracket):
19158         (build_range_exp, build_collating_symbol):
19159         Now internal functions.
19160
19161         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
19162
19163         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
19164         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
19165         Don't depend on VMS; depend on __VMS instead, for POSIX
19166         namespace cleanness.
19167         (regoff_t): Define to ssize_t, not long int.
19168
19169         Remove the REG_ macros named below.  Instead, make the old names
19170         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
19171         __USE_GNU_REGEX.
19172         (REG_BACKSLASH_ESCAPE_IN_LISTS):
19173         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
19174         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
19175         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
19176         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
19177         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
19178         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
19179         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
19180         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
19181         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
19182         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
19183         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
19184         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
19185         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
19186         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
19187         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
19188         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
19189         (REG_NREGS):
19190         Remove.  All uses replaced by the old RE_* names.
19191         (RE_BACKSLASH_ESCAPE_IN_LISTS):
19192         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
19193         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
19194         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
19195         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
19196         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
19197         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
19198         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
19199         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
19200         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
19201         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
19202         Don't bother having these macros be independent of each others'
19203         values, since they no longer exist in the POSIX name space.
19204
19205         Rename the following member names back to their old names,
19206         unless !__USE_GNU_REGEX.  All uses changed back.
19207         (buffer): Renamed from re_buffer.
19208         (allocated): Renamed from re_allocated.
19209         (used): Renamed from re_used.
19210         (syntax): Renamed from re_syntax.
19211         (fastmap): Renamed from re_fastmap.
19212         (translate): Renamed from re_translate.
19213         (can_be_null): Renamed from re_can_be_null.
19214         (regs_allocated): Renamed from re_regs_allocated.
19215         (fastmap_accurate): Renamed from re_fastmap_accurate.
19216         (no_sub): Renamed from re_no_sub.
19217         (not_bol): Renamed from re_not_bol.
19218         (not_eol): Renamed from re_not_eol.
19219         (newline_anchor): Renamed from re_newline_anchor.
19220         (num_regs): Renamed from rm_num_regs.
19221         (start): Renamed from rm_start.
19222         (end): Renamed from rm_end.
19223
19224         (free_state): Move up a bit.
19225
19226         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
19227         #define to be empty.
19228         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
19229         when that is what is intended.
19230         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
19231         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
19232         (MAX): New macro.
19233         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
19234         All uses changed back to re_malloc, etc.  It's now the caller's
19235         responsibility to check for overflow; all callers changed.
19236         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
19237         (re_x2nrealloc): Remove.
19238         (free_state): Remove decl.
19239
19240         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
19241         (re_set_registers, re_exec):
19242         Use K&R-style defn.
19243
19244         2006-01-31  Roland McGrath  <roland@redhat.com>
19245
19246         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
19247         Reported by Mike Frysinger <vapier@gentoo.org>.
19248
19249         2006-01-15  Andreas Jaeger  <aj@suse.de>
19250
19251         [BZ #1950]
19252         * lib/regex_internal.c (re_string_reconstruct): Adjust for
19253         build_wcs_upper_buffer change.
19254         (build_wcs_upper_buffer): Change return type.
19255
19256         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
19257
19258         * lib/regex_internal.h: Include <stdint.h> if available.
19259
19260         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
19261
19262         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
19263
19264         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
19265
19266         * lib/regcomp.c: Adjust for changed secondary hash function.
19267
19268         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
19269
19270         * lib/regex.h: Pretty printing.
19271         Clean up namespace a bit.
19272
19273         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
19274
19275         * lib/regexec.c (update_cur_sifted_state, check_arrival,
19276         check_arrival_add_next_nodes): Avoid using uninitialized variable.
19277
19278         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
19279                     Ulrich Drepper  <drepper@redhat.com>
19280
19281         [BZ #1302]
19282         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
19283         changed.
19284         (bitset_word_t): Renamed from bitset_word.  All uses changed.
19285
19286         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
19287
19288         [BZ #281]
19289         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
19290         * lib/regcomp.c: Remove unnecessary uses of
19291         unsigned RE_TRANSLATE_TYPE.
19292         * lib/regex_internal.h: Likewise.
19293         * lib/regex_internal.c: Likewise.
19294         * lib/regexec.c: Likewise.
19295         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
19296
19297         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
19298
19299         * lib/regexec.c (find_recover_state): Remove unnecessary
19300         initialization.
19301         (transit_state_bkref): Make DFA a const pointer.
19302         (get_subexp): Likewise.
19303         (check_arrival): Likewise.
19304         (update_cur_sifted_state): Likewise.
19305         (re_search_internal): Likewise.
19306         (prune_impossible_nodes): Likewise.
19307         (acquire_init_state_context): Likewise.
19308         (proceed_next_node): Likewise.
19309         (set_regs): Likewise.
19310         (free_fail_stack_return): Likewise.
19311         (check_arrival_expand_ecl): Mark DFA parameter as const.
19312         (check_arrival_expand_ecl_sub): Likewise.
19313         (check_subexp_limits): Likewise.
19314         (sub_epsilon_src_nodes):  Likewise.
19315         (add_epsilon_src_nodes):  Likewise.
19316         (merge_state_array): Likewise.
19317         (update_regs): Likewise.
19318         (build_trtable): Likewise.
19319         (sift_states_backward): Mark MCTX parameter as const.
19320         (build_sifted_states): Likewise.
19321         (update_cur_sifted_state): Likewise.
19322         (sift_states_mkref): Likewise.
19323         (check_arrival_expand_ecl): Mark eclosure as const.
19324         (check_dst_limits_calc_pos_1): Likewise.
19325         * lib/regex_internal.h (re_match_context_t): Make dfa a const
19326         pointer.
19327
19328         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
19329
19330         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
19331         (transit_state_sb): Likewise.
19332         (transit_state_mb): Likewise.
19333         (sift_states_iter_mb): Likewise.
19334         (check_arrival_add_next_nodes): Likewise.
19335         (check_node_accept_bytes): Change first parameter to pointer-to-const.
19336         [_LIBC] (re_search_2_stub): Use mempcpy.
19337
19338         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
19339         mbrtowc for very simple UTF-8 case.
19340
19341         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
19342         a pointer-to-const.
19343         (re_acquire_state_context): Likewise.
19344         * lib/regex_internal.h: Adjust prototypes.
19345
19346         * lib/regex.c: Prevent using C++ compilers.
19347
19348         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
19349         (re_acquire_state_context): Likewise.
19350
19351 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19352
19353         * modules/regex (Depends-on): Add ssize_t.
19354
19355 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19356
19357         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
19358         translation table.
19359
19360 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19361
19362         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
19363
19364 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
19365             Bruno Haible  <bruno@clisp.org>
19366
19367         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
19368         <sys/types.h> and <inttypes.h>.
19369
19370 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19371
19372         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
19373         `__error_t_defined', so argp.h will not typedef the former.
19374
19375 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19376
19377         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
19378         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
19379         glibc names.  Even if glibc is changed to conform to POSIX, the
19380         traditional names will be available anyway, since regex depends on
19381         the extensions module.  Also, fix a longstanding typo in the
19382         implementation of Spencer ERE test #75 from grep 2.3.  Problems
19383         reported by Emanuele Giaquinta.  Also, change sense of cached
19384         variable, so that the message makes sense.
19385
19386 2006-03-24  Simon Josefsson  <jas@extundo.com>
19387
19388         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
19389         including some doc fixes.
19390         (base64_encode_alloc): Fix +1 bug on allocation failures.
19391
19392 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19393
19394         * lib/base64.c (base64_encode): Do not read past end of array with
19395         unsanitized input on systems with CHAR_BIT > 8.
19396
19397 2006-03-24  Eric Blake  <ebb9@byu.net>
19398
19399         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
19400
19401 2006-03-22  Karl Berry  <karl@gnu.org>
19402
19403         * config/srclist.txt (*setenv.[ch]): get from coreutils.
19404         * config/srclistvars.sh (COREUTILS): new var.
19405
19406 2006-03-17  Jim Meyering  <jim@meyering.net>
19407
19408         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
19409         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
19410
19411 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19412
19413         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
19414         no longer needs it.  Instead, check that regoff_t is as least
19415         as wide as ptrdiff_t.
19416
19417         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
19418         so that our regex.h stays compatible with the installed regex.
19419         This is helpful for installers who configure --without-included-regex.
19420         Problem reported by Emanuele Giaquinta.
19421
19422 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19423
19424         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
19425         Typedef to long int, not to off_, as POSIX will likely change
19426         in that direction.
19427
19428 2006-03-15  Eric Blake  <ebb9@byu.net>
19429
19430         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
19431
19432 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
19433
19434         * lib/argp-help.c (validate_uparams): Fix typo
19435         * lib/argp-parse.c (argp_default_options): Consistently begin help
19436         messages with a lowercase letter.
19437
19438 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
19439
19440         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
19441         overrun buffers and shouldn't be used (much as gets shouldn't be
19442         used).
19443         * lib/time_r.c (asctime_r, ctime_r): Likewise.
19444
19445 2006-03-08  Simon Josefsson  <jas@extundo.com>
19446
19447         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
19448         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19449
19450 2006-03-08  Simon Josefsson  <jas@extundo.com>
19451
19452         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
19453         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19454
19455 2006-03-08  Simon Josefsson  <jas@extundo.com>
19456
19457         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
19458         signal that configure disabled the device.
19459
19460 2006-03-08  Simon Josefsson  <jas@extundo.com>
19461
19462         * build-aux/maint.mk: Fix refresh-po, to handle no translated
19463         languages.
19464
19465 2006-03-07  Simon Josefsson  <jas@extundo.com>
19466
19467         * modules/getopt (Depends-on): Add unistd.
19468
19469         * modules/unistd: New file.
19470
19471 2006-03-07  Simon Josefsson  <jas@extundo.com>
19472
19473         * modules/gc-random: New file.
19474
19475 2006-03-07  Simon Josefsson  <jas@extundo.com>
19476
19477         * m4/unistd_h.m4: New file.
19478
19479 2006-03-07  Simon Josefsson  <jas@extundo.com>
19480
19481         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
19482         test to be side-effect free by storing the result in the cache
19483         variable gl_cv_lib_readline, and moving the assignment of
19484         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
19485         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19486
19487 2006-03-07  Simon Josefsson  <jas@extundo.com>
19488
19489         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
19490         error on missing devices (the functions will return an error).
19491
19492         * m4/gc.m4: Move random stuff to gc-random.m4
19493
19494 2006-03-07  Simon Josefsson  <jas@extundo.com>
19495
19496         * lib/unistd_.h: New file.
19497
19498 2006-03-07  Simon Josefsson  <jas@extundo.com>
19499
19500         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
19501
19502 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19503
19504         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
19505         Problem reported by Juan Manuel Guerrero.
19506
19507 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
19510         the unistd module.
19511         * lib/getlogin_r.c: Likewise.
19512         * lib/getlogin_r.h: Likewise.
19513         * lib/glob.c: Likewise.
19514         * lib/pagealign_alloc.c: Likewise.
19515         * lib/unistd_.h: Remove; no longer needed.
19516
19517 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19518
19519         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19520         Add unistd.
19521         * modules/c-stack (Depends-on): Add unistd.
19522         * modules/getlogin_r: Likewise.
19523         * modules/glob: Likewise.
19524         * modules/pagealign_alloc: Likewise.
19525         * modules/unistd (Files): Remove lib/unistd_.h.
19526         (EXTRA_DIST): Remove.
19527         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
19528         need unistd_.h.
19529         (MOSTLYCLEANFILES): Remove unistd.h-t.
19530
19531 2006-03-03  Simon Josefsson  <jas@extundo.com>
19532
19533         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
19534
19535 2006-03-03  Simon Josefsson  <jas@extundo.com>
19536
19537         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
19538         libidn and bison.
19539
19540 2006-03-03  Simon Josefsson  <jas@extundo.com>
19541
19542         * build-aux/maint.mk: Add indent target.
19543
19544 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
19545
19546         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
19547         our replacement poll.h in any case, to avoid a differing
19548         declaration from a system header.  Seen on AIX.
19549
19550 2006-03-01  Simon Josefsson  <jas@extundo.com>
19551
19552         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
19553         <kasal@ucw.cz>.
19554
19555 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19556
19557         * modules/gettime (Depends-on): Add extensions module.
19558         * modules/nanosleep (Depends-on): Likewise.
19559         * modules/settime (Depends-on): Likewise.
19560
19561 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
19562
19563         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
19564         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
19565         pedantically.
19566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19567         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
19568
19569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
19570         not "==".  Reported by Ralf Wildenhues.
19571
19572 2006-03-01  Karl Berry  <karl@gnu.org>
19573
19574         * doc/Copyright/request-*: new files, synced from gnuorg.
19575
19576 2006-03-01  Karl Berry  <karl@gnu.org>
19577
19578         * config/srclist.txt (Copyright/*): new entries.
19579
19580 2006-02-28  Simon Josefsson  <jas@extundo.com>
19581
19582         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
19583
19584 2006-02-27  Simon Josefsson  <jas@extundo.com>
19585
19586         * lib/base64.h: Indent #define's.  From Jim Meyering
19587         <jim@meyering.net>.
19588
19589 2006-02-27  Jim Meyering  <jim@meyering.net>
19590
19591         Revert the change of 2006-02-24, so these files can continue
19592         to be sync'd from gettext.
19593         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
19594         of `config.h'.
19595
19596 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
19597
19598         * modules/intprops: New file.
19599         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
19600         Add intprops.
19601         * modules/getloadavg (Files): Remove lib/intprops.h.
19602         (Depends-on): Add intprops.
19603         * modules/human: Likewise.
19604         * modules/inttostr: Likewise.
19605         * modules/openat: Likewise.
19606         * modules/sig2str: Likewise.
19607         * modules/userspec: Likewise.
19608         * modules/utimecmp: Likewise.
19609         * modules/xnanosleep: Likewise.
19610         * modules/xstrtol: Likewise.
19611
19612 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
19613
19614         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
19615         * modules/lock-tests (TESTS): Use $(EXEEXT).
19616         * modules/tls-tests: Likewise.
19617         * modules/argp-tests: Likewise.
19618         (check_PROGRAMS): New var, replacing...
19619         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
19620
19621 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19622
19623         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
19624         `config.h'.
19625
19626 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19627
19628         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
19629
19630 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19631
19632         Sync from coreutils.
19633         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
19634         gl_CHDIR_SAFER.
19635
19636 2006-02-22  Jim Meyering  <jim@meyering.net>
19637
19638         Sync from coreutils.
19639         * m4/chdir-safer.m4: New file.
19640
19641 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
19644         AT_FDCWD exceeds INT_MAX.
19645         * lib/openat.h (AT_FDCWD): Likewise.
19646
19647 2006-02-17  Eric Blake  <address@hidden>
19648
19649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
19650
19651 2006-02-16  Simon Josefsson  <jas@extundo.com>
19652
19653         * modules/getaddrinfo (Depends-on): Add sys_socket.
19654
19655 2006-02-15  Simon Josefsson  <jas@extundo.com>
19656
19657         * build-aux/maint.mk: Add dsyntax-check rule.
19658
19659 2006-02-15  Eric Blake  <ebb9@byu.net>
19660
19661         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
19662         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
19663         'present but cannot compile' warnings on cygwin.
19664         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
19665         use ws2tcpip.h if sys/socket.h works.
19666         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
19667         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
19668
19669 2006-02-14  Simon Josefsson  <jas@extundo.com>
19670
19671         * modules/maintainer-makefile (Files): Rename.
19672
19673         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
19674         and (the local) Makefile.cfg to maint-cfg.mk.
19675
19676         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
19677         to the latter.
19678
19679         * modules/maintainer-makefile: New module.
19680
19681         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
19682         severaly stripped to make it possible to build it up from scratch
19683         with reliable tests.
19684
19685         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
19686         fixes to permit overriding the default actions when configure and
19687         makefile are not available.
19688
19689 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19690
19691         Sync from coreutils.
19692         * modules/lstat (Depends-on): Don't depend on xalloc.
19693         (License): Change from GPL to LGPL, since this is now simply a
19694         replacement for a libc function.
19695
19696 2006-02-14  Jim Meyering  <jim@meyering.net>
19697
19698         Sync from coreutils.
19699
19700         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
19701         failure on deficient systems, and simplify gnulib lgpl dependencies.
19702         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
19703         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
19704
19705         * lib/xalloc-die.c: Remove unused definition of N_.
19706
19707 2006-02-14  Jim Meyering  <jim@meyering.net>
19708
19709         Sync from coreutils.
19710         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
19711         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
19712         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
19713         double-quote uses of that variable, to accommodate the rare case in
19714         which getmntent is available in none of the libraries checked.  This
19715         happens at least on FreeBSD 5.0.
19716
19717 2006-02-13  Simon Josefsson  <jas@extundo.com>
19718
19719         * gnulib-tool (Usage): Fix --import, from
19720         karl@freefriends.org (Karl Berry).
19721
19722 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
19723
19724         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
19725
19726 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
19727
19728         * lib/argp-namefrob.h: Restore changes accidentally lost during the
19729         "autoupdate" on 2005-12-12.
19730
19731 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19732
19733         * modules/closeout (Depends-on): Remove atexit.
19734
19735 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19736
19737         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
19738         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
19739
19740 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19741
19742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
19743         __EXTENSIONS__ if this causes compilation to fail.  Problem
19744         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
19745         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
19746
19747 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
19750         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
19751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
19752         All uses changed.
19753
19754 2006-01-26  Simon Josefsson  <jas@extundo.com>
19755
19756         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
19757         prototype is visible on mingw32.
19758
19759         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
19760         for mingw32.
19761
19762         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
19763         mingw32).
19764
19765 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19766
19767         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
19768         attempt to open for write; this always fails, at least on POSIX
19769         hosts.  This reinstates the 2006-01-09 change, which was
19770         inadvertently removed.
19771
19772 2006-01-26  Bruno Haible  <bruno@clisp.org>
19773
19774         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
19775         Reported by Paul Eggert.
19776
19777 2006-01-26  Bruno Haible  <bruno@clisp.org>
19778             Paul Eggert  <eggert@cs.ucla.edu>
19779
19780         * lib/stdbool_.h (_Bool)
19781         [(! (defined __cplusplus || defined __BEOS__)
19782           && !defined __GNUC__
19783           && !(defined __HP_cc || defined __xlc__
19784                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
19785                || defined __sgi))]:
19786         #define to signed char in these cases too; this simplifies
19787         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
19788         etc., separately) and makes it more conservative.
19789
19790 2006-01-25  Simon Josefsson  <jas@extundo.com>
19791
19792         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
19793         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
19794         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
19795
19796 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19797
19798         * lib/argp-namefrob.h: Bugfix. Remove stray #
19799
19800 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
19801
19802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
19803         so that we test the test.
19804         Check for yet another HP-UX cc bug involving *bool |= bool.
19805
19806 2006-01-25  Karl Berry  <karl@gnu.org>
19807
19808         * config/srclist.txt (vasnprintf.c): sync lost.
19809
19810 2006-01-25  Jim Meyering  <jim@meyering.net>
19811
19812         Sync from the stable (b5) branch of coreutils:
19813
19814         * lib/fts.c (fts_children): Don't let close() clobber errno from
19815         failed fchdir().
19816
19817         * lib/fts.c (fts_stat): When following a symlink-to-directory,
19818         don't necessarily interpret stat-fails+lstat-succeeds as indicating
19819         a dangling symlink.  That can also happen at least for ELOOP.
19820         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
19821         FYI, this bug predates the inclusion of fts.c in coreutils.
19822
19823         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
19824         in their own block, so pre-c99 compilers don't object.
19825
19826         Avoid the double-free (first in fts_read, second in fts_close) that
19827         would occur when an `active' directory is made inaccessible (e.g.,
19828         via chmod a-x) during a traversal.
19829         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
19830         before returning.  Reproduce this failure by
19831         mkdir -p a/b; cd a; chmod a-x . b
19832         Reported by Stavros Passas.
19833
19834 2006-01-25  Jim Meyering  <jim@meyering.net>
19835
19836         * lib/fileblocks.c: Remove more useless parentheses.
19837         * lib/readutmp.h: Likewise.
19838
19839 2006-01-25  Bruno Haible  <bruno@clisp.org>
19840
19841         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
19842         warnings.
19843         Reported by Paul Eggert.
19844
19845 2006-01-25  Bruno Haible  <bruno@clisp.org>
19846
19847         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
19848         rid of a trap command. For Solaris sh.
19849         Reported by Mark D. Baushke <mdb@gnu.org>.
19850
19851 2006-01-24  Simon Josefsson  <jas@extundo.com>
19852
19853         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
19854         Bruno.
19855
19856 2006-01-24  Karl Berry  <karl@gnu.org>
19857
19858         * config/srclist.txt (argp-namefrob.h): sync lost.
19859
19860 2006-01-24  Jim Meyering  <jim@meyering.net>
19861
19862         * modules/openat (Files): Add lib/intprops.h.
19863         From Mark D. Baushke.
19864
19865 2006-01-24  Jim Meyering  <jim@meyering.net>
19866
19867         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
19868         Reported by Mark D. Baushke.
19869
19870 2006-01-24  Jim Meyering  <jim@meyering.net>
19871
19872         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
19873
19874 2006-01-24  Bruno Haible  <bruno@clisp.org>
19875
19876         * modules/strnlen (Maintainer): Change from glibc to all.
19877
19878 2006-01-24  Bruno Haible  <bruno@clisp.org>
19879
19880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
19881         Patch by Paul Eggert.
19882
19883 2006-01-24  Bruno Haible  <bruno@clisp.org>
19884
19885         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
19886         already has it.
19887         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
19888         2005-11-26.
19889
19890         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
19891         'signed char' to avoid problems with the built-in _Bool type.
19892         Reported by Paul Eggert on 2005-11-26.
19893
19894 2006-01-24  Bruno Haible  <bruno@clisp.org>
19895
19896         * gnulib-tool (func_import): Avoid constructing complicated sed
19897         expressions inside backquote.
19898         Report and solution by Mark D. Baushke <mdb@gnu.org>.
19899
19900 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
19901
19902         These changes imported from libc.
19903         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
19904         test and two separate function calls.
19905         * lib/strndup.c (__strndup): Add libc_hidden_def.
19906
19907 2006-01-23  Simon Josefsson  <jas@extundo.com>
19908
19909         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
19910         Remove the test_*_SOURCES variable: automake infers it by default.
19911         * modules/tls-tests: Likewise.
19912
19913 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19914
19915         Work around porting bugs reported by Dieter in
19916         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
19917         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
19918         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
19919         Include "getopt.h" first, to check interface.
19920         (getenv): Declare only if defined HAVE_DECL_GETENV &&
19921         !HAVE_DECL_GETENV.
19922         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
19923         (__strndup): Revert to K&R-style function dfns, the glibc style.
19924         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
19925         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
19926         Include strnlen.h first, to get prototype properly.
19927         (strnlen): Renamed from __strnlen.
19928         Remove weak alias.
19929
19930 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19931
19932         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
19933
19934 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19935
19936         * config/srclist.txt: Adjust to reflect glibc reorganization.
19937         This affects only comments.
19938
19939 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
19940
19941          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
19942          Reported by Bruce Korb <bkorb@gnu.org>.
19943
19944 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19945
19946         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
19947         to pacify gcc -Wswitch-default.
19948
19949 2006-01-22  Bruno Haible  <bruno@clisp.org>
19950
19951         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
19952         temporary buffer for sprintf, take into account the precision also
19953         for 'd', 'i', 'u', 'o', 'x', 'X'.
19954
19955 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
19956
19957         * modules/argp-tests: New module
19958         * tests/test-argp.c: New file
19959         * tests/test-argp-2.sh: New file
19960
19961 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
19962
19963         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
19964         (__argp_base_name): Removed
19965         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
19966         typo.
19967         (__argp_base_name): Provide macro definition or extern declaration
19968         depending on the configuration
19969
19970 2006-01-20  Simon Josefsson  <jas@extundo.com>
19971
19972         * modules/inet_ntop (Depends-on): Depend on sys_socket.
19973
19974 2006-01-20  Simon Josefsson  <jas@extundo.com>
19975
19976         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
19977
19978 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
19979
19980         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
19981         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
19982         Suggested by Bruno Haible.
19983
19984 2006-01-20  Karl Berry  <karl@gnu.org>
19985
19986         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
19987         until changes propagate, I guess.
19988
19989 2006-01-19  Simon Josefsson  <jas@extundo.com>
19990
19991         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
19992
19993 2006-01-19  Simon Josefsson  <jas@extundo.com>
19994
19995         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
19996
19997 2006-01-19  Simon Josefsson  <jas@extundo.com>
19998
19999         * gnulib-tool: Set check_PROGRAMS.
20000
20001         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
20002         modules/des-tests, modules/gc-arcfour-tests,
20003         modules/gc-arctwo-tests, modules/gc-des-tests,
20004         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
20005         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
20006         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
20007         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
20008         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
20009         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
20010         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
20011         test_*_SOURCES.
20012
20013 2006-01-18  Simon Josefsson  <jas@extundo.com>
20014
20015         * modules/socklen (Depends-on): Depend on sys_socket.
20016
20017 2006-01-18  Simon Josefsson  <jas@extundo.com>
20018
20019         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
20020         modules/des-tests, modules/gc-arcfour-tests,
20021         modules/gc-arctwo-tests, modules/gc-des-tests,
20022         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
20023         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
20024         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
20025         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
20026         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
20027         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
20028         $(EXEEXT) to automake TESTS variable, for mingw32.
20029
20030 2006-01-17  Simon Josefsson  <jas@extundo.com>
20031
20032         * modules/socklen (Include): Need sys/socket.h.
20033
20034 2006-01-17  Bruno Haible  <bruno@clisp.org>
20035
20036         * modules/ssize_t (Include): Add <sys/types.h>.
20037
20038 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20039
20040         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
20041         it's not portable and it doesn't work with cross-compiles.
20042         Problem reported by Bruno Haible.  Fix missing-$ typo in
20043         'test "gl_cv_ignore_unused_libraries" ...' that prevented
20044         -zignore from being used with Sun's C compiler.
20045
20046 2006-01-12  Simon Josefsson  <jas@extundo.com>
20047
20048         * lib/base64.c: Fix warning, reported by Bruno Haible
20049         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
20050
20051 2006-01-12  Bruno Haible  <bruno@clisp.org>
20052
20053         * modules/ldd: New file.
20054         * build-aux/ldd.sh.in: New file.
20055         * MODULES.html.sh (Support for building libraries and executables): Add
20056         ldd.
20057
20058 2006-01-12  Bruno Haible  <bruno@clisp.org>
20059
20060         * m4/ldd.m4: New file.
20061
20062 2006-01-12  Bruno Haible  <bruno@clisp.org>
20063
20064         * gnulib-tool (func_import, func_create_testdir): Don't go into an
20065         endless loop while replacing $auxdir with build-aux.
20066
20067 2006-01-11  Simon Josefsson  <jas@extundo.com>
20068
20069         * lib/stdint_.h (SIZE_MAX): Add missing (.
20070
20071 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20072
20073         Sync from coreutils.
20074         * lib/md5.c: Fix commentary typos.
20075         (alignof, UNALIGNED_P): No need for a GCC-specific version.
20076         * lib/md5.h (__attribute__): Remove; unused.
20077         * lib/sha1.c: Fix commentary to match md5 better.
20078         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
20079         so that we don't need to worry about alignment.  All uses changed.
20080         This merges the 2005-10-28 md5 change into sha1.
20081
20082 2006-01-11  Jim Meyering  <jim@meyering.net>
20083
20084         Sync from coreutils.
20085         * lib/md5.c (OP): Fix spacing.
20086
20087 2006-01-11  Bruno Haible  <bruno@clisp.org>
20088
20089         Ensure automatic ordering between gl_LOCK and gl_ARGP.
20090         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
20091         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
20092
20093 2006-01-11  Bruno Haible  <bruno@clisp.org>
20094
20095         Ensure automatic ordering between gl_LOCK and gl_ARGP.
20096         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
20097         the "early" section as well.
20098
20099 2006-01-11  Bruno Haible  <bruno@clisp.org>
20100
20101         Avoid "ar: no archive members specified" error on MacOS X.
20102         * gnulib-tool (func_modules_add_dummy): New function.
20103         (func_import, func_create_testdir): Invoke it.
20104
20105 2006-01-11  Bruno Haible  <bruno@clisp.org>
20106
20107         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
20108         with $auxdir in AC_CONFIG_FILES statements.
20109
20110 2006-01-11  Bruno Haible  <bruno@clisp.org>
20111
20112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20113         Initialize also noinst_HEADERS to empty.
20114
20115 2006-01-11  Bruno Haible  <bruno@clisp.org>
20116
20117         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
20118         variables.
20119         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
20120         autoreconf.
20121
20122 2006-01-11  Bruno Haible  <bruno@clisp.org>
20123
20124         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
20125         overridable by the user.
20126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20127
20128 2006-01-10  Simon Josefsson  <jas@extundo.com>
20129
20130         * modules/sys_socket: New file.
20131
20132 2006-01-10  Simon Josefsson  <jas@extundo.com>
20133
20134         * m4/sys_socket_h.m4: New file.
20135
20136 2006-01-10  Simon Josefsson  <jas@extundo.com>
20137
20138         * lib/socket_.h: New file.
20139
20140 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20141
20142         * modules/readutmp (Maintainer): Add myself.
20143
20144 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
20147         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
20148         People who are still concerned with buggy memcmp implementations
20149         can invoke gl_FUNC_MEMCMP themselves.
20150
20151 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20152
20153         * lib/regex_internal.h (BITSET_WORD_BITS):
20154         Work around a bug in 64-bit PGC (before version 6.1-2), where the
20155         preprocessor mishandles large unsigned values as if they were signed.
20156         Problem reported by Claudio Fontana in
20157         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
20158
20159 2006-01-10  Jim Meyering  <jim@meyering.net>
20160
20161         Avoid the double-free (first in fts_read, second in fts_close) that
20162         would occur when an `active' directory is made inaccessible (e.g.,
20163         via chmod a-x) during a traversal.
20164         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
20165         before returning.  Reproduce this failure by
20166         mkdir -p a/b; cd a; chmod a-x . b
20167         Reported by Stavros Passas.
20168
20169         Sync from coreutils.
20170         * lib/sha1.c: Tweak grammar in a comment.
20171
20172 2006-01-10  Jim Meyering  <jim@meyering.net>
20173
20174         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
20175         Patch by Joerg Sonnenberger.
20176
20177 2006-01-10  Bruno Haible  <bruno@clisp.org>
20178
20179         * modules/readutmp: Depend on module free.
20180         * modules/strtok_r: Depend on module restrict.
20181
20182 2006-01-10  Bruno Haible  <bruno@clisp.org>
20183
20184         * modules/gettext (configure.ac): Add an invocation of
20185         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
20186
20187 2006-01-10  Bruno Haible  <bruno@clisp.org>
20188
20189         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
20190         Reported by Werner Lemberg <wl@gnu.org>.
20191
20192 2006-01-10  Bruno Haible  <bruno@clisp.org>
20193
20194         * lib/localcharset.c: Update from GNU gettext.
20195
20196 2006-01-10  Bruno Haible  <bruno@clisp.org>
20197
20198         * lib/argp.h (__const): Remove macro. Use const instead.
20199         * lib/argp-fmtstream.h (__const): Likewise.
20200         * lib/glob_.h (__const): Remove macro.
20201         * lib/glob-libc.h: Use const instead of __const.
20202
20203 2006-01-10  Bruno Haible  <bruno@clisp.org>
20204
20205         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
20206         variable.
20207         Needed to avoid an automake error regarding the 'gettext' module.
20208
20209 2006-01-09  Simon Josefsson  <jas@extundo.com>
20210
20211         * modules/inet_ntop (Depends-on): Add restrict.
20212
20213 2006-01-09  Simon Josefsson  <jas@extundo.com>
20214
20215         * modules/gc-rijndael-tests (License): Put under LGPL.
20216
20217         * modules/gc-des-tests (License): Likewise.
20218
20219         * modules/gc-arcfour-tests (License): Likewise.
20220
20221         * modules/gc-arctwo-tests (License): Likewise.
20222
20223         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
20224
20225         * modules/gc-hmac-sha1-tests (Files): Likewise.
20226
20227         * modules/gc-hmac-md5-tests (License): Likewise.
20228
20229         * modules/gc-sha1-tests (License): Likewise.
20230
20231         * modules/gc-md5-tests (License): Likewise.
20232
20233         * modules/gc-md4-tests (License): Likewise.
20234
20235         * modules/gc-md2-tests (License): Likewise.
20236
20237         * modules/gc-tests (License): Likewise.
20238
20239         * modules/des-tests (License): Likewise.
20240
20241         * modules/md4-tests (License): Likewise.
20242
20243         * modules/md2-tests (License): Likewise.
20244
20245 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20246
20247         Sync from coreutils:
20248
20249         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
20250         * modules/lib-ignore: New file.
20251         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
20252         chdir-safer.m4, lchmod.m4.
20253         * modules/openat: Add mkdirat.c, openat-priv.h.
20254
20255 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20256
20257         Sync from coreutils.
20258         * m4/lib-ignore.m4: New file.
20259         * m4/lchmod.m4: New file.
20260
20261 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         Sync from coreutils.
20264         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
20265         for write access: POSIX says that must fail.
20266         * lib/fts.c (diropen): Likewise.
20267         * lib/save-cwd.c (save_cwd): Likewise.
20268         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
20269         well, for minor improvements on hosts that lack O_DIRECTORY.
20270         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
20271         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
20272         Fall back on chown if open failed with EACCES.
20273
20274         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
20275         Report an error at compile-time if only a 1-second nominal clock
20276         resolution is found.
20277
20278         * lib/lchmod.h: New file.
20279         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
20280         (make_dir_parents): Use lchown rather than chown, and
20281         lchmod rather than chmod.
20282
20283         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
20284         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
20285         "proc" reported by n0dalus.
20286
20287         * lib/mountlist.c: Include <limits.h>.
20288         (dev_from_mount_options)
20289         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
20290         New function.  It no longer assumes "dev=" has the System V meaning
20291         on Linux (since it doesn't).  It also parses "dev=" more carefully.
20292         (read_file_system_list)
20293         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
20294         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
20295         dev= in that case.
20296
20297         * lib/posixtm.h (PDS_PRE_2000): New macro.
20298         * lib/posixtm.c (year): Arg is now syntax_bits rather than
20299         allow_century.  All usages changed.  Reject dates outside the range
20300         1969-1999 if PDS_PRE_2000 is used.
20301
20302 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20303
20304         Sync from coreutils.
20305         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
20306         (Time of day items): Mention the possibility of leap seconds.
20307         Problem reported by Dr. David Alan Gilbert.
20308
20309 2006-01-09  Jim Meyering  <jim@meyering.net>
20310
20311         Sync from coreutils.
20312
20313         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
20314
20315         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
20316
20317         * lib/modechange.c (mode_compile): Reject an invalid mode string
20318         that starts with an octal digit.  From Andreas Gruenbacher.
20319
20320         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
20321         and dup to open_safer and dup_safer, respectively.
20322         (openat_permissive): Fix typo in comment.
20323
20324         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
20325         "gettext.h"; either no longer needed or are guaranteed by openat.h.
20326         (_): Remove; no longer needed.
20327         (openat): Renamed from rpl_openat; no need for rpl_openat
20328         since openat.h renames openat for us.
20329         Replace most of the body with a call to openat_permissive,
20330         to avoid duplicate code.
20331         Port to (probably hypothetical) environments were mode_t is
20332         wider than int.
20333         (openat_permissive): Require mode arg, so that we can check
20334         types better.  Put it just after flags.  Change cwd failure
20335         indicator from pointer-to-bool to pointer-to-errno-value.
20336         All callers changed.
20337         Invoke openat_save_fail and/or openat_restore_fail if
20338         cwd_errno is null, so that openat can call us.
20339         (openat_permissive, fdopendir, fstatat, unlinkat):
20340         Simplify errno handling to avoid some duplicate code,
20341         as it's OK to set errno on success.
20342         * lib/openat.h: Revamp code so that function macros depend on
20343         __OPENAT_PREFIX only, not also on AT_FDCWD.
20344         (openat_ro): Remove.  Caller changed to use openat_permissive.
20345         (openat_permissive): Now a macro, if not a function.
20346         (openat_restore_fail, openat_save_fail): Now always functions,
20347         since mkdirat needs them even if __OPENAT_PREFIX is defined.
20348
20349         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
20350         and openat.c.
20351         * lib/mkdirat.c: Include openat-priv.h.
20352         Remove definitions of macros defined therein.
20353         * lib/openat.c: Likewise.
20354
20355         * lib/mkdirat.c (mkdirat): New file and function.
20356         * lib/openat.h (mkdirat): Declare.
20357
20358         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
20359
20360         * lib/openat.h (openat_permissive): Declare.
20361         (openat_ro): Define.
20362
20363         * lib/openat.c (EXPECTED_ERRNO): New macro.
20364         (openat_permissive): New function -- used in remove.c rewrite.
20365         (all functions): Set errno just before returning, only if there
20366         was an actual failure.
20367         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
20368
20369         Emulate openat-family functions using Linux's procfs, if possible.
20370         Idea and some code based on Ulrich Drepper's glibc changes.
20371
20372         * lib/openat.c: (BUILD_PROC_NAME): New macro.
20373         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
20374         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
20375         before falling back on save_cwd and restore_cwd.
20376         (fdopendir, fstatat, unlinkat): Likewise.
20377
20378         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
20379         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
20380
20381         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
20382         as second argument to va_arg.  Otherwise, some versions of gcc
20383         warn that `if this code is reached, the program will abort'.
20384
20385 2006-01-09  Jim Meyering  <jim@meyering.net>
20386
20387         Sync from coreutils.
20388         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
20389         Require openat-priv.h.
20390
20391 2006-01-09  Bruno Haible  <bruno@clisp.org>
20392
20393         * modules/strnlen (Include): Use strnlen.h.
20394
20395 2006-01-09  Bruno Haible  <bruno@clisp.org>
20396
20397         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
20398
20399 2006-01-09  Bruno Haible  <bruno@clisp.org>
20400
20401         * lib/sysexit_.h (EX_OK): New macro.
20402         Suggested by Martin Lambers <marlam@marlam.de>.
20403
20404 2006-01-09  Bruno Haible  <bruno@clisp.org>
20405
20406         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
20407         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
20408
20409 2006-01-09  Bruno Haible  <bruno@clisp.org>
20410
20411         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
20412         numbers.
20413
20414 2006-01-09  Bruno Haible  <bruno@clisp.org>
20415
20416         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
20417         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
20418         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
20419         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
20420
20421 2006-01-09  Bruno Haible  <bruno@clisp.org>
20422
20423         * build-aux/javacomp.sh.in: New file, moved from lib/.
20424         * modules/javacomp-script (Files): Update.
20425         (configure.ac): Add AC_CONFIG_FILES invocation.
20426         (EXTRA_DIST): Remove variable.
20427
20428         * build-aux/javaexec.sh.in: New file, moved from lib/.
20429         * modules/javaexec (Files): Update.
20430         (configure.ac): Add AC_CONFIG_FILES invocation.
20431         (EXTRA_DIST): Remove javaexec.sh.in.
20432
20433         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
20434         * modules/csharpcomp-script (Files): Update.
20435         (configure.ac): Add AC_CONFIG_FILES invocation.
20436         (EXTRA_DIST): Remove variable.
20437
20438         * build-aux/csharpexec.sh.in: New file, moved from lib/.
20439         * modules/csharpexec (Files): Update.
20440         (configure.ac): Add AC_CONFIG_FILES invocation.
20441         (EXTRA_DIST): Remove csharpexec.sh.in.
20442
20443 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
20444
20445         Sync from coreutils.
20446
20447         Add POSIX ACL support
20448         * lib/acl.h (copy_acl, set_acl): Add declarations.
20449         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
20450         systems other than Linux.
20451         (chmod_or_fchmod): New function: use fchmod when possible,
20452         and chmod otherwise.
20453         (file_has_acl): Add a POSIX ACL implementation, with a
20454         Linux-specific subcase.
20455         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
20456         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
20457         acls are unsupported.
20458         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
20459         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
20460         are unsupported.
20461
20462 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
20463
20464         Sync from coreutils.
20465         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
20466
20467 2006-01-07  Bruno Haible  <bruno@clisp.org>
20468
20469         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
20470         gl_EARLY.
20471
20472 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20473
20474         * lib/strftime.c (tzname): Don't declare if it is already #defined.
20475         Problem reported for Mingw by Mark Junker.
20476
20477 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20478
20479         * README: Gnulib normally doesn't generate a tarball.
20480
20481 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20482
20483         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
20484         long int, not int, for nanosecond counts, so that people who are
20485         used to POSIX struct timespec won't be surprised.  Reported by Jim
20486         Meyering.
20487
20488 2005-12-28  Bruno Haible  <bruno@clisp.org>
20489
20490         * build-aux/config.rpath: Update from GNU gettext.
20491
20492 2005-12-16  Jim Meyering  <jim@meyering.net>
20493
20494         * modules/fprintftime: New module.
20495         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
20496
20497 2005-12-16  Jim Meyering  <jim@meyering.net>
20498
20499         * m4/fprintftime.m4: New file.
20500
20501 2005-12-16  Jim Meyering  <jim@meyering.net>
20502
20503         * lib/fprintftime.c, lib/fprintftime.h: New files.
20504
20505 2005-12-15  Simon Josefsson  <jas@extundo.com>
20506
20507         * modules/socklen (configure.ac): Fix M4 macro name, to align with
20508         new m4/socklen.m4.
20509
20510 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20511
20512         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
20513         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
20514
20515 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
20516
20517         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
20518         * lib/argp-help.c (fill_in_uparams): Check if the constructed
20519         struct uparams is valid. Fall back to the default values if it is
20520         not.
20521
20522 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20523
20524         * modules/argp (Files): Add argp-pin.c
20525         (Depends-on): dirname
20526         (lib_SOURCES): Add argp-pin.c
20527
20528 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20529
20530         * m4/argp.m4:  Check if program_invocation_name and
20531         program_invocation_short_name are declared and define appropriate
20532         macros if they are not.
20533
20534 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20535
20536         * lib/argp-help.c (__argp_base_name): New function
20537         (__argp_short_program_name): Rewrite using __argp_base_name
20538         * lib/argp-namefrob.h: Define program_invocation_name and
20539         program_invocation_short_name if requested
20540         (__argp_base_name): Add prototype
20541         * lib/argp-parse.c (argp_def): Use gettext wrappers
20542         (argp_default_parser): Use __argp_base_name
20543         * lib/argp-pin.c: New file. Defines program_invocation_name and
20544         program_invocation_short_name on systems that lack them.
20545
20546 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20547
20548         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
20549         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
20550         porting problem reported by Georg Schwarz in
20551         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
20552
20553 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20554
20555         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
20556         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
20557         porting problem reported by Georg Schwarz in
20558         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
20559
20560 2005-12-05  Bruno Haible  <bruno@clisp.org>
20561
20562         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
20563         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
20564         Reported by Mark Junker <mjscod@gmx.de>.
20565
20566 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
20567
20568         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
20569         Use implementation from Albert Chin, with some
20570         comments/corrections by Stepan Kasal and myself.
20571
20572 2005-12-02  Bruno Haible  <bruno@clisp.org>
20573
20574         * gnulib-tool (func_import): Accept GPLed build tool modules when
20575         --lgpl is given.
20576         * modules/csharpcomp-script: New file.
20577         * modules/csharpcomp: Depend on it.
20578         * modules/javacomp-script: New file.
20579         * modules/javacomp: Depend on it.
20580         Suggested by Simon Josefsson.
20581
20582 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20583
20584         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
20585         statement, to work around an HP-UX 10.20 compiler bug reported by
20586         Peter O'Gorman.
20587
20588 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20589
20590         * modules/savedir (Depends-on): Add openat.
20591
20592 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20593
20594         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
20595         (uintmax_t) [defined uintmax_t]: Do not declare.
20596         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
20597         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
20598         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
20599         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
20600         sake of portability to weird hosts that C allows (though we don't
20601         know of any practical examples).
20602
20603         * lib/savedir.h (fdsavedir): New decl.
20604         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
20605         contains most of the former guts of savedir.
20606         (savedir): Use savedirstream.
20607         Include "openat.h".
20608
20609 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20610
20611         * modules/obstack (Files): Add m4/ulonglong.m4.
20612         Problem reported by Davide Angelocola.
20613
20614 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20615
20616         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
20617         coreutils no longer futzes with rounding modes.
20618
20619 2005-11-14  Jim Meyering  <jim@meyering.net>
20620
20621         * lib/mkstemp-safer.c: Include <config.h>, required for possible
20622         replacement of mkstemp.
20623
20624 2005-11-10  Simon Josefsson  <jas@extundo.com>
20625
20626         * lib/readline.c: Remove EOL.
20627
20628 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         * modules/gethrxtime (Depends-on): Add gettime.
20631
20632 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20633
20634         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
20635         or gettimeofday; no longer needed.
20636
20637 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
20638
20639         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
20640         time business.
20641         (gethrxtime) [! (HAVE_NANOUPTIME
20642         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
20643         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
20644         our own approximation.
20645
20646 2005-11-08  Eric Blake  <ebb9@byu.net>
20647
20648         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
20649
20650 2005-11-08  Eric Blake  <ebb9@byu.net>
20651
20652         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
20653
20654 2005-11-04  Bruno Haible  <bruno@clisp.org>
20655
20656         * gnulib-tool: Implement --update mode.
20657
20658 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20659
20660         Fix porting problem reported by Theodoros V. Kalamatianos.
20661         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
20662         Don't assume that futimes failing means we must fail.
20663
20664 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20665
20666         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
20667         variables to suggest the intended function of the PATH_MAX check.
20668
20669 2005-10-30  Kean Johnston  <jkj@sco.com>
20670
20671         Trivial changes to support SCO systems.
20672         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
20673         as PATH_MAX.
20674         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
20675         where __ptr is null when no I/O is pending.
20676
20677 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20678
20679         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
20680         leave errno alone.  Problem reported by Dmitry V. Levin.
20681
20682 2005-10-28  Simon Josefsson  <jas@extundo.com>
20683
20684         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
20685         Test more.
20686
20687         * tests/test-gc-md2.c, tests/test-md2.c: New files.
20688
20689         * modules/md2, modules/md2-tests: New files.
20690
20691 2005-10-28  Simon Josefsson  <jas@extundo.com>
20692
20693         * m4/inet_ntop.m4: More tests.
20694
20695         * m4/gc-md2.m4, md2.m4: New file.
20696
20697 2005-10-28  Simon Josefsson  <jas@extundo.com>
20698
20699         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
20700         "restrict" keywords, as per POSIX.  Protect the function
20701         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
20702         Don't use K&R prototypes.  Check the sprintf return values.
20703         Re-define EAFNOSUPPORT if not present.  Indent.
20704
20705         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
20706         suggested by Bruno Haible <bruno@clisp.org>.
20707
20708         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
20709
20710         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
20711
20712         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
20713         libgcrypt).
20714
20715         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
20716
20717         * lib/md2.h, lib/md2.c: New files.
20718
20719 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
20720
20721         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
20722         errno alone.  Problem reported by Frederic Jolliton.
20723
20724 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
20725
20726         * modules/verify (License): Change from GPL to LGPL.  This is a
20727         tiny module and there are apparently near-equivalents that are
20728         under the BSD license.
20729
20730 2005-10-24  Simon Josefsson  <jas@extundo.com>
20731
20732         * modules/sha1: Relicense to LGPL.
20733
20734 2005-10-24  Simon Josefsson  <jas@extundo.com>
20735
20736         * lib/md4.h: Shrink buffer size, now that we changed the type.
20737
20738 2005-10-23  Simon Josefsson  <jas@extundo.com>
20739
20740         * gnulib-tool (func_import): Fix --tests-base.
20741
20742 2005-10-22  Simon Josefsson  <jas@extundo.com>
20743
20744         * modules/arcfour (Depends-on): Need stdint.
20745
20746 2005-10-22  Simon Josefsson  <jas@extundo.com>
20747
20748         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
20749         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
20750
20751 2005-10-22  Simon Josefsson  <jas@extundo.com>
20752
20753         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
20754         suggested by Bruno Haible <bruno@clisp.org>.
20755
20756 2005-10-22  Simon Josefsson  <jas@extundo.com>
20757
20758         * lib/crc.h: Include stddef.h, for size_t.
20759
20760 2005-10-22  Simon Josefsson  <jas@extundo.com>
20761
20762         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
20763         arcfour_context struct (simplify test vector testing in GNU
20764         Shishi).
20765
20766 2005-10-21  Simon Josefsson  <jas@extundo.com>
20767
20768         * modules/des, modules/des-tests: New files.
20769
20770         * modules/gc-des, modules/gc-des-tests: New files.
20771
20772         * tests/test-des.c, tests/test-gc-des.c: New file.
20773
20774 2005-10-21  Simon Josefsson  <jas@extundo.com>
20775
20776         * modules/arctwo, modules/arctwo-tests: New files.
20777
20778         * tests/test-arctwo.c: New file.
20779
20780         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
20781
20782         * tests/test-gc-arctwo.c: New file.
20783
20784 2005-10-21  Simon Josefsson  <jas@extundo.com>
20785
20786         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
20787         Bruno Haible <bruno@clisp.org>.
20788
20789         * m4/gc-des.m4: New file.
20790
20791 2005-10-21  Simon Josefsson  <jas@extundo.com>
20792
20793         * m4/arctwo.m4: New file.
20794
20795         * m4/gc-arctwo.m4: New file.
20796
20797 2005-10-21  Simon Josefsson  <jas@extundo.com>
20798
20799         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
20800         block.
20801
20802 2005-10-21  Simon Josefsson  <jas@extundo.com>
20803
20804         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
20805         <bruno@clisp.org>.
20806
20807         * lib/hmac-sha1.c (hmac_sha1): Likewise.
20808
20809         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
20810         Bruno Haible <bruno@clisp.org>.
20811
20812         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
20813         <bruno@clisp.org>.
20814
20815 2005-10-21  Simon Josefsson  <jas@extundo.com>
20816
20817         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
20818
20819 2005-10-21  Simon Josefsson  <jas@extundo.com>
20820
20821         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
20822
20823 2005-10-21  Simon Josefsson  <jas@extundo.com>
20824
20825         * lib/des.h, lib/des.c: New files.
20826
20827         * lib/gc-gnulib.c: Support DES.c
20828
20829 2005-10-21  Simon Josefsson  <jas@extundo.com>
20830
20831         * lib/arctwo.h, lib/arctwo.c: New files.
20832
20833         * lib/gc-gnulib.c: Support ARCTWO.
20834
20835 2005-10-21  Simon Josefsson  <jas@extundo.com>
20836
20837         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
20838         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20839
20840 2005-10-21  Simon Josefsson  <jas@extundo.com>
20841
20842         * gnulib-tool (func_import, func_create_testdir): Define automake
20843         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
20844         Makefile.am snippet),
20845         suggested by Bruno Haible <bruno@clisp.org>.
20846
20847         * modules/gc (Makefile.am): Use it.
20848
20849 2005-10-21  Bruno Haible  <bruno@clisp.org>
20850
20851         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
20852         patch.
20853
20854 2005-10-19  Simon Josefsson  <jas@extundo.com>
20855
20856         * tests/test-gc-rijndael.c: New file.
20857
20858         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
20859
20860 2005-10-19  Simon Josefsson  <jas@extundo.com>
20861
20862         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
20863         interface too.
20864
20865 2005-10-19  Simon Josefsson  <jas@extundo.com>
20866
20867         * tests/test-gc-arcfour.c: New file.
20868
20869         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
20870
20871 2005-10-19  Simon Josefsson  <jas@extundo.com>
20872
20873         * modules/gc-md4, modules/gc-md4-tests: New file.
20874
20875         * tests/test-gc-md4.c: New file.
20876
20877 2005-10-19  Simon Josefsson  <jas@extundo.com>
20878
20879         * m4/gc-md4.m4: New file.
20880
20881 2005-10-19  Simon Josefsson  <jas@extundo.com>
20882
20883         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
20884         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
20885         <kasal@ucw.cz>.
20886
20887 2005-10-19  Simon Josefsson  <jas@extundo.com>
20888
20889         * m4/gc-arcfour.m4: New file.
20890
20891         * m4/gc-rijndael.m4: New file.
20892
20893 2005-10-19  Simon Josefsson  <jas@extundo.com>
20894
20895         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
20896
20897 2005-10-19  Simon Josefsson  <jas@extundo.com>
20898
20899         * lib/gc-gnulib.c: Support ARCFOUR.
20900
20901 2005-10-19  Simon Josefsson  <jas@extundo.com>
20902
20903         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
20904         support.
20905
20906         * lib/gc.h: Add ECB enum type.
20907
20908         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
20909
20910 2005-10-18  Simon Josefsson  <jas@extundo.com>
20911
20912         * tests/test-md5.c: New file.
20913
20914         * modules/md5-tests: New file.
20915
20916 2005-10-18  Simon Josefsson  <jas@extundo.com>
20917
20918         * tests/test-md4.c: New file.
20919
20920         * modules/md4, modules/md4-tests: New files.
20921
20922 2005-10-18  Simon Josefsson  <jas@extundo.com>
20923
20924         * m4/md4.m4: New file.
20925
20926 2005-10-18  Simon Josefsson  <jas@extundo.com>
20927
20928         * lib/md4.h, lib/md4.c: New files, based on md5.?.
20929
20930 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
20931
20932         * gnulib-tool (func_create_testdir): Omit the second check whether
20933         BUILT_SOURCES in nonempty.
20934
20935 2005-10-17  Simon Josefsson  <jas@extundo.com>
20936
20937         * tests/test-rijndael.c: New file.
20938
20939 2005-10-17  Simon Josefsson  <jas@extundo.com>
20940
20941         * modules/sha1: Depend on stdint instead of md5.
20942
20943         * modules/md5: Depend on stdint, remove uint32_t.
20944
20945 2005-10-17  Simon Josefsson  <jas@extundo.com>
20946
20947         * modules/gc-sha1-tests: New file.
20948
20949         * tests/test-gc-sha1.c: New file.
20950
20951 2005-10-17  Simon Josefsson  <jas@extundo.com>
20952
20953         * m4/md5.m4: Remove call to uint32_t.m4.
20954
20955 2005-10-17  Simon Josefsson  <jas@extundo.com>
20956
20957         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
20958
20959         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
20960         md5.h.
20961
20962         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
20963
20964         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
20965
20966 2005-10-17  Simon Josefsson  <jas@extundo.com>
20967
20968         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
20969
20970 2005-10-17  Simon Josefsson  <jas@extundo.com>
20971
20972         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
20973
20974 2005-10-17  Simon Josefsson  <jas@extundo.com>
20975
20976         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
20977
20978         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
20979
20980 2005-10-17  Bruno Haible  <bruno@clisp.org>
20981
20982         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
20983         that it can also be used in a test.
20984
20985 2005-10-16  Bruno Haible  <bruno@clisp.org>
20986
20987         * gnulib-tool (func_emit_tests_Makefile_am): Also define
20988         TESTS_ENVIRONMENT, so that individual tests can augment it.
20989
20990         * gnulib-tool (func_create_testdir): Use an intermediate target for
20991         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
20992         macros, like $(ALLOCA_H), which cannot be passed through the command
20993         line.
20994
20995 2005-10-15  Simon Josefsson  <jas@extundo.com>
20996
20997         * modules/rijndael-tests: New file.
20998
20999         * modules/rijndael: New file.
21000
21001 2005-10-15  Simon Josefsson  <jas@extundo.com>
21002
21003         * m4/rijndael.m4: New file.
21004
21005 2005-10-15  Simon Josefsson  <jas@extundo.com>
21006
21007         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
21008
21009         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
21010
21011 2005-10-14  Simon Josefsson  <jas@extundo.com>
21012
21013         * tests/test-arcfour.c: New file.
21014
21015         * modules/arcfour, modules/arcfour-tests: New files.
21016
21017 2005-10-14  Simon Josefsson  <jas@extundo.com>
21018
21019         * m4/arcfour.m4: New file.
21020
21021 2005-10-14  Simon Josefsson  <jas@extundo.com>
21022
21023         * lib/arcfour.h, lib/arcfour.c: New files.
21024
21025 2005-10-14  Roland McGrath  <roland@redhat.com>
21026
21027         Import from libc.  [BZ #1331]
21028         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
21029         macro argument.
21030         Reported by Matej Vela <vela@debian.org>.
21031
21032 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21033
21034         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
21035         include <wchar.h>; no longer needed.
21036
21037 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21038
21039         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
21040
21041 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
21042         and  Ulrich Drepper  <drepper@redhat.com>
21043
21044         Import from libc.
21045         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
21046         instead of inline stream orientation test and two separate
21047         function calls.  Pay no attention to USE_IN_LIBIO.
21048
21049 2005-10-13  Simon Josefsson  <jas@extundo.com>
21050
21051         * modules/gc-hmac-md5-tests: New file.
21052
21053         * tests/test-gc-hmac-sha1.c: New file.
21054
21055         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
21056
21057         * modules/gc-hmac-md5-tests: New file.
21058
21059         * tests/test-gc-md5.c: New file.
21060
21061         * modules/gc-md5-tests: New file.
21062
21063 2005-10-13  Simon Josefsson  <jas@extundo.com>
21064
21065         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
21066         Move memory allocation outside of loop.
21067
21068 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
21071         intermediate directory is in a read-only file system.  Problem
21072         reported by Eric Blake.
21073
21074 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
21075
21076         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
21077
21078 2005-10-12  Simon Josefsson  <jas@extundo.com>
21079
21080         * tests/test-hmac-sha1.c: New file.
21081
21082         * modules/hmac-sha1-tests: New file.
21083
21084         * modules/hmac-sha1: New file.
21085
21086 2005-10-12  Simon Josefsson  <jas@extundo.com>
21087
21088         * modules/gc-sha1: New file.
21089
21090 2005-10-12  Simon Josefsson  <jas@extundo.com>
21091
21092         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
21093
21094         * tests/test-gc-pbkdf2-sha1.c: New file.
21095
21096 2005-10-12  Simon Josefsson  <jas@extundo.com>
21097
21098         * modules/gc-md5, modules/gc-hmac-md5: New files.
21099
21100         * modules/gc (Files): Remove md5, memxor and hmac files.
21101
21102 2005-10-12  Simon Josefsson  <jas@extundo.com>
21103
21104         * m4/gc-pbkdf2-sha1.m4: New file.
21105
21106         * m4/gc-hmac-sha1.m4: New file.
21107
21108         * m4/gc-sha1: New file.
21109
21110         * m4/hmac-sha1.m4: New file.
21111
21112 2005-10-12  Simon Josefsson  <jas@extundo.com>
21113
21114         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
21115
21116         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
21117
21118 2005-10-12  Simon Josefsson  <jas@extundo.com>
21119
21120         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
21121         suggested by Bruno Haible <bruno@clisp.org>.
21122
21123 2005-10-12  Simon Josefsson  <jas@extundo.com>
21124
21125         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
21126
21127 2005-10-12  Simon Josefsson  <jas@extundo.com>
21128
21129         * lib/gc-pbkdf2-sha1.c: New file.
21130
21131         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
21132
21133 2005-10-12  Simon Josefsson  <jas@extundo.com>
21134
21135         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
21136
21137         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
21138
21139 2005-10-12  Simon Josefsson  <jas@extundo.com>
21140
21141         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
21142         GC_USE_HMAC_MD5, respectively.
21143
21144         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
21145         (gc_md5): Fix typo.
21146
21147         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
21148
21149         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
21150
21151         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
21152
21153 2005-10-12  Bruno Haible  <bruno@clisp.org>
21154
21155         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
21156         Reported by Stepan Kasal <kasal@ucw.cz>.
21157
21158 2005-10-11  Simon Josefsson  <jas@extundo.com>
21159
21160         * tests/test-crc.c: New file.
21161
21162         * modules/crc, modules/crc-tests: New files.
21163
21164 2005-10-11  Simon Josefsson  <jas@extundo.com>
21165
21166         * m4/crc.m4: New file.
21167
21168 2005-10-11  Simon Josefsson  <jas@extundo.com>
21169
21170         * lib/gc.h: Add gc_hash and gc_hash_buffer.
21171
21172         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
21173
21174         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
21175
21176 2005-10-11  Simon Josefsson  <jas@extundo.com>
21177
21178         * lib/crc.h, lib/crc.c: New files.
21179
21180         * lib/gc.h (gc_hash_buffer): Add doc.
21181
21182 2005-10-11  Bruno Haible  <bruno@clisp.org>
21183
21184         * modules/c-strcasestr: New file.
21185         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
21186
21187 2005-10-11  Bruno Haible  <bruno@clisp.org>
21188
21189         * modules/c-strcase: New file.
21190         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
21191
21192 2005-10-11  Bruno Haible  <bruno@clisp.org>
21193
21194         * lib/strcasecmp.c: Include limits.h.
21195         (strcasecmp): Avoid integer overflow on exotic platforms.
21196         * lib/strncasecmp.c: Include limits.h.
21197         (strncasecmp): Avoid integer overflow on exotic platforms.
21198         Reported by Paul Eggert.
21199
21200 2005-10-11  Bruno Haible  <bruno@clisp.org>
21201
21202         * lib/c-strcasestr.h: New file, from GNU gettext.
21203         * lib/c-strcasestr.c: New file, from GNU gettext.
21204
21205 2005-10-11  Bruno Haible  <bruno@clisp.org>
21206
21207         * lib/c-strcase.h: New file, from GNU gettext.
21208         * lib/c-strcasecmp.c: New file, from GNU gettext.
21209         * lib/c-strncasecmp.c: New file, from GNU gettext.
21210
21211 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21212
21213         * modules/mempcpy (License): GPL -> LGPL.
21214         * modules/strchrnul (License): Likewise.
21215         * modules/sysexits (License): Likewise.
21216
21217 2005-10-08  Simon Josefsson  <jas@extundo.com>
21218
21219         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
21220
21221 2005-10-07  Simon Josefsson  <jas@extundo.com>
21222
21223         * m4/memxor.m4: Remove gl_C_RESTRICT call.
21224
21225 2005-10-06  Simon Josefsson  <jas@extundo.com>
21226
21227         * tests/test-hmac-md5.c: New file.
21228
21229         * modules/hmac-md5-tests: New file.
21230
21231         * modules/hmac-md5: New file.
21232
21233 2005-10-06  Simon Josefsson  <jas@extundo.com>
21234
21235         * m4/hmac-md5.m4: New file.
21236
21237         * m4/memxor.m4: Require gl_C_RESTRICT.
21238
21239 2005-10-06  Simon Josefsson  <jas@extundo.com>
21240
21241         * lib/memxor.c (memxor): Avoid casts and warnings.
21242
21243 2005-10-06  Simon Josefsson  <jas@extundo.com>
21244
21245         * lib/hmac-md5.c: New file.
21246
21247         * lib/hmac.h: New file.
21248
21249 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
21250
21251         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
21252         promotes to int, not unsigned int, to catch the AIX 5.3
21253         compiler bug.
21254
21255 2005-10-05  Simon Josefsson  <jas@extundo.com>
21256
21257         * modules/memxor: New file.
21258
21259         * modules/iconv (Files): Move config.rpath to havelib, it is used
21260         there.
21261
21262         * modules/havelib (Files): Add config.rpath.
21263
21264 2005-10-05  Simon Josefsson  <jas@extundo.com>
21265
21266         * m4/memxor.m4: New file.
21267
21268 2005-10-05  Simon Josefsson  <jas@extundo.com>
21269
21270         * lib/memxor.c (memxor): Fix compiler error.
21271
21272         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
21273         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
21274
21275         * lib/memxor.h, lib/memxor.c: New files.
21276
21277         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
21278         we assume all systems have it, suggested by Jim Meyering
21279         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
21280         any systems lack sys/socket.h; mingw32 is known to lack it, but we
21281         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
21282         same reasons.
21283
21284 2005-10-05  Simon Josefsson  <jas@extundo.com>
21285
21286         * config/srclist.txt: Add glibc bug 1423 for md5.h.
21287
21288 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21289
21290         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
21291         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
21292         needed, since the source code now assumes these .h files.
21293
21294 2005-10-05  Derek Price  <derek@ximbiot.com>
21295
21296         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
21297
21298 2005-10-05  Bruno Haible  <bruno@clisp.org>
21299
21300         * modules/stdint (License): Change to LGPL.
21301
21302 2005-10-04  Simon Josefsson  <jas@extundo.com>
21303
21304         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
21305         D. Baushke" <mdb@gnu.org>.
21306
21307 2005-10-04  Bruno Haible  <bruno@clisp.org>
21308
21309         * lib/verify.h (verify_true): Provide alternative definition for C++.
21310
21311 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21312
21313         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
21314         (SSIZE_MAX): New macro, if not already defined.
21315         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
21316         than 2 GiB.
21317
21318 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21319
21320         Sync from coreutils.
21321         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
21322         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
21323         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
21324         ULLONG_MAX doesn't work with 2.7.2.1.
21325
21326 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21327
21328         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
21329         From Ben Pfaff.
21330
21331         * modules/exclude (Depends-on): Depend on verify.
21332         * modules/strtoimax (Depends-on): Likewise.
21333         * modules/utimecmp (Depends-on): Likewise.
21334
21335 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21336
21337         * lib/exclude.c: Include verify.h.
21338         (verify): Remove.  All callers changed to use verify.h's version.
21339         * lib/strtoimax.c: Likewise.
21340         * lib/utimecmp.c: Likewis.e
21341
21342         Sync from coreutils.
21343         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
21344         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
21345         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
21346         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
21347         bother returning ENOSYS if settimeofday or stime fails; just let
21348         them return whatever errno they want to return.
21349         * lib/utimens.c: Include unistd.h, for dup2.
21350         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
21351         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
21352
21353 2005-10-02  Jim Meyering  <jim@meyering.net>
21354
21355         Sync from coreutils.
21356         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
21357         from glibc-2.2.5 that fails for read-only files.
21358
21359 2005-10-02  Jim Meyering  <jim@meyering.net>
21360
21361         Sync from coreutils.
21362         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
21363         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
21364         `#if HAVE_CONFIG_H'.
21365         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
21366         Remove AT_FDCWD test.
21367         Do not consume the fd unless successful.
21368         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
21369         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
21370         block, so that we don't even try to compile it if settimeofday is
21371         available.  This works around a compilation failure on OSF1 V5.1,
21372         due to stime requiring a `long int*' while tv_sec is `int'.
21373
21374 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
21375
21376         Sync from coreutils.
21377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
21378         against `yes', rather than just testing for nonempty.
21379
21380 2005-10-01  Simon Josefsson  <jas@extundo.com>
21381
21382         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
21383         and Darwin.
21384
21385         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
21386         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
21387         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
21388         freeaddrinfo and gai_strerror are declared by the POSIX headers.
21389         Check if struct addrinfo is declared.
21390
21391 2005-10-01  Simon Josefsson  <jas@extundo.com>
21392
21393         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
21394         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
21395         AI_* and EAI_* definitions.  Protect function declarations.
21396
21397 2005-10-01  Jim Meyering  <jim@meyering.net>
21398
21399         Sync from coreutils.
21400
21401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
21402         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
21403         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
21404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
21405         in the inet and nsl libraries.  Required on Solaris 5.7.
21406
21407 2005-10-01  Jim Meyering  <jim@meyering.net>
21408
21409         Sync from coreutils.
21410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
21411         in the inet and nsl libraries.  Required on Solaris 5.7.
21412
21413 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
21414
21415         * lib/getdelim.c (getdelim): Remove unused variables.
21416
21417 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
21418
21419         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
21420         so that the code works even with ancient cpp.  Portability problem
21421         with GCC 2.7.2.1 reported by Thomas M.Ott.
21422
21423 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
21424
21425         * modules/regex (Depends-on): Add strcase.
21426
21427         * modules/gethostname (Licence): Change from GPL to LGPL, since
21428         gethostname.c is a trivial implementation of a standard library
21429         function.
21430         * modules/poll (License): Change from GPL to LGPL, since it's
21431         derived from LGPL code.
21432
21433 2005-09-27  Jim Meyering  <jim@meyering.net>
21434
21435         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
21436         HAVE_CONFIG_H.
21437
21438         * lib/intprops.h (signed_type_or_expr__): Define.
21439         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
21440         for unsigned types.
21441
21442 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21443
21444         * lib/verify.h (verify_expr): Remove, replacing with:
21445         (verify_true): New macro that returns true instead of void.
21446         (verify_type__): Remove.
21447         (verify): Use verify_true rather than verify_type__.
21448
21449 2005-09-26  Bruno Haible  <bruno@clisp.org>
21450
21451         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
21452         is necessary.
21453         (lib_SOURCES): Remove mbchar.c.
21454         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
21455         (Files): Add m4/mbrtowc.m4.
21456         * modules/mbiter: Likewise.
21457         * modules/mbuiter: Likewise.
21458
21459 2005-09-26  Bruno Haible  <bruno@clisp.org>
21460
21461         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
21462         compile mbchar.c if they are not both present.
21463         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
21464         * m4/mbiter.m4 (gl_MBITER): Likewise.
21465         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
21466         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
21467         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
21468
21469 2005-09-25  Jim Meyering  <jim@meyering.net>
21470
21471         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
21472         also uses socklen_t.
21473
21474 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21475
21476         * lib/utimens.c (ENOSYS): Define if not already defined.
21477         (futimens): Support having a null PATH if the file descriptor
21478         is nonnegative.
21479
21480         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
21481         Remove.
21482         (__attribute): Define to empty unless GCC 3.1 or later.
21483         This works around a core dump on OpenBSD 3.4, which has GCC
21484         2.95.3, which dumps core when given __attribute__(()).  It also
21485         simplifies other tests, since we really don't want to bother with
21486         worrying about which ancient version of GCC supported what.
21487         Original problem reported by Yoann Vandoorselaere, with part of
21488         the fix suggested by Derek Price.
21489
21490 2005-09-24  Jim Meyering  <jim@meyering.net>
21491
21492         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
21493         so we can once again use a positive bitfield width of 1 -- now we
21494         don't have to explain why we were using a bitfield width of 2.
21495
21496 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
21497
21498         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
21499         and similarly for the other external symbols.  Problem reported
21500         by James Gallager.
21501
21502         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
21503         bug reported by Jim Meyering.
21504
21505         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
21506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
21507         not needed, since socklen is a prerequisite module.
21508
21509 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
21510
21511         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
21512         Problem reported by Eric Blake.
21513         (getaddrinfo): Initialize se so that it's not garbage.
21514         Redo internal storage allocation so that it doesn't make unportable
21515         assumptions about alignment.
21516         Fix a memory leak.
21517
21518         * lib/utimens.c (futimens): Use futimesat if available.
21519         Prefer it to futimes since it doesn't have the futimes bug.
21520
21521         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
21522         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
21523         Instead, declare a function that returns a pointer to an array,
21524         and use verify_type__ to declare the size of the array.
21525         Problem and germ of a solution reported by Bruno Haible.
21526         (verify_type__): Use 2, not 1, for bitfield size, to avoid
21527         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
21528
21529 2005-09-23  Jim Meyering  <jim@meyering.net>
21530
21531         Sync from coreutils.
21532         Correct build failure (socklen_t not defined) on at least
21533         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
21534         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
21535
21536 2005-09-23  Jim Meyering  <jim@meyering.net>
21537
21538         * modules/getaddrinfo (Depends-on): Add socklen.
21539
21540 2005-09-23  Bruno Haible  <bruno@clisp.org>
21541
21542         * tests/test-verify.c: New file.
21543
21544 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21545
21546         Sync from coreutils.
21547
21548         * modules/argmatch (Depends-on): Add verify.
21549         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
21550         unistd-safer.
21551         * modules/save-cwd (Depends-on): Likewise.
21552
21553         * modules/openat (Files): Add lib/openat-die.c.
21554         (Depends-on): Remove error, exitfail.
21555         Add dirname.
21556
21557         * modules/verify: New file.
21558         * MODULES.html.sh (Diagnostics <assert.h>): New section,
21559         with "verify" module.
21560
21561 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         Sync from coreutils.
21564
21565         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
21566         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
21567         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
21568         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
21569         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
21570         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
21571         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
21572         Don't bother checking for string.h, stdlib.h, unistd.h.
21573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
21574         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
21575         module's job.
21576         * m4/jm-macros.m4 (gl_MACROS): Likewise.
21577         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
21578
21579         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
21580         (gl_GETDATE): Use it.
21581
21582         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
21583
21584 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21585
21586         Sync from coreutils.
21587
21588         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
21589         stat-time.h.
21590         * lib/argmatch.h: Include verify.h
21591         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
21592         (ARGMATCH_ASSERT): Remove; unused.
21593         * lib/canonicalize.c: Assume STDC_HEADERS.
21594         * lib/exclude.c: Include "strcase.h".
21595         * lib/regex_internal.h [!defined _LIBC]: Likewise.
21596         * lib/getusershell.c: Include stdio--.h rather than stdio.h
21597         and stdio-safer.h.
21598         (getusershell): Call fopen, not fopen_safer.
21599         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
21600         Do not include unistd-safer.h.
21601         (save_cwd): Don't call fd_safer; no longer needed
21602         now that we include fcntl--.h.
21603
21604         * lib/getdate.y (relative_time): New type.
21605         (RELATIVE_TIME_0): New constant.
21606         (parser_control): Use relative_time instead of doing it ourselves.
21607         (%union): Add new relative_time rel member.
21608         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
21609         Now typeless.
21610         (relunit, relunit_snumber): Now of type rel.
21611         (zone, rel, relunit, get_date): Adjust to above changes.
21612
21613         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
21614         Do not include unistd-safer.h.
21615         (getloadavg): Don't call fd_safer; no longer needed
21616         now that we include fcntl--.h.
21617
21618         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
21619         (make_dir_parents): Treat ENOSYS like EEXIST.
21620
21621         Improve quality of diagnostics on restore_cwd failure.
21622         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
21623         (make_dir_parents): Last arg is now int * (for errno), not bool *.
21624         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
21625         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
21626         each time through the loop.  Do not diagnose restore_cwd failure;
21627         that is the caller's job (and perhaps the caller does not care).
21628
21629         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
21630         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
21631         If the file already exists but is not a directory, don't bother
21632         to try to make its parents.
21633         Close potential file descriptor leak if we can't chdir("/") (!).
21634         Don't always return true if chdir($PWD) fails; return true only
21635         if the requested action was done successfully (except for the
21636         chdir($PWD)).
21637         Don't log final directory unless we actually made it.
21638         Refactor to avoid duplicate code to fix up permissions.
21639         Don't attempt to fix up parent permissions if chdir($PWD) fails.
21640
21641         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
21642         to make it a bit faster and (I hope) clearer.
21643         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
21644         Fix bug in formats like %2N.
21645
21646         * lib/verify.h: New file.
21647
21648 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21649
21650         Sync from coreutils.
21651         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
21652
21653 2005-09-22  Jim Meyering  <jim@meyering.net>
21654
21655         Sync from coreutils.
21656
21657         * m4/lstat.m4 (gl_FUNC_LSTAT):
21658         Use AC_LIBSOURCES to require lstat.c and lstat.h.
21659         Remove obsolete comment.
21660         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
21661         * m4/xstrtod.m4: Likewise.
21662
21663         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
21664
21665 2005-09-22  Jim Meyering  <jim@meyering.net>
21666
21667         Sync from coreutils.
21668
21669         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
21670
21671         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
21672         the .tm_year member, since otherwise gcc-4.0 would now warn about
21673         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
21674
21675         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
21676         order to avoid an unsuppressible warning from gcc on 64-bit systems.
21677
21678         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
21679         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
21680         when run in a time zone for which daylight savings time is in effect
21681         for the starting date.
21682
21683         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
21684         stop us from restricting permissions of just-created absolute-named
21685         directories.
21686         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
21687         to restore initial working directory.
21688         * lib/mkdir-p.c (make_dir_parents): New parameter:
21689         different_working_dir, to tell caller if/when we change the working
21690         directory and are unable to return to the initial one.
21691         * lib/mkdir-p.h (make_dir_parents): Update prototype.
21692         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
21693         `return false'.  This fixes a bug introduced on 2004-07-30.
21694
21695         * lib/openat.c (fdopendir): Be sure to close the supplied
21696         file descriptor before returning.  This makes our replacement
21697         implementation a little closer to Solaris's, where fdopendir
21698         ties the file descriptor to the returned DIR* pointer.
21699         * lib/openat.c (unlinkat): New function.
21700         * lib/openat.h (unlinkat): Add prototype.
21701         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
21702         (openat_restore_fail): Rename from openat_restore_die.
21703         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
21704
21705         Provide an alternative to exiting immediately upon save_cwd or
21706         restore_cwd failure.  Now, an application can arrange e.g.,
21707         to perform a longjump in that case.
21708         * lib/openat.c: Include dirname.h.
21709         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
21710         (rpl_openat, fdopendir, fstatat): Call openat_save_die
21711         and openat_restore_die rather than calling error directly.
21712         Don't include "error.h" or "exitfail.h"; they're no longer needed.
21713
21714         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
21715         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
21716         define.
21717
21718         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
21719         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
21720                             int utc, int nanoseconds);
21721         Background:
21722         date should not have to allocate a megabyte of virtual memory to
21723         handle a format argument like +%1048575T.  When implemented with
21724         strftime, it must allocate such a buffer, use strftime to fill it
21725         in, print it, then free it.
21726         With fprintftime, it simply prints everything and exits.
21727         With no need for memory allocation, that's one fewer way to fail.
21728         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
21729         optional field width, not before, so we accept %9:z, not %:9z.
21730         (my_strftime): Be sure to use L_('x') for literals.
21731
21732         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
21733         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
21734         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
21735         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
21736         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
21737         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
21738         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
21739         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
21740         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
21741         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
21742         * lib/xgethostname.c, lib/xreadlink.c:
21743         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
21744
21745         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
21746         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
21747         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
21748         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
21749         and don't include <sys/file.h>).
21750
21751 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
21752
21753         Sync from coreutils.
21754
21755         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
21756         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
21757         [!LDAV_DONE]: Avoid unused variable warning.
21758
21759 2005-09-21  Bruno Haible  <bruno@clisp.org>
21760
21761         * lib/unicodeio.h (unicode_to_mb): New declaration.
21762
21763 2005-09-20  Derek Price  <derek@ximbiot.com>
21764
21765         * lib/getaddrinfo.c: Don't include <netdb.h> included from
21766         getaddrinfo.h.
21767
21768 2005-09-20  Bruno Haible  <bruno@clisp.org>
21769
21770         * gnulib-tool: Remove trailing slashes from the values specified for
21771         --source-base, --m4-base, --tests-base, --aux-dir.
21772         Suggested by Simon Josefsson <jas@extundo.com>.
21773
21774 2005-09-20  Bruno Haible  <bruno@clisp.org>
21775
21776         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
21777         func_modules_to_filelist, func_import, func_create_testdir): Make all
21778         sorting results locale-independent, so that gnulib-cache.m4 doesn't
21779         change when gnulib-tool is invoked in a different locale.
21780
21781 2005-09-19  Simon Josefsson  <jas@extundo.com>
21782
21783         * m4/socklen.m4: Fix typo.
21784
21785 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21786
21787         Use a consistent style for including <config.h>.
21788         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
21789         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
21790         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
21791         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
21792         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
21793         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
21794         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
21795         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
21796         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
21797         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
21798         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
21799         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
21800         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
21801         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
21802         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
21803         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
21804         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
21805         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
21806         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
21807         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
21808         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
21809         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
21810         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
21811         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
21812         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
21813         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
21814         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
21815         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
21816         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
21817         lib/xstrtoumax.c, lib/yesno.c:
21818         Standardize inclusion of config.h.
21819         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
21820         lib/inttostr.h:  Removed inclusion of config.h from header files.
21821         * lib/inttostr.c:  Adjusted in-tree users.
21822         * lib/timespec.h: Remove superfluous warning to include config.h.
21823         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
21824         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
21825         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
21826         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
21827         config.h with HAVE_CONFIG_H.
21828
21829 2005-09-19  Jim Meyering  <jim@meyering.net>
21830
21831         * modules/pathmax (License): Change to LGPL.
21832
21833 2005-09-19  Derek Price  <derek@ximbiot.com>
21834
21835         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
21836
21837 2005-09-19  Bruno Haible  <bruno@clisp.org>
21838
21839         * gnulib-tool (import): Provide default for --tests-base.
21840
21841 2005-09-19  Bruno Haible  <bruno@clisp.org>
21842
21843         * doc/quote.texi: New file, extracted from gnulib.texi.
21844         * doc/ctime.texi: New file, extracted from gnulib.texi.
21845         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
21846         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
21847         * doc/gnulib.texi: Include them.
21848
21849 2005-09-18  Bruno Haible  <bruno@clisp.org>
21850
21851         Portability fix.
21852         * gnulib-tool (func_readlink): New function.
21853         (func_ln_if_changed): Use it.
21854
21855 2005-09-18  Bruno Haible  <bruno@clisp.org>
21856
21857         * gnulib-tool: Support --with-tests also with --import.
21858         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
21859         (func_import): Use variables $testsbase and $inctests. Emit a
21860         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
21861         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
21862         SUBDIRS += $testsdir.
21863         (func_create_testdir): Update.
21864
21865 2005-09-18  Bruno Haible  <bruno@clisp.org>
21866
21867         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
21868         instead of $dry_run.
21869         (func_cp_if_changed, func_mv_if_changed): Remove functions.
21870         (func_ln_if_changed): Don't handle dry-run here.
21871         (func_import): In dry-run mode, detect more precisely which actions
21872         would be performed, and don't use "...ing" verbs.
21873
21874 2005-09-18  Bruno Haible  <bruno@clisp.org>
21875
21876         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
21877         (func_import): Use join on two temporary files instead of three nested
21878         loops, in order to determine which files are new or old.
21879
21880 2005-09-18  Bruno Haible  <bruno@clisp.org>
21881
21882         * gnulib-tool (func_import): Comment out code that spits out the
21883         new files with --dry-run.
21884
21885 2005-09-18  Bruno Haible  <bruno@clisp.org>
21886
21887         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
21888
21889 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21890
21891         * lib/stat-time.h: New file.
21892         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
21893         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
21894         in a different way.
21895         (timespec_cmp): New function.
21896         * lib/utimecmp.c: Include stat-time.h.
21897         (SYSCALL_RESOLUTION): Depend on whether various struct stat
21898         members exist, not on the obsolescent ST_MTIM_NSEC.
21899         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
21900
21901 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21902
21903         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
21904
21905 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21906
21907         * MODULES.html.sh (File system functions): Add stat-time.
21908         * modules/stat-time: New file.
21909         * modules/timespec (Files): Remove m4/st_mtim.m4; this
21910         is now done in a different way, by the stat-time module.
21911         * modules/utimecmp (Depends-on): Add stat-time.
21912
21913 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
21914
21915         * m4/st_mtim.m4: Remove.  Superseded by...
21916         * m4/stat-time.m4: New file.
21917         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
21918         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
21919
21920 2005-09-15  Derek Price  <derek@ximbiot.com>
21921
21922         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
21923
21924 2005-09-15  Derek Price  <derek@ximbiot.com>
21925
21926         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
21927         * lib/regex_internal.c: Ditto, using this...
21928         (__GNUC_PREREQ): ...new macro.
21929         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
21930         using...
21931         (__GNUC_PREREQ): ...this new macro.
21932
21933         * lib/strstr.h: Include string.h. Define strstr as a macro here.
21934
21935 2005-09-15  Derek Price  <derek@ximbiot.com>
21936             Paul Eggert  <eggert@cs.ucla.edu>
21937
21938         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
21939         changes, consolidating in...
21940         * lib/regex_internal.h: ...this file.
21941
21942 2005-09-13  Jim Meyering  <jim@meyering.net>
21943
21944         * lib/canon-host.c: Filter through gnu indent and reword comments
21945         slightly.
21946         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
21947
21948 2005-09-13  Derek Price  <derek@ximbiot.com>
21949
21950         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
21951         failure.
21952         Reported by Jim Meyering  <jim@meyering.net>.
21953
21954 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
21955
21956         * lib/base64.c: Typo.
21957         (base64_encode): Put b64str in initialized data section.
21958
21959 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21960
21961         Merge glibc and coreutils changes into gnulib, plus a few
21962         extra fixes.
21963         * lib/md5.c: Use #error rather than a string.
21964         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
21965         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
21966         (__attribute__): Define to empty for non recent-GCC.
21967         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
21968         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
21969         Renamed from their non-__ counterparts, with new macros replacing
21970         them if not _LIBC.  Add __THROW attribute.
21971         (rol): Remove.
21972         (struct md5_ctx): Align buffer if using GCC.
21973         * lib/sha1.h (struct sha1_ctx): Likewise.
21974         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
21975         The old name was backwards.
21976         (NOTSWAP): Remove; not used.
21977         (rol): New macro, moved here from md5.h.
21978         (sha1_process_block): Remove a FIXME that doesn't make sense.
21979
21980 2005-09-12  Derek Price  <derek@ximbiot.com>
21981
21982         Return usable errors from canon-host.
21983         * lib/canon-host.h: New file.
21984         * lib/canon-host.c (canon_host): Wrap...
21985         (canon_host_r): ...this new function, which now relies exclusively on
21986         getaddrinfo.
21987         (ch_strerror): New function.
21988         (last_cherror): New global.
21989         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
21990         interface.
21991         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
21992         void *.
21993         (freeaddrinfo): Free ai->ai_canonname when set.
21994
21995 2005-09-12  Derek Price  <derek@ximbiot.com>
21996
21997         Make canon-host require getaddrinfo.
21998         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
21999         AC_LIBSOURCE canon-host.h.  Call...
22000         (gl_PREREQ_CANON_HOST): ...this new function, which requires
22001         gl_GETADDRINFO.
22002         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
22003
22004 2005-09-12  Derek Price  <derek@ximbiot.com>
22005
22006         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
22007         LGPL.
22008         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
22009
22010 2005-09-12  Derek Price  <derek@ximbiot.com>
22011
22012         * lib/gai_strerror.c: Include config.h when available.  Include
22013         getaddrinfo.h before other headers to test interface.
22014         Reported by Larry Jones <lawrence.jones@ugs.com>.
22015
22016 2005-09-12  Derek Price  <derek@ximbiot.com>
22017             Paul Eggert  <eggert@cs.ucla.edu>
22018
22019         * modules/glob (Files): Add glob-libc.h.
22020
22021 2005-09-12  Derek Price  <derek@ximbiot.com>
22022             Paul Eggert  <eggert@cs.ucla.edu>
22023
22024         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
22025         glob_.h, glob-libc.h.
22026         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
22027
22028 2005-09-12  Derek Price  <derek@ximbiot.com>
22029             Paul Eggert  <eggert@cs.ucla.edu>
22030
22031         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
22032         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
22033         protecting things that should be done only in gnulib contexts.
22034         * lib/glob_.h: New file, containing only the glob things needed for
22035         gnulib.
22036         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
22037         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
22038         (glob, globfree, glob_pattern_p): Now defined simply in terms of
22039         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
22040         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
22041         and to respect the namespace rules better.
22042
22043 2005-09-08  Simon Josefsson  <jas@extundo.com>
22044
22045         * modules/socklen: New file.
22046
22047 2005-09-08  Simon Josefsson  <jas@extundo.com>
22048
22049         * m4/socklen.m4: New file.
22050
22051 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22052
22053         * modules/utimens (Files): Add m4/utimbuf.m4, since
22054         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
22055         Reported by Sergey Poznyakoff.
22056
22057 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22058
22059         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
22060         definitions, since that's the preferred style in glibc.
22061         Fix a minor spacing issue, and update copyright notice to match
22062         glibc's.
22063
22064 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
22065
22066         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
22067
22068 2005-09-06  Simon Josefsson  <jas@extundo.com>
22069
22070         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
22071         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
22072
22073 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22074
22075         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
22076         warning.
22077
22078 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22079
22080         * config/srclist.txt: Add glibc bug 1302.
22081
22082 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22083
22084         Change bitset word type from unsigned int to unsigned long int,
22085         as this has better performance on typical 64-bit hosts.
22086         Port bitset code to hosts with unusual word sizes.
22087         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
22088         (build_collating_symbol):
22089         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
22090         argument is a bitset.  This is merely a style issue, but it makes
22091         it clearer that an entire array is expected.
22092         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
22093         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
22094         Port to the case where bitset_word is not the same as unsigned int.
22095         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
22096         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
22097         Likewise.
22098         * lib/regexec.c (check_dst_limits_calc_pos_1,
22099         check_subexp_matching_top):
22100         (build_trtable, group_nodes_into_DFAstates):
22101         Likewise.
22102         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
22103         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
22104         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
22105         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
22106         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
22107         * lib/regcomp.c (optimize_subexps, lower_subexp):
22108         Work even if bitset_word has holes in its bitwise representation.
22109         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
22110         * lib/regexec.c (check_dst_limits_calc_pos_1,
22111         check_subexp_matching_top):
22112         Likewise.
22113         * lib/regex_internal.c (re_string_reconstruct):
22114         Don't assume UCHAR_MAX == 255.
22115         * lib/regex_internal.h (bitset_set_all): Likewise.
22116         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
22117         All uses changed.
22118         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
22119         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
22120         All uses changed.
22121         (BITSET_WORD_MAX): New macro.
22122         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
22123         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
22124         (bitset_empty, bitset_copy):
22125         Prefer sizeof (bitset) to multiplying it out ourselves.
22126         (bitset_not_merge): Remove; unused.
22127         (bitset_contain): Return bool, not unsigned int with one bit on.
22128         All callers changed.
22129         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
22130         alignment than re_node_set; do this by defining a new internal
22131         type struct dests_alloc and using it to allocate memory.
22132
22133 2005-09-05  Bruno Haible  <bruno@clisp.org>
22134
22135         * gnulib-tool (func_import): Fix comparison in handling of symbolic
22136         links.
22137
22138 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
22139
22140         * modules/size_max (Makefile.am): Add size_max.h
22141
22142 2005-09-04  Derek Price  <derek@ximbiot.com>
22143
22144         * gnulib-tool (func_import): Fix reversed $symbolic logic.
22145
22146 2005-09-03  Simon Josefsson  <jas@extundo.com>
22147
22148         * gnulib-tool: Fix typo.
22149
22150 2005-09-03  Simon Josefsson  <jas@extundo.com>
22151
22152         * config/srclist.txt: Add glibc bug 1293.
22153
22154 2005-09-03  Derek Price  <derek@ximbiot.com>
22155
22156         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
22157         From Larry Jones <lawrence.jones@ugs.com>.
22158
22159 2005-09-02  Simon Josefsson  <jas@extundo.com>
22160
22161         * modules/socklen: New file.
22162
22163 2005-09-02  Simon Josefsson  <jas@extundo.com>
22164
22165         * modules/havelib: New module.
22166
22167         * modules/gettext, modules/iconv, modules/lock, modules/readline:
22168         Use havelib.
22169
22170 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22171
22172         Check for arithmetic overflow when calculating sizes, to prevent
22173         some buffer-overflow issues.  These patches are conservative, in the
22174         sense that when I couldn't determine whether an overflow was possible,
22175         I inserted a run-time check.
22176         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
22177         macros.
22178         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
22179         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
22180         (re_xnrealloc, re_x2nrealloc): New inline functions.
22181         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
22182         parse_bracket_exp):
22183         (build_equiv_class, build_charclass): Check for arithmetic overflow
22184         in size expression calculations.
22185         * lib/regex_internal.c (re_string_realloc_buffers):
22186         (build_wcs_upper_buffer, re_node_set_add_intersect):
22187         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
22188         (re_dfa_add_node, register_state): Likewise.
22189         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
22190         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
22191         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
22192         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
22193
22194 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22195
22196         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22197         m4/ulonglong.m4.  Problem reported by Martin Lambers.
22198
22199 2005-09-02  Bruno Haible  <bruno@clisp.org>
22200
22201         Support for lib vs. lib64 distinction on biarch platforms.
22202         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
22203         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
22204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
22205
22206 2005-09-02  Bruno Haible  <bruno@clisp.org>
22207
22208         * gnulib-tool (import): In the other first-use case, provide defaults
22209         as well.
22210
22211 2005-09-02  Bruno Haible  <bruno@clisp.org>
22212
22213         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
22214         patches not yet found in the latest gettext release.
22215
22216 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22217
22218         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
22219         to avoid a collision with bits/local_lim.h in glibc.
22220         All uses changed.  Problem reported by Dmitry V. Levin in
22221         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
22222
22223         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
22224         bugs in int versus size_t comparisons.
22225         (re_string_context_at): Fix bug where the code assumed that
22226         Idx is signed.
22227
22228         Use bool where appropriate.
22229         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
22230         All callers changed.
22231         (calc_eclosure_iter): Likewise, for ROOT arg.
22232         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
22233         (build_charclass_op): Likewise, for NON_MATCH arg.
22234         * lib/regex_internal.c (re_string_allocate, re_string_construct):
22235         (re_string_construct_common): Likewise, for ICASE arg.
22236         * lib/regexec.c (re_search_2_stub, re_search_stub):
22237         Likewise, for RET_LEN arg.
22238         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
22239         (set_regs): Likewise, for FL_BACKTRACK arg.
22240         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
22241         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
22242         (calc_eclosure_iter, parse_bracket_exp):
22243         Use bool for internal variables that are booleans.
22244         * lib/regexec.c (re_search_internal, check_matching,
22245         proceed_next_node):
22246         (set_regs, build_sifted_states, sift_states_bkref):
22247         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
22248         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
22249         (find_collation_sequence_value):
22250         Likewise.
22251         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
22252         (re_node_set_compare):
22253         Return bool, not int. All callers changed.
22254         * lib/regexec.c (check_halt_node_context, check_dst_limits):
22255         (build_trtable, check_node_accept): Likewise.
22256         * lib/regex_internal.h: Include stdbool.h.
22257
22258         Fix bugs uncovered when converting to bool.
22259         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
22260         failure instead of charging ahead blindly.
22261         * lib/regex_internal.c (register_state): Likewise.
22262         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
22263         for freeing internal storage.
22264         (group_nodes_into_DFA_states): Use unsigned int, not int, for
22265         bitset pieces used as boolean, to avoid undefined behavior
22266         on hosts that do int overflow checking.
22267
22268 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22269
22270         * config/srclist.txt: Add glibc bugs 1285-1287.
22271
22272 2005-09-01  Jim Meyering  <jim@meyering.net>
22273
22274         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
22275         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
22276         Require gl_STAT_MACROS, too.
22277
22278 2005-09-01  Bruno Haible  <bruno@clisp.org>
22279
22280         * gnulib-tool (import): In the first-use case, provide defaults.
22281
22282 2005-09-01  Bruno Haible  <bruno@clisp.org>
22283
22284         * gnulib-tool (func_import): Remove the .tmp files.
22285
22286 2005-09-01  Bruno Haible  <bruno@clisp.org>
22287
22288         * gnulib-tool (func_import): Fix handling of symbolic links.
22289
22290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22291
22292         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
22293         old glibc regex code mishandles strings longer than 2**31 bytes.
22294         This patch fixes this when the regex code is used in gnulib
22295         (i.e., outside glibc).
22296
22297         This patch should not affect the use of the regex code inside
22298         glibc.  No doubt this problem also needs to be handled for glibc
22299         as well, but the result will be an incompatible change to the
22300         glibc ABI, and the old ABI will have to be supported too.  That
22301         can be the the subject for another patch.
22302
22303         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
22304         governing whether the rest of this patch is active.  By default,
22305         the macro is disabled and the patch has no effect.
22306         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
22307         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
22308         (struct re_pattern_buffer, re_search, re_search_2, re_match):
22309         (re_match_2, re_set_registers): Use the new types.
22310         * lib/regex_internal.h (Idx, re_hashval_t): New types.
22311         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
22312         New macros.
22313         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
22314         (re_string_context_at, bin_tree_t, re_dfastate_t):
22315         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
22316         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
22317         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
22318         (re_string_char_size_at, re_string_wchar_at):
22319         (re_string_elem_size_at):
22320         Use the new types and macros to port to 64-bit hosts.
22321         Use unsigned types for internal values, so that the code
22322         mostly works even for arrays larger than SSIZE_MAX.
22323         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
22324         (search_duplicated_node, calc_eclosure_iter, fetch_number):
22325         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
22326         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
22327         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
22328         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
22329         (calc_inveclosure, parse_dup_op, build_range_exp):
22330         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
22331         (fetch_number, create_token_tree, mark_opt_subexp):
22332         Likewise.
22333         * lib/regex_internal.c (re_string_construct_common,
22334         create_ci_newstate):
22335         (create_cd_newstate, re_string_allocate, re_string_construct):
22336         (re_string_realloc_buffers, build_wcs_upper_buffer):
22337         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
22338         (re_string_reconstruct, re_string_peek_byte_case):
22339         (re_string_fetch_byte_case, re_string_context_at):
22340         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
22341         (re_node_set_init_copy, re_node_set_add_intersect):
22342         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
22343         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
22344         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
22345         (re_acquire_state, re_acquire_state_context, register_state):
22346         Likewise.
22347         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
22348         search_cur_bkref_entry):
22349         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
22350         (re_search_internal, re_search_2_stub, re_search_stub)
22351         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
22352         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
22353         (update_cur_sifted_state, check_dst_limits):
22354         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
22355         (check_subexp_limits, sift_states_bkref, merge_state_array):
22356         (check_subexp_matching_top, get_subexp, get_subexp_sub):
22357         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
22358         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
22359         (expand_bkref_cache, check_node_accept_bytes):
22360         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
22361         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
22362         (acquire_init_state_context, check_halt_node_context):
22363         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
22364         (sift_states_backward, clean_state_log_if_needed):
22365         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
22366         (find_recover_state, transit_state_sb, transit_state_mb):
22367         (transit_state_bkref, build_trtable, match_ctx_clean):
22368         Likewise.
22369         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
22370         to work around an assumption that REG_MISSING is negative.
22371
22372         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
22373         (seek_collating_symbol_entry) [defined _LIBC]:
22374         (lookup_collation_sequence_value) [defined _LIBC]:
22375         (build_range_exp, build_collating_symbol) [defined _LIBC]:
22376         Use prototypes rather than old-style function definitions.
22377         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
22378         (transit_state_sb) [0]:
22379         (find_collation_sequence_value) [defined _LIBC]: Likewise.
22380
22381         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
22382         rm_eo.
22383
22384         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
22385         (optimize_subexps, lower_subexp):
22386         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
22387         since the signed shift might overflow.  Use 1u<<31 instead.
22388         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
22389         Likewise.
22390         * lib/regexec.c (check_dst_limits_calc_pos_1,
22391         check_subexp_matching_top): Likewise.
22392
22393         * lib/regcomp.c (optimize_subexps, lower_subexp):
22394         Use CHAR_BIT rather than 8, for clarity.
22395         * lib/regexec.c (check_dst_limits_calc_pos_1):
22396         (check_subexp_matching_top): Likewise.
22397         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
22398         have to worry about portability issues when shifting it left.
22399         Remove no-longer-needed test for table_size > 0.
22400         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
22401         in a word, as the resulting behavior is undefined.
22402         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
22403         in one case, a <= should have been an <, and in another case the
22404         whole test was missing.
22405         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
22406         the standard name CHAR_BIT.
22407         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
22408         this is not true on one's complement and signed-magnitude hosts.
22409
22410         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
22411         next_last_offset.
22412         (struct re_dfa_t): Remove unused member states_alloc.
22413         * lib/regcomp.c (init_dfa): Don't initialize unused members.
22414
22415 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22416
22417         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
22418         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
22419         and large-file glibc and in 32-bit large-file Solaris.
22420
22421 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22422
22423         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
22424         lengths fit in regoff_t; this isn't true if regoff_t is the same
22425         width as size_t.
22426         * lib/regex.c (re_search_internal): 5th arg is LAST_START
22427         (= START + RANGE) instead of RANGE.  This avoids overflow
22428         problems when regoff_t is the same width as size_t.
22429         All callers changed.
22430         (re_search_2_stub): Check for overflow when adding the
22431         sizes of the two strings.
22432         (re_search_stub): Check for overflow when adding START
22433         to RANGE; if it occurs, substitute the extreme value.
22434
22435 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
22438
22439 2005-08-31  Jim Meyering  <jim@meyering.net>
22440
22441         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
22442         a pointer-to-const.
22443         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
22444         (register_state): Likewise.
22445         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
22446         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
22447         (group_nodes_into_DFAstates): Likewise.
22448
22449 2005-08-31  Jim Meyering  <jim@meyering.net>
22450
22451         * check-module: Add a FIXME comment.
22452
22453 2005-08-31  Eric Blake  <ebb9@byu.net>
22454
22455         * modules/unistd-safer (Files): Add unistd--.h.
22456         * modules/stdio-safer (Files): Add stdio--.h.
22457
22458 2005-08-31  Derek Price  <derek@ximbiot.com>
22459
22460         * lib/getdelim.c (getdelim): Return EOF on EOF.
22461         Reported by Larry Jones <lawrence.jones@ugs.com>.
22462
22463 2005-08-31  Bruno Haible  <bruno@clisp.org>
22464
22465         Avoid unnecessary diffs in the generated lib/Makefile.am.
22466         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
22467         the generated files.
22468         (func_import): Don't set cmd.
22469
22470 2005-08-31  Bruno Haible  <bruno@clisp.org>
22471
22472         * lib/strstr.c: Include <stddef.h>, for NULL.
22473         * lib/strcasestr.c: Likewise.
22474         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22475
22476 2005-08-31  Bruno Haible  <bruno@clisp.org>
22477
22478         * gnulib-tool: New option --macro-prefix.
22479         (func_import): Use macro_prefix.
22480         (import): Handle option --macro-prefix.
22481
22482 2005-08-31  Bruno Haible  <bruno@clisp.org>
22483
22484         * gnulib-tool (import): Rename most ac_* variables to cached_*.
22485         Also use new variables cached_lgpl, cached_libtool.
22486
22487 2005-08-31  Bruno Haible  <bruno@clisp.org>
22488
22489         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
22490         always instantiating them.
22491
22492 2005-08-31  Bruno Haible  <bruno@clisp.org>
22493
22494         * gnulib-tool (func_import): Read the previous cached settings
22495         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
22496         earlier added by gnulib but are now dropped. Warn when a gnulib file
22497         overwrites a non-gnulib file.
22498
22499 2005-08-31  Bruno Haible  <bruno@clisp.org>
22500
22501         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
22502         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
22503         projects that don't keep autogenerated files in CVS. Put into
22504         actioncmd only the specified modules, not the transitive closure.
22505
22506 2005-08-31  Bruno Haible  <bruno@clisp.org>
22507
22508         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
22509         Create directories that shall be filled.
22510         (import): Don't look for gl_* macros in configure.ac. Recurse across
22511         all directories containing a gnulib-cache.m4 files, if meaningful.
22512
22513 2005-08-31  Bruno Haible  <bruno@clisp.org>
22514
22515         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
22516         (import): Set seen_libtool when we see gl_LIBTOOL.
22517
22518 2005-08-31  Bruno Haible  <bruno@clisp.org>
22519
22520         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
22521         declaration macro definitions from generated gnulib.m4.
22522
22523 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
22524
22525         * lib/iconvme.h: Add prototype for iconv_alloc.
22526
22527 2005-08-29  Simon Josefsson  <jas@extundo.com>
22528
22529         * lib/iconvme.c: Fix errno.
22530
22531 2005-08-29  Bruno Haible  <bruno@clisp.org>
22532
22533         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
22534         that it works when the directory contains spaces.
22535
22536 2005-08-29  Bruno Haible  <bruno@clisp.org>
22537
22538         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
22539
22540 2005-08-29  Bruno Haible  <bruno@clisp.org>
22541
22542         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
22543         Emit more advice.
22544
22545 2005-08-29  Bruno Haible  <bruno@clisp.org>
22546         and Stepan Kasal  <kasal@ucw.cz>
22547
22548         * check-module: If more parameters are given, check each of them
22549         separately; add more exceptions, as noted by Jim Meyering.
22550         (check_module): New procedure.
22551         (%exempt_header): Now contains all exceptions.
22552
22553 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
22554
22555         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
22556
22557 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
22558
22559         * lib/iconvme.c: Split iconv_string into iconv_alloc.
22560
22561 2005-08-28  Bruno Haible  <bruno@clisp.org>
22562
22563         * m4/gnulib-tool.m4: New file.
22564
22565 2005-08-27  Jim Meyering  <jim@meyering.net>
22566
22567         * modules/unistd-safer (Files): Add pipe-safer.c.
22568         * modules/fcntl-safer (Files): Add creat-safer.c.
22569
22570 2005-08-27  Jim Meyering  <jim@meyering.net>
22571
22572         * m4/stdlib-safer.m4: New file.  From coreutils.
22573         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
22574         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
22575         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
22576         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
22577         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
22578
22579 2005-08-27  Jim Meyering  <jim@meyering.net>
22580
22581         * lib/fopen-safer.c: Merge minor changes from coreutils.
22582         * lib/dup-safer.c: Likewise.
22583         * lib/fd-safer.c: Likewise.
22584
22585         Merge from coreutils.
22586         * lib/stdio--.h: New file.
22587         * lib/stdlib--.h: New file.
22588         * lib/mkstemp-safer.c: New file.
22589
22590         GNU tar needs these.
22591         * lib/pipe-safer.c: New file.
22592         * lib/creat-safer.c: New file.
22593         * lib/fcntl--.h (creat): Define to creat_safer.
22594         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
22595         * lib/unistd--.h (pipe): Define to pipe_safer.
22596         * lib/unistd-safer.h: Declare pipe_safer.
22597
22598 2005-08-26  Simon Josefsson  <jas@extundo.com>
22599
22600         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
22601         Haible <bruno@clisp.org>.
22602
22603 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
22604
22605         * lib/regex_internal.h: Remove all references to
22606         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
22607         or better.
22608         (bitset_not, bitset_merge, bitset_not_merge):
22609         (bitset_mask, re_string_allocate, re_string_construct):
22610         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
22611         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
22612         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
22613         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
22614         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
22615         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
22616         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
22617         (re_acquire_state_context):
22618         Remove unnecessary forward decls.
22619         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
22620         Put __attribute at function definition,
22621         now that the function decl has been removed.
22622         * lib/regex_internal.c (re_string_peek_byte_case):
22623         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
22624         Likewise.
22625
22626 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
22627
22628         * m4/regex.m4: Add AC_PREREQ(2.50).
22629         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
22630
22631 2005-08-25  Simon Josefsson  <jas@extundo.com>
22632
22633         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
22634         __fsetlocking.
22635
22636 2005-08-25  Simon Josefsson  <jas@extundo.com>
22637
22638         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
22639         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
22640         GLIBC specific code.
22641
22642 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22643
22644         Make regex safe for g++.  This fixes one real bug (an "err"
22645         that should have been "*err").  g++ problem reported by
22646         Sam Steingold.
22647         * lib/regex_internal.h (re_calloc): New macro, consistent with
22648         re_malloc etc.  All callers of calloc changed to use re_calloc.
22649         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
22650         not int.  All callers changed.
22651         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
22652         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
22653         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
22654         (find_recover_state): Change "err" to "*err"; this fixes what
22655         appears to be a real bug.
22656         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
22657         versus int.
22658
22659 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22660
22661         * modules/regex (Depends-on): Add malloc, since the code
22662         assumes that !malloc(0) means failure.
22663
22664 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22665
22666         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
22667
22668         alloca modernization/simplification for regex.
22669         * lib/regex.c: Remove portability cruft for alloca.  This no longer
22670         needs to be at the start of the file, and can be moved into
22671         regex_internal.h and simplified.
22672         * lib/regex_internal.h: Include <alloca.h>.
22673         (__libc_use_alloca) [!defined _LIBC]: New macro.
22674         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
22675         now works outside glibc.
22676
22677 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
22678
22679         * config/srclist.txt: Add glibc bugs 1241, 1245.
22680
22681 2005-08-25  Jim Meyering  <jim@meyering.net>
22682
22683         * lib/open-safer.c: Include <config.h>.
22684         Otherwise, we'd lose LARGEFILE support in any file using
22685         e.g. "fcntl--.h"
22686
22687 2005-08-25  Bruno Haible  <bruno@clisp.org>
22688
22689         * m4/minmax.m4: Require autoconf 2.52.
22690         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
22691         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
22692         alternatives of translit over the alphabet.
22693         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
22694
22695 2005-08-24  Simon Josefsson  <jas@extundo.com>
22696
22697         * tests/test-getpass.c: New file.
22698
22699 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22700
22701         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
22702         for GNU regex features.
22703
22704 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22705
22706         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
22707         * lib/regex.h (regerror): Likewise.
22708
22709         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
22710         requires this.  (The code never needed it.)
22711
22712         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
22713         All uses of recently-renamed identifiers changed to use the new,
22714         POSIX-compliant names.  The code will build and run just fine
22715         without these changes, but it's better to eat our own dog food
22716         and use the standard-conforming names.
22717
22718         * lib/regex.h: Fix a multitude of POSIX name space violations.
22719         These changes have an effect only for programs that define
22720         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
22721         do not change anything for programs compiled in the normal way.
22722         Also, there is no effect on the ABI.
22723
22724         (_REGEX_SOURCE): New macro.
22725         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
22726         defined and _GNU_SOURCE is not; this fixes a name space violation.
22727
22728         Rename the following macros to obey POSIX requirements.
22729         The old names are still visible as macros if _REGEX_SOURCE is defined.
22730         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
22731         RE_BACKSLASH_ESCAPE_IN_LISTS.
22732         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
22733         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
22734         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
22735         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
22736         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
22737         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
22738         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
22739         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
22740         (REG_INTERVALS): renamed from RE_INTERVALS.
22741         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
22742         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
22743         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
22744         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
22745         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
22746         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
22747         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
22748         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
22749         RE_UNMATCHED_RIGHT_PAREN_ORD.
22750         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
22751         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
22752         (REG_DEBUG): renamed from RE_DEBUG.
22753         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
22754         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
22755         unusual, since we can't clash with the POSIX REG_ICASE.
22756         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
22757         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
22758         (REG_NO_SUB): renamed from RE_NO_SUB.
22759         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
22760         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
22761         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
22762         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
22763         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
22764         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
22765         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
22766         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
22767         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
22768         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
22769         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
22770         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
22771         RE_SYNTAX_POSIX_MINIMAL_BASIC.
22772         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
22773         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
22774         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
22775         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
22776         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
22777         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
22778         (REG_FIXED): Renamed from REGS_FIXED.
22779         (REG_NREGS): Renamed from RE_NREGS.
22780
22781         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
22782         of other REG_* macros, since POSIX says the user is allowed to
22783         #undef these macros selectively.
22784
22785         (reg_errcode_t): Update comment stating what other tables need
22786         to be consistent.
22787
22788         Rename the following enum values to obey POSIX requirements.
22789         The old names are still visible as macros.
22790         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
22791         is not defined, since GNU is supposed to be a superset of POSIX as
22792         much as possible, and since we want reg_errcode_t to be a signed
22793         type for implementation consistency.
22794         (_REG_NOERROR): Renamed from REG_NOERROR.
22795         (_REG_NOMATCH): Renamed from REG_NOMATCH.
22796         (_REG_BADPAT): Renamed from REG_BADPAT.
22797         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
22798         (_REG_ECTYPE): Renamed from REG_ECTYPE.
22799         (_REG_EESCAPE): Renamed from REG_EESCAPE.
22800         (_REG_ESUBREG): Renamed from REG_ESUBREG.
22801         (_REG_EBRACK): Renamed from REG_EBRACK.
22802         (_REG_EPAREN): Renamed from REG_EPAREN.
22803         (_REG_EBRACE): Renamed from REG_EBRACE.
22804         (_REG_BADBR): Renamed from REG_BADBR.
22805         (_REG_ERANGE): Renamed from REG_ERANGE.
22806         (_REG_ESPACE): Renamed from REG_ESPACE.
22807         (_REG_BADRPT): Renamed from REG_BADRPT.
22808         (_REG_EEND): Renamed from REG_EEND.
22809         (_REG_ESIZE): Renamed from REG_ESIZE.
22810         (_REG_ERPAREN): Renamed from REG_ERPAREN.
22811         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
22812         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
22813         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
22814         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
22815
22816         (_REG_RE_NAME, _REG_RM_NAME): New macros.
22817         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
22818         changed.  But support the old name if the new one is not defined
22819         and if _REGEX_SOURCE.
22820
22821         Change the following member names in struct re_pattern_buffer.
22822         The old names are still supported if !_REGEX_SOURCE.
22823         The new names are always supported, regardless of _REGEX_SOURCE.
22824         (re_buffer): Renamed from buffer.
22825         (re_allocated): Renamed from allocated.
22826         (re_used): Renamed from used.
22827         (re_syntax): Renamed from syntax.
22828         (re_fastmap): Renamed from fastmap.
22829         (re_translate): Renamed from translate.
22830         (re_can_be_null): Renamed from can_be_null.
22831         (re_regs_allocated): Renamed from regs_allocated.
22832         (re_fastmap_accurate): Renamed from fastmap_accurate.
22833         (re_no_sub): Renamed from no_sub.
22834         (re_not_bol): Renamed from not_bol.
22835         (re_not_eol): Renamed from not_eol.
22836         (re_newline_anchor): Renamed from newline_anchor.
22837
22838         Change the following member names in struct re_registers.
22839         The old names are still supported if !_REGEX_SOURCE.
22840         The new names are always supported, regardless of _REGEX_SOURCE.
22841         (rm_num_regs): Renamed from num_regs.
22842         (rm_start): Renamed from start.
22843         (rm_end): Renamed from end.
22844
22845         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
22846         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
22847         Prepend __ to parameter names.
22848
22849         Undo yesterday's changes.
22850
22851 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22852
22853         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
22854         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
22855         lib/regex.c.
22856
22857 2005-08-24  Jim Meyering  <jim@meyering.net>
22858
22859         Sync from coreutils.
22860         * m4/fcntl-safer.m4: New file.
22861
22862         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
22863         and object files for this module.
22864
22865 2005-08-24  Jim Meyering  <jim@meyering.net>
22866
22867         Sync from coreutils.
22868         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
22869
22870 2005-08-24  Jim Meyering  <jim@meyering.net>
22871
22872         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
22873         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
22874
22875 2005-08-24  Jim Meyering  <jim@meyering.net>
22876
22877         * modules/fcntl-safer: New module.
22878         * modules/fts (Depends-on): Add fcntl-safer.
22879         * MODULES.html.sh (File descriptor based Input/Output):
22880         Add fcntl-safer.
22881
22882 2005-08-24  Bruno Haible  <bruno@clisp.org>
22883
22884         Support for unit test modules.
22885         * modules/README: Mention tests modules.
22886         * modules/TEMPLATE-TESTS: New file.
22887         * gnulib-tool: New options --extract-tests-module, --with-tests and
22888         --tests-base (unused for the moment).
22889         (testsbase, inctests): New variables.
22890         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
22891         (func_verify_module): Exclude TEMPLATE-TESTS.
22892         (func_verify_nontests_module, func_verify_tests_module): New functions.
22893         (func_get_dependencies): Add implicit dependency for tests modules.
22894         (func_get_tests_module): New function.
22895         (func_modules_transitive_closure): When --with-tests was specified,
22896         include the unit tests as well, unless explicitly avoided.
22897         (func_emit_lib_Makefile_am): Ignore the tests modules here.
22898         (func_emit_tests_Makefile_am): New function.
22899         (func_create_testdir): When --with-tests was specified, emit a
22900         tests/ directory.
22901         * MODULES.html.sh (Future developments): Update.
22902
22903 2005-08-24  Bruno Haible  <bruno@clisp.org>
22904
22905         * modules/tls-tests: New file.
22906         * tests/test-tls.c: New file, from GNU gettext.
22907
22908 2005-08-24  Bruno Haible  <bruno@clisp.org>
22909
22910         * modules/lock-tests: New file.
22911         * tests/test-lock.c: New file, from GNU gettext.
22912
22913 2005-08-24  Bruno Haible  <bruno@clisp.org>
22914
22915         * lib/lock.h: Add multiple inclusion guard.
22916         * lib/tls.h: Add multiple inclusion guard.
22917
22918 2005-08-24  Bruno Haible  <bruno@clisp.org>
22919
22920         * gnulib-tool: Add support for the --aux-dir option to
22921         --create-testdir, --create-megatestdir, --test, --megatest.
22922         (func_create_testdir, func_create_megatestdir): Optionally emit a
22923         AC_CONFIG_AUX_DIR directive.
22924         (create-testdir, create-megatestdir, test, megatest): Provide a
22925         default value for $auxdir.
22926
22927 2005-08-24  Bruno Haible  <bruno@clisp.org>
22928
22929         * gnulib-tool (import): Use compound statement instead of subshell
22930         where possible.
22931
22932 2005-08-24  Bruno Haible  <bruno@clisp.org>
22933
22934         * gnulib-tool (import): Change --aux-dir default to "build-aux".
22935
22936 2005-08-24  Bruno Haible  <bruno@clisp.org>
22937
22938         * gnulib-tool (func_version): Update.
22939
22940 2005-08-24  Bruno Haible  <bruno@clisp.org>
22941
22942         * gnulib-tool (func_import, func_create_testdir,
22943         func_create_megatestdir): Quote all autoconf macro arguments.
22944
22945 2005-08-24  Bruno Haible  <bruno@clisp.org>
22946
22947         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
22948         option --force, because --force causes the aclocal.m4 of each
22949         subdirectory to be newer than the corresponding config.h.in.
22950
22951 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22952
22953         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
22954         All contents moved to gl_REGEX.
22955         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
22956         assume that it does.
22957
22958 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22959
22960         * lib/regex.h (REG_NOSYS)
22961         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
22962         Define, since POSIX requires it as of 2001.
22963         (_REG_ENOSYS)
22964         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
22965         New private symbol, used to keep the enum signed in all cases.
22966         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
22967         Youngman in
22968         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
22969
22970         * lib/regex_internal.c (re_string_skip_chars, register_state):
22971         (calc_state_hash):
22972         Remove forward decls; no longer needed now that we use prototypes.
22973         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
22974         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
22975         (clean_state_log_if_needed): Likewise.
22976
22977 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22978
22979         * config/srclist.txt: Add glibc bugs 1231-1233.
22980
22981 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22982
22983         Fix problems reported by Sam Steingold in
22984         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
22985         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
22986         assumed that reg_errcode_t is a signed type, which is not
22987         necessarily true if _XOPEN_SOURCE is not defined.
22988         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
22989         since some compilers warn about it otherwise.
22990
22991 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
22994         (init_word_char, create_initial_state, duplicate_node_closure):
22995         (fetch_token, peek_token_bracket, build_range_exp):
22996         (build_collating_symbol): Remove forward decls; no longer needed
22997         now that we use prototypes.
22998
22999         * lib/regcomp.c:
23000         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
23001         (re_compile_fastmap_iter, regcomp, regerror, regfree):
23002         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
23003         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
23004         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
23005         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
23006         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
23007         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
23008         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
23009         (build_range_exp, build_collating_symbol, parse_bracket_exp):
23010         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
23011         (build_charclass, build_charclass_op, fetch_number, create_tree):
23012         (create_token_tree, mark_opt_subexp, duplicate_tree):
23013         Use prototypes rather than old-style definitions.
23014
23015         * lib/regex_internal.c:
23016         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
23017         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
23018         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
23019         (re_string_reconstruct, re_string_peek_byte_case):
23020         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
23021         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
23022         (re_node_set_init_copy, re_node_set_add_intersect):
23023         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
23024         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
23025         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
23026         (re_acquire_state, re_acquire_state_context, register_state):
23027         (create_ci_newstate, create_cd_newstate, free_state):
23028         Likewise.
23029         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
23030         re_search_2):
23031         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
23032         (re_search_internal, prune_impossible_nodes):
23033         (acquire_init_state_context, check_matching, static):
23034         (check_halt_node_context, check_halt_state_context, proceed_next_node):
23035         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
23036         (update_regs, sift_states_backward, build_sifted_states):
23037         (clean_state_log_if_needed, merge_state_array):
23038         (update_cur_sifted_state, add_epsilon_src_nodes):
23039         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
23040         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
23041         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
23042         (find_recover_state, check_subexp_matching_top, transit_state_mb):
23043         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
23044         (check_arrival, check_arrival_add_next_nodes):
23045         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
23046         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
23047         (check_node_accept_bytes, check_node_accept, extend_buffers):
23048         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
23049         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
23050         (sift_ctx_init):
23051         Likewise.
23052
23053         * lib/regex_internal.h:
23054         (re_string_allocate, re_string_construct, re_string_reconstruct):
23055         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
23056         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
23057         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
23058         (re_string_context_at, re_string_peek_byte_case):
23059         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
23060         is defined, since we now use prototypes always.
23061
23062         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
23063         C89 or better.  All uses removed.
23064
23065 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
23066
23067         * config/srclist.txt: Add glibc bugs 1220-1227.
23068
23069 2005-08-20  Jim Meyering  <jim@meyering.net>
23070
23071         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
23072         of unused local, dfa.
23073
23074 2005-08-20  Bruno Haible  <bruno@clisp.org>
23075
23076         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
23077
23078 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23079
23080         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
23081         (re_node_set_insert_last, re_dfa_add_node):
23082         Rename local variables to avoid GCC shadowing warnings.
23083
23084 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23085
23086         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
23087         [defined lint]: Suppress bogus uninitialized-variable warnings.
23088
23089         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
23090         and let the caller return REG_ESPACE if out of space.  This
23091         removes an uninitialied-variable warning with GCC 4.0.1, and also
23092         avoids taking the address of a local variable.  All callers
23093         changed.
23094
23095 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23096
23097         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
23098         $LIBCSRC/posix/regexec.c.
23099         Add glibc bug 1217 for regcomp.c.
23100
23101 2005-08-19  Jim Meyering  <jim@meyering.net>
23102
23103         * lib/regexec.c (proceed_next_node): Redo local variables to
23104         avoid GCC shadowing warnings.
23105
23106 2005-08-18  Bruno Haible  <bruno@clisp.org>
23107
23108         * lib/strstr.c (strstr): Fix return value in multibyte case.
23109         * lib/strcasestr.c (strcasestr): Likewise.
23110
23111 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23112
23113         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
23114
23115 2005-08-17  Jim Meyering  <jim@meyering.net>
23116
23117         Make the %s format (seconds since the epoch) work for a negative
23118         number and when used with a zero-padded field width, e.g. %015s.
23119
23120         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
23121         label so that it precedes the code to set `digits'.  Otherwise,
23122         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
23123         print `00-22'.  Now, it prints `-0022', as it should.
23124
23125 2005-08-17  Bruno Haible  <bruno@clisp.org>
23126
23127         * modules/strstr (Files): Add m4/mbrtowc.m4.
23128         (Depends-on): Add mbuiter.
23129
23130 2005-08-17  Bruno Haible  <bruno@clisp.org>
23131
23132         * modules/strcasestr: New file.
23133         * MODULES.html.sh (String handling, based on ANSI C 89): Add
23134         strcasestr.
23135
23136 2005-08-17  Bruno Haible  <bruno@clisp.org>
23137
23138         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
23139
23140 2005-08-17  Bruno Haible  <bruno@clisp.org>
23141
23142         * modules/mbuiter: New file.
23143         * MODULES.html.sh (Extended multibyte and wide character utilities):
23144         Add mbuiter.
23145
23146 2005-08-17  Bruno Haible  <bruno@clisp.org>
23147
23148         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
23149         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
23150
23151 2005-08-17  Bruno Haible  <bruno@clisp.org>
23152
23153         * m4/strcasestr.m4: New file.
23154
23155 2005-08-17  Bruno Haible  <bruno@clisp.org>
23156
23157         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
23158         * lib/strstr.c: Completely rewritten, with multibyte locale support.
23159
23160 2005-08-17  Bruno Haible  <bruno@clisp.org>
23161
23162         * lib/strcasestr.h: New file.
23163         * lib/strcasestr.c: New file.
23164
23165 2005-08-17  Bruno Haible  <bruno@clisp.org>
23166
23167         * lib/strcasecmp.c: Use mbuiter.h.
23168
23169 2005-08-17  Bruno Haible  <bruno@clisp.org>
23170
23171         * lib/mbuiter.h: New file.
23172
23173 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23174
23175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
23176         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
23177         and gl_GETOPT are both invoked via different paths (as happens
23178         with GNU tar CVS because it uses both argp and getopt), the former
23179         wins.
23180
23181 2005-08-16  Bruno Haible  <bruno@clisp.org>
23182
23183         * modules/tls: New file.
23184         * MODULES.html.sh (Multithreading): Add tls.
23185
23186 2005-08-16  Bruno Haible  <bruno@clisp.org>
23187
23188         * modules/strnlen1: New file.
23189         * MODULES.html.sh (String handling): Add strnlen1.
23190
23191 2005-08-16  Bruno Haible  <bruno@clisp.org>
23192
23193         * modules/strcase (Files): Add m4/mbrtowc.m4.
23194         (Depends-on): Add strnlen1, mbchar.
23195
23196 2005-08-16  Bruno Haible  <bruno@clisp.org>
23197
23198         * modules/mbiter: New file.
23199         * MODULES.html.sh (Extended multibyte and wide character utilities):
23200         Add mbiter.
23201
23202 2005-08-16  Bruno Haible  <bruno@clisp.org>
23203
23204         * modules/mbfile: New file.
23205         * MODULES.html.sh (Extended multibyte and wide character utilities):
23206         Add mbfile.
23207
23208 2005-08-16  Bruno Haible  <bruno@clisp.org>
23209
23210         * modules/mbchar: New file.
23211         * MODULES.html.sh (Extended multibyte and wide character utilities):
23212         New section.
23213
23214 2005-08-16  Bruno Haible  <bruno@clisp.org>
23215
23216         * m4/tls.m4: New file, from GNU gettext.
23217
23218 2005-08-16  Bruno Haible  <bruno@clisp.org>
23219
23220         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
23221         always.
23222         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
23223
23224 2005-08-16  Bruno Haible  <bruno@clisp.org>
23225
23226         * m4/mbiter.m4: New file.
23227
23228 2005-08-16  Bruno Haible  <bruno@clisp.org>
23229
23230         * m4/mbfile.m4: New file.
23231
23232 2005-08-16  Bruno Haible  <bruno@clisp.org>
23233
23234         * m4/mbchar.m4: New file.
23235
23236 2005-08-16  Bruno Haible  <bruno@clisp.org>
23237
23238         * lib/tls.h: New file, from GNU gettext.
23239         * lib/tls.c: New file, from GNU gettext.
23240
23241 2005-08-16  Bruno Haible  <bruno@clisp.org>
23242
23243         * lib/strnlen1.h: New file.
23244         * lib/strnlen1.c: New file.
23245
23246 2005-08-16  Bruno Haible  <bruno@clisp.org>
23247
23248         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
23249         (mbi_init): Update.
23250         (mbi_avail, mbi_advance): Let the iteration end before the terminating
23251         NUL byte, not after it.
23252
23253 2005-08-16  Bruno Haible  <bruno@clisp.org>
23254
23255         * lib/strcase.h (strcasecmp): Add note in comments.
23256         * lib/strncasecmp.c: Use code from strcasecmp.c.
23257         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
23258         (strcasecmp): Work correctly in multibyte locales.
23259
23260 2005-08-16  Bruno Haible  <bruno@clisp.org>
23261
23262         * lib/mbiter.h: New file.
23263
23264 2005-08-16  Bruno Haible  <bruno@clisp.org>
23265
23266         * lib/mbfile.h: New file.
23267
23268 2005-08-16  Bruno Haible  <bruno@clisp.org>
23269
23270         * lib/mbchar.h: New file.
23271         * lib/mbchar.c: New file.
23272
23273 2005-08-16  Bruno Haible  <bruno@clisp.org>
23274
23275         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
23276         the valid ones. Makes the comparison operations transitive:
23277         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
23278         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
23279
23280 2005-08-15  Simon Josefsson  <jas@extundo.com>
23281
23282         * modules/ssize_t (License): Change to 'unlimited'.
23283
23284         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
23285
23286 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23287
23288         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
23289         Add comments for each pending glibc patch.
23290
23291 2005-08-15  Bruno Haible  <bruno@clisp.org>
23292
23293         * lib/regex.h (__restrict_arr): Don't define to __restrict if
23294         __cplusplus is defined.
23295
23296 2005-08-14  Jim Meyering  <jim@meyering.net>
23297
23298         Sync from coreutils.
23299
23300         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
23301         Use the hash-table-based cycle-detection code not just when
23302         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
23303         Reported by James Youngman in
23304         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
23305         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
23306         FTS_TIGHT_CYCLE_CHECK.
23307         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
23308         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
23309         once again.
23310         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
23311         * lib/fts.c (fd_safer): Remove decl.
23312         Include fcntl--.h rather than unistd-safer.h
23313         (fts_safe_changedir): Don't call fd_safer; no longer needed
23314         now that we include fcntl--.h.
23315
23316 2005-08-12  Simon Josefsson  <jas@extundo.com>
23317
23318         * modules/getndelim2: Use ssize_t module.
23319         * modules/getnline: Likewise.
23320         * modules/safe-read: Likewise.
23321         * modules/xreadlink: Likewise.
23322
23323         * modules/ssize_t: New file.
23324
23325 2005-08-12  Simon Josefsson  <jas@extundo.com>
23326
23327         * m4/readline.m4: Look for termcap, curses or ncurses if required.
23328
23329 2005-08-12  Simon Josefsson  <jas@extundo.com>
23330
23331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23332         ssize_t.
23333
23334 2005-08-12  Simon Josefsson  <jas@extundo.com>
23335
23336         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
23337         readline, getdelim and check_version.
23338         (Support for systems lacking ISO C 99: Sizes of integer types):
23339         Add size_max.
23340
23341 2005-08-12  Bruno Haible  <bruno@clisp.org>
23342
23343         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
23344
23345 2005-08-11  Simon Josefsson  <jas@extundo.com>
23346
23347         * modules/readline: New file.
23348
23349         * modules/strnlen (Files): Add strnlen.h.
23350
23351 2005-08-11  Simon Josefsson  <jas@extundo.com>
23352
23353         * m4/readline.m4: New file.
23354
23355 2005-08-11  Simon Josefsson  <jas@extundo.com>
23356
23357         * lib/readline.h, readline.c: New file.
23358
23359 2005-08-11  Simon Josefsson  <jas@extundo.com>
23360
23361         * doc/gnulib.texi (Initial import, Finishing touches): Mention
23362         gl_AVOID.
23363
23364 2005-08-11  Bruno Haible  <bruno@clisp.org>
23365
23366         * lib/strnlen.h (strnlen): Change parameter name to match comment.
23367
23368 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
23369
23370         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
23371
23372 2005-08-10  Simon Josefsson  <jas@extundo.com>
23373
23374         * tests/test-iconvme.c: New file.
23375
23376 2005-08-10  Simon Josefsson  <jas@extundo.com>
23377
23378         * m4/strnlen.m4: New file.
23379
23380         * m4/strndup.m4: Don't check for strnlen declaration, done in
23381         strnlen.m4.
23382
23383 2005-08-10  Simon Josefsson  <jas@extundo.com>
23384
23385         * lib/strndup.c: Use strnlen.h.
23386
23387         * lib/strnlen.h: New file.
23388
23389 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
23390
23391         * README: Typos.
23392
23393 2005-08-02  Simon Josefsson  <jas@extundo.com>
23394
23395         * modules/readline: New file.
23396
23397 2005-08-02  Simon Josefsson  <jas@extundo.com>
23398
23399         * modules/getdelim: New file.
23400
23401         * modules/getline: Rewrite, don't use getndelim2.
23402
23403 2005-08-02  Simon Josefsson  <jas@extundo.com>
23404
23405         * m4/getline.m4: Separate out getdelim stuff into separate module.
23406
23407         * m4/getdelim.m4: New file.
23408
23409 2005-08-02  Simon Josefsson  <jas@extundo.com>
23410
23411         * lib/getline.h, getline.c: Rewrite.
23412
23413         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
23414
23415 2005-07-31  Bruno Haible  <bruno@clisp.org>
23416
23417         * lib/lock.h (gl_lock_initializer): New macro.
23418         (gl_lock_define_initialized): Use it.
23419         (gl_rwlock_initializer): New macro.
23420         (gl_rwlock_define_initialized): Use it.
23421         (gl_recursive_lock_initializer): New macro.
23422         (gl_recursive_lock_define_initialized): Use it.
23423
23424 2005-07-30  Karl Berry  <karl@gnu.org>
23425
23426         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
23427         Report from Ben Pfaff, regarding getopt.
23428
23429 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23430
23431         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
23432         normal way.
23433         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
23434         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
23435         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
23436         (gl_GETOPT): Use the new macros.  Most of the implementation
23437         is moved to the new macros.  This is for programs like Emacs
23438         that don't want all the functionality of gl_GETOPT.
23439
23440 2005-07-26  Bruno Haible  <bruno@clisp.org>
23441
23442         * m4/lock.m4: Update from GNU gettext.
23443
23444 2005-07-26  Bruno Haible  <bruno@clisp.org>
23445
23446         * lib/lock.h: Update from GNU gettext.
23447         * lib/lock.c: Update from GNU gettext.
23448
23449 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
23450
23451         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
23452         obsolescent AC_TRY_RUN.  Include the default includes files, for
23453         'exit'.
23454
23455 2005-07-24  Bruno Haible  <bruno@clisp.org>
23456
23457         * modules/visibility: New file.
23458         * MODULES.html.sh (Misc): Add visibility.
23459
23460 2005-07-24  Bruno Haible  <bruno@clisp.org>
23461
23462         * m4/visibility.m4: New file.
23463
23464 2005-07-24  Bruno Haible  <bruno@clisp.org>
23465
23466         * doc/visibility.texi: New file.
23467
23468 2005-07-22  Bruno Haible  <bruno@clisp.org>
23469
23470         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
23471         $(ALLOCA_H), redundant through BUILT_SOURCES.
23472         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
23473         redundant through BUILT_SOURCES.
23474         * modules/byteswap (Makefile.am): Remove explicit dependency on
23475         $(BYTESWAP_H), redundant through BUILT_SOURCES.
23476         * modules/fnmatch (Makefile.am): Remove explicit dependency on
23477         $(FNMATCH_H), redundant through BUILT_SOURCES.
23478         * modules/getopt (Makefile.am): Remove explicit dependency on
23479         $(GETOPT_H), redundant through BUILT_SOURCES.
23480         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
23481         redundant through BUILT_SOURCES.
23482         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
23483         redundant through BUILT_SOURCES.
23484         * modules/stdbool (Makefile.am): Remove explicit dependency on
23485         $(STDBOOL_H), redundant through BUILT_SOURCES.
23486         * modules/stdint (Makefile.am): Remove explicit dependency on
23487         $(STDINT_H), redundant through BUILT_SOURCES.
23488         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
23489         Remove explicit dependency on $(SYSEXITS_H).
23490         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
23491
23492 2005-07-18  Simon Josefsson  <jas@extundo.com>
23493
23494         * lib/check-version.c (check_version): Accept identical versions too.
23495
23496 2005-07-18  Bruno Haible  <bruno@clisp.org>
23497
23498         * modules/lock: New file.
23499         * MODULES.html.sh (Multithreading): New section.
23500
23501 2005-07-18  Bruno Haible  <bruno@clisp.org>
23502
23503         * m4/lock.m4: New file, from GNU gettext.
23504
23505 2005-07-18  Bruno Haible  <bruno@clisp.org>
23506
23507         * lib/lock.h: New file, from GNU gettext.
23508         * lib/lock.c: New file, from GNU gettext.
23509
23510 2005-07-18  Bruno Haible  <bruno@clisp.org>
23511
23512         * lib/lock.h (gl_once_t): New type.
23513         (gl_once_define, gl_once): New macros.
23514         * lib/lock.c (fresh_once): New variable.
23515         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
23516         functions.
23517
23518 2005-07-16  Simon Josefsson  <jas@extundo.com>
23519
23520         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
23521         workaround, suggested by Bruno.
23522
23523 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23524
23525         * modules/xalloc (Depends-on): Add xalloc-die.
23526         * modules/xvasprintf (Depends-on): Add xalloc-die.
23527
23528 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23529
23530         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
23531         with a minor change.
23532
23533 2005-07-15  Bruno Haible  <bruno@clisp.org>
23534
23535         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
23536         When using lib/poll.c, define poll as rpl_poll.
23537
23538 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
23539
23540         * modules/argp (Depends-on): Remove unlocked-io.
23541
23542 2005-07-14  Derek Price  <derek@ximbiot.com>
23543
23544         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
23545         for glob symlink bug.
23546
23547 2005-07-14  Bruno Haible  <bruno@clisp.org>
23548
23549         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
23550         Instead, test for *_unlocked function declarations directly.
23551
23552 2005-07-11  Simon Josefsson  <jas@extundo.com>
23553
23554         * modules/size_max: New file.
23555
23556         * modules/xsize: Depend on size_max module for size_max.m4.
23557
23558 2005-07-11  Simon Josefsson  <jas@extundo.com>
23559
23560         * lib/size_max.h: New file.
23561
23562 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
23563
23564         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
23565         copyright symbol and the year.
23566         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
23567         (version_etc_va): Use parameterized copyright notice.
23568         Reword to conform to the current GNU coding standards.
23569
23570 2005-07-11  Karl Berry  <karl@gnu.org>
23571
23572         * doc/gnulib.texi (Quoting): new node.
23573         (Initial import): more info, from Patrice.
23574
23575 2005-07-11  Bruno Haible  <bruno@clisp.org>
23576
23577         * gnulib-tool (func_usage): Document option --avoid.
23578         (Command line options): Handle --avoid.
23579         (func_acceptable): New function.
23580         (func_modules_transitive_closure): Use it.
23581
23582 2005-07-11  Bruno Haible  <bruno@clisp.org>
23583
23584         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
23585         Reported by Jim Meyering.
23586
23587 2005-07-10  Bruno Haible  <bruno@clisp.org>
23588
23589         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
23590         Needed when size_t is smaller than 'unsigned int'.
23591         Reported by Paul Eggert.
23592
23593 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23594
23595         * modules/argp (Depends-on): Add unlocked-io
23596
23597 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23598
23599         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
23600         block of defines.
23601
23602 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         * config/srclist.txt: Comment out regcomp.c, since we have a porting
23605         fix now.
23606
23607 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
23608         and Paul Eggert  <eggert@cs.ucla.edu>
23609
23610         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
23611         in wint_t, not wchar_t.  Remove now-unnecessary cast.
23612
23613 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23614
23615         * modules/regex (Files): Add lib/regex_internal.c,
23616         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
23617         (Depends-on): Add extensions.
23618         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
23619
23620 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23621
23622         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
23623         pathconf.
23624         * m4/same.m4 (gl_SAME): Likewise.
23625         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
23626
23627         * m4/regex.m4: Adjust to new libc regex implementation.
23628         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
23629         all the .c and .h parts of (the new) regex.
23630         Quote the m4 stuff better.
23631         Check for RE_ICASE bug of old gnulib.
23632         Check for REG_STARTEND of recent libc.
23633         Rename local variables from jm_* to gl_*.
23634         Quote operand of "test -f".
23635         Say "recent enough" version of libc, not "version 2".
23636         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
23637         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
23638         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
23639         Remove check for btowc, isascii.
23640         Require AM_LANGINFO_CODESET.
23641
23642 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23643
23644         * lib/regex.c, regex.h: Sync from libc.
23645         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
23646         * lib/regexec.c:
23647         New files, synced from libc, except that regex_internal.h
23648         currently has a small porting fix.
23649
23650 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23651
23652         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
23653         regex_internal.c, regexec.c.
23654         Add regex_internal.h too, but as a comment, since the libc version
23655         is currently broken in gnulib mode.
23656
23657 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23658
23659         Support programs like Emacs that use gnulib but not gettext.
23660         * MODULES.html.sh (Internationalization functions): Add gettext-h.
23661         * modules/gettext-h: New file.
23662         * modules/gettext (Files): Remove lib/gettext.h.
23663         (Depends-on): Add gettext-h.
23664         (Makefile.am): Remove lib_SOURCES.
23665         * modules/argmatch, modules/c-stack, modules/closeout:
23666         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
23667         * modules/execute, modules/file-type, modules/getaddrinfo:
23668         * modules/getopt, modules/human, modules/javacomp:
23669         * modules/javaexec, modules/mkdir-p, modules/obstack:
23670         * modules/openat, modules/pagealign_alloc, modules/pipe:
23671         * modules/quotearg, modules/regex, modules/rpmatch:
23672         * modules/unicodeio, modules/userspec, modules/version-etc:
23673         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
23674         * modules/xsetenv:
23675         Depend on gettext-h, not gettext.
23676
23677 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
23678
23679         * gnulib-tool (func_import): Add support for 'public domain' license.
23680         * modules/alloca, modules/atexit, modules/memmove:
23681         Now public domain, not GPL.
23682         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
23683         * modules/realloc, modules/strerror, modules/strtod:
23684         Now LGPL, not GPL.
23685
23686 2005-07-05  Bruno Haible  <bruno@clisp.org>
23687
23688         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
23689         autoconf CVS. Needed for mingw.
23690
23691 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23692
23693         Remove the dependency of the strftime module on the tzset module.
23694         * modules/strftime (Depends-on): Remove dependency on tzset.
23695
23696 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23697
23698         Remove the dependency of the strftime module on the tzset module.
23699         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
23700         gl_FUNC_TZSET_CLOBBER.
23701
23702 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
23703
23704         Remove the dependency of the strftime module on the tzset module.
23705         * lib/strftime.c (my_strftime)
23706         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
23707         Copy the input structure, to work around some of the bug with
23708         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
23709         Solaris releases, you should also use the tzset module, but we won't
23710         require it as a dependency any more since we don't want LGPLed code
23711         to depend on GPLed code.
23712
23713 2005-07-02  Jim Meyering  <jim@meyering.net>
23714
23715         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
23716         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
23717         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
23718         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
23719
23720 2005-07-02  Jim Meyering  <jim@meyering.net>
23721
23722         * lib/backupfile.c (backup_args): Change a `0' to NULL.
23723
23724 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
23725
23726         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
23727         declares only 'struct timespec;' (!).
23728
23729 2005-07-01  Jim Meyering  <jim@meyering.net>
23730
23731         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
23732         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
23733         * lib/save-cwd.c, tempname.c:
23734         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
23735         and don't include <sys/file.h>).
23736
23737 2005-06-29  Jim Meyering  <jim@meyering.net>
23738
23739         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
23740         type name.  Use the variable name instead.
23741         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23742         Likewise.
23743
23744 2005-06-28  Simon Josefsson  <jas@extundo.com>
23745
23746         * modules/check-version (Files): Add check-version.m4.
23747
23748 2005-06-28  Simon Josefsson  <jas@extundo.com>
23749
23750         * m4/check-version.m4: New file, suggested by Jim Meyering
23751         <jim@meyering.net>.
23752
23753 2005-06-28  Simon Josefsson  <jas@extundo.com>
23754
23755         * lib/check-version.h, lib/check-version.c: New files.
23756
23757 2005-06-28  Simon Josefsson  <jas@extundo.com>
23758
23759         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
23760         collision with global variable.  Better indentation.  Don't
23761         increment buffer pointer beyond buffer end.  Based on comments
23762         from Paul Eggert <eggert@cs.ucla.edu>.
23763
23764         * lib/base64.h: Indent.
23765
23766 2005-06-28  Simon Josefsson  <jas@extundo.com>
23767
23768         * doc/gnulib.texi (Library version handling): New section.
23769
23770 2005-06-28  Jim Meyering  <jim@meyering.net>
23771
23772         * check-module (find_included_lib_files): Hard-code another
23773         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
23774         but modules/fts-lgpl (correctly) does not list those files.
23775
23776         * modules/canonicalize (Files): Add lib/pathmax.h.
23777
23778 2005-06-25  Simon Josefsson  <jas@extundo.com>
23779
23780         * modules/check-version: New file.
23781
23782 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23783
23784         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
23785         initializer of struct addrinfo, as an indication that we don't
23786         care how many members the structure has.
23787
23788 2005-06-24  Derek Price  <derek@ximbiot.com>
23789         and Bruno Haible  <bruno@clisp.org>
23790
23791         Remove stat module & update lstat.
23792         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
23793         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23794         * m4/stat.m4: Remove this file.
23795
23796 2005-06-24  Derek Price  <derek@ximbiot.com>
23797         and Bruno Haible  <bruno@clisp.org>
23798
23799         Remove stat module & update lstat.
23800         * lib/stat.c: Remove this file...
23801         (slash_aware_lstat): ...moving this content and its support...
23802         * lib/lstat.c (rpl_lstat): ...into here.
23803         * lib/lstat.h: New file.
23804
23805 2005-06-24  Derek Price  <derek@ximbiot.com>
23806         and Bruno Haible  <bruno@clisp.org>
23807
23808         Remove stat module & update lstat.
23809         * config/srclist.txt (libc sources): Remove stat.
23810
23811 2005-06-24  Derek Price  <derek@ximbiot.com>
23812         and Bruno Haible  <bruno@clisp.org>
23813
23814         Remove stat module & update lstat.
23815         * MODULES.html.sh (stat): Remove.
23816         * MODULES.html: Regenerated.
23817         * modules/lstat (Description): Correct function name.
23818         (Files): Add "lstat.h".
23819         (Depends-on): Remove stat, add xalloc, stat-macros.
23820         * modules/stat: Remove this file.
23821         (Include): Add "lstat.h", remove <sys/stat.h>.
23822
23823 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
23824
23825         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
23826         (ranged_convert): Don't save conversion in a temporary struct.
23827         This causes a warning with GCC 4.0.0, and anyway in the typical
23828         case it's not worth the extra 100 bytes or so of code.
23829         (ranged_convert, __mktime_internal): When calling a function via a
23830         pointer P, use P () rather than (*P) (), as we now assume C89 or
23831         better.
23832
23833 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23834
23835         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
23836         "who -r" failed to give output.  Problem reported by Tim Waugh.
23837
23838         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
23839         (xcalloc): Use it to avoid needless tests.
23840         Problem reported by Jim Meyering.
23841
23842 2005-06-20  Derek Price  <derek@ximbiot.com>
23843
23844         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
23845         unnecessary for Autoconfs > 2.59c.
23846
23847 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23848
23849         * lib/argp.h (__option_is_short): Check upper limit of
23850         __key. Isprint() requires its argument to have the value
23851         of an unsigned char or EOF.
23852
23853 2005-06-16  Jim Meyering  <jim@meyering.net>
23854
23855         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
23856         when either N or S is zero.
23857
23858 2005-06-16  Derek Price  <derek@ximbiot.com>
23859
23860         * m4/bison.m4: Declare YACC & YFLAGS precious.
23861
23862 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
23863
23864         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
23865         multibyte string or pattern, fall back on unibyte matching.
23866         Problem reported by James Youngman.
23867
23868 2005-06-08  Bruno Haible  <bruno@clisp.org>
23869
23870         * modules/csharpcomp: New file.
23871         * MODULES.html.sh (C#): Add csharpcomp.
23872
23873 2005-06-08  Bruno Haible  <bruno@clisp.org>
23874
23875         * m4/csharpcomp.m4: New file, from GNU gettext.
23876
23877 2005-06-08  Bruno Haible  <bruno@clisp.org>
23878
23879         * lib/csharpcomp.h: New file, from GNU gettext.
23880         * lib/csharpcomp.c: New file, from GNU gettext.
23881         * lib/csharpcomp.sh.in: New file, from GNU gettext.
23882
23883 2005-06-08  Bruno Haible  <bruno@clisp.org>
23884
23885         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
23886         warning on mingw.
23887
23888 2005-06-07  Derek Price  <derek@ximbiot.com>
23889
23890         Sync from CVS.
23891         * lib/glob_.h: Indent nested #ifdef.
23892
23893 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23894
23895         Sync from coreutils.
23896         Use "file name" when talking about file names, instead of "filename"
23897         or "path", as per the GNU coding standards.
23898         * lib/mkdir-p.c: Renamed from makepath.c.
23899         (make_dir_parents): Renamed from make_path.  All callers changed.
23900         * lib/mkdir-p.h: Likewise.  All includers changed.
23901         * lib/filenamecat.c: Renamed from path-concat.c.
23902         (file_name_concat): Renamed from path_concat.  All callers changed.
23903         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
23904         * lib/filenamecat.h: Likewise.  All includers changed.
23905         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
23906         in comments or local variable names.
23907         * lib/basename.c: Likewise.
23908         * lib/canonicalize.c, canonicalize.h: Likewise.
23909         * lib/dirname.c, dirname.h: Likewise.
23910         * lib/euidaccess.c: Likewise.
23911         * lib/exclude.c: Likewise
23912         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
23913         * lib/fsusage.c, fsuage.h: Likewise.
23914         * lib/fts.c, fts_.h: Likewise.
23915         * lib/getcwd.c: Likewise.
23916         * lib/getloadavg.c: Likewise.
23917         * lib/mkstemp.c: Likewise.
23918         * lib/mountlist.c, mountlist.h: Likewise.
23919         * lib/openat.c, openat.h: Likewise.
23920         * lib/readlink-stub.c: Likewise.
23921         * lib/readutmp.c, readutmp.h: Likewise.
23922         * lib/rename.c: Likewise.
23923         * lib/rmdir.c: Likewise.
23924         * lib/same.c: Likewise.
23925         * lib/savedir.c: Likewise.
23926         * lib/stripslash.c: Likewise.
23927         * lib/tempname.c: Likewise.
23928         * lib/xreadlink.c: Likewise.
23929         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
23930         All uses changed.
23931         * lib/exclude.h: Likewise.
23932
23933         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
23934         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
23935         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
23936         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
23937         * lib/pathmax.h: Include <limits.h> unconditionally, since other
23938         files have been getting away with it for years (MORE/BSD 4.3
23939         is extinct now).
23940         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
23941         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
23942
23943         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
23944         Define to 256, not 255, as per modern POSIX.
23945
23946 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23947
23948         Sync from coreutils.
23949         Use "file name" when talking about file names, instead of "filename"
23950         or "path", as per the GNU coding standards.
23951         * MODULES.html.sh: mkdir-p renamed from makepath.
23952         filenamecat renamed from path-concat.
23953         * modules/filenamecat: Renamed from modules/path-concat.
23954         (Files): filenamecat.h and filenamecat.c renamed from
23955         path-concat.h and path-concat.c.
23956         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
23957         (Include): filenamecat.h, not path-concat.h.
23958         * modules/mkdir-p: Renamed from modules/makepath.
23959         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
23960         makepath.c.
23961         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
23962         (Include): mkdir-p.h, not makepath.h.
23963
23964 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
23965
23966         Sync from coreutils.
23967         * m4/mkdir-p.m4: Renamed from makepath.m4.
23968         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
23969         Rename files from makepath.c to mkdir-p.c, and from
23970         makepath.h to mkdir-p.h.
23971         * m4/filenamecat.m4: Renamed from path-concat.m4.
23972         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
23973         Rename files from path-concat.c to filenamecat.c,
23974         and from path-concat.h to filenamecat.h.
23975         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
23976         "file name" in local variables or comments.
23977         * m4/rename.m4: Likewise.
23978
23979 2005-06-01  Bruno Haible  <bruno@clisp.org>
23980
23981         * modules/csharpexec: New file.
23982         * MODULES.html.sh (C#): New section.
23983
23984 2005-06-01  Bruno Haible  <bruno@clisp.org>
23985
23986         * m4/csharp.m4: New file, from GNU gettext.
23987         * m4/csharpexec.m4: New file, from GNU gettext.
23988
23989 2005-06-01  Bruno Haible  <bruno@clisp.org>
23990
23991         * lib/csharpexec.h: New file, from GNU gettext.
23992         * lib/csharpexec.c: New file, from GNU gettext.
23993         * lib/csharpexec.sh.in: New file, from GNU gettext.
23994
23995 2005-05-31  Derek Price  <derek@ximbiot.com>
23996             Paul Eggert  <eggert@cs.ucla.edu>
23997
23998         Sync from cvs.
23999         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
24000
24001 2005-05-31  Derek Price  <derek@ximbiot.com>
24002             Paul Eggert  <eggert@cs.ucla.edu>
24003
24004         Sync from cvs.
24005         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
24006
24007 2005-05-29  Derek Price  <derek@ximbiot.com>
24008
24009         * config/srclist.txt (glob_.h, glob.c): Add these files.
24010
24011 2005-05-29  Derek Price  <derek@ximbiot.com>
24012
24013         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
24014         * modules/glob: New file.
24015         * modules/getlogin_r: Add link to POSIX spec in description.
24016
24017 2005-05-29  Derek Price  <derek@ximbiot.com>
24018             Paul Eggert  <eggert@cs.ucla.edu>
24019
24020         * m4/glob.m4: New file.
24021
24022 2005-05-29  Derek Price  <derek@ximbiot.com>
24023             Paul Eggert  <eggert@cs.ucla.edu>
24024
24025         * lib/glob_.h, lib/glob.c: New files.
24026
24027 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         * modules/fts (Files): Remove m4/inttypes-pri.m4.
24030         * modules/fts-lgpl (Depends-on): Remove gettext.
24031
24032 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24033
24034         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
24035         and don't require gt_INTTYPES_PRI.
24036
24037 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
24040
24041         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
24042         the configuration hassle isn't worth it.
24043         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
24044         (LONGEST_MODIFIER, PRIuMAX): Remove.
24045
24046 2005-05-27  Bruno Haible  <bruno@clisp.org>
24047
24048         * lib/getlogin_r.h: Remove second include of <stddef.h>.
24049
24050 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
24051
24052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
24053         _POSIX_PTHREAD_SEMANTICS for Solaris.
24054
24055 2005-05-25  Derek Price  <derek@ximbiot.com>
24056
24057         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
24058
24059 2005-05-25  Derek Price  <derek@ximbiot.com>
24060             Paul Eggert  <eggert@cs.ucla.edu>
24061
24062         * modules/getlogin_r, m4/getlogin_r.m4: New files.
24063         * lib/getlogin_r.c, getlogin_r.h: New files.
24064
24065 2005-05-25  Bruno Haible  <bruno@clisp.org>
24066             Derek Price  <derek@ximbiot.com>
24067
24068         * lib/getlogin_r.h: Simplify API documentation.
24069
24070 2005-05-23  Derek Price  <derek@ximbiot.com>
24071
24072         * modules/minmax (Files): Add m4/minmax.m4.
24073         (configure.ac): Add gl_MINMAX.
24074
24075 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
24076
24077         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
24078         so that unistd-safer.h (GPL'ed code) need not be included.
24079
24080 2005-05-22  Bruno Haible  <bruno@clisp.org>
24081
24082         * m4/minmax.m4: New file.
24083         Based on a patch by Derek Price <derek@ximbiot.com>.
24084
24085 2005-05-22  Bruno Haible  <bruno@clisp.org>
24086
24087         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
24088         (INT64_MIN): Fix definition.
24089         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
24090
24091         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
24092         NEED_SIGNED_INT_TYPES.
24093
24094         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
24095         HAVE_SYSTEM_INTTYPES.
24096
24097 2005-05-22  Bruno Haible  <bruno@clisp.org>
24098
24099         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
24100         Also include <sys/param.h> if it defines MIN, MAX.
24101         Based on a patch by Derek Price <derek@ximbiot.com>.
24102
24103 2005-05-21  Jim Meyering  <jim@meyering.net>
24104
24105         * modules/fts (Files): Add m4/inttypes-pri.m4.
24106         (Depends-on): Add lstat and remove gettext.  Alphabetize.
24107
24108 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24109
24110         New fts module.
24111         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
24112         (setup_dir, free_dir): New functions.
24113         (enter_dir, leave_dir): Define trivial
24114         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
24115         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
24116         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
24117         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
24118         Move to fts-cycle.c.
24119         (fts_open): Use setup_dir.
24120         (fts_close): Use free_dir.
24121         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
24122         This adds a label and some gotos, but the alternatives were messier.
24123         Check for memory allocation failure when entering a dir.
24124         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
24125         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
24126         (FTS): New member fts_cycle, that is a union that contains the
24127         old active_dir_ht and cycle_state.  All uses changed to mention
24128         fts_cycle.ht and fts_cycle.state.
24129         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
24130         fts.c, with the following changes:
24131         (setup_dir, free_dir): New functions.
24132         (enter_dir): Now returns bool.  Return true if successful, false
24133         if memory exhausted.  All callers changed.
24134         Do not bother partly cleaning up on
24135         memory allocation failure; that is free_dir's job.
24136         However, free ad if hash_insert fails, to avoid memory leak.
24137         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
24138         fts->fts_options to see which union member to use.
24139
24140 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24141
24142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
24143         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
24144
24145 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24146
24147         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
24148
24149 2005-05-20  Jim Meyering  <jim@meyering.net>
24150
24151         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
24152         Now a macro, to pacify GCC.
24153
24154 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
24155
24156         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
24157         of -1.
24158
24159 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
24160
24161         * lib/chown.c (rpl_chown): Return -1 on failure.
24162
24163 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24164
24165         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
24166         Don't check for stddef.h.
24167         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
24168         don't use its results.
24169         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
24170         since we include them unconditionally.  Don't require
24171         AM_STDBOOL_H, since stdbool is a prerequisite.
24172         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
24173         since we assume C89 or better.
24174         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
24175         as we don't use their results.
24176         Don't check for fchdir, memmove, memset, strrchr, as we use
24177         them unconditionally.
24178         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
24179         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
24180
24181 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
24182
24183         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
24184         Include <stddef.h> unconditionally, since we assume C89 now.
24185         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
24186         * lib/fts.c: Include fts_.h first, to check interface.
24187         Do not include intprops.h; no longer needed.
24188         Include cycle-check.h and hash.h, since fts_.h no longer does.
24189         Remove unnecessary casts of closedir to void.
24190         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
24191         decide whether to decrement nlinks.
24192         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
24193         (FTS): Use struct hash_table * instead of Hash_table, so that
24194         we no longer need to include hash.h here.
24195
24196 2005-05-18  Jim Meyering  <jim@meyering.net>
24197
24198         * modules/dirfd (License): Change to LGPL.  Most of the code
24199         is already in the public domain.
24200
24201 2005-05-18  Jim Meyering  <jim@meyering.net>
24202
24203         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
24204         Reported by Yoann Vandoorselaere.
24205
24206 2005-05-17  Jim Meyering  <jim@meyering.net>
24207
24208         * m4/fts.m4: New file, from coreutils.
24209
24210 2005-05-17  Jim Meyering  <jim@meyering.net>
24211
24212         * lib/fts.c, lib/fts_.h: New files, from coreutils.
24213
24214 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24215
24216         Sync from coreutils.
24217         * m4/unlinkdir.m4: New file.
24218
24219 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24220
24221         Sync from coreutils.
24222         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
24223         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
24224         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
24225         White space changes only.
24226         * lib/makepath.c (make_path): Port to hosts where leading "//" is
24227         special.
24228         * lib/yesno.c: Include getline.h, not ctype.h.
24229         (yesno): Don't remove leading white space; POSIX doesn't allow it.
24230         Use getline to remove arbitrary restriction on response length.
24231
24232 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         * config/srclist-update: Spell out "Street" in FSF postal
24235         mail address; this is the style the FSF seems to prefer.
24236
24237         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
24238         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
24239         this updates FSF postal mail address.
24240
24241         Sync from coreutils.
24242         * modules/unlinkdir: New file.
24243         * modules/yesno (Depends-on): Add getline.
24244         * MODULES.html.sh (File system functions): Add unlinkdir.
24245
24246 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24247
24248         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
24249         lib/strsep.h:
24250         Change the initial comment to refer to GPL, not LGPL.
24251         gnulib-tool will change it to LGPL as needed.
24252
24253         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
24254         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
24255         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
24256         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
24257         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
24258         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
24259         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
24260         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
24261         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
24262         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
24263         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
24264         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
24265         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
24266         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
24267         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
24268         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
24269         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
24270         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
24271         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
24272         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
24273         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
24274         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
24275         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
24276         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
24277         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
24278         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
24279         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
24280         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
24281         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
24282         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
24283         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
24284         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
24285         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
24286         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
24287         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
24288         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
24289         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
24290         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
24291         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
24292         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
24293         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
24294         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
24295         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
24296         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
24297         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
24298         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
24299         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
24300         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
24301         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
24302         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
24303         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
24304         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
24305         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
24306         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
24307         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
24308         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
24309         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
24310         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
24311         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
24312         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
24313         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
24314         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
24315         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
24316         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
24317         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
24318         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
24319         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
24320         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
24321         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
24322         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
24323         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
24324         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
24325         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
24326         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
24327         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
24328         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
24329         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
24330         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
24331         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
24332         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
24333         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
24334         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
24335         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
24336         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
24337         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
24338         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
24339         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
24340         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
24341         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
24342         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
24343         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
24344         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
24345         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
24346         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
24347         lib/yesno.c, lib/yesno.h:
24348         Update FSF postal mail address.
24349
24350 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24351
24352         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
24353         tests/test-memmem.c, tests/test-stpncpy.c:
24354         Update FSF postal mail address.
24355
24356 2005-05-13  Bruno Haible  <bruno@clisp.org>
24357
24358         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
24359         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
24360         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
24361         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
24362         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
24363         Add support for 64-bit integers in the MSVC compiler.
24364
24365 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24366
24367         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
24368
24369 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
24370
24371         * gnulib-tool (func_import): Sort and uniquify recommended includes.
24372
24373 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24374
24375         * doc/getdate.texi (General date syntax): Don't say that date
24376         date --iso-8601=ns generates acceptable dates; it doesn't yet.
24377         Problem reported by Nic Ferrier.
24378
24379 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24380
24381         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
24382         specified in ai_socktype. Fix invalid ai_protocol
24383         check. ai_protocol is usually set to 0 or depending on
24384         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
24385         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
24386         ai_socktype / ai_protocol in the returned addrinfo structure.
24387
24388 2005-05-10  Simon Josefsson  <jas@extundo.com>
24389
24390         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
24391         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24392
24393 2005-05-10  Karl Berry  <karl@gnu.org>
24394
24395         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
24396         (from http://www.gnu.org/licenses).
24397         * doc/COPYING.LIB: also rename to COPYING.LESSER.
24398         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
24399         fdl.texi suffices.
24400
24401 2005-05-10  Karl Berry  <karl@gnu.org>
24402
24403         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
24404         (COPYING.DOC): remove.
24405
24406         * config/srclist-update: new FSF address.
24407
24408 2005-05-10  Derek Price  <derek@ximbiot.com>
24409
24410         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
24411         possible.
24412
24413 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24414             Bruno Haible  <bruno@clisp.org>
24415
24416         * modules/inet_ntop: New file.
24417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24418         inet_ntop.
24419
24420 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24421             Bruno Haible  <bruno@clisp.org>
24422
24423         * m4/inet_ntop.m4: New file.
24424
24425 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24426             Bruno Haible  <bruno@clisp.org>
24427
24428         * lib/inet_ntop.h: New file.
24429         * lib/inet_ntop.c: New file, from glibc with modifications.
24430
24431 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
24432
24433         * modules/time_r (License): Change to LGPL.
24434         * modules/extensions (License): Change to LGPL.  Actually,
24435         the license is more permissive than that, but currently gnulib-tool
24436         doesn't know how to handle more-permissive licenses.
24437
24438         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
24439         Problem reported by Dave Love.
24440
24441 2005-05-08  Jim Meyering  <jim@meyering.net>
24442
24443         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
24444         blank.
24445
24446 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
24447
24448         * modules/argmatch (Depends-on): Add stdbool.
24449         * modules/backupfile (Depends-on): Likewise.
24450         * modules/chdir-long (Depends-on): Likewise.
24451         * modules/closeout (Depends-on): Likewise.
24452         * modules/cycle-check (Depends-on): Likewise.
24453         * modules/dirname (Depends-on): Likewise.
24454         * modules/fnmatch (Depends-on): Likewise.
24455         * modules/fsusage (Depends-on): Likewise.
24456         * modules/fwriteerror (Depends-on): Likewise.
24457         * modules/getcwd (Depends-on): Likewise.
24458         * modules/getloadavg (Depends-on): Likewise.
24459         * modules/hard-locale (Depends-on): Likewise.
24460         * modules/makepath (Depends-on): Likewise.
24461         * modules/mountlist (Depends-on): Likewise.
24462         * modules/nanosleep (Depends-on): Likewise.
24463         * modules/posixtm (Depends-on): Likewise.
24464         * modules/quotearg (Depends-on): Likewise.
24465         * modules/readtokens (Depends-on): Likewise.
24466         * modules/readtokens0 (Depends-on): Likewise.
24467         * modules/readutmp (Depends-on): Likewise.
24468         * modules/save-cwd (Depends-on): Likewise.
24469         * modules/strftime (Depends-on): Likewise.
24470         * modules/userspec (Depends-on): Likewise.
24471         * modules/utimecmp (Depends-on): Likewise.
24472         * modules/xgetcwd (Depends-on): Likewise.
24473         * modules/xnanosleep (Depends-on): Likewise.
24474         * modules/xstrtod (Depends-on): Likewise.
24475         * modules/yesno (Depends-on): Likewise.
24476
24477 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24478
24479         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
24480         needless checks.
24481
24482 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24483
24484         Merge from coreutils.  Among other things,
24485         add bulletproofing for cases where stdin, stdout, or stderr are closed.
24486         * lib/fd-safer.c: New file.
24487         * lib/fcntl-safer.h, open-safer.c: Remove.
24488         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
24489         * lib/dup-safer.c: Include unistd-safer.h first.
24490         Don't include errno.h.
24491         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
24492         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
24493         * lib/file-type.c: Rely on file-type.h change.
24494         * lib/getloadavg.c: Include unistd-safer.h.
24495         (getloadavg): Use safer open.
24496         * lib/getusershell.c: Include "stdio-safer.h".
24497         (getusershell): Use safer fopen.
24498         * lib/long-options.c (long_options): Use NULL rather than 0.
24499         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
24500         'free'.
24501         * lib/modechange.c: Likewise.
24502         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
24503         (MODE_DONE): New constant.
24504         (struct mode_change): Remove 'next' member.
24505         (make_node_op_equals): New function; like the old one of the
24506         same name, except it allocates an array.
24507         (mode_compile, mode_create_from_ref): Use it.
24508         (mode_compile): Allocate result as an array, not a linked list.
24509         Parse octal string ourself, so that we catch mistakes like "+0".
24510         (mode_adjust): Arg is an array, not a linked list.
24511         * lib/modechange.c: Include stat-macros.h, xalloc.h.
24512         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
24513         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
24514         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
24515         Remove.  This is now stat-macros.h's job.
24516         (talloc): Remove.  All callers replaced by xalloc, so that
24517         our invokers don't have to worry about reporting memory failures.
24518         (make_node_op_equals): Remove.
24519         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
24520         New constants.
24521         (struct mode_change): Moved here from modechange.h.
24522         (mode_append_entry): Remove.
24523         (mode_compile): Remove MASKED_OPS arg, since it encouraged
24524         apps to have incorrect behavior.  Use simpler algorithm for head
24525         and tail.  Don't futz with umask; that's now the job of mode_adjust.
24526         Detect more invalid usages rather than having somewhat-random behavior.
24527         Don't insert an "a=" action, as that leads to incorrect behavior.
24528         (mode_compile, mode_create_from_ref): Return NULL on error instead
24529         of an enum, since now there's only one way to have an error.  All
24530         callers changed.
24531         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
24532         at the correct time.  Simplify calculation of "+u" and its ilk.
24533         Don't mishandle "+X".
24534         (mode_free): Remove "register" and localize decls.
24535         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
24536         (struct mode_change): Move to modechange.c; callers don't
24537         need to see this stuff.
24538         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
24539         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
24540         (mode_change, mode_adjust): Reflect the new signatures noted above.
24541         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
24542         that might redefine system include files.
24543         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
24544         (my_usleep): Use NULL rather than (void *) 0.
24545         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
24546         Use siginterrupt to specify that system calls should be interrupted.
24547         (rpl_nanosleep): Move initialization of suspended closer to call of
24548         my_usleep.
24549         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
24550         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
24551         (desirable_utmp_entry): New function.
24552         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
24553         using x2nrealloc, to simplify logic.
24554         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
24555         size calculation.  Do not assume utmp file is a regular file.
24556         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
24557         (READ_UTMP_CHECK_PIDS): New constant.
24558         * lib/save-cwd.c: Include unistd-safer.h.
24559         (save_cwd): Use fd_safer.
24560         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
24561         [!_LIBC] Include "stat-macros.h" instead.
24562         * lib/unistd-safer.h (fd_safer): New decl.
24563
24564 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24565
24566         * modules/getloadavg (Depends-on): Add unistd-safer.
24567         * modules/getusershell (Depends-on): Add stdio-safer.
24568         * modules/lstat (Depends-on): Remove xalloc.
24569         * modules/mkstemp (Depends-on): Add stat-macros.
24570         * modules/modechange (Depends-on): Remove xstrtol.
24571         Add stat-macros, xalloc.
24572         * modules/save-cwd (Depends-on): Add unistd-safer.
24573         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
24574         * modules/unistd-safer (Files): Add lib/fd-safer.c
24575         (Makefile.am): Remove lib_SOURCES.
24576
24577         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
24578         Remove fcntl-safer; unistd-safer supersedes it.
24579
24580 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24581
24582         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
24583         AC_HEADER_STAT.
24584         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
24585         (gl_PREREQ_CHOWN): Remove.
24586         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
24587         it.  Don't require AC_HEADER_STAT.
24588         (gl_PREREQ_LSTAT): Remove.
24589         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
24590         Don't require AC_HEADER_STAT.
24591         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
24592         (gl_PREREQ_RMDIR): Remove.
24593         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
24594         mention stat-macros.h or AC_HEADER_STAT, since we'll make
24595         the stat-macros module a prerequisite.
24596         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
24597         * m4/filemode.m4 (gl_FILEMODE): Likewise.
24598         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
24599         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
24600         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
24601         variable names.
24602         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
24603         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
24604         variable prefixes.
24605         * m4/fcntl-safer.m4: Remove.
24606         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
24607         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
24608         Invoke gl_PREREQ_FD_SAFER.
24609         (gl_PREREQ_FD_SAFER): New macro.
24610         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
24611         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
24612         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
24613         Remove duplicate call to AC_LIBOBJ(readutmp).
24614         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
24615
24616         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
24617         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
24618
24619 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24620
24621         * MODULES.html.sh (Misc): Add byteswap.
24622
24623 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24624
24625         * modules/getcwd (Depends-on): Add extensions.
24626         * modules/openat (Depends-on): Likewise.
24627
24628 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24629
24630         * modules/byteswap: New file.
24631
24632 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24633
24634         * m4/byteswap.m4: New file.
24635
24636 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
24637
24638         * lib/byteswap_.h: New file.
24639
24640 2005-04-25  Karl Berry  <karl@gnu.org>
24641
24642         * m4/gettext.m4: Update from GNU gettext 0.14.4.
24643
24644 2005-04-25  Albert Chin  <china@thewrittenword.com>
24645
24646         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
24647         Toolkit C bug.
24648
24649 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
24650
24651         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
24652         (func_ln_if_changed) Remove forcibly for no error message
24653         in case file does not exist.
24654
24655 2005-04-19  Simon Josefsson  <jas@extundo.com>
24656
24657         * gnulib-tool (Options): Make --symlink mean --symbolic.
24658
24659 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
24660
24661         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
24662
24663 2005-04-16  Simon Josefsson  <jas@extundo.com>
24664
24665         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
24666
24667 2005-04-15  Simon Josefsson  <jas@extundo.com>
24668
24669         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
24670
24671 2005-04-15  Simon Josefsson  <jas@extundo.com>
24672
24673         * gnulib-tool: Rename --symlink to --symbolic.
24674
24675 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
24676
24677         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
24678         symbolic links to files instead of copying/moving.  Add --aux-dir,
24679         specifying directory relative --dir where auxiliary build tools
24680         are placed.
24681
24682 2005-04-14  Bruno Haible  <bruno@clisp.org>
24683
24684         * modules/allocsa (License): Change to LGPL.
24685         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24686
24687 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24688
24689         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
24690         that "UTC +1 second" continues to work.  Problem reported
24691         by Dmitry V. Levin.
24692         (relunit_snumber): New rule.
24693         (relunit): Use it.
24694
24695 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24696
24697         * lib/getdate.y (universal_time_zone_table): New constant.
24698         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
24699         universal_time_zone_table.
24700         (lookup_zone): Prefer universal_time_zone_table to
24701         local_time_zone_table, so that "GMT" time stamps are allowed in
24702         London during the summer.  Problem reported by Ian Abbott.
24703
24704 2005-04-12  Jim Meyering  <jim@meyering.net>
24705
24706         * lib/human.c (humblock): Set *options even when returning due to
24707         xstrtoumax conversion failure.  Thanks to a used-uninitialized
24708         warning from gcc-4.
24709
24710 2005-04-09  Jim Meyering  <jim@meyering.net>
24711
24712         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
24713         -Wuninitialized: initialize tm0.tm_year.
24714
24715 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24716
24717         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
24718         count, since there's no maximum.  All uses changed.
24719         Add member dsts_seen.
24720         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
24721         not being INT_MAX.
24722         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
24723         Use pc_rels_seen to decide whther a date is absolute.
24724
24725         * lib/getdate.y (number): Don't overwrite year.
24726         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
24727         check.
24728
24729 2005-04-02  Simon Josefsson  <jas@extundo.com>
24730
24731         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
24732         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
24733
24734 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
24735
24736         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
24737         where no absolute path name can be longer than PATH_MAX.
24738
24739 2005-03-27  Jim Meyering  <jim@meyering.net>
24740
24741         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
24742
24743 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
24744
24745         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
24746         "one's complement" -> "ones' complement" in comment, as per Knuth.
24747         "value of type" -> "type or expression" in comment.
24748         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
24749
24750 2005-03-26  Jim Meyering  <jim@meyering.net>
24751
24752         Comment nits.
24753         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
24754         Correct typos: s/or/of/.
24755
24756 2005-03-26  Jim Meyering  <jim@meyering.net>
24757
24758         * modules/check-include-files: Move to ../ and rename to...
24759         * check-module: ...this.
24760
24761 2005-03-25  Jim Meyering  <jim@meyering.net>
24762
24763         * modules/xvasprintf (Files): Add xalloc.h.
24764
24765 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24766
24767         * modules/gettext (Files): config/config.rpath ->
24768         build-aux/config.rpath
24769         * modules/iconv (Files): Likewise.
24770         Problem reported by Oskar Liljeblad.
24771
24772 2005-03-23  Jim Meyering  <jim@meyering.net>
24773
24774         * modules/check-include-files: New script to check for
24775         missing dependencies, multiple includes, etc.
24776
24777         * modules/c-strtold (Depends-on): Add xalloc.
24778         * modules/c-strtod (Depends-on): Add xalloc.
24779         * modules/hash (Depends-on): Add xalloc.
24780         (Files): Remove lib/xalloc.h.
24781
24782         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
24783         * modules/userspec (Files): Add lib/inttostr.h.
24784
24785 2005-03-23  Jim Meyering  <jim@meyering.net>
24786
24787         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
24788
24789 2005-03-22  Jim Meyering  <jim@meyering.net>
24790
24791         * modules/stat-macros: New module.
24792         * modules/canonicalize, modules/euidaccess, modules/file-type,
24793         * modules/filemode, modules/lchown, modules/makepath,
24794         * modules/rmdir, modules/stat: Depend on new stat-macros module
24795         rather than listing lib/stat-macros.h manually.
24796         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
24797
24798 2005-03-22  Jim Meyering  <jim@meyering.net>
24799
24800         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
24801
24802 2005-03-22  Bruno Haible  <bruno@clisp.org>
24803
24804         * config/srclist.txt: Replace target directory 'config' with
24805         'build-aux'.
24806         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
24807         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
24808         ../build-aux/.
24809
24810 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24811
24812         * modules/chdir-long (Depends-on): Add mempcpy.
24813
24814         * modules/acl, modules/backupfile, modules/c-strtod,
24815         modules/c-strtold, modules/canon-host, modules/canonicalize,
24816         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
24817         modules/exclude, modules/exitfail, modules/file-type,
24818         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
24819         modules/getdate, modules/getline, modules/getpagesize,
24820         modules/getpass, modules/getugroups, modules/group-member,
24821         modules/hard-locale, modules/hash, modules/human, modules/idcache,
24822         modules/inttostr, modules/long-options, modules/makepath,
24823         modules/md5, modules/memcasecmp, modules/memcoll,
24824         modules/modechange, modules/mountlist, modules/path-concat,
24825         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
24826         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
24827         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
24828         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
24829         modules/strftime, modules/strndup, modules/strverscmp,
24830         modules/timespec, modules/unlocked-io, modules/userspec,
24831         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
24832         modules/yesno:
24833         Remove lib_SOURCES line from Makefile.am section, as this is now
24834         done automatically by the corresponding Autoconf macro.
24835
24836 2005-03-21  Jim Meyering  <jim@meyering.net>
24837
24838         Changes imported from coreutils.
24839
24840         * lib/cycle-check.c: Don't include xalloc.h.
24841
24842         * lib/path-concat.c: Don't include assert.h.
24843         (path_concat): Remove assertion that would have triggered
24844         for ABASE starting with more than one slash.
24845         Reported by Andreas Schwab.
24846
24847         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
24848         properly when ABASE is an absolute file name.
24849         Correct the description of this function.
24850         Include <assert.h>.
24851         Add an assertion and a test driver.
24852         This fixes a bug introduced on 2004-07-02.
24853         Andreas Schwab reported the resulting failure of cp --parents:
24854         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
24855
24856 2005-03-21  Jim Meyering  <jim@meyering.net>
24857
24858         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
24859         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
24860
24861 2005-03-21  Jim Meyering  <jim@meyering.net>
24862         and  Paul Eggert  <eggert@cs.ucla.edu>
24863
24864         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
24865         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
24866         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
24867         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
24868         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
24869         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
24870         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
24871         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
24872         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
24873         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
24874         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
24875         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
24876         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
24877         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
24878         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
24879         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
24880         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
24881         for these modules.
24882
24883 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24884
24885         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
24886         (which shouldn't happen), generate nothing instead of returning 0
24887         immediately, so that nstrftime (NULL, ...) doesn't return 0.
24888
24889 2005-03-16  Bruno Haible  <bruno@clisp.org>
24890
24891         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
24892         HAVE_LONGLONG_64BIT.
24893
24894 2005-03-16  Bruno Haible  <bruno@clisp.org>
24895
24896         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
24897         HAVE_LONGLONG_64BIT.
24898
24899 2005-03-16  Bruno Haible  <bruno@clisp.org>
24900
24901         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
24902         HAVE_LONGLONG_64BIT.
24903
24904 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         * lib/strftime.c (my_strftime): Prepend space to format so that we can
24907         reliably distinguish strftime failure from empty output on POSIX
24908         hosts.
24909
24910 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24911
24912         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
24913         (iconv_string): Don't guess a size-zero buffer, as that might cause
24914         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
24915         result would be 'too large', where 'too large' is (heuristically)
24916         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
24917         overflow concerns.  This will prevent some unwanted malloc failures
24918         when the inputs are very large.
24919
24920 2005-03-15  Karl Berry  <karl@gnu.org>
24921
24922         * config/srclist.txt (config.rpath): from gettext.
24923         * config/config.rpath: update.
24924
24925 2005-03-15  Bruno Haible  <bruno@clisp.org>
24926
24927         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
24928         to 'negate'.
24929
24930         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
24931         variable.
24932
24933         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
24934         results.
24935
24936 2005-03-14  Simon Josefsson  <jas@extundo.com>
24937
24938         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
24939         <fx@gnu.org>.
24940
24941 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24942
24943         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
24944         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
24945         intprops.h.
24946         * lib/strtol.c: Likewise.
24947
24948 2005-03-14  Jim Meyering  <jim@meyering.net>
24949
24950         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
24951         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
24952         to be nonzero so that we (and caller) can detect the difference
24953         between a valid zero-length expansion and an error return, even
24954         when the underlying strftime fails before writing anything into
24955         that location.
24956
24957 2005-03-14  Bruno Haible  <bruno@clisp.org>
24958
24959         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
24960         Update from GNU gettext 0.14.3.
24961
24962 2005-03-10  Jim Meyering  <jim@meyering.net>
24963
24964         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
24965
24966 2005-03-10  Jim Meyering  <jim@meyering.net>
24967
24968         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
24969         so that this module works on systems without fchdir.
24970
24971 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24972
24973         Factor int-properties macros into a single file, except for
24974         glibc-related files.
24975         * lib/intprops.h: New file.
24976         * lib/getloadavg.c: Include it instead of limits.h.
24977         (INT_STRLEN_BOUND): Remove.
24978         * lib/human.c: Include intprops.h.
24979         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
24980         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
24981         302/1000.
24982         * lib/inttostr.h: Include intprops.h instead of limits.h.
24983         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
24984         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
24985         for consistency with intprops.h.
24986         (time_t_is_integer, twos_complement_arithmetic): Use them.
24987         * lib/sig2str.h: Include <signal.h>, intprops.h.
24988         (INT_STRLEN_BOUND): Remove.
24989         * lib/strftime.c (TYPE_SIGNED): Remove.
24990         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
24991         * lib/strtol.c: Adjust comments to match intprops.h.
24992         * lib/userspec.c: Include intprops.h.
24993         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
24994         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
24995         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
24996         instead of rolling our own expressions.
24997         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
24998
24999         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
25000         instead of int.
25001         (my_strftime): Do not mishandle years close to INT_MAX, by doing
25002         the right thing even if adding 1900 would overflow.  Similarly
25003         for tm_mon + 1 and tm_yday + 1.
25004         Make %Y always equivalent to %C%y, and similarly for %G and %g.
25005         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
25006         (DO_SIGNED_NUMBER): New macro.
25007         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
25008
25009 2005-03-07  Bruno Haible  <bruno@clisp.org>
25010
25011         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
25012
25013 2005-03-07  Bruno Haible  <bruno@clisp.org>
25014
25015         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
25016
25017 2005-03-04  Derek R. Price  <derek@ximbiot.com>
25018
25019         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
25020         (func_import): Only replace files via --import when they have actually
25021         changed.
25022
25023 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25024
25025         * m4/mmap-anon.m4: New file.
25026         * m4/pagealign_alloc.m4: New file.
25027
25028 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25029             Bruno Haible  <bruno@clisp.org>
25030
25031         * modules/pagealign_alloc: New file.
25032         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
25033
25034 2005-03-03  Derek R. Price  <derek@ximbiot.com>
25035             Bruno Haible  <bruno@clisp.org>
25036
25037         * lib/pagealign_alloc.h: New file.
25038         * lib/pagealign_alloc.c: New file.
25039
25040 2005-03-03  Bruno Haible  <bruno@clisp.org>
25041
25042         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
25043         Use an all-permissive copyright notice, recommended by RMS.
25044
25045 2005-03-02  Bruno Haible  <bruno@clisp.org>
25046
25047         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
25048         of AIX, the replacement has to be done only after <string.h> is
25049         included, therefore not in config.h. stpncpy.h does the replacement,
25050         and stpncpy.c uses it.
25051
25052 2005-03-02  Bruno Haible  <bruno@clisp.org>
25053
25054         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
25055         stpncpy.c uses it.
25056
25057 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25058
25059         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
25060         The workaround isn't strictly needed for POSIX conformance, and
25061         it's too much of a pain to configure and maintain.  We'll ask
25062         people to fix their kernels instead.
25063         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
25064         (NANOSLEEP_BUG_WORKAROUND): Remove.
25065         (xnanosleep): Remove the workaround.
25066
25067 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25068
25069         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
25070         Reported by Derek Price.
25071         (Include): Add "timespec.h".
25072
25073         * modules/xnanosleep (Depends-on): Remove gethrxtime.
25074
25075 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25076
25077         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
25078         to detect nanosleep bug.
25079
25080 2005-03-01  Bruno Haible  <bruno@clisp.org>
25081
25082         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
25083
25084 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25085
25086         * modules/gethrxtime: New file.
25087         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
25088         (Depends-on): Add gethrxtime.
25089         (configure.ac): Add gl_XNANOSLEEP.
25090         (Makefile.am): Remove lib_SOURCES line.
25091
25092 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25093
25094         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
25095         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
25096
25097 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25098
25099         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
25100         * lib/timespec.h (gettime): Return void, since it always
25101         succeeds now.  All uses changed.
25102         * lib/gettime.c (gettime) Likewise.
25103         [HAVE_NANOTIME]: Prefer nanotime.
25104         Assume gettimeofday succeeds, as POSIX requires.
25105         Assime time () succeeds, since other code already does.
25106         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
25107         (timespec_subtract): Remove.
25108         (NANOSLEEP_BUG_WORKAROUND): New constant.
25109         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
25110         things considerably.  Use it only on GNU/Linux hosts, since the
25111         workaround shouldn't be needed elsewhere.
25112
25113 2005-02-24  Bruno Haible  <bruno@clisp.org>
25114
25115         * modules/gettext (Files): Add m4/glibc2.m4.
25116
25117 2005-02-24  Bruno Haible  <bruno@clisp.org>
25118
25119         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
25120         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
25121         * m4/progtest.m4:
25122         Update from GNU gettext 0.14.2.
25123         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
25124
25125 2005-02-24  Bruno Haible  <bruno@clisp.org>
25126
25127         * lib/localcharset.c: Update from GNU gettext 0.14.2.
25128         * lib/config.charset: Update from GNU gettext 0.14.2.
25129
25130 2005-02-24  Bruno Haible  <bruno@clisp.org>
25131
25132         * lib/gettext.h: Update from GNU gettext 0.14.2.
25133
25134 2005-02-23  Simon Josefsson  <jas@extundo.com>
25135
25136         * m4/iconvme.m4: New file.
25137
25138 2005-02-23  Jim Meyering  <jim@meyering.net>
25139
25140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
25141         change.
25142         Thanks to Bruno Haible for catching it.
25143
25144 2005-02-22  Simon Josefsson  <jas@extundo.com>
25145
25146         * modules/iconvme: New file.
25147
25148         * MODULES.html.sh: Add iconvme.
25149
25150 2005-02-22  Simon Josefsson  <jas@extundo.com>
25151
25152         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
25153
25154 2005-02-22  Simon Josefsson  <jas@extundo.com>
25155
25156         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
25157
25158 2005-02-22  Jim Meyering  <jim@meyering.net>
25159
25160         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
25161         s/ifndef/ifdef/.
25162
25163 2005-02-20  Neil Conway  <neilc@samurai.com>
25164
25165         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
25166         returned by OSX/Darwin if the specified buffer is not large
25167         enough for the hostname.
25168
25169 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25170
25171         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
25172         pass it to _help, otherwise the latter coredumps trying to
25173         dereference state.root_argp.
25174
25175 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25176
25177         * modules/chdir-long (Depends-on): Add memrchr.
25178         * modules/memrchr (Files): Add lib/memrchr.h.
25179         (Include): "memrchr.h".
25180
25181 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25182
25183         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
25184
25185 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25186
25187         * lib/memrchr.h: New file.
25188         * lib/chdir-long.c: Include it.
25189         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
25190         Don't bother including stddef.h.
25191
25192 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
25193
25194         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
25195         inclusion.
25196         Include <sys/types.h>, for dev_t.
25197         (ME_DUMMY, ME_REMOTE): Move from here....
25198         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
25199         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
25200         Dmitry V. Levin.
25201         Include mountlist.h first, to test the interface.
25202
25203 2005-01-29  Bruno Haible  <bruno@clisp.org>
25204
25205         * lib/progname.c (program_name): Initialize.
25206         Needed when linking statically on MacOS X.
25207
25208 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25209
25210         Sync from coreutils.
25211         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
25212         (Depends-on): Add c-strtod.
25213         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
25214
25215 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25216
25217         Sync from coreutils.
25218         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
25219
25220         Remove files that are specific to coreutils.
25221         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
25222
25223 2005-01-28  Bruno Haible  <bruno@clisp.org>
25224
25225         * modules/javacomp: New file.
25226         * MODULES.html.sh (Java): Add javacomp.
25227
25228 2005-01-28  Bruno Haible  <bruno@clisp.org>
25229
25230         * m4/javacomp.m4: New file, from GNU gettext.
25231
25232 2005-01-28  Bruno Haible  <bruno@clisp.org>
25233
25234         * lib/javacomp.sh.in: New file, from GNU gettext.
25235         * lib/javacomp.h: New file, from GNU gettext.
25236         * lib/javacomp.c: New file, from GNU gettext.
25237
25238 2005-01-26  Simon Josefsson  <jas@extundo.com>
25239
25240         * lib/gai_strerror.c: Use GPL in header.
25241
25242 2005-01-26  Bruno Haible  <bruno@clisp.org>
25243
25244         * modules/javaexec: New file.
25245         * MODULES.html.sh (Java): Add javaexec.
25246
25247 2005-01-26  Bruno Haible  <bruno@clisp.org>
25248
25249         * m4/javaexec.m4: New file, from GNU gettext.
25250
25251 2005-01-26  Bruno Haible  <bruno@clisp.org>
25252
25253         * lib/javaexec.sh.in: New file, from GNU gettext.
25254         * lib/javaexec.h: New file, from GNU gettext.
25255         * lib/javaexec.c: New file, from GNU gettext.
25256
25257 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25258
25259         * modules/lchown (Depends-on): Remove lchown.h
25260
25261 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25262
25263         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
25264         must be defined if the header file was not found, in order
25265         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
25266
25267 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25268
25269         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
25270         initializers for struct pentry_state.
25271         (__argp_error): Check return value of __asprintf
25272         (__argp_failure): Translate error message
25273
25274         * lib/argp-parse.c: Removed braces around the expansion of N_()
25275
25276 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25277
25278         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
25279         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
25280         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
25281         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
25282         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
25283         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
25284         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
25285         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
25286         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
25287         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
25288         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
25289         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
25290         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
25291         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
25292         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
25293         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
25294         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
25295         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
25296         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
25297         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
25298         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
25299         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
25300         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
25301         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
25302         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
25303         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
25304         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
25305         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
25306         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
25307         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
25308         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
25309         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
25310         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
25311         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
25312         xstrtol.m4, xstrtoumax.m4, yesno.m4:
25313         Use an all-permissive copyright notice, recommended by RMS.
25314
25315 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25316
25317         * modules/chdir-long (Depends-on): Remove mempcpy.
25318
25319 2005-01-21  Jim Meyering  <jim@meyering.net>
25320
25321         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
25322         same value as for Solaris 9.
25323
25324         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
25325         component length.  This included changing the parameter to be
25326         of type `char *' rather than `char const *'.
25327         * lib/chdir-long.h (chdir_long): Update prototype.
25328
25329         * lib/openat.c (fdopendir, fstatat): New functions.
25330         * lib/openat.h: Include headers required for use of DIR and struct
25331         stat.
25332         [AT_SYMLINK_NOFOLLOW]: Define.
25333         (fdopendir, fstatat): Add prototypes.
25334
25335 2005-01-21  Bruno Haible  <bruno@clisp.org>
25336
25337         * modules/classpath: New file.
25338         * MODULES.html.sh (Java): Add classpath.
25339
25340 2005-01-21  Bruno Haible  <bruno@clisp.org>
25341
25342         * lib/classpath.h: New file, from GNU gettext.
25343         * lib/classpath.c: New file, from GNU gettext.
25344
25345 2005-01-20  Simon Josefsson  <jas@extundo.com>
25346
25347         * modules/version-etc-fsf: New file.
25348
25349 2005-01-20  Simon Josefsson  <jas@extundo.com>
25350
25351         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
25352         * lib/version-etc.c: Remove version_etc_copyright.
25353         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
25354         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
25355
25356 2005-01-20  Simon Josefsson  <jas@extundo.com>
25357
25358         * lib/base64.h (isbase64): Add.
25359
25360         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
25361         using a unsigned prototype, don't inline.
25362         (base64_decode): Use it.
25363
25364 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25365
25366         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
25367         it.
25368
25369 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25370
25371         * lib/save-cwd.c (save_cwd): Remove code to support the case
25372         where fchdir is missing or flaky.
25373
25374 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25375
25376         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
25377
25378 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25379
25380         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
25381         AC_LIBSOURCES now does this.
25382         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
25383         with new ullong_max module.
25384
25385 2005-01-19  Bruno Haible  <bruno@clisp.org>
25386
25387         * modules/sh-quote: New file.
25388         * MODULES.html.sh (Executing programs): Add sh-quote.
25389
25390 2005-01-19  Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/sh-quote.h: New file, from GNU gettext.
25393         * lib/sh-quote.c: New file, from GNU gettext.
25394
25395 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25396
25397         Merge from coreutils.
25398         * m4/ullong_max.m4: New file.
25399         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
25400         (gl_MACROS): Assume localeconv exists.
25401
25402 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25403
25404         Merge changes from coreutils, as described below in several
25405         changelogs dated today.
25406
25407         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
25408         (O_DIRECTORY): Remove; not needed here, since "." must be
25409         a directory.  All uses removed.
25410         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
25411         universal on Suns, and we also need to test for IRIX.
25412         Revamp code to use 'if' rather than '#if'.
25413         Avoid unnecessary comparison of cwd->desc to 0.
25414
25415         * lib/utimens.c (futimens): Robustify the previous patch, by checking
25416         for known valid error numbers rather than observed invalid ones.
25417
25418 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25419
25420         * modules/ullong_max: New file.
25421
25422         * modules/chdir-long, modules/openat: New files.
25423         * modules/save-cwd (Depends-on): Depend on chdir-long.
25424         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
25425
25426 2005-01-18  Jim Meyering  <jim@meyering.net>
25427
25428         Merge from coreutils.
25429         * m4/chdir-long.m4, m4/openat.m4: New files.
25430         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
25431         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
25432         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
25433         is sane and DOES follow symlinks.  Besides, testing 20 different
25434         systems found no broken chown implementations.
25435         Prompted by a change in rsync's copy of this macro.
25436         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
25437
25438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
25439
25440         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
25441         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
25442         NULL-means-set-to-current-time semantics.
25443         Remove temporary file immediately, rather than waiting
25444         for configure's at-exit trap code to do it.
25445
25446 2005-01-18  Jim Meyering  <jim@meyering.net>
25447
25448         * lib/version-etc.c (version_etc_copyright): Update copyright date.
25449
25450         * lib/utimens.c (futimens): Account for the fact that futimes
25451         can also fail with errno == ENOSYS or errno == ENOENT.
25452         Patch from Dmitry V. Levin.
25453
25454         Change the name of the robust chdir function from chdir to chdir_long.
25455         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
25456         (restore_cwd): Use chdir_long, not chdir.
25457         * lib/chdir-long.c: Renamed from chdir.c.
25458         * lib/chdir-long.h: Renamed from chdir.h.
25459         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
25460         Hurd.
25461
25462 2005-01-18  Bruno Haible  <bruno@clisp.org>
25463
25464         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
25465         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
25466         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
25467         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
25468         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
25469         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
25470         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
25471         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
25472         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
25473         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
25474         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
25475         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
25476         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
25477         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
25478         Use an all-permissive copyright notice, recommended by RMS.
25479
25480 2005-01-18  Bob Proulx  <bob@proulx.com>
25481
25482         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
25483         simplify offsetof() macro construct to avoid compile failure with
25484         native HP-UX 11.0 ANSI C compiler.
25485
25486 2005-01-17  Bruno Haible  <bruno@clisp.org>
25487
25488         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
25489         redundant because stpncpy.m4 takes care of it.
25490
25491 2005-01-17  Bruno Haible  <bruno@clisp.org>
25492
25493         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
25494
25495 2005-01-17  Bruno Haible  <bruno@clisp.org>
25496
25497         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
25498         used.
25499
25500 2005-01-17  Bruno Haible  <bruno@clisp.org>
25501
25502         * lib/fwriteerror.h (fwriteerror): Change specification to include
25503         fclose.
25504         * lib/fwriteerror.c: Include <stdbool.h>.
25505         (fwriteerror): At the end, close the file stream. Record whether
25506         stdout was already closed.
25507
25508 2005-01-17  Bruno Haible  <bruno@clisp.org>
25509
25510         * lib/execute.c (environ): Declare if needed.
25511         * lib/pipe.c (environ): Likewise.
25512         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
25513
25514 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25515
25516         * modules/argp: Depend on vsnprintf
25517
25518 2005-01-10  Jim Meyering  <jim@meyering.net>
25519
25520         * modules/closeout (Depends-on): Add atexit.
25521
25522 2005-01-06  Bruno Haible  <bruno@clisp.org>
25523
25524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
25525
25526 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25527
25528         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
25529         definitions to be after all include files, to avoid collisions.
25530         Problem reported by Bob Proulx.
25531
25532 2005-01-04  Jim Meyering  <jim@meyering.net>
25533
25534         Changes imported from coreutils.
25535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
25536         as the mkstemp template, use a temporary directory and an
25537         8.3-friendly template to avoid trouble on systems like DJGPP.
25538         Reported by Juan M. Guerrero via Stepan Kasal.
25539         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
25540         close. Remove the temporary directory right away, rather than waiting
25541         for configure's at-exit trap code to do it.
25542         Suggestion from Stepan Kasal.
25543
25544 2005-01-01  Simon Josefsson  <jas@extundo.com>
25545
25546         * gnulib-tool: Print #include directives when --import'ing.
25547
25548 2004-12-28  Simon Josefsson  <jas@extundo.com>
25549
25550         * tests/test-base64.c: Include required header files.  Remove
25551         unused variables.
25552
25553 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25554
25555         * modules/error (Depends-on): Remove gettext.
25556
25557 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25558
25559         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
25560         not needed.  This removes a dependency on the gettext module.
25561         [defined _LIBC]: Do not include <libintl.h>; not needed.
25562
25563 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
25564
25565         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
25566         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
25567
25568 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
25569
25570         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
25571         HAVE_DECL_STRTOLD.
25572
25573 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25574
25575         * modules/getdate (Depends-on): Remove alloca-opt.
25576
25577 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25578
25579         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
25580
25581 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25582
25583         * lib/argp-parse.c: Include <stddef.h>.
25584         (alignof, alignto): New macros.
25585         (parser_init): Don't assume that void * is aligned sufficiently
25586         for struct option.
25587
25588         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
25589         need to extend the stack.
25590         (YYINITDEPTH): New macro, so that the initial stack isn't overly
25591         large.
25592
25593 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25594
25595         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
25596
25597 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25598
25599         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
25600         (2004-10-24) change.  Apparently this was a false alarm.
25601
25602         * modules/getdate: Depend on alloca-opt, not alloca.
25603
25604 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25605
25606         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
25607         Remove now-obsolete comment about AIX.
25608         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
25609         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
25610         (YYMAXDEPTH): New macro.
25611
25612 2004-12-18  Simon Josefsson  <jas@extundo.com>
25613
25614         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
25615
25616 2004-12-18  Bruno Haible  <bruno@clisp.org>
25617
25618         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
25619
25620 2004-12-18  Bruno Haible  <bruno@clisp.org>
25621
25622         * lib/fatal-signal.c (fatal_signals): Make non-const.
25623         (init_fatal_signals): New function.
25624         (uninstall_handlers, install_handlers): Ignore signals that were set to
25625         SIG_IGN.
25626         (at_fatal_signal): Call init_fatal_signals.
25627         (init_fatal_signal_set): Likewise. Ignore signals that were set to
25628         SIG_IGN.
25629         Reported by Paul Eggert.
25630
25631 2004-12-18  Bruno Haible  <bruno@clisp.org>
25632
25633         * doc/alloca.texi: New file.
25634         * doc/alloca-opt.texi: New file.
25635
25636 2004-12-17  Jim Meyering  <jim@meyering.net>
25637
25638         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
25639         Otherwise, install-sh could exit with improper exit status when
25640         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
25641
25642 2004-12-16  Simon Josefsson  <jas@extundo.com>
25643
25644         * tests/test-base64.c: Add license.
25645
25646 2004-12-15  Stepan Kasal  <address@hidden>
25647
25648         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
25649
25650 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
25651
25652         * modules/getcwd (Files): Add m4/d-ino.m4.
25653         Suggested by Mark D. Baushke.
25654
25655 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
25656
25657         * lib/getdate.y (textint): New member "negative".
25658         (time_zone_hhmm): New function.
25659         Expect 14 shift-reduce conflicts, not 13.
25660         (o_colon_minutes): New rule.
25661         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
25662         (yylex): Set the "negative" member of signed numbers.
25663
25664 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
25665
25666         * doc/getdate.texi (Time of day items, Time zone items):
25667         Describe new formats +00:00, UTC+00:00.
25668
25669 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
25670
25671         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
25672         spurious "-l"s.  Problem reported by Stepan Kasal.
25673
25674 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
25675
25676         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
25677         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
25678
25679 2004-12-04  Simon Josefsson  <jas@extundo.com>
25680
25681         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
25682         Vandoorselaere <yoann@prelude-ids.org>.
25683
25684 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
25685
25686         Changes imported from coreutils.
25687         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
25688         exist.
25689         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
25690
25691 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
25692
25693         Changes imported from coreutils.
25694         * lib/hard-locale.c: Assume <locale.h> exists.
25695         Include "strdup.h".
25696         (GLIBC_VERSION): New macro.
25697         (hard_locale): Assume setlocale exists.
25698         Rewrite to avoid #ifdef.
25699         Use strdup rather than malloc + strcpy.
25700         * lib/human.c: Assume <locale.h> exists.
25701         (human_readable): Assume localeconv exists.
25702
25703 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
25704
25705         * modules/hard-locale (Depends-on): Add strdup.
25706
25707 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25708
25709         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
25710         convert T2, not T.  (Imported from libc.)
25711
25712 2004-11-30  Simon Josefsson  <jas@extundo.com>
25713
25714         * modules/restrict (License): Change to LGPL.
25715
25716 2004-11-30  Simon Josefsson  <jas@extundo.com>
25717
25718         * m4/restrict.m4: Add copyright and copying conditions.
25719
25720 2004-11-30  Simon Josefsson  <jas@extundo.com>
25721
25722         * m4/base64.m4: New file.
25723
25724 2004-11-30  Simon Josefsson  <jas@extundo.com>
25725
25726         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
25727         base64.
25728
25729         * tests/test-base64.c: New file.
25730
25731         * modules/base64: New file.
25732
25733 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
25734
25735         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
25736         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
25737
25738         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
25739
25740 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
25741
25742         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
25743         (__getcwd.c): Don't restore errno; glibc doesn't.
25744         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
25745         first, falling back to our code only if its results look suspicious.
25746         Ensure that the resulting buffer is only as large as necessary.
25747
25748         * lib/readutmp.c: Include readutmp.h first.
25749         Include <errno.h>, since readutmp.h no longer does that.
25750         * lib/readutmp.h: Don't include <errno.h>,
25751         <sys/param.h>, <time.h>; not needed to establish interface.
25752         (errno): Remove decl.
25753         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
25754         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
25755         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
25756
25757 2004-11-28  Simon Josefsson  <jas@extundo.com>
25758
25759         * lib/base64.h, base64.c: New file.
25760
25761 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
25762
25763         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
25764
25765 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25766
25767         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
25768         (Depends-on): Remove pathmax, same.  Add mempcpy.
25769         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
25770         (Makefile.am): Append getcwd.h to lib_SOURCES.
25771         (Include): Add getcwd.h.
25772         (Maintainer): Change from Jim Meyering to "all, glibc",
25773         since getdate now uses intended-for-glibc code.
25774         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
25775         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
25776
25777 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25778
25779         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
25780         HP's ANSI C compiler.
25781         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
25782         Declaring int functions causes warnings on some modern systems and
25783         shouldn't be needed to compile on ancient ones.
25784         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
25785         defined.
25786
25787         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
25788         with the following changes.
25789         (__set_errno): Parenthesize properly.
25790         Include <stdbool.h>.
25791         (MIN, MAX, MATCHING_INO): New macros.
25792         (__getcwd): Define with prototype, not K&R form.
25793         Use heuristics to allocate default buffer on stack if possible.
25794         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
25795         behavior, and to avoid the PATH_MAX limit when computing
25796         ../../../../...
25797         Use MATCHING_INO to compare inode number to file.
25798         Check for arithmetic overflow in size calculations.
25799         Fix bug in reallocation of dot array that caused getcwd to fail
25800         on directories nested deeper than 75.
25801         Be more careful about saving errno on error.
25802         Do not use realloc; use only free+malloc, as this is a bit
25803         more flexible and avoids a needless copy operation.
25804         Do not inspect st_dev and st_ino for symbolic links; POSIX
25805         doesn't specify the latter.
25806         Check for closedir errors.
25807         Avoid needless casts.
25808         Use "#ifdef weak_alias" around weak_alias, to be like other
25809         glibc code.
25810         The following changes to getcwd.c have effect only when used in
25811         gnulib; they have no effect inside glibc proper.
25812         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
25813         as alloca isn't used.
25814         (alloca, __alloca): Likewise.
25815         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
25816         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25817         unconditionally, as gnulib assumes C89 or better.
25818         Do not include <sys/param.h>.
25819         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
25820         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
25821         better.
25822         (NULL) [!defined NULL]: Remove; we assume C89 or better.
25823         Include <dirent.h> in a way that is compatible with modern Autoconf.
25824         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
25825         New macros, if not already defined.
25826         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
25827         Use "_LIBC", not "defined _LIBC", for consistency.
25828         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
25829         a mempcpy module.
25830         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
25831         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
25832         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
25833         credit only to Jim Meyering and adjust the copyright dates.
25834         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
25835         <stdlib.h>, <unistd.h>, "pathmax.h".
25836         Instead, include "xgetcwd.h" (first) and "getcwd.h".
25837         (INITIAL_BUFFER_SIZE): Remove.
25838         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
25839
25840 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25841
25842         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
25843         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
25844         Use the _ONCE methods, for efficiency.
25845         Check for fcntl.h.  In test program, include <errno.h>
25846         and <fcntl.h> if available.  Remove old K&R cruft from
25847         test program.  Check for common errors in GNU/Linux,
25848         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
25849         don't do AC_LIBOBJ, as that's getcwd.m4's job.
25850         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
25851         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
25852         name accordingly.
25853         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
25854         accommodate new getcwd.c.
25855         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
25856         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
25857         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
25858         that's all we need now.
25859
25860 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25861
25862         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
25863         argp-parse.c depends on getopt internals, that means we should
25864         always use our getopt, to be on the safe side.
25865         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
25866         order not to spoil the result of an eventual previous invocation
25867         of gl_GETOPT_SUBSTITUTE.
25868
25869 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25870
25871         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
25872         redefinition warnings. To avoid them, include the defines
25873         in `#if !defined __need_getopt ... #endif'. The only place
25874         where __getopt_argv_const is used is in definitions
25875         of getopt_long and getopt_long_only below, which are as well
25876         protected by `#ifndef __need_getopt'.
25877         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
25878         __need_getopt after including <stdio.h> and <unistd.h> These
25879         headers might have defined it.
25880
25881 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
25882
25883         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
25884
25885 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
25886
25887         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
25888         (futimens): New function, which uses futimes if available.
25889         (futimens, utimens): Support timespec==NULL, with same semantics
25890         as utime and utimens.
25891         * lib/utimens.h (futimens): New decl.
25892
25893 2004-11-23  Jim Meyering  <jim@meyering.net>
25894
25895         * lib/getopt_.h: Remove trailing blanks.
25896
25897 2004-11-23  Jim Meyering  <jim@meyering.net>
25898
25899         * lib/__fpending.c: Add comment.
25900
25901 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
25902
25903         * modules/canonicalize (Depends-on): Add xreadlink.
25904         Problem reported by James Youngman.
25905
25906 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25907
25908         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
25909         New macros.
25910         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
25911         optopt): Use them instead of invoking ## directly; otherwise, the
25912         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
25913
25914 2004-11-19  Bruno Haible  <bruno@clisp.org>
25915
25916         * lib/strtok_r.c: Move comments from here...
25917         * lib/strtok_r.h: ... to here.
25918
25919 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25920
25921         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
25922         implementations that mishandle size_t overflow.
25923
25924 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25925
25926         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
25927         might fail.  Problem reported by Yoann Vandoorselaere.
25928         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
25929         implementations that mishandle size_t overflow.
25930
25931 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25932
25933         * modules/canon-host (Depends-on): Add strdup.
25934
25935 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25936
25937         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
25938
25939 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25940
25941         * lib/canon-host.c: Include "strdup.h".
25942         (canon_host): Use getaddrinfo if available, so that IPv6 works.
25943         Use strdup instead of malloc/strcpy to duplicate strings.
25944
25945         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
25946         (human_space_before_unit): New constant.
25947         * lib/human.c (human_readable): Support it.
25948
25949         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
25950         (xgetcwd): Set errno correctly when failing.
25951         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
25952         the failure is actually due to a PATH_MAX problem.
25953
25954         Further getopt changes to make it more likely that glibc will
25955         buy the changes back.
25956         * lib/getopt.c (POSIXLY_CORRECT): New constant.
25957         (getopt): Use it, so to preserve glibc semantic
25958         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
25959         when compiling for libc.
25960         * lib/getopt_.h (__getopt_argv_const): Bring it back.
25961         (getopt_long, getopt_long_only): Use it.
25962
25963         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
25964         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
25965         (getopt): Argv is now char * const *, as per standard.
25966         (_getopt_internal_r, _getopt_internal): Argv is now char **,
25967         not char *__getopt_argv_const *.
25968         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
25969         _getopt_long_only_r): Likewise.
25970         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
25971         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
25972         _getopt_long_r, _getopt_long_only_r): Likewise.
25973         * lib/getopt_.h (__getopt_argv_const): Remove.
25974         (getopt): Argv is now char * const *, as per standard.
25975
25976         * lib/getdate.y (tORDINAL): New token.
25977         (day, relunit): Allow it for relative times.
25978         (relative_time_table): Use tORDINAL for ordinals.
25979
25980 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
25981
25982         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
25983         Document that "second" isn't allowed as an ordinal number.
25984
25985 2004-11-16  Jim Meyering  <jim@meyering.net>
25986
25987         * modules/closeout (Depends-on): Add fpending.
25988
25989 2004-11-15  Jim Meyering  <jim@meyering.net>
25990
25991         * lib/closeout.c: Include "__fpending.h" once again.
25992         Include <stdbool.h>.
25993         (close_stdout): Don't fail just because stdout was closed initially,
25994         since some programs don't write to stdout in the normal course of
25995         operation (other than --version and --help), and we don't want this
25996         function to make e.g. `touch file >&-' fail.
25997         But do fail if it was closed and someone has tried to write to it.
25998         E.g., `printf foo >&-' must fail.
25999
26000 2004-11-13  Jim Meyering  <jim@meyering.net>
26001
26002         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
26003
26004 2004-11-12  Simon Josefsson  <jas@extundo.com>
26005
26006         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
26007         small doc fix is still pending.
26008
26009 2004-11-11  Simon Josefsson  <jas@extundo.com>
26010
26011         * modules/strtok_r: New file.
26012
26013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26014         strtok_r.
26015
26016 2004-11-11  Simon Josefsson  <jas@extundo.com>
26017
26018         * m4/strtok_r.m4: New file.
26019
26020         * m4/getopt.m4: Replace opterr.
26021
26022 2004-11-11  Simon Josefsson  <jas@extundo.com>
26023
26024         * lib/strtok_r.h, strtok_r.c: New file.
26025
26026 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26027
26028         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
26029         of replacing opterr, getopt, etc.  This should handle the
26030         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
26031
26032 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
26035         we can stop lying to compilers about the constness of argv when we
26036         are compiled outside glibc.
26037         (getopt, getopt_long, getopt_long_only): Use it.
26038         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
26039         _getopt_internal, getopt): Likewise.
26040         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
26041         _getopt_long_only_r): Likewise.
26042         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
26043         _getopt_long_r, _getopt_long_only_r): Likewise.
26044
26045         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
26046         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
26047         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
26048         the other external symbols.
26049         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
26050         declaration, since the above renaming now works around collisions.
26051
26052 2004-11-11  Jim Meyering  <jim@meyering.net>
26053
26054         * lib/linebreak.c: Remove trailing blanks.
26055         * lib/alloca_.h: Likewise.
26056         * lib/acosl.c: Likewise.
26057         * lib/euidaccess.c: Likewise.
26058         * lib/allocsa.h: Likewise.
26059
26060 2004-11-10  Simon Josefsson  <jas@extundo.com>
26061
26062         * m4/getaddrinfo.m4: New file.
26063
26064 2004-11-10  Simon Josefsson  <jas@extundo.com>
26065
26066         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
26067
26068 2004-11-10  Simon Josefsson  <jas@extundo.com>
26069
26070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26071         getaddrinfo.
26072
26073         * modules/getaddrinfo: New file.
26074
26075 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26076
26077         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
26078
26079 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26080
26081         * lib/mktime.c (SHR): New macro, which is a portable
26082         substitute for >> that should work even on Crays.
26083         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
26084         Problem reported by Mark D. Baushke in
26085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
26086         * lib/getdate.y (SHR): Likewise.
26087         (tm_diff): Use it.
26088         * lib/strftime.c (SHR): Likewise.
26089         (tm_diff): Use it.
26090         * lib/quotearg.c (struct quoting_options): Use unsigned int for
26091         quote_these_too, so that right shifts are well defined.  All uses
26092         changed.
26093
26094 2004-11-10  Jim Meyering  <jim@meyering.net>
26095
26096         Ensure that no close failure goes unreported.
26097         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
26098         return early when it seems there's nothing to flush.
26099         Don't include __fpending.h.
26100
26101 2004-11-10  Jim Meyering  <jim@meyering.net>
26102
26103         * modules/closeout (Depends-on): Remove fpending.
26104
26105 2004-11-10  Jim Meyering  <jim@meyering.net>
26106
26107         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
26108
26109 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26110
26111         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
26112         gl_FUNC_STRFTIME.
26113         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
26114         and AC_REQUIRE when possible, to avoid duplicate checks.
26115         Check for <wchar.h>.
26116
26117 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26118
26119         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
26120
26121 2004-11-09  Bruno Haible  <bruno@clisp.org>
26122
26123         * m4/sockpfaf.m4: New file.
26124
26125 2004-11-05  Bruno Haible  <bruno@clisp.org>
26126
26127         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
26128         Reported by Mark D. Baushke <mdb@cvshome.org>.
26129
26130 2004-11-04  Bruno Haible  <bruno@clisp.org>
26131
26132         2004-09-11  Bruno Haible  <bruno@clisp.org>
26133                 * allocsa.valgrind: New file.
26134         2004-02-06  Bruno Haible  <bruno@clisp.org>
26135                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
26136                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
26137                 Reported by Christopher Seip <chris.seip@hp.com>.
26138
26139 2004-11-04  Bruno Haible  <bruno@clisp.org>
26140
26141         * modules/allocsa (Files): Add lib/allocsa.valgrind.
26142         (Makefile.am): Distribute it.
26143
26144 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26145
26146         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
26147         with errno == ERANGE if the buffer is too small.
26148         Problem reported by Mark D. Baushke.
26149
26150 2004-11-03  Albert Chin  <china@thewrittenword.com>
26151             Paul Eggert  <eggert@cs.ucla.edu>
26152
26153         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
26154         equivalent, substitute $ac_type for equivalent type rather than
26155         blindly using uint32_t *always* which won't work if uint32_t is not
26156         available.  Define _UINT32_T to work around typedef of uint32_t if
26157         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
26158         2.5.1.
26159
26160 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26161
26162         * m4/jm-macros.m4: Sync from coreutils.
26163         (gl_MACROS): Check for mbrlen, for pathchk.
26164         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
26165
26166 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26167
26168         * lib/xreadlink.c (MAXSIZE): New macro.
26169         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
26170         size does not exceed MAXSIZE.  Avoid cast.
26171         As suggested by Mark D. Baushke in
26172         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
26173         if readlink fails with buffer size just under MAXSIZE, try again
26174         with MAXSIZE.
26175
26176 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26177
26178         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
26179
26180 2004-11-02  Derek R. Price  <derek@ximbiot.com>
26181         and  Paul Eggert  <eggert@cs.ucla.edu>
26182
26183         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
26184         (get_date): Overparenthesize to avoid GCC warning.
26185
26186 2004-11-02  Bruno Haible  <bruno@clisp.org>
26187
26188         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
26189         returns void.
26190
26191 2004-11-02  Bruno Haible  <bruno@clisp.org>
26192
26193         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
26194         function returns void.
26195
26196 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26197
26198         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
26199         fflush_unlocked, flockfile, funlockfile, funlockfile,
26200         fputs_unlocked, putc_unlocked.
26201
26202 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26203
26204         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
26205         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
26206         already declared.
26207
26208 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26209
26210         * modules/getdate (Files): Add doc/getdate.texi.
26211         (Depends-on): Add setenv, xalloc.
26212
26213 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26214
26215         * lib/getdate.y: Add support for TZ="foo" within a date string.
26216         Fix some bugs near time_t boundaries.  Reject dates with
26217         out-of-range components, e.g., "Sept 31".
26218         Include <stdlib.h>, "setenv.h", "xalloc.h".
26219         (ISDIGIT_LOCALE): Remove; unused.
26220         Note that the TZ and time functions used here are not reentrant.
26221         (mktime_ok, get_tz): New functions.
26222         (TZBUFSIZE): New constant.
26223         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
26224         This requires that we sometimes generate our own TZ="XXX..." setting.
26225
26226 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
26227
26228         * doc/getdate.texi: New file, from coreutils with modifications for
26229         the new TZ parsing.
26230
26231 2004-10-27  Derek R. Price  <derek@ximbiot.com>
26232
26233         * lib/mktime.c (not_equal_tm): Remove redundant check.
26234
26235 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26236
26237         * modules/regex (lib_SOURCES): Add regex.c.
26238         Reported by James Youngman in
26239         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
26240
26241 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26242
26243         * lib/getdate.y: Use Bison 1.875 features, and some minor
26244         code cleanups.  This change does not affect semantics.
26245         Don't include <stdlib.h>; no longer needed.
26246         Don't include unlocked-io.h; only the "#if TEST" code uses
26247         stdio, and performance isn't crucial there.
26248         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
26249         Bison 1.875 features as described below.
26250         All uses of "PC." replaced by "pc->".
26251         (YYSTYPE): Add a forward declaration.
26252         (yylex, yyerror): Use full prototypes in forward decls.
26253         Use "%pure-parser" rather than obsolescent "%pure_parser".
26254         Use %parse-param and %lex-param instead of obsolescent
26255         YYPARSE_PARAM and YYLEX_PARAM.
26256         (meridian_table, month_and_day_table, time_units_table,
26257         relative_time_table, time_zone_table, military_table,
26258         lookup_zone, lookup_word, get_date):
26259         Use NULL instead of 0 where appropriate.
26260         (to_hour): Avoid abort (), to avoid a dependency on
26261         stdlib.h.
26262         (yyerror, yylex): Now accepts parser_control * arg.
26263         (main) [TEST]: Use '\0' rather than 0 for char.
26264
26265 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26266
26267         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
26268
26269 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26270
26271         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
26272         It's now the caller's responsibility to handle the case where
26273         !HAVE_GETPAGESIZE && !defined getpagesize.
26274
26275         * lib/mktime.c (leapyear): Arg is long int, not int.
26276
26277 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26278
26279         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
26280
26281 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26282
26283         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
26284         missing.  Problem reported by James Youngman.
26285
26286 2004-10-16  Simon Josefsson  <jas@extundo.com>
26287
26288         * gnulib-tool: Fix comments.  Fix parse problem.
26289         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
26290
26291 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
26292
26293         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
26294         implementation of getopt_long.  Problem reported by Alexander Taler in:
26295         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
26296
26297 2004-10-15  Bruno Haible  <bruno@clisp.org>
26298
26299         * gnulib-tool: Untabify. Initialize supplied_libname.
26300         (func_usage): More homogenous output.
26301         (func_modules_transitive_closure, func_modules_to_filelist,
26302         func_emit_lib_Makefile_am): New functions.
26303         (func_import): New function, extracted from big case statement. Use
26304         func_get_license, func_modules_transitive_closure,
26305         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
26306         opt_lgpl. Don't use test -a, as it's not portable.
26307         (func_create_testdir): Use func_modules_transitive_closure,
26308         func_modules_to_filelist, func_emit_lib_Makefile_am.
26309
26310 2004-10-15  Bruno Haible  <bruno@clisp.org>
26311
26312         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
26313
26314 2004-10-15  Bruno Haible  <bruno@clisp.org>
26315
26316         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
26317         the portions belonging to each module.
26318         Suggested by Derek Robert Price <derek@ximbiot.com>.
26319
26320 2004-10-12  Simon Josefsson  <jas@extundo.com>
26321
26322         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
26323         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
26324         to real functions.
26325
26326 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26327
26328         * modules/vsnprintf: New file.
26329
26330 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26331
26332         * m4/vsnprintf.m4: New file.
26333
26334 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26335
26336         * lib/vsnprintf.h: New file.
26337         * lib/vsnprintf.c: New file.
26338
26339 2004-10-11  Bruno Haible  <bruno@clisp.org>
26340
26341         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
26342         vsnprintf.
26343
26344 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26345
26346         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
26347
26348 2004-10-07  Bruno Haible  <bruno@clisp.org>
26349
26350         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
26351         fits into the provided buffer.
26352
26353 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26354
26355         * lib/diacrit.c, diacrit.h: Add GPL notice.
26356
26357         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
26358         notice.
26359         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
26360         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
26361         This avoids a potential constant-folding bug.
26362
26363 2004-10-05  Bruno Haible  <bruno@clisp.org>
26364
26365         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
26366         for the declaration of strsep.
26367
26368 2004-10-05  Bruno Haible  <bruno@clisp.org>
26369
26370         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
26371
26372 2004-10-04  Simon Josefsson  <jas@extundo.com>
26373
26374         * modules/memmem: New file.
26375         * tests/test-memmem.c: New file.
26376         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
26377
26378 2004-10-04  Simon Josefsson  <jas@extundo.com>
26379
26380         * m4/memmem.m4: New file.
26381
26382 2004-10-04  Simon Josefsson  <jas@extundo.com>
26383
26384         * lib/memmem.h: New file.
26385         * lib/memmem.c: New file, taken from glibc.
26386
26387 2004-10-04  Simon Josefsson  <jas@extundo.com>
26388
26389         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
26390         '#ifdef USE_UNLOCKED_IO'.
26391
26392 2004-10-04  Simon Josefsson  <jas@extundo.com>
26393
26394         * config/srclist.txt: Add memmem from glibc.
26395
26396 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26397
26398         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
26399
26400         * modules/argmatch, modules/argp, modules/closeout, modules/error,
26401         modules/exclude, modules/getdate, modules/getline,
26402         modules/getndelim2, modules/getpass, modules/getpass-gnu,
26403         modules/getusershell, modules/linebuffer, modules/md5,
26404         modules/mountlist, modules/posixtm, modules/readtokens,
26405         modules/readutmp, modules/regex, modules/sha1,
26406         modules/version-etc, modules/yesno:
26407         Remove dependency on unlocked-io.
26408
26409 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26410
26411         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
26412
26413         * m4/unlocked-io.m4: Add copyright notice.
26414         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
26415
26416 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26417
26418         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
26419         * lib/xmalloc.c (xmemdup): Likewise.
26420         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
26421         XFREE): Remove these long-obsolescent macros.
26422         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
26423         * lib/xstrdup.c: Remove.
26424
26425         * lib/regex.c (re_comp): Cast gettext return value to char *,
26426         Problem reported by Martin Neitzel via Mark D. Baushke.
26427
26428 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
26429
26430         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
26431         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
26432         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
26433         regex.c, sha1.c, version-etc.c, yesno.c:
26434         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
26435         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
26436         the includer's responsibility.
26437
26438         Sync from coreutils.
26439
26440         * lib/modechange.c (mode_compile): Don't decrement a pointer that
26441         points to the start of a string, as the C Standard says the
26442         resulting behavior is undefined.
26443
26444         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
26445         simple -> simple_backups, numbered_existing ->
26446         numbered_existing_backups, numbered -> numbered_backups
26447         to avoid shadowing problems.  All uses changed.
26448         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
26449         * lib/backupfile.c (check_extension, numbered_backup):
26450         Rename locals to avoid shadowing 'basename'.
26451         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
26452         once.
26453
26454         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
26455         * lib/.cvsignore: Add getopt.h.
26456
26457 2004-10-04  Bruno Haible  <bruno@clisp.org>
26458
26459         * modules/README: New file.
26460         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
26461         not a module.
26462
26463 2004-10-02  Jim Meyering  <jim@meyering.net>
26464
26465         * lib/dirfd.h, getpagesize.h: Add copyright notice.
26466
26467 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26468
26469         * modules/strsep: New file.
26470
26471 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26472
26473         * m4/strsep.m4: New file.
26474
26475 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26476
26477         * lib/strsep.h: New file.
26478         * lib/strsep.c: New file.
26479
26480 2004-10-01  Simon Josefsson  <jas@extundo.com>
26481
26482         * lib/snprintf.c (snprintf): Handle size==0.
26483
26484 2004-10-01  Simon Josefsson  <jas@extundo.com>
26485             Bruno Haible  <bruno@clisp.org>
26486
26487         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
26488         (snprintf): Declare 'args'.
26489
26490 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
26491
26492         * lib/snprintf.c: Remove comments as to why each header is needed.
26493
26494 2004-10-01  Bruno Haible  <bruno@clisp.org>
26495
26496         * MODULES.html.sh: Add strsep.
26497
26498 2004-09-30  Simon Josefsson  <jas@extundo.com>
26499
26500         * modules/snprintf: New file.
26501
26502 2004-09-30  Simon Josefsson  <jas@extundo.com>
26503
26504         * m4/snprintf.m4: New file.
26505
26506 2004-09-30  Simon Josefsson  <jas@extundo.com>
26507
26508         * lib/snprintf.h, lib/snprintf.c: New files.
26509
26510 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26511
26512         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
26513         (hol_entry_help): Never translate an empty string.
26514         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
26515         * lib/argp.h (OPTION_NO_TRANS): New option.
26516
26517 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26518
26519         * modules/argp (Maintainer): Replace Simon Josefsson
26520         by Sergey Poznyakoff.
26521
26522 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26523
26524         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
26525         changes merged back into glibc.
26526
26527 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
26528
26529         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
26530
26531 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
26532
26533         * lib/xvasprintf.c: Include xalloc.h.
26534         (xvasprintf): Use xalloc_die, not xmalloc_die.
26535
26536 2004-09-29  Bruno Haible  <bruno@clisp.org>
26537
26538         * modules/alloca-opt: New file, derived from modules/alloca.
26539         * modules/allocsa: Depend on alloca-opt instead of alloca.
26540         * modules/setenv: Likewise.
26541         * modules/vasnprintf: Likewise.
26542         * MODULES.html.sh: Add alloca-opt.
26543
26544 2004-09-28  Simon Josefsson  <jas@extundo.com>
26545
26546         * gnulib-tool: New parameter --lgpl, to asseert that modules are
26547         LGPL, and to replace license template from GPL to LGPL.
26548
26549 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
26550
26551         * modules/dummy: Change license to LGPL.
26552
26553 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
26554
26555         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
26556
26557 2004-09-24  Simon Josefsson  <jas@extundo.com>
26558
26559         * modules/minmax (License): Change from GPL to LGPL.
26560
26561 2004-09-23  Simon Josefsson  <jas@extundo.com>
26562
26563         * gnulib-tool (--import): Typo.
26564
26565 2004-09-23  Simon Josefsson  <jas@extundo.com>
26566
26567         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
26568
26569 2004-09-22  Bruno Haible  <bruno@clisp.org>
26570
26571         * modules/*: Add 'License' field.
26572         * gnulib-tool: Accept --extract-license option.
26573         (func_get_license): New function.
26574
26575 2004-09-21  Bruno Haible  <bruno@clisp.org>
26576
26577         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
26578         Reported by Simon Josefsson.
26579
26580 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26581
26582         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
26583         gl_AC_TYPE_LONG_LONG.
26584
26585 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26586
26587         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
26588
26589 2004-09-18  Simon Josefsson  <jas@extundo.com>
26590         and  Paul Eggert  <eggert@cs.ucla.edu>
26591
26592         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
26593         calls with autoreconf.  Define GL_LIB.
26594
26595 2004-09-14  Karl Berry  <karl@gnu.org>
26596
26597         * config/srclist.txt: unsync setenv.c, sigh.
26598
26599 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26600
26601         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
26602         Problem reported by Bruno Haible in:
26603         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
26604
26605 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26606
26607         * config/srclist.txt: Comment out argp-pvh.c.
26608
26609 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26610
26611         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
26612         in case some system header has #define'd it.  Problem reported by
26613         Soeren D. Schulze in
26614         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
26615
26616 2004-09-09  Karl Berry  <karl@gnu.org>
26617
26618         * regex.[ch]: delete from the root.  These were supposed to be
26619                 synced with emacs cvs, but this has not happened for about
26620                 a year, and anyway nothing else uses emacs regex.[ch].
26621                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
26622                 lib/regex[.ch] is untouched.
26623
26624 2004-09-09  Bruno Haible  <bruno@clisp.org>
26625
26626         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
26627
26628 2004-09-09  Bruno Haible  <bruno@clisp.org>
26629
26630         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
26631         modifications.
26632         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
26633
26634 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
26635
26636         * modules/xvasprintf: New file.
26637         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
26638
26639 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
26640
26641         * lib/xvasprintf.h: New file.
26642         * lib/xvasprintf.c: New file.
26643         * lib/xasprintf.c: New file.
26644
26645 2004-09-08  Bruno Haible  <bruno@clisp.org>
26646
26647         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
26648
26649 2004-09-08  Bruno Haible  <bruno@clisp.org>
26650
26651         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
26652         length is > INT_MAX.
26653         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
26654         more.
26655
26656 2004-09-08  Bruno Haible  <bruno@clisp.org>
26657
26658         * lib/stdint_.h: New file, taken from GNU clisp.
26659
26660 2004-09-08  Bruno Haible  <bruno@clisp.org>
26661             Oskar Liljeblad  <oskar@osk.mine.nu>
26662
26663         * modules/stdint: New file.
26664         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
26665
26666 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26667
26668         Import from coreutils.
26669         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
26670         strings on unbounded length.  alloca's performance benefits aren't
26671         that important here.
26672         (V_STRDUP): Remove.
26673         (parse_with_separator): New function, with most of the internals
26674         of the old parse_user_spec.  Allow user to omit both user and group,
26675         for compatibility with FreeBSD.
26676         Clone only the user name, not the entire spec.
26677         Do not set *uid, *gid unless entirely successful.
26678         Avoid memory leak in some failing cases.
26679         Fix regression for USER.GROUP reported by Dmitry V. Levin in
26680         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
26681         (parse_user_spec): Rewrite to use parse_with_separator.
26682
26683 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         * modules/userspec: Don't depend on alloca.
26686
26687 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
26688
26689         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
26690
26691 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26692
26693         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
26694         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
26695         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
26696
26697 2004-08-16  Simon Josefsson  <jas@extundo.com>
26698
26699         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
26700         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
26701         Add --dry-run for --import.
26702         Let user provided command line parameters override configure.ac
26703         settings.
26704
26705 2004-08-12  Simon Josefsson  <jas@extundo.com>
26706
26707         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
26708         as discussed with Paul Eggert in threads rooted at
26709         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
26710         and
26711         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
26712         Before, the test was empty, and relied on ELIDE_CODE in source
26713         code.)
26714         (gl_PREREQ_GETOPT): New macro.
26715         (gl_GETOPT): Use them.
26716
26717 2004-08-12  Simon Josefsson  <jas@extundo.com>
26718
26719         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
26720         * lib/getopt_.h: Renamed from getopt.h.
26721
26722 2004-08-12  Simon Josefsson  <jas@extundo.com>
26723
26724         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
26725         Change default library name from libfoo to libgnu.
26726         Now, if you have a configure.ac that says:
26727                 gl_SOURCE_BASE(gl)
26728                 gl_M4_BASE(gl/m4)
26729                 gl_MODULES(error getopt etcetera)
26730                 gl_INIT
26731         you can import all you need by running:
26732                 ../gnulib/gnulib-tool --import
26733
26734         * modules/getopt (Files): Rename getopt.h to getopt_.h.
26735         (Makefile.am): Rewrite, use logic from argz.
26736         (Include): Use <getopt.h> instead of "getopt.h".
26737
26738 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26739
26740         * modules/argp (Files): Add m4/unlocked-io.m4.
26741         (Depends-on): Add extensions.
26742
26743 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
26746         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
26747         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
26748         Check for program_invocation_name, program_invocation_short_name,
26749         flockfile, funlockfile, features.h, _getopt_long_only_r.
26750
26751 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26752
26753         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
26754         its complicated substitute.
26755         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
26756         and program_invocation_name.
26757         (__argp_basename) [!_LIBC]: Remove; the only use was
26758         replaced by its body.
26759         (__argp_short_program_name): Change condition from
26760         !defined __argp_short_program_name to
26761         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
26762         to match argp-namefrob.h.
26763         (__argp_failure): Don't assume strerror_r returns char *.
26764         * lib/argp-parse.c (N_): Define unconditionally.
26765         (argp_default_options): Fill out initializers with 0 to avoid
26766         gcc warnings.
26767
26768 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
26769
26770         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
26771         getopt1.c.
26772
26773 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26774
26775         Merge from coreutils.
26776
26777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
26778
26779         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
26780         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
26781
26782 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         Merge from coreutils.
26785
26786         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
26787         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
26788         for Reliant Unix 5.43.
26789
26790         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
26791         (union fooround): Use uintmax_t, not long int.
26792         The rest is a merge from libc:
26793         [defined _LIBC]: Include <shlib-compat.h>.
26794         (_obstack) [defined _LIBC]: Remove after 2.3.4.
26795
26796         * lib/settime.c (settime): Recode to avoid warning with
26797         Sun Forte C 6U2.
26798
26799         * lib/strverscmp.c: Convert to UTF-8.
26800
26801 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
26802
26803         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26804         m4/uintmax_t.m4.
26805
26806 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
26807
26808         * modules/xalloc-die: New file.
26809         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
26810
26811         * modules/md5 (Files): Add m4/uint32_t.m4.
26812         * modules/sha1: Renamed from modules/sha.
26813         (Files):
26814         Rename lib/sha.h to lib/sha1.h.
26815         Rename lib/sha.c to lib/sha1.c.
26816         Rename m4/sha.m4 to m4/sha1.m4.
26817         (lib_SOURCES): Likewise.
26818         (configure.ac): Rename gl_SHA to gl_SHA1.
26819         (Include): sha.h -> sha1.h.
26820
26821 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
26822
26823         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
26824         * m4/sha1.m4: Renamed from sha.m4.
26825         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
26826
26827 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
26828
26829         * lib/obstack.h (obstack_empty_p):
26830         Don't assume that chunk->contents is suitably aligned.
26831         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
26832         Likewise. Problem reported by Benno in
26833         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
26834
26835         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
26836         readable.  This could be improved further but it'd take some work.
26837
26838 2004-08-08  Simon Josefsson  <jas@extundo.com>
26839
26840         * modules/xgethostname (Depends-on): Remove exit and error (not
26841         used).
26842
26843         * modules/getpass-gnu: Add getpass.h.
26844         (Depends-on): Add stdbool.
26845         * modules/getpass: Add getpass.h.
26846
26847 2004-08-08  Simon Josefsson  <jas@extundo.com>
26848
26849         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
26850         Check getpass declaration.
26851
26852 2004-08-08  Simon Josefsson  <jas@extundo.com>
26853
26854         * lib/xgethostname.c: Don't include error.h (not used).
26855
26856         * lib/getpass.h: Add.
26857         * lib/getpass.c: Include getpass.h first.
26858
26859 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
26860
26861         * lib/xalloc-die.c: New file.
26862         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
26863         All uses removed.
26864         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
26865         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
26866         xalloc-die.c.
26867         (_, N_, xalloc_die): Move to xalloc-die.c.
26868         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
26869         so that we needn't mess with xalloc_msg_memory_exhausted.
26870
26871         * lib/sha1.h: Renamed from sha.h.
26872         (SHA1_H): Renamed from _SHA_H.
26873         (sha1_ctx): Renamed from sha_ctx.
26874         (sha1_init_ctx): Renamed from sha_init_ctx.
26875         (sha1_process_block): Renamed from sha_process_block.
26876         (sha1_process_bytes): Renamed from sha_process_bytes.
26877         (sha1_finish_ctx): Renamed from sha_finish_ctx.
26878         (sha1_read_ctx): Renamed from sha_read_ctx.
26879         (sha1_stream): Renamed from sha_stream.
26880         (sha1_buffer): Renamed from sha_buffer.
26881         * lib/sha1.c: Likewise; renamed from sha.c.
26882         Do not include <sys/types.h>.
26883         Include <stddef.h> rather than <stdlib.h>.
26884
26885 2004-08-08  Bruno Haible  <bruno@clisp.org>
26886
26887         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
26888         FILESYSTEM_PREFIX_LEN.
26889         * lib/progreloc.c: Likewise.
26890         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
26891
26892 2004-08-06  Simon Josefsson  <jas@extundo.com>
26893
26894         * modules/progname (Depends-on): Don't depend on stdbool.
26895
26896 2004-08-06  Simon Josefsson  <jas@extundo.com>
26897
26898         * modules/getsubopt: New file.
26899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26900         getsubopt.
26901
26902 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26903
26904         More merge from coreutils.
26905
26906         * m4/utimens.m4, m4/utimecmp.m4: New files.
26907         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
26908         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
26909         prereq.m4, sha.m4: Import changes from coreutils.
26910
26911 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26912
26913         More merge from coreutils.
26914         * modules/raise, modules/readtokens0, modules/utimens:
26915         * modules/utimecmp, module/xnanosleep: New files.
26916         * modules/strftime: Add lib/strftime.h.
26917         Change include from <time.h> to "strftime.h".
26918         * modules/yesno: Add lib/yesno.h.
26919         * modules/backupfile: Remove lib/addext.c.
26920         * modules/euidaccess: Add stat-macros.h.
26921         * modules/canonicalize, modules/euidaccess,
26922         modules/filemode, modules/lchown, modules/makepath,
26923         modules/rmdir, modules/stat: Likewise.
26924
26925 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
26926
26927         Merge from tar.
26928         * lib/argp-help.c (make_hol, hol_append): Don't assume that
26929         SIZE_MAX is a valid preprocessor constant.
26930         (__argp_basename): Change from "#ifndef _LIBC"
26931         to "#ifndef __argp_short_program_name", so that
26932         we don't compile these functions for tar.
26933
26934         More merges from coreutils.
26935         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
26936         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
26937         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
26938         * lib/addext.c: Remove; no longer needed.
26939         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
26940         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
26941         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
26942         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
26943         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
26944         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
26945         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
26946         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
26947         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
26948         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26949         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
26950         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
26951         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
26952         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
26953         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
26954         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
26955         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
26956         Import changes from coreutils.
26957
26958 2004-08-05  Simon Josefsson  <jas@extundo.com>
26959
26960         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
26961
26962 2004-08-05  Simon Josefsson  <jas@extundo.com>
26963
26964         * m4/getsubopt.m4: New file.
26965
26966 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26967
26968         Merge from coreutils.
26969
26970         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
26971         * m4/getcwd-path-max.m4: New files.
26972
26973         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
26974         FILESYSTEM_PREFIX_LEN ->
26975         FILE_SYSTEM_PREFIX_LEN.
26976         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
26977         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
26978         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
26979         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
26980
26981         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
26982         prerequisite modules now handle the DOS stuff.
26983         Don't check for unistd.h.
26984
26985 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
26986
26987         Merge from coreutils.
26988
26989         * lib/.gdb-history: Remove; this doesn't belong here.
26990
26991         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
26992         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
26993         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
26994         * lib/getcwd.c: New files.
26995
26996         * lib/dirname.h: Include <stdbool.h>.
26997         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
26998         for consistency with POSIX terminology.  All uses changed.
26999         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
27000         (strip_trailing_slashes): Use bool for booleans.
27001         * lib/stripslash.c (strip_trailing_slashes): Likewise.
27002
27003         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
27004         sometimes returns a positive errno value even when it succeeds.
27005         (print_errno_message) [!LIBC]: Fall back on strerror if
27006         __strerror_r fails.
27007
27008         * lib/path-concat.c (mempcpy): Don't define if a system header defines
27009         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
27010         (longest_relative_suffix): New function.
27011         (path_concat): Use it.  Assume first argument is not NULL.
27012         Port to DOS.  Omit redundant separators.
27013         Report an error instead of returning NULL.
27014         Use mempcpy instead of memcpy.
27015         (xpath_concat): Remove: not declared or used.
27016
27017         * lib/same.h: Include <stdbool.h>
27018         (same_name): Return bool, not int.
27019         * lib/same.c (same_name): Likewise.
27020         (errno): Don't declare; we assume C89 or better now.
27021
27022         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
27023         if not already defined.
27024
27025         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
27026         * lib/dup-safer.c (errno): Likewise.
27027
27028 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
27029
27030         Merge from coreutils.
27031         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
27032         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
27033         * modules/path-concat: Don't depend on strdup.
27034
27035 2004-08-03  Simon Josefsson  <jas@extundo.com>
27036
27037         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
27038         * lib/progname.h: Don't include stdbool.h.
27039
27040 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27041
27042         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
27043         * MODULES.html.sh (func_all_modules): Remove fatal.
27044
27045 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27046
27047         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
27048
27049 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
27050
27051         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
27052         working.
27053
27054 2004-08-02  Simon Josefsson  <jas@extundo.com>
27055
27056         * lib/getsubopt.h: New file, with comments from Bruno Haible.
27057         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
27058         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
27059
27060 2004-08-01  Simon Josefsson  <jas@extundo.com>
27061
27062         * lib/xgetdomainname.c: Include stdlib.h, for free().
27063
27064 2004-07-19  Bruno Haible  <bruno@clisp.org>
27065
27066         * MODULES.html.sh (func_all_modules): Add dummy.
27067
27068 2004-07-16  Simon Josefsson  <jas@extundo.com>
27069
27070         * modules/dummy: New file.
27071
27072 2004-07-16  Simon Josefsson  <jas@extundo.com>
27073
27074         * lib/dummy.c: New file.
27075
27076 2004-07-16  Bruno Haible  <bruno@clisp.org>
27077
27078         * lib/backupfile.h: Add extern "C" for C++.
27079         * lib/closeout.h: Likewise.
27080         * lib/copy-file.h: Likewise.
27081         * lib/findprog.h: Likewise.
27082         * lib/full-write.h: Likewise.
27083         * lib/pathname.h: Likewise.
27084         * lib/progname.h: Likewise.
27085         * lib/stpcpy.h: Likewise.
27086         * lib/stpncpy.h: Likewise.
27087         * lib/strcase.h: Likewise.
27088         * lib/strstr.h: Likewise.
27089         * lib/xalloc.h: Likewise.
27090
27091         * lib/mbswidth.h: Add extern "C" for C++.
27092         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
27093
27094 2004-07-13  Robert Millan  <robertmh@gnu.org>
27095
27096         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
27097
27098 2004-07-09  Simon Josefsson  <jas@extundo.com>
27099
27100         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
27101         failed without this.)
27102
27103 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27104
27105         * modules/chown (Files): Add lib/fchown-stub.c, since
27106         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
27107
27108 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
27109
27110         * lib/fchown-stub.c: New file.
27111
27112 2004-06-24  Jim Meyering  <jim@meyering.net>
27113
27114         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
27115
27116 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27117
27118         * modules/argz: Omit "#include".
27119
27120         * MODULES.html.sh (func_all_modules): Add calloc, to match
27121         2004-06-01 addition of calloc module.
27122
27123 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27124
27125         * m4/argz.m4: New file, which is autoupdated from libtool.
27126
27127 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27128
27129         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
27130         libtool.
27131
27132 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27133
27134         * config/srclist-update: Don't insist on "USA." before the
27135         close-comment, as libtool omits the period and puts the */ on a
27136         separate line.
27137         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
27138         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
27139
27140 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
27141
27142         * modules/argz: New file.
27143         * MODULES.html.sh (func_all_modules): Add argz.
27144
27145 2004-06-12  Jim Meyering  <jim@meyering.net>
27146         and  Paul Eggert  <eggert@cs.ucla.edu>
27147
27148         * modules/hash (Files): Add lib/xalloc.h.
27149         * modules/pipe (Depends-on): Add wait-process.
27150         * modules/stat (Depends-on): Add xalloc.
27151         * modules/userspec (Files): Add lib/userspec.h.
27152         * modules/xstrto
27153
27154         Upgrade from gettext-0.13.
27155         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
27156         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
27157         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
27158
27159 2004-06-10  Jim Meyering  <jim@meyering.net>
27160
27161         * lib/calloc.c: New file.
27162
27163 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27164
27165         * lib/getdate.y (yylex): Allow space between sign and number.
27166         Problem reported by Dan Jacobson.
27167
27168 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
27169
27170         Merge from coreutils CVS.
27171
27172         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
27173         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
27174         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
27175         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
27176         xstrtol.m4: Fix copyright date and/or serial number.
27177
27178         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
27179         See if we need an fchown replacement.
27180         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
27181         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
27182         and use the replacement function if we detect either defect.
27183
27184         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
27185         gl_UTIMECMP.
27186
27187 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
27188         and  Jim Meyering  <jim@meyering.net>
27189
27190         Merge from coreutils CVS.
27191
27192         * lib/stat-macros.h: New file, with contents from file-type.h
27193         and coreutils' system.h.
27194         * lib/file-type.c: Include "stat-macros.h".
27195         * lib/file-type.h (file_type): Move all macro definitions to new file,
27196         stat-macros.h.
27197
27198         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
27199         Wrap old code with this conditional.
27200         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
27201         function that does not dereference symlinks.
27202         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
27203
27204         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
27205         dependency problems.
27206         (xreadlink): Accept new arg SIZE, for efficiency.
27207         All decls and uses changed.
27208         * lib/xreadlink.h: Include <stddef.h>, for size_t.
27209
27210         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
27211         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
27212
27213         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
27214         sysexits.h.
27215
27216 2004-06-01  Jim Meyering  <jim@meyering.net>
27217
27218         * m4/calloc.m4: New file.
27219
27220 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
27223         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
27224         Also, fix a typo in a diagnostic.
27225
27226 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27227
27228         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
27229         or AC_FUNC_REALLOC.
27230
27231 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27232
27233         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
27234         macros to be defined.
27235         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
27236         the allocator returns NULL because the requested size is zero.
27237
27238 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
27239
27240         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
27241         var.  Add comment explaining why libc still defines it.  This
27242         merges the following patch from glibc:
27243         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
27244
27245 2004-05-20  Andreas Schwab  <schwab@suse.de>
27246
27247         * m4/free.m4: Replace free if it not known to work, not the other
27248         way round.
27249
27250 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27251
27252         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
27253         present in glibc since revision 1.1 of this file.
27254         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
27255         obstack_alignment_mask, obstack_alloc, obstack_base,
27256         obstack_blank, obstack_blank_fast, obstack_chunk_size,
27257         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
27258         obstack_grow0, obstack_init, obstack_int_grow,
27259         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
27260         obstack_next_free, obstack_object_size, obstack_ptr_grow,
27261         obstack_ptr_grow_fast, obstack_room): Remove declarations of
27262         nonexistent functions.
27263
27264 2004-05-18  Karl Berry  <karl@gnu.org>
27265
27266         * config/srclist.txt: break link for vasnprintf.c.
27267
27268 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27269
27270         Port obstack to the AS/400, where pointers are 16 bytes wide and
27271         you cannot cast an integer to a valid pointer.  This patch is
27272         currently waiting to be integrated into glibc; see
27273         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
27274
27275         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
27276         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
27277         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
27278         (struct obstack): temp member is now a union of a pointer and
27279         an integer, instead of an integer.  All integer uses changed.
27280         This does not affect the physical layout of struct obstack,
27281         except on hosts (like the AS/400) where the size or alignment of
27282         void * is greater than that of ptrdiff_t.
27283         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
27284         __STDC__)]: Store temporary in pointer member of union, not
27285         integer member.
27286         * lib/obstack.c: Include <stddef.h>, for offsetof.
27287         (struct fooalign): Remove; it doesn't need a name.
27288         (union fooround): Change double to long double, and add void *.
27289         (DEFAULT_ALIGNMENT): Use offsetof to compute.
27290         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
27291         not a macro.  Hence the values are always int; so remove all
27292         casts-to-int in uses.
27293
27294 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27295
27296         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
27297         we can get this patch merged into glibc.
27298
27299 2004-05-17  Derek R. Price  <derek@ximbiot.com>
27300             Paul Eggert  <eggert@cs.ucla.edu>
27301
27302         * m4/argp: Depend on alloca.
27303
27304 2004-05-17  Derek R. Price  <derek@ximbiot.com>
27305             Paul Eggert  <eggert@cs.ucla.edu>
27306
27307         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
27308         freecoding.
27309
27310 2004-05-17  Bruno Haible  <bruno@clisp.org>
27311
27312         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
27313         precision that consists of a '.' followed by an empty digit string.
27314         Patch by Tor Lillqvist <tml@iki.fi>.
27315
27316 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27317
27318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
27319         for backward compatibility with older code.  We need our own
27320         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
27321         it under some other name, and our alloca.h will define it.
27322
27323 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
27324             Derek Price  <derek@ximbiot.com>
27325
27326         * lib/alloca.c: Include <alloca.h>, to get our interface.
27327         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
27328         include <alloca.h> first.  Use C89 prototype for alloca; this
27329         requires including <stddef.h> for size_t.  Use extern "C" if C++.
27330         Use #elif for simplicity, since we can assume C89 now.
27331         Don't try to source the system alloca.h since it will not be found
27332         and to prevent recursively including its replacement.
27333         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
27334         * lib/regex.c: Likewise.
27335
27336 2004-05-16  Derek Price  <derek@ximbiot.com>
27337             Paul Eggert  <eggert@cs.ucla.edu>
27338
27339         getline cleanup.  This changes the getndelim2 API: both order of
27340         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
27341         no delimiter).
27342
27343         * lib/getline.c: Don't include stddef.h or stdio.h, since our
27344         interface does that.
27345         (getline): Always use getdelim, so that we don't have two
27346         copies of this code.
27347         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
27348         if available.
27349         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
27350         (GETNDELIM2_MAXIMUM): New macro.
27351         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
27352         instead of the old practice of delim2==0.  All callers changed.
27353         Return -1 on overflow, instead of returning junk.
27354         Do not set *linesize unless allocation succeeds.
27355         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
27356         that we include sys/types.h.
27357         * lib/getnline.h: Likewise.
27358         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
27359         (getndelim2): Reorder arguments.
27360         * lib/getnline.c (getnline, getndelim):
27361         Don't discard the NMAX argument.
27362         (getnline): Invoke getndelim, to avoid code duplication.
27363         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
27364         of (size_t) -1 by callers of the getnline family.
27365
27366 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27367
27368         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
27369         Check for gettimeofday.
27370         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
27371         Check for settimeofday, stime.
27372
27373 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27374
27375         * lib/nanosleep.c (suspended): Change its type from int to
27376         sig_atomic_t volatile.
27377         (first_call): Make it private to rpl_nanosleep, and have it
27378         be zero initially as that's a bit faster.
27379         (my_usleep): Round up fractional times instead of truncating them,
27380         as this is the usual meaning for 'sleep'.
27381
27382         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
27383         doesn't work.
27384         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
27385         (ENOSYS): Define if not defined.
27386         (settime): Fall back on stime if it exists and settimeofday fails.
27387         But don't bother with fallbacks if a method fails with errno == EPERM.
27388
27389 2004-05-11  Jim Meyering  <jim@meyering.net>
27390
27391         Prior to this change, the save_cwd caller required read access to the
27392         current directory on most systems (ones with the fchdir function).
27393
27394         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
27395         fails, try write-only, and finally, resort to using xgetcwd.
27396
27397 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
27398
27399         * lib/obstack.c, obstack.h: Import changes from libc.
27400
27401 2004-04-28  Bruno Haible  <bruno@clisp.org>
27402
27403         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
27404         also implicitly appends .exe to executables.
27405         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
27406         accepts Windows pathnames.
27407         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
27408         Treat Cygwin like Windows, since it now accepts Windows pathnames.
27409         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
27410         Treat Cygwin like Windows, since it now accepts Windows pathnames.
27411         Reported by Derek Robert Price <derek@ximbiot.com>.
27412
27413 2004-04-21  Karl Berry  <karl@gnu.org>
27414
27415         * config/srclist.txt (localcharset.c): break sync.
27416
27417 2004-04-20  Paul Eggert  <eggert@twinsun.com>
27418
27419         * m4/host-os.m4: Add a copyright notice.
27420
27421 2004-04-20  Jim Meyering  <jim@meyering.net>
27422
27423         Change UTILS_ to gl_ in AC_DEFINE'd names.
27424         Change utils_- and jm_-prefixed variables, too.
27425         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
27426         UTILS_FUNC_MKDIR_TRAILING_SLASH.
27427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
27428
27429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
27430         Don't emit trailing blanks.
27431         Also rename jm_-prefixed variables to have gl_ prefix.
27432
27433         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
27434         Also rename jm_-prefixed variables to have gl_ prefix.
27435
27436         * m4/jm-macros.m4: Reflect the renamings.
27437         * m4/prereq.m4: Likewise.
27438
27439 2004-04-20  Jim Meyering  <jim@meyering.net>
27440
27441         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
27442         memory.
27443
27444 2004-04-20  Jim Meyering  <jim@meyering.net>
27445             Bruno Haible  <bruno@clisp.org>
27446
27447         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
27448         memory when realloc fails.
27449
27450 2004-04-19  Jim Meyering  <jim@meyering.net>
27451
27452         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
27453         now that readutmp.c may call `free (0)'.
27454
27455 2004-04-19  Bruno Haible  <bruno@clisp.org>
27456
27457         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
27458         * m4/inttypes_h.m4: Likewise.
27459         * m4/stdint_h.m4: Likewise.
27460         * m4/intmax_t.m4: Likewise.
27461         * m4/uintmax_t.m4: Likewise.
27462
27463 2004-04-18  Jim Meyering  <jim@meyering.net>
27464
27465         * m4/prereq.m4: Don't forbid jm_ prefix.
27466
27467         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
27468         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
27469         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
27470         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
27471         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
27472         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
27473         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
27474         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
27475         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
27476         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
27477         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
27478         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
27479         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
27480         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
27481         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
27482         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
27483         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
27484         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
27485         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
27486
27487 2004-04-18  Jim Meyering  <jim@meyering.net>
27488
27489         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
27490         failure, don't leak memory and do call END_UTMP_ENT.
27491
27492 2004-04-16  Jim Meyering  <jim@meyering.net>
27493
27494         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
27495         coreutils' stat program.
27496         (gl_PREREQ): Don't require jm_PREREQ_STAT.
27497
27498 2004-04-11  Paul Eggert  <eggert@twinsun.com>
27499
27500         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
27501         C89.
27502         (CHAR_BIT): Remove, since we assume C89.
27503         Include <stdint.h> if available, as per current Autoconf CVS advice.
27504
27505 2004-03-31  Jim Meyering  <jim@meyering.net>
27506
27507         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
27508         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
27509         * m4/xalloc.m4: Likewise.
27510
27511 2004-03-30  Paul Eggert  <eggert@twinsun.com>
27512
27513         Merge from coreutils.
27514
27515         * m4/inttostr.m4: New file.
27516         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
27517         Require AM_STDBOOL_H and gl_TIMESPEC instead.
27518         Require gl_CLOCK_TIME.
27519         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
27520
27521 2004-03-30  Paul Eggert  <eggert@twinsun.com>
27522
27523         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
27524         not bool, to be more consistent with Unix conventions.
27525         Suggested by Bruno Haible.
27526
27527         Merge from coreutils.
27528
27529         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
27530         * lib/umaxtostr.c: New files.
27531
27532         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
27533         the usual <time.h> dance.
27534         (get_date): Change signature to support fractional time stamps.
27535         All callers changed.
27536         * lib/getdate.y: Include "getdate.h" first, as we can now
27537         assume C89 and don't need to worry about 'const'.
27538         Similarly, include "unlocked-io.h" near start, not in middle.
27539         Include <limits.h>.
27540         (textint.value): Use long int rather than int.
27541         (textint.digits): Use size_t rather than int.
27542         (BILLION, LOG10_BILLION): New constants.
27543         (parser_control): New member rel_ns.  Members day_ordinal,
27544         time_zone, month, day, hour, minutes, rel_year, rel_month,
27545         rel_day, rel_hour, rel_minutes, rel_seconds
27546         are now long int, not int.  Member seconds is now struct timespec,
27547         not int.  New member timespec_seen.  Members dates_seen, days_seen,
27548         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
27549         not int.
27550         (%union.intval): Now long int, not int.
27551         New member timespec.
27552         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
27553         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
27554         (spec): Now is a timespec or an item list.
27555         (timespec, items): New nonterminals.
27556         (time, rel, relunit, number, get_date):
27557         Add support for fractional seconds.
27558         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
27559         (gmtime, localtime, mktime): Remove decls; not needed with C89.
27560         (to_hour): First arg is now long int, not int.
27561         (to_year): Returns long int, not int.
27562         Don't treat year -70 like 70.
27563         (tm_diff): Returns long int, not int.
27564         (lookup_word): Use bool instead of int when appropriate.
27565         (yylex): Use size_t for count, not int.
27566         Detect overflow when parsing large integer constants.
27567         Add support for fractions.
27568         (get_date): Make pointers 'const' if possible.
27569         Use more-portable code to detect integer overflow.
27570         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
27571         Don't use ctime; it's not reliable if the year has >4 digits.
27572
27573         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
27574         This is for compatibility with BSD.
27575
27576         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
27577         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
27578         From coreutils' system.h.
27579
27580         * lib/userspec.c: Don't include "posixver.h".
27581         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
27582         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
27583         compatible extension.  Simplify code by removing a boolean int
27584         that was always nonzero if a string was nonnull.
27585
27586 2004-03-30  Jim Meyering  <jim@meyering.net>
27587
27588         Merge from coreutils.
27589
27590         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
27591         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
27592         on some systems one must include <grp.h> before it.
27593         Reported by Christian Krackowizer.
27594
27595 2004-03-30  Jim Meyering  <jim@meyering.net>
27596
27597         Merge from coreutils.
27598
27599         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
27600
27601         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
27602         an empty input stream.
27603
27604         * lib/readtokens.c: Include <stdbool.h>.
27605         (readtoken): Use `size_t' rather than int/long.
27606         All callers adjusted.
27607         Use `bool' rather than `int' where appropriate.
27608         Use memset rather than an explicit loop.
27609         Use x2nrealloc rather than xrealloc.
27610         Allow the use of `\0' as a delimiter.
27611         (readtokens): Likewise.
27612         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
27613
27614 2004-03-30  Jim Meyering  <jim@meyering.net>
27615
27616         * m4/realloc.m4: Remove file, since now it does no more than
27617         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
27618         the `configure.ac' section of module/realloc.
27619         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
27620
27621 2004-03-30  Bruno Haible  <bruno@clisp.org>
27622
27623         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
27624         nonnull.
27625
27626 2004-03-29  Paul Eggert  <eggert@twinsun.com>
27627
27628         Merge changes to getloadavg.c from coreutils and Emacs.
27629
27630         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
27631         Define to an expression, not to the empty string.
27632         Include cloexec.h and xalloc.h.
27633         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
27634         Use set_cloexec_flag rather than rolling our own.
27635         * lib/cloexec.c, lib/cloexec.h: New files.
27636
27637 2004-03-29  Paul Eggert  <eggert@twinsun.com>
27638
27639         * m4/cloexec.m4: New file.
27640
27641 2004-03-18  Paul Eggert  <eggert@twinsun.com>
27642
27643         * lib/getopt.h: Sync with libc CVS.
27644
27645 2004-03-18  Paul Eggert  <eggert@twinsun.com>
27646             Bruno Haible  <bruno@clisp.org>
27647
27648         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
27649         mbswidth.
27650
27651 2004-03-18  Paul Eggert  <eggert@twinsun.com>
27652             Bruno Haible  <bruno@clisp.org>
27653
27654         * lib/mbswidth.h: Include <wchar.h> only if
27655         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
27656         <wchar.h>.
27657         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
27658
27659 2004-03-09  Paul Eggert  <eggert@twinsun.com>
27660
27661         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
27662         Sync with libc CVS.
27663         * lib/getopt_int.h: New file, also synced from libc.
27664
27665 2004-03-09  Paul Eggert  <eggert@twinsun.com>
27666
27667         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
27668         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
27669         Bring back getopt.c, getopt.h, getopt1.c.
27670
27671 2004-03-07  Paul Eggert  <eggert@twinsun.com>
27672
27673         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
27674         All uses changed.  Check for sa_sigaction member; this fixes
27675         a bug first reported by Jason Andrade in
27676         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
27677
27678 2004-03-07  Paul Eggert  <eggert@twinsun.com>
27679
27680         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
27681         '#if' expressions.  Unlike the code it replaces, it does not
27682         depend on (defined _SC_PAGESIZE).  However, it does depend on
27683         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
27684         first reported by Jason Andrade in
27685         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
27686
27687 2004-02-25  Simon Josefsson  <jas@extundo.com>
27688
27689         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
27690
27691 2004-02-25  Simon Josefsson  <jas@extundo.com>
27692
27693         * lib/strdup.h: New file.
27694         * lib/strdup.c: Include it.
27695         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
27696         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
27697
27698 2004-02-23  Karl Berry  <karl@gnu.org>
27699
27700         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
27701         (from fencepost.gnu.org:/gd/gnuorg).
27702
27703 2004-02-23  Karl Berry  <karl@gnu.org>
27704
27705         * config/srclistvars.sh (GNUORG) [karl]: redefine.
27706         * config/srclist.txt: add maintain/standards documents.
27707
27708 2004-02-18  Bruno Haible  <bruno@clisp.org>
27709
27710         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
27711         Reported by Derek Robert Price <derek@ximbiot.com>.
27712
27713 2004-02-16  Karl Berry  <karl@gnu.org>
27714
27715         * config/mkinstalldirs, install-sh: update from automake.
27716
27717 2004-02-06  Karl Berry  <karl@gnu.org>
27718
27719         * m4/po.m4: update from gettext 0.14.1.
27720
27721 2004-02-06  Karl Berry  <karl@gnu.org>
27722
27723         * lib/config.charset: update from gettext 0.14.1.
27724
27725 2004-02-05  Paul Eggert  <eggert@twinsun.com>
27726
27727         Add comments and code, prompted by suggestions from Bruno Haible
27728         for sh-quote.
27729         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
27730         describing the enum quoting_style values.
27731         * lib/quotearg.c (quotearg_alloc): New function.
27732         (quotearg_buffer_restyled): Treat lone { and } as special.
27733         Treat = as special.  Work around bug with older shells
27734         that "see" a '\' that is really the 2nd byte of a multibyte char.
27735         Quote empty string with shell_quoting_style.
27736
27737 2004-02-03  Bruno Haible  <bruno@clisp.org>
27738
27739         * m4/pipe.m4: New file, from GNU gettext.
27740
27741 2004-02-03  Bruno Haible  <bruno@clisp.org>
27742
27743         * lib/pipe.h: New file, from GNU gettext.
27744         * lib/pipe.c: New file, from GNU gettext.
27745
27746 2004-01-27  Bruno Haible  <bruno@clisp.org>
27747
27748         * m4/execute.m4: New file, from GNU gettext.
27749
27750 2004-01-27  Bruno Haible  <bruno@clisp.org>
27751
27752         * lib/execute.h: New file, from GNU gettext.
27753         * lib/execute.c: New file, from GNU gettext.
27754         * lib/w32spawn.h: New file, from GNU gettext.
27755
27756 2004-01-24  Paul Eggert  <eggert@twinsun.com>
27757
27758         Merge from diffutils.
27759
27760         * lib/file-type.c (file_type): Add typed memory objects.
27761         * lib/file-type.h (S_TYPEISTMO): New macro.
27762
27763         * lib/c-stack.h (c_stack_action): Remove argv argument.
27764         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
27765         (die): Don't calculate message unless segv_action returns.
27766         (get_stack_location, min_address_from_argv, max_address_from_argv,
27767         volatile stack_base, volatile_stack_size): Remove.
27768         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
27769         that every segmentation violation is a stack overflow.  (Ouch!)
27770         See Debian bug 136249 (still outstanding) for more info about why
27771         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
27772
27773 2004-01-24  Paul Eggert  <eggert@twinsun.com>
27774
27775         Exit-status fix from coreutils.
27776
27777         Use exit_failure consistently in place of EXIT_FAILURE,
27778         so that program exit statuses are consistent on failure.
27779
27780         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
27781         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
27782         * lib/argmatch.h: Comment fix to match the above.
27783         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
27784         Now a macro referring to exit_failure, instead of a separate
27785         variable.  Include "exitfail.h" to get it.
27786         * lib/xstrtol.h: Include "exitfail.h".
27787         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
27788
27789         * lib/long-options.c (parse_long_options): Use prototype
27790         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
27791         for clarity.
27792
27793 2004-01-21  Jim Meyering  <jim@meyering.net>
27794
27795         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
27796         so as not to conflict with a different-sized __mktime_internal
27797         function in GNU libc.
27798         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
27799         Problem building statically-linked `ls' reported by Michael Brunnbauer.
27800
27801 2004-01-20  Karl Berry  <karl@gnu.org>
27802
27803         * config/config.guess: update from config.
27804
27805         * config/srclistvars.sh: GNUWWWLICENSES for karl.
27806
27807 2004-01-20  Bruno Haible  <bruno@clisp.org>
27808
27809         Safer stack allocation.
27810         * lib/setenv.c: Include allocsa.h.
27811         (alloca): Remove fallback definition.
27812         (freea): Remove macro.
27813         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
27814         instead of freea.
27815
27816 2004-01-20  Bruno Haible  <bruno@clisp.org>
27817
27818         * m4/eealloc.m4: New file, from GNU gettext.
27819
27820 2004-01-20  Bruno Haible  <bruno@clisp.org>
27821
27822         * m4/allocsa.m4: New file, from GNU gettext.
27823
27824 2004-01-20  Bruno Haible  <bruno@clisp.org>
27825
27826         * lib/xallocsa.h: New file, from GNU gettext.
27827         * lib/xallocsa.c: New file, from GNU gettext.
27828
27829 2004-01-20  Bruno Haible  <bruno@clisp.org>
27830
27831         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
27832
27833 2004-01-20  Bruno Haible  <bruno@clisp.org>
27834
27835         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
27836         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
27837         specially.
27838
27839 2004-01-20  Bruno Haible  <bruno@clisp.org>
27840
27841         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
27842         patch.
27843
27844 2004-01-20  Bruno Haible  <bruno@clisp.org>
27845
27846         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
27847
27848 2004-01-20  Bruno Haible  <bruno@clisp.org>
27849
27850         * lib/eealloc.h: New file.
27851
27852 2004-01-20  Bruno Haible  <bruno@clisp.org>
27853
27854         * lib/binary-io.h: Avoid warnings on Cygwin.
27855
27856 2004-01-20  Bruno Haible  <bruno@clisp.org>
27857
27858         * lib/allocsa.h: New file, from GNU gettext.
27859         * lib/allocsa.c: New file, from GNU gettext.
27860
27861 2004-01-18  Karl Berry  <karl@gnu.org>
27862
27863         * doc/gpl.texi, doc/lgpl.texi: new files.
27864
27865 2004-01-18  Karl Berry  <karl@gnu.org>
27866
27867         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
27868         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
27869
27870 2004-01-15  Paul Eggert  <eggert@twinsun.com>
27871
27872         Merge from coreutils.
27873
27874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
27875         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
27876         (gl_DEFAULT_POSIX2_VERSION): Move
27877         the documentation from 'configure' into 'config.hin',
27878         so that 'configure --help' isn't burdened by it and
27879         we don't have to worry about its formatting there.
27880         Reword the documentation so that it's more succinct
27881         and can be run together into a single paragraph.
27882         * m4/same.m4 (gl_SAME): Check for pathconf.
27883
27884 2004-01-15  Paul Eggert  <eggert@twinsun.com>
27885
27886         Merge from coreutils.
27887
27888         * lib/posixver.c: Include posixver.h.
27889
27890         * lib/same.c: Include <stdbool.h>, <limits.h>.
27891         (_POSIX_NAME_MAX): Define if not defined.
27892         (MIN): New macro.
27893         (same_name): If file names are silently truncated, report
27894         that the file names are the same if they are the same after
27895         the silent truncation.
27896
27897         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
27898         conversion function.
27899         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
27900         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
27901         longer needed.
27902
27903 2004-01-15  Jim Meyering  <jim@meyering.net>
27904
27905         Merge from coreutils.
27906
27907         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
27908         if no library is required.
27909         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
27910         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
27911         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
27912         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
27913         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
27914         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
27915         value, $ac_cv_search_crypt, if it's "none required".
27916         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
27917         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
27918         not gl_FUNC_GETLOADAVG.
27919         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
27920         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
27921
27922 2004-01-15  Jim Meyering  <jim@meyering.net>
27923
27924         Merge from coreutils.
27925
27926         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
27927         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
27928         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
27929
27930         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
27931         optional configure-time default.
27932
27933         * lib/version-etc.c (version_etc_copyright): Update copyright date.
27934
27935         * lib/xreadlink.c (xreadlink): Correct outdated comment.
27936
27937 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
27938
27939         Merge from coreutils.
27940
27941         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
27942         value, $ac_cv_search_nanosleep, if it's "none required".
27943
27944 2004-01-14  Paul Eggert  <eggert@twinsun.com>
27945
27946         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
27947         with like-named macro in fnmatch.c.
27948         (EXT): Use an internal constant instead.
27949
27950         Merge fnmatch patches from glibc.
27951         * lib/fnmatch.c (mbsinit): Remove define.
27952         Add libc_hidden_ver (__fnmatch, fnmatch).
27953         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
27954         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
27955
27956 2004-01-14  Karl Berry  <karl@gnu.org>
27957
27958         * config/install-sh: update from automake.
27959
27960 2004-01-13  Karl Berry  <karl@gnu.org>
27961
27962         * config/install-sh: update from automake.
27963
27964 2004-01-09  Karl Berry  <karl@gnu.org>
27965
27966         * config/install-sh: update from automake.
27967
27968 2004-01-05  Karl Berry  <karl@gnu.org>
27969
27970         * config/config.{sub,guess}: update from config.
27971
27972 2003-12-31  Karl Berry  <karl@gnu.org>
27973
27974         * config/depcomp: update from automake.
27975
27976 2003-12-14  Karl Berry  <karl@gnu.org>
27977
27978         * lib/config.charset: update from gettext-runtime.
27979
27980 2003-12-03  Paul Eggert  <eggert@twinsun.com>
27981
27982         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
27983         Bug reported by Alfred M. Szmidt.
27984
27985 2003-12-03  Bruno Haible  <bruno@clisp.org>
27986
27987         * m4/gettext.m4: Upgrade from gettext-0.13.
27988         * m4/po.m4: Upgrade from gettext-0.13.
27989         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
27990         * m4/intmax.m4: New file, from gettext-0.13.
27991         * m4/printf-posix.m4: New file, from gettext-0.13.
27992
27993 2003-11-29  Karl Berry  <karl@gnu.org>
27994
27995         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
27996
27997 2003-11-25  Paul Eggert  <eggert@twinsun.com>
27998             Bruno Haible  <bruno@clisp.org>
27999
28000         * lib/printf-parse.h: Don't include sys/types.h.
28001         (ARG_NONE): New macro.
28002         (char_directive): Change type of *arg_index fields to size_t.
28003         * lib/printf-parse.c: Don't include sys/types.h.
28004         (SSIZE_MAX): Remove macro.
28005         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
28006         Remove unnecessary overflow check.
28007         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
28008         fields.
28009
28010 2003-11-25  Bruno Haible  <bruno@clisp.org>
28011
28012         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
28013
28014 2003-11-25  Bruno Haible  <bruno@clisp.org>
28015
28016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
28017         gt_TYPE_SSIZE_T.
28018
28019 2003-11-24  Paul Eggert  <eggert@twinsun.com>
28020
28021         * modules/alloca: Remove dependency on xalloc.
28022
28023 2003-11-24  Paul Eggert  <eggert@twinsun.com>
28024
28025         * lib/alloca.c: Remove dependency on xalloc module.
28026         (xalloc_die): Remove.
28027         (memory_full) [!defined emacs]: New macro.
28028         [!defined emacs]: Don't include xalloc.h.
28029         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
28030         address arithmetic overflows.  Change datatypes a bit to avoid
28031         unnecessary casts.
28032
28033 2003-11-22  Jim Meyering  <jim@meyering.net>
28034
28035         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
28036         s/size/size_t/.
28037
28038 2003-11-21  Karl Berry  <karl@gnu.org>
28039
28040         * config/config.{sub,guess}: update from config.
28041
28042 2003-11-18  Karl Berry  <karl@gnu.org>
28043
28044         * config/config.{sub,guess}: update from config.
28045
28046         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
28047
28048 2003-11-17  Paul Eggert  <eggert@twinsun.com>
28049
28050         * README: Mention that S+T cannot overflow if S is the size of
28051         an existing object and T is sufficiently small.
28052
28053 2003-11-17  Jim Meyering  <jim@meyering.net>
28054
28055         On systems without utime and without a utimes function capable of
28056         dealing with a NULL struct utimbuf* argument, this utime replacement
28057         could -- in unusual circumstances -- leak a file descriptor.
28058         * lib/utime.c: Include <unistd.h> and <errno.h>.
28059         (utime_null): Be sure to close `fd' and to preserve errno.
28060         Reported by Geoff Collyer via Arnold Robbins.
28061
28062 2003-11-17  Bruno Haible  <bruno@clisp.org>
28063
28064         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
28065         (Depends-on): Add xsize.
28066
28067 2003-11-17  Bruno Haible  <bruno@clisp.org>
28068
28069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
28070
28071 2003-11-17  Bruno Haible  <bruno@clisp.org>
28072
28073         * lib/vasnprintf.c (alloca): Remove fallback definition.
28074         (freea): Remove definition.
28075         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
28076         Reported by Paul Eggert.
28077
28078 2003-11-16  Paul Eggert  <eggert@twinsun.com>
28079             Bruno Haible  <bruno@clisp.org>
28080
28081         Protect against address arithmetic overflow.
28082         * lib/printf-args.h: Include stddef.h.
28083         (arguments): Change type of field 'count' to size_t.
28084         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
28085         'unsigned int' where appropriate.
28086         * lib/printf-parse.h: Include sys/types.h.
28087         (char_directive): Change type of *arg_index fields to ssize_t.
28088         (char_directives): Change type of fields 'count', max_*_length to
28089         size_t.
28090         * lib/printf-parse.c: Include sys/types.h and xsize.h.
28091         (SSIZE_MAX): Define fallback value.
28092         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
28093         instead of 'int' where appropriate. Check a_allocated, d_allocated
28094         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
28095         * lib/vasnprintf.c: Include xsize.h.
28096         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
28097         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
28098         overflow. Avoid wraparound when converting a width or precision from
28099         decimal to binary.
28100
28101 2003-11-16  Bruno Haible  <bruno@clisp.org>
28102
28103         Update from GNU gettext.
28104         * lib/printf-parse.c: Generalize to it can be compiled for wide
28105         strings.
28106         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
28107         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
28108         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
28109         SNPRINTF): New macros.
28110         Don't include <alloca.h> if the file is used inside libintl.
28111         (local_wcslen): New function, for Solaris 2.5.1.
28112         (VASNPRINTF): Use it instead of wcslen.
28113
28114 2003-11-16  Bruno Haible  <bruno@clisp.org>
28115
28116         * lib/xsize.h (xmax): New function.
28117         (xsum, xsum3, xsum4): Declare as "pure" functions.
28118
28119 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28120
28121         * modules/xalloc (Files): Undo latest change, since xalloc.h
28122         no longer needs SIZE_MAX or PTRDIFF_MAX.
28123
28124 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28125
28126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
28127         gl_PTRDIFF_MAX.
28128
28129 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28130
28131         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
28132         "return", to pacify some unknown compiler.  Problem reported
28133         by Joerg Schilling.
28134
28135 2003-11-12  Paul Eggert  <eggert@twinsun.com>
28136
28137         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
28138         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
28139         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
28140         heuristic is just as accurate as far as we know, and it removes a
28141         dependency on size_max.m4 and ptrdiff_max.m4.
28142
28143 2003-11-11  Bruno Haible  <bruno@clisp.org>
28144
28145         * modules/xsize (Files): Add m4/size_max.m4.
28146         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
28147
28148 2003-11-11  Bruno Haible  <bruno@clisp.org>
28149
28150         * m4/size_max.m4: New file.
28151         * m4/ptrdiff_max.m4: New file.
28152         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
28153         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
28154         (gl_XALLOC): Invoke it.
28155
28156 2003-11-11  Bruno Haible  <bruno@clisp.org>
28157
28158         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
28159         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
28160         defined.
28161
28162 2003-11-10  Paul Eggert  <eggert@twinsun.com>
28163
28164         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
28165         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
28166         rejected some allocations of exactly SIZE_MAX - 2 bytes.
28167         From Bruno Haible.
28168         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
28169         not (size_t) -1, since it's defined here.
28170
28171 2003-11-09  Karl Berry  <karl@gnu.org>
28172
28173         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
28174
28175 2003-11-06  Paul Eggert  <eggert@twinsun.com>
28176
28177         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
28178         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
28179         Reject sizes of exactly SIZE_MAX bytes.
28180         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
28181         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
28182
28183 2003-11-05  Bruno Haible  <bruno@clisp.org>
28184
28185         * lib/xsize.h: Include limits.h, to avoid a possible collision with
28186         SIZE_MAX defined in <limits.h> on Solaris.
28187
28188 2003-11-04  Jim Meyering  <jim@meyering.net>
28189
28190         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
28191         variable names, rather than @VAR@.
28192         * modules/poll: Likewise.
28193
28194 2003-11-04  Bruno Haible  <bruno@clisp.org>
28195
28196         * modules/xsize: New file.
28197         * modules/linebreak: Depend on xsize.
28198         * MODULES.html.sh (func_all_modules): Add xsize.
28199
28200 2003-11-04  Bruno Haible  <bruno@clisp.org>
28201
28202         * m4/xsize.m4: New file.
28203
28204 2003-11-04  Bruno Haible  <bruno@clisp.org>
28205
28206         * lib/xsize.h: New file.
28207         * lib/linebreak.c: Include xsize.h.
28208         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
28209         argument for overflow.
28210         Suggested by Paul Eggert.
28211
28212 2003-11-03  Karl Berry  <karl@gnu.org>
28213
28214         * config/config.{guess,sub}: update from config.
28215
28216 2003-11-03  Jim Meyering  <jim@meyering.net>
28217
28218         * modules/userspec (lib_SOURCES): Add userspec.h.
28219         (Include): Add "userspec.h".
28220         Improve description.
28221
28222 2003-11-03  Jim Meyering  <jim@meyering.net>
28223
28224         * lib/userspec.c: Include "userspec.h".
28225         * lib/userspec.h: New file.
28226
28227 2003-11-03  Bruno Haible  <bruno@clisp.org>
28228
28229         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
28230
28231 2003-11-03  Bruno Haible  <bruno@clisp.org>
28232
28233         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
28234         available, to avoid (extremely rare) race condition.
28235         Suggested by Paul Eggert.
28236
28237 2003-11-02  Karl Berry  <karl@gnu.org>
28238
28239         * config/srclist.txt (vasprintf.c): sync broken, sigh.
28240
28241 2003-10-31  Paul Eggert  <eggert@twinsun.com>
28242
28243         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
28244         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
28245         (read_filesystem_list): Set and use me_type_malloced.
28246         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
28247         whatever the type happens to be), for brevity and consistency.
28248         Check for size calculation overflow on Alphas running OSF/1.
28249
28250 2003-10-31  Jim Meyering  <jim@meyering.net>
28251
28252         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
28253
28254         * lib/linebuffer.c: Include <string.h> for declaration of memset.
28255
28256 2003-10-30  Paul Eggert  <eggert@twinsun.com>
28257             Bruno Haible  <bruno@clisp.org>
28258
28259         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
28260         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
28261
28262 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28263
28264         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
28265         netbsd*-gnu*.  Suggested by Robert Millan.
28266
28267 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28268
28269         * modules/group-member: Depend on stdbool.
28270
28271 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28272
28273         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
28274
28275 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28276
28277         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
28278         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
28279         after the 'gnu' in these cases.  This fixes some bugs in the
28280         previous change, and is based on suggestions by Robert Millan.
28281
28282 2003-10-29  Paul Eggert  <eggert@twinsun.com>
28283
28284         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
28285         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
28286         no longer needed.
28287         * lib/quotearg.c (quotearg_n_options): Use it.
28288         * lib/group-member.c: Include <stdbool.h>.
28289         (free_group_info): Arg is now const *; don't free arg.
28290         (get_group_info): Now returns bool and accepts struct group_info *,
28291         rather than returning a malloc'ed struct group_info *.
28292         All uses changed.  Check for overflow in internal size calculation.
28293
28294         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
28295         rather than xmalloc/xrealloc.
28296         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
28297         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
28298         conformance bug: the old code used a pointer after freeing the
28299         storage that it addressed.
28300         * lib/hash.c (hash_initialize): Simplify the code by using
28301         xalloc_oversized rather than doing it by hand.
28302         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
28303         the buffer preserved.  Use free and xmalloc instead.
28304         * lib/quotearg.c (quotearg_n_options): Likewise.
28305         Use a simpler test for size overflow.  Don't use xalloc_oversized
28306         because unsigned int might be wider than size_t (!); this suggests
28307         that we should switch from unsigned int to size_t for slot numbers.
28308
28309 2003-10-28  Paul Eggert  <eggert@twinsun.com>
28310
28311         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
28312         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
28313         NetBSD kernels.  Requested by Richard Stallman.
28314
28315 2003-10-27  Paul Eggert  <eggert@twinsun.com>
28316
28317         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
28318         to allocate the returned structure.  Do not allocate a subarray,
28319         as x2nrealloc will do that.
28320         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
28321         instead of xnrealloc.
28322         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
28323
28324 2003-10-27  Bruno Haible  <bruno@clisp.org>
28325
28326         * lib/stdbool_.h: Better support for BeOS.
28327
28328 2003-10-26  Paul Eggert  <eggert@twinsun.com>
28329
28330         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
28331         now uses inline.
28332
28333 2003-10-26  Paul Eggert  <eggert@twinsun.com>
28334
28335         * lib/xalloc.h (xalloc_oversized): New static inline function, for
28336         callers that want to do their own size-overflow checking.  Include
28337         <stdbool.h>, since xalloc_oversized returns bool.
28338         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
28339         to use xalloc_oversized.
28340
28341         Add two functions x2realloc, x2nrealloc, for programs that grow
28342         arrays dynamically by doubling their sizes.
28343         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
28344         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
28345         New functions.
28346
28347         Port to C99 semantics for 'inline' of external functions.
28348         Bug reported by Bruno Haible.
28349         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
28350         with the old contents of xnmalloc.
28351         (xnmalloc, xmalloc): Use it.
28352         (xnrealloc_inline): New static inline function,
28353         with the old contents of xnrealloc.
28354         (xnrealloc, xrealloc): Use it.
28355
28356         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
28357         that.
28358
28359 2003-10-26  Karl Berry  <karl@gnu.org>
28360
28361         * config/srclist.txt (COPYING.DOC): no longer available from
28362         /gd/gnuorg; don't know where the ultimate source is.
28363
28364 2003-10-25  Paul Eggert  <eggert@twinsun.com>
28365
28366         Fix several address-calculation bugs in the hash modules,
28367         plus some minor code cleanup.
28368
28369         * lib/hash.h: Include <stdbool.h>, for bool.
28370         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
28371         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
28372         hash_get_n_entries, hash_get_max_bucket_length,
28373         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
28374         hash_rehash): Use size_t rather than unsigned.
28375         * lib/hash.c (struct hash_table, hash_get_n_buckets,
28376         hash_get_n_buckets_used, hash_get_n_entries,
28377         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
28378         hash_get_entries, hash_do_for_each, hash_string, is_prime,
28379         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
28380         Likewise.
28381         (SIZE_MAX): Define if not defined.
28382         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
28383         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
28384         hash_print):
28385         Use const * when possible.
28386         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
28387         (check_tuning): Fix bug: if tuning parameters were very close to
28388         0 or 1, rounding errors could have caused subscript violations.
28389         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
28390         (hash_initialize): Add 'fail:' label
28391         to free table and return NULL, and use it to simplify code.
28392         Use calloc rather than clearing the storage ourself.
28393         (hash_initialize, hash_rehash): Check for arithmetic overflow in
28394         buffer size calculations.
28395         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
28396         Include <stddef.h>, for size_t.
28397         * lib/hash-pjw.c (hash_pjw): Likewise.
28398         Switch to method described by Bruno Haible.
28399         Include <limits.h>, for CHAR_BIT.
28400         (SIZE_BITS): New macro.
28401
28402 2003-10-23  Paul Eggert  <eggert@twinsun.com>
28403
28404         * m4/getline.m4 (AM_FUNC_GETLINE):
28405         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
28406         hosts.  Problem reported by Derek Robert Price in
28407         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
28408         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
28409         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
28410
28411 2003-10-21  Paul Eggert  <eggert@twinsun.com>
28412
28413         * lib/getndelim2.c (getndelim2): When size calculation overflows,
28414         ceiling the allocation at NMAX bytes rather than silently
28415         discarding input bytes before NMAX is reached.  This makes
28416         a difference only if NMAX exceeds SIZE_MAX / 2.
28417
28418         * lib/obstack.c: Merge from glibc.
28419         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
28420         Add libc_hidden_def (_obstack_newchunk).
28421         (_obstack_free) [! defined _LIBC]: Remove.
28422         [defined _LIBC]: Make a strong alias from obstack_free, rather than
28423         a clone of the function body.
28424         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
28425         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
28426
28427         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
28428         glibc.
28429         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
28430         arg to memcpy.
28431
28432         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
28433         (obstack_ptr_grow_fast, obstack_int_grow_fast):
28434         Don't use lvalue casts, as GCC plans to remove support for them
28435         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
28436         was also present in the non-GCC version, indicating that this
28437         code had always been buggy and had never been widely used.
28438         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
28439         Use the fast variant of each macro, rather than copying the
28440         definiens of the fast variant; that way, we'll be more likely to
28441         catch future bugs in the fast variants.
28442
28443 2003-10-20  Bruno Haible  <bruno@clisp.org>
28444
28445         * modules/wait-process: New file.
28446         * MODULES.html.sh (func_all_modules): Add wait-process.
28447
28448 2003-10-20  Bruno Haible  <bruno@clisp.org>
28449
28450         * m4/wait-process.m4: New file.
28451
28452 2003-10-20  Bruno Haible  <bruno@clisp.org>
28453
28454         * lib/wait-process.h: New file, from GNU gettext.
28455         * lib/wait-process.c: New file, from GNU gettext.
28456
28457 2003-10-19  Jim Meyering  <jim@meyering.net>
28458
28459         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
28460         HPUX 10.20.
28461
28462 2003-10-18  Karl Berry  <karl@gnu.org>
28463
28464         * config/config.guess: update from config.
28465
28466 2003-10-16  Paul Eggert  <eggert@twinsun.com>
28467
28468         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
28469         (getgroups): First arg is int, not size_t.
28470         Don't let 'free' mangle errno.
28471
28472 2003-10-16  Paul Eggert  <eggert@twinsun.com>
28473
28474         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
28475
28476 2003-10-16  Karl Berry  <karl@gnu.org>
28477
28478         * config/config.{guess,sub}: update from config.
28479
28480 2003-10-16  Jim Meyering  <jim@meyering.net>
28481
28482         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
28483         memcpy.
28484
28485 2003-10-15  Paul Eggert  <eggert@twinsun.com>
28486
28487         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
28488         (SIZE_MAX): Remove.
28489         (new_exclude, add_exclude_file): Initial size no longer needs to
28490         be a power of 2.
28491         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
28492         our own address arithmetic overflow checking.
28493
28494         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
28495         (fnmatch): Do not alloca more than 2000 wide characters;
28496         instead, use malloc for large buffers.
28497         Check for address arithmetic overflow, and return -1
28498         with errno set to ENOMEM in that case.
28499         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
28500         (NEW_PATTERN): Do not alloca more than 8000 bytes;
28501         instead, return -1.  Check for address arithmetic overflow.
28502
28503 2003-10-14  Paul Eggert  <eggert@twinsun.com>
28504
28505         Handle invalid suffixes and overflow independently, so that
28506         callers can treat them independently as needed.  Fix some bugs in
28507         suffix handling, e.g., "100k@" was not diagnosed as an invalid
28508         suffix for a human-readable blocksize.  The major caller-visible
28509         change is the addition of a new
28510         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
28511         that both overflow and suffix chars were found.
28512
28513         * lib/human.c (humblock): Don't check separately for invalid suffix
28514         char; that is xstrtoumax's job (now that its bug is fixed).
28515         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
28516         INTMAX_MAX]: New macros.
28517         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
28518         TYPE_MAXIMUM): New macros.
28519         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
28520         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
28521         if overflow occurs, as it's what __strtol does and it's more useful
28522         in practice.
28523         (__xstrtol): If __strtol reports some error other than ERANGE,
28524         reflect it to the caller as LONGINT_INVALID.  If it reports
28525         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
28526         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
28527         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
28528         value.
28529         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
28530         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
28531         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
28532         [defined UINTMAX_MAX]: New macros.
28533
28534 2003-10-14  Bruno Haible  <bruno@clisp.org>
28535
28536         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
28537
28538 2003-10-14  Bruno Haible  <bruno@clisp.org>
28539
28540         * m4/sig_atomic_t: New file, from GNU gettext.
28541         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
28542
28543 2003-10-14  Bruno Haible  <bruno@clisp.org>
28544
28545         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
28546         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
28547         Also use volatile where needed.
28548
28549 2003-10-12  Paul Eggert  <eggert@twinsun.com>
28550
28551         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
28552         Change maintainer from Bruno Haible to 'all'.
28553
28554 2003-10-12  Paul Eggert  <eggert@twinsun.com>
28555
28556         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
28557
28558 2003-10-12  Paul Eggert  <eggert@twinsun.com>
28559
28560         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
28561         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
28562         and define in terms of the other primitives.
28563         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
28564         (SIZE_MAX): Define if not already defined.
28565         (array_size_overflow): New function.
28566         (xalloc_die): Abort instead of exiting if 'error' returns.
28567         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
28568         (xmalloc, xrealloc): Use them.
28569         (xcalloc): Check for address arithmetic overflow.
28570         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
28571         a bit faster than strcpy.
28572
28573 2003-10-10  Simon Josefsson  <jas@extundo.com>
28574
28575         * modules/argp (Depends-on): Add restrict and strcase.
28576
28577 2003-10-10  Simon Josefsson  <jas@extundo.com>
28578
28579         * m4/argp.m4: Add AC_C_INLINE.
28580
28581 2003-10-08  Paul Eggert  <eggert@twinsun.com>
28582
28583         Merge getpass from libc, plus a few fixes.
28584
28585         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
28586         Include <stdbool.h>.
28587         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
28588         __fsetlocking to empty.
28589         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
28590         do include <bits/libc-lock.h>.
28591         Do not include <fcntl.h>; not needed.
28592         [_LIBC]: Include <wchar.h>.
28593         (NOTCANCEL_MODE): New macro.
28594         (flockfile, funlockfile) [_LIBC]: New macros.
28595         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
28596         [!_LIBC]: New macros.
28597         (call_fclose): New function.
28598         (getpass): Use it.  Save tty stream separately; this simplifies the
28599         code and makes it more reliable if stdin happens to equal stdout.
28600         Invoke __fsetlocking on tty.
28601         Handle thread cancellation if needed.
28602         Namespace cleanup (use __tcgetattr, __getline).
28603         Use bool for Booleans.
28604         [USE_IN_LIBIO]: Handle wide streams.
28605         [!_LIBC]: Unconditionally do the fseek, since we don't know what
28606         stream might go where.
28607
28608         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
28609         doesn't have to include <stdio.h> before us.
28610         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
28611         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
28612         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
28613         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
28614         if not declared, so that we can use getpass.c code from libc without
28615         rewriting it.
28616         (flockfile, ftrylockfile, funlockfile): New macros.
28617
28618 2003-10-08  Paul Eggert  <eggert@twinsun.com>
28619
28620         * modules/getpass: Depend on stdbool.
28621
28622 2003-10-08  Paul Eggert  <eggert@twinsun.com>
28623
28624         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
28625
28626 2003-10-07  Karl Berry  <karl@gnu.org>
28627
28628         * config/config.{guess,sub}: update from config.
28629
28630 2003-10-06  Jim Meyering  <jim@meyering.net>
28631             Bruno Haible  <bruno@clisp.org>
28632
28633         This lets translators provide better translations for the
28634         "Written by ..." part of --version output.
28635         * lib/version-etc.h: Include stdarg.h.
28636         (version_etc_copyright): Declare as readonly.
28637         (version_etc): Make this function variadic with a NULL-terminated list
28638         of author name strings.
28639         (version_etc_va): New declaration.
28640         * lib/version-etc.c: Include stdarg.h, stdlib.h.
28641         (version_etc_copyright): Declare as readonly.
28642         (version_etc_va): New function. Provide a different translatable string
28643         for each possible number of authors < 10. Abbreviate when there are 10
28644         authors or more.
28645         (version_etc): Make this function variadic. Call version_etc_va.
28646         Suggestion from Gary V. Vaughan.
28647
28648         * lib/long-options.h (parse_long_options): Change prototype: the
28649         authors string is moved to the end and becomes variadic.
28650         * lib/long-options.c: Include stdarg.h.
28651         (parse_long_options): Make this function variadic, too.
28652         Call version_etc_va, not version_etc.
28653
28654 2003-10-06  Bruno Haible  <bruno@clisp.org>
28655
28656         * modules/version-etc-2: Remove file.
28657         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
28658
28659 2003-10-06  Bruno Haible  <bruno@clisp.org>
28660
28661         * modules/fatal-signal: New file.
28662         * MODULES.html.sh (func_all_modules): Add fatal-signal.
28663
28664 2003-10-06  Bruno Haible  <bruno@clisp.org>
28665
28666         * m4/fatal-signal.m4: New file.
28667         * m4/signalblocking.m4: New file, from GNU gettext.
28668
28669 2003-10-06  Bruno Haible  <bruno@clisp.org>
28670
28671         * lib/version-etc-2.h: Remove file.
28672         * lib/version-etc-2.c: Remove file.
28673
28674 2003-10-06  Bruno Haible  <bruno@clisp.org>
28675
28676         * lib/fatal-signal.h: New file, from GNU gettext.
28677         * lib/fatal-signal.c: New file, from GNU gettext.
28678
28679 2003-10-05  Paul Eggert  <eggert@twinsun.com>
28680
28681         * README: Rework advice for preventing empty .o files.
28682         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
28683         not <sys/types.h>.
28684
28685 2003-10-04  Karl Berry  <karl@gnu.org>
28686
28687         * lib/argp*: update from libc.
28688
28689 2003-10-04  Karl Berry  <karl@gnu.org>
28690
28691         * config/config.{guess,sub}: update from config.
28692
28693 2003-10-02  Bruno Haible  <bruno@clisp.org>
28694
28695         * modules/lchown (Include): Add lchown.h.
28696         * modules/time_r (Include): Use "..." syntax.
28697         * modules/xgetdomainname (Include): Add xgetdomainname.h.
28698
28699 2003-10-01  Simon Josefsson  <jas@extundo.com>
28700
28701         * MODULES.html.sh (func_all_modules): Move gethostname from section
28702         'based on' to section 'lacking' POSIX:2001.
28703
28704 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
28705
28706         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
28707         to output mode on the same stream.
28708
28709 2003-09-29  Paul Eggert  <eggert@twinsun.com>
28710
28711         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
28712         Fix arg typo in previous patch.
28713
28714 2003-09-28  Jim Meyering  <jim@meyering.net>
28715
28716         * lib/error.c: Correct cpp indentation.
28717
28718 2003-09-27  Paul Eggert  <eggert@twinsun.com>
28719
28720         * modules/free: New file.
28721
28722 2003-09-27  Paul Eggert  <eggert@twinsun.com>
28723
28724         * m4/free.m4: New file.
28725
28726 2003-09-27  Paul Eggert  <eggert@twinsun.com>
28727
28728         * lib/minmax.h (MIN, MAX)
28729         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
28730         Omit the special code that used __typeof__, since we worry that
28731         it could be more trouble than it's worth.  See:
28732         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
28733         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
28734
28735         * lib/free.c: New file.
28736
28737 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
28738
28739         Trivial fixes to Makefile.am parts of module listings.
28740         * modules/strstr: Append strstr.h to lib_SOURCES.
28741         * modules/strcase: Likewise, for strcase.h.
28742
28743 2003-09-27  Karl Berry  <karl@gnu.org>
28744
28745         * config/mkinstalldirs: update from automake.
28746
28747 2003-09-26  Paul Eggert  <eggert@twinsun.com>
28748
28749         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
28750         (error_tail): Do not loop, reallocating temporary buffer, since
28751         the output cannot contain more wide characters than the input
28752         contains bytes, the size must be big enough already.  This avoids
28753         one potential size overflow calculation.  Check for size overflow
28754         when calculating temporary buffer size.  Free temporary buffer
28755         when done, if it was allocated with malloc; this plugs a memory
28756         leak.  Remove casts from void * to pointers, that are no longer
28757         needed now that we're assuming C89 or better.
28758
28759         Merge error changes from glibc.
28760
28761         * lib/error.c, error.h: Update copyright notice header to match glibc.
28762         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
28763         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
28764         Disable cancellation while printing error.
28765         * lib/error.h: Prepend __ to parameter names.
28766
28767 2003-09-26  Jim Meyering  <jim@meyering.net>
28768
28769         * lib/error.c (error_tail): Move some declarations
28770         into inner scope where the local variables are used.
28771
28772 2003-09-26  Bruno Haible  <bruno@clisp.org>
28773
28774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
28775         stpncpy().
28776         Don't define stpncpy through config.h; it's now done through stpncpy.h.
28777
28778 2003-09-26  Bruno Haible  <bruno@clisp.org>
28779
28780         * lib/stpncpy.h (gnu_stpncpy): New declaration.
28781         (stpncpy): Define as alias for gnu_stpncpy.
28782         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
28783
28784 2003-09-25  Simon Josefsson  <jas@extundo.com>
28785
28786         * lib/xgetdomainname.h: New file.
28787         * lib/xgetdomainname.c: New file.
28788
28789 2003-09-25  Simon Josefsson  <jas@extundo.com>
28790             Bruno Haible  <bruno@clisp.org>
28791
28792         * modules/getdomainname: New file.
28793         * modules/xgetdomainname: New file.
28794         * MODULES.html.sh (func_all_modules): Add getdomainname,
28795         xgetdomainname.
28796
28797 2003-09-25  Simon Josefsson  <jas@extundo.com>
28798             Bruno Haible  <bruno@clisp.org>
28799
28800         * m4/getdomainname.m4: New file.
28801
28802 2003-09-25  Simon Josefsson  <jas@extundo.com>
28803             Bruno Haible  <bruno@clisp.org>
28804
28805         * lib/getdomainname.h: New file.
28806         * lib/getdomainname.c: New file.
28807
28808 2003-09-25  Karl Berry  <karl@gnu.org>
28809
28810         * lib/argp-fmtstream.c, argp-help.c: update from libc.
28811
28812 2003-09-25  Karl Berry  <karl@gnu.org>
28813
28814         * config/install-sh: update from automake.
28815
28816 2003-09-25  Bruno Haible  <bruno@clisp.org>
28817
28818         * modules/version-etc-2: New file, from modules/version-etc with
28819         modifications.
28820         * MODULES.html.sh (func_all_modules): Add version-etc-2.
28821
28822 2003-09-25  Bruno Haible  <bruno@clisp.org>
28823
28824         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
28825         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
28826
28827 2003-09-24  Simon Josefsson  <jas@extundo.com>
28828
28829         * modules/xgethostname: Add xgethostname.h.
28830
28831 2003-09-24  Paul Eggert  <eggert@twinsun.com>
28832
28833         * lib/linebuffer.c (freebuffer): Don't free the argument, just
28834         the buffer associated with the argument.  Bug reported by
28835         Simon Josefsson.
28836
28837 2003-09-24  Paul Eggert  <eggert@twinsun.com>
28838
28839         * README: Document assumptions that 'int' is at least 32 bits
28840         wide, that integer arithmetic is 2's complement without overflow,
28841         that there are no holes in integer values, that adding sizes of
28842         two nonoverlapping objects can't overflow, and that all-bits-zero
28843         yields scalar zero.  Fix spelling and capitalization typos.
28844
28845 2003-09-19  Karl Berry  <karl@gnu.org>
28846
28847         * lib/argp.h: update from libc.
28848
28849 2003-09-17  Paul Eggert  <eggert@twinsun.com>
28850
28851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
28852         to avoid spurious warnings like "AC_RUN_IFELSE was called before
28853         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
28854
28855 2003-09-17  Paul Eggert  <eggert@twinsun.com>
28856
28857         * gnulib-tool: Use "test -h", not "test -L", for portability
28858         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
28859         (tags_regexp): Remove, since \| doesn't conform to POSIX.
28860         (sed_extract_prog): Issue s commands one-by-one, rather than
28861         using \| in one s command.
28862
28863 2003-09-16  Paul Eggert  <eggert@twinsun.com>
28864
28865         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
28866         input error, instead of returning NULL the next time we are called
28867         (and therefore losing track of errno).
28868
28869 2003-09-16  Bruno Haible  <bruno@clisp.org>
28870
28871         * gnulib-tool (func_create_testdir): Warn about duplicated
28872         dependencies.
28873
28874 2003-09-15  Paul Eggert  <eggert@twinsun.com>
28875
28876         * modules/argmatch, modules/fatal, modules/obstack,
28877         modules/xalloc, modules/xgethostname: Sort dependencies by
28878         importance, not alphabetically.
28879
28880 2003-09-15  Paul Eggert  <eggert@twinsun.com>
28881
28882         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
28883         fails, so that the caller gets the proper errno.
28884
28885         * lib/readutmp.c (read_utmp): Likewise.
28886         Check for fstat error.  Close stream and free storage
28887         when failing.
28888
28889 2003-09-14  Karl Berry  <karl@gnu.org>
28890
28891         * config/srclist.txt (strdup.c): disable for c89 changes.
28892
28893 2003-09-14  Jim Meyering  <jim@meyering.net>
28894
28895         * lib/getloadavg.c: Correct cpp indentation.
28896         * lib/strdup.c: Likewise.
28897         * lib/vasnprintf.c: Likewise.
28898
28899 2003-09-14  Bruno Haible  <bruno@clisp.org>
28900
28901         * modules/fwriteerror: New file.
28902         * MODULES.html.sh (func_all_modules): Add fwriteerror.
28903
28904 2003-09-14  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/fwriteerror.h: New file.
28907         * lib/fwriteerror.c: New file.
28908
28909 2003-09-12  Paul Eggert  <eggert@twinsun.com>
28910
28911         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
28912         modules/xgethostname, modules/xalloc: Depend on exit.
28913
28914 2003-09-12  Paul Eggert  <eggert@twinsun.com>
28915
28916         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
28917
28918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
28919         and AC_MINIX, too, so that their extensions are available.
28920
28921         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
28922         This macro has been superseded by gl_BACKUPFILE.
28923
28924         More patches to assume C89 or better.
28925
28926         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
28927
28928         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
28929         unconditionally.
28930         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
28931         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
28932         Include <string.h>, <stdlib.h> unconditionally.
28933         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
28934         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
28935         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
28936         headers or for string.h.
28937         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
28938         or strtoul.
28939
28940         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
28941         headers.
28942         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
28943         * m4/userspec.m4 (gl_USERSPEC): Likewise.
28944         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
28945         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
28946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
28947         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
28948         memcpy, memset.
28949         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
28950         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
28951         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
28952         strtol.
28953         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
28954         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
28955         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
28956         strtoul.
28957
28958 2003-09-12  Paul Eggert  <eggert@twinsun.com>
28959
28960         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
28961         * lib/obstack.c [!defined _LIBC]: Likewise.
28962         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
28963         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
28964         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
28965
28966         More changes to assume C89 or better.
28967
28968         * lib/error.c (error_tail): Assume vprintf.
28969
28970         * lib/argmatch.c (getenv): Remove decl.
28971         * lib/progreloc.c (get_full_program_name): Define via prototype.
28972         * lib/setenv.c (clearenv): Likewise.
28973         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
28974         needed.
28975         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
28976         (malloc, memcpy): Remove decls.
28977         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
28978         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
28979         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
28980         (memcpy): Remove macro.
28981         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
28982         (__P): Remove.  All uses removed.
28983         (PTR): Remove.  All uses changed to void *.
28984         (CHAR_BIT, NULL): Remove.
28985         (spaces, zeros, memset_space, memset_zero)
28986         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
28987         Remove.
28988         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
28989         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
28990         Define with prototype.
28991         Remove now-unnecessary prototype decl.
28992         (extra_args_spec): Assume ANSI C.  All uses changed.
28993         (extra_args_spec_iso): Remove.
28994         (my_strftime, emacs_strftimeu): Define via prototype.
28995         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
28996         unconditionally.
28997         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
28998         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
28999         (strtoul, strtol): Remove decls.
29000         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
29001         LONG_MAX): Remove.
29002         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
29003         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
29004         (LOCALE_PARAM_PROTO): New macro.
29005         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
29006         (INTERNAL (strtol), strtol): Define with a prototype.
29007         (PARAMS): Remove.  All uses removed.
29008         * lib/tempname.c: Include <string.h> unconditionally.
29009         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
29010         * lib/xgethostname.c (main): Define with a prototype.
29011         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
29012         Include <stdlib.h> unconditionally.
29013         (calloc, malloc, realloc, free): Remove decls.
29014         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
29015         Include <stdlib.h> unconditionally.  Sort include file names.
29016         (strtod): Remove.
29017         (xstrtod): Define with a prototype.
29018         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
29019         (strtol, strtoul): Remove decls.
29020
29021 2003-09-11  Paul Eggert  <eggert@twinsun.com>
29022
29023         More patches to assume C89 or better.
29024         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
29025         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
29026         string.h, memchr, STDC_HEADERS.
29027
29028 2003-09-11  Paul Eggert  <eggert@twinsun.com>
29029
29030         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
29031         Include <stdlib.h>, <string.h> unconditionally.
29032         Remove now-unnecessary cast to char *.
29033         * lib/strnlen.c: Include <string.h> unconditionally.
29034         * lib/yesno.c (yesno): Define with a prototype.
29035
29036 2003-09-11  Bruno Haible  <bruno@clisp.org>
29037
29038         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
29039
29040 2003-09-10  Jim Meyering  <jim@meyering.net>
29041
29042         * lib/error.c: Correct indentation of cpp directives.
29043
29044 2003-09-10  Bruno Haible  <bruno@clisp.org>
29045
29046         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
29047         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
29048         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
29049         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
29050         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
29051         <stdlib.h> and <string.h> checks.
29052         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
29053         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
29054
29055 2003-09-10  Bruno Haible  <bruno@clisp.org>
29056
29057         * lib/strcspn.c: Include <string.h> unconditionally.
29058         * lib/strpbrk.c: Include <string.h> unconditionally.
29059         * lib/strstr.c: Include <string.h> unconditionally.
29060         * lib/unicodeio.c: Include <string.h> unconditionally.
29061         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
29062         * lib/unsetenv.c: Likewise.
29063         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
29064         * lib/yesno.c: Include <stdlib.h> unconditionally.
29065         (rpmatch): Add prototype.
29066
29067 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29068
29069         More patches to assume C89 or better.
29070         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
29071         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
29072         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
29073         or for string.h.
29074         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
29075         stdlib.h.
29076         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
29077         C headers.
29078         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
29079         string.h.
29080         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
29081         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
29082         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
29083         or for string.h.
29084         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
29085         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
29086         C headers.
29087         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
29088         memcpy.
29089         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
29090         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
29091         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
29092         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
29093         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
29094         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
29095         string.h, free.
29096         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
29097         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
29098         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
29099         C headers, or for string.h.
29100         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
29101         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
29102         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
29103         headers, memory.h, stdlib.h, string.h, strings.h.
29104         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
29105         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
29106         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
29107         strchr.
29108         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
29109         headers, memory.h, string.h.
29110         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
29111         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
29112         free.
29113         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
29114         headers.
29115         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
29116         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
29117         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
29118         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
29119         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
29120
29121 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29122
29123         More K&R removal.
29124
29125         * lib/acosl.c (main): Use a prototype.
29126         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
29127         tanl.c: Likewise.
29128
29129         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
29130
29131         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
29132         (getopt, etopt_long, getopt_long_only, _getopt_internal)
29133         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
29134         with a prototype.
29135         * lib/getopt.c (const): Remove macro.
29136         Include <string.h> unconditionally.
29137         (my_index): Remove; all uses changed to strchr.
29138         (strlen): Remove decl.
29139         (exchange): Remove forward decl; no longer needed.
29140         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
29141         Define with prototype.
29142         * lib/getopt1.c (const): Remove macro.
29143         (getopt_long, getopt_long_only, main): Define with prototype.
29144
29145         * lib/getugroups.c: Include <string.h> unconditionally.
29146
29147         * lib/getusershell.c: Include <stdlib.h> unconditionally.
29148         (getusershell, setusershell, endusershell, readname, main):
29149         Define with prototypes.
29150
29151         * lib/group-member.c: Include group-member.h first.
29152         Include <stdlib.h> unconditionally.
29153
29154         * lib/hard-locale.c: Include hard-locale.h first.
29155         Include <stdlib.h>, <string.h> unconditionally.
29156
29157         * lib/hash.c (free, malloc): Remove decls.
29158         Include <stdlib.h> unconditionally.
29159
29160         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
29161         (getenv): Do not declare.
29162
29163         * lib/idcache.c: Include <string.h> unconditionally.
29164
29165         * lib/long-options.c: Include long-options.h first, to test interface.
29166         Include <stdlib.h> unconditionally.
29167
29168         * lib/makepath.c: Include makepath.h first, to test interface.
29169         Include <stdlib.h> and <string.h> unconditionally.
29170
29171         * lib/linebuffer.c: Include <stdlib.h>.
29172         (free): Remove decl.
29173
29174         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
29175         stddef.h. rpl_malloc returns void *, not char *.
29176         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
29177         prototype.
29178
29179         * lib/md5.h: Include <limits.h> unconditionally.
29180         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
29181         (__P): Remove; all uses removed.
29182         * lib/md5.c: Include "md5.h" first.
29183         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
29184         md5_buffer, md5_process_bytes, md5_process_block):
29185         Define with prototypes.
29186         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
29187         * lib/sha.c: Include "sha.h" first.
29188         Include <stdlib.h>, <string.h> unconditionally.
29189
29190         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
29191         * lib/memcmp.c (__ptr_t): Likewise.
29192         * lib/memrchr.c (__ptr_t): Likewise.
29193         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
29194         Include <string.h> unconditionally.
29195         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
29196         * lib/memchr.c: Include <stdlib.h> unconditionally.
29197         * lib/memchr.c (LONG_MAX): Remove.
29198         * lib/memrchr.c (LONG_MAX): Likewise.
29199         * lib/memchr.c (__memchr): Define via a prototype.
29200         * lib/memrchr.c (__memrchr): Likewise.
29201         * lib/memcmp.c (__P): Remove, and remove all uses.
29202         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
29203         Remove forward decls; no longer needed.
29204         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
29205         Use types required by C89 in prototype.
29206
29207         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
29208         * lib/savedir.c: Likewise.
29209         * lib/mkdir.c (free): Remove decl.
29210         * lib/rmdir.c (rmdir): Define with a prototype.
29211         * lib/savedir.c: Include savedir.h first, to test interface.
29212
29213         * lib/mktime.c (STDC_HEADERS): Remove.
29214         Include <stdlib.h>, <string.h> unconditionally.
29215
29216         * lib/modechange.c: Include <stdlib.h> unconditionally.
29217         (malloc): Remove decl.
29218
29219         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
29220         (free): Remove decl.
29221
29222         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
29223         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
29224         (This type really should be intptr_t, but that's a C99ism.)
29225         (_obstack_memcpy): Remove: all uses changed to memcpy.
29226         Include <string.h> unconditionally.
29227         (struct obstack): Assume __STDC__ for types of members
29228         chunkfun, freefun, extra_arg.
29229         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
29230         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
29231         obstack_begin, obstack_specify_allocation,
29232         obstack_specify_allocation_with_arg, obstack_chunkfun,
29233         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
29234         Remove unprototyped decls and the macros that use them.
29235         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
29236         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
29237         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
29238         (defined __STDC__ && __STDC__)]:
29239         Remove nonprototyped code.
29240         Include <stdlib.h> unconditionally.
29241         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
29242         _obstack_allocated_p, _obstack_free, obstack_free,
29243         _obstack_memory_used, print_and_abort):
29244         Define using prototypes.
29245         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
29246         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
29247         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
29248         obstack_next_free, obstack_object_size, obstack_room) [0]:
29249         Remove unused, unprototyped code.
29250
29251         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
29252
29253         * lib/physmem.c (physmem_total, physmem_available, main): Define
29254         with prototypes.
29255
29256         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
29257         (main): Define with a prototype.
29258
29259         * lib/posixver.c (getenv): Remove decl.
29260
29261         * lib/putenv.c (malloc): Returns void *, not char *.
29262         Include <string.h> unconditionally.
29263         (strchr, memcpy, NULL): Do not define.
29264
29265         * lib/readtokens.c: Include readtokens.h first, to test interface.
29266         Include <stdlib.h>, <string.h> unconditionally.
29267         (init_tokenbuffer): Define with a prototype.
29268
29269         * lib/regex.c (PARAMS): Remove.  All uses removed.
29270         All uses of _RE_ARGS removed, too.
29271         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29272         unconditionally.
29273         (bzero): Assume memset exists.
29274         (memcmp, memcpy, NULL): Remove.
29275         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
29276         char, or assignments to local vars of type signed char.
29277         (init_syntax_once, PREFIX(extract_number_and_incr),
29278         PREFIX(print_partial_compiled_pattern),
29279         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
29280         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
29281         PREFIX(regex_grow_registers), PREFIX(regex_compile),
29282         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
29283         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
29284         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
29285         wcs_compile_range, byte_compile_range, truncate_wchar,
29286         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
29287         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
29288         count_mbs_length, wcs_re_match_2_internal,
29289         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
29290         PREFIX(alt_match_null_string_p),
29291         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
29292         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
29293         regfree, PREFIX(extract_number)): Define with prototype.  Remove
29294         now-unnecessary declaration, if any.
29295         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
29296         regcomp, regexec):
29297         Remove now-unnecessary casts among pointer types.
29298         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
29299
29300         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
29301         (free): Remove decl.
29302
29303         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
29304
29305         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
29306         (free): Remove decl.
29307
29308         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
29309         * lib/xgetcwd.c: Likewise.
29310
29311         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
29312         (free): Remove decl.
29313
29314         * lib/strchrnul.c (strchrnul): Define with a prototype.
29315         Fix bug: c_in was not converted to char before searching.
29316
29317         The following changes are not K&R related:
29318
29319         * lib/group-member.h: Include <sys/types.h>, so that this file is
29320         self-contained.
29321         * lib/makepath.h: Likewise.
29322
29323         * lib/getusershell.c (readname, default_index, line_size, readname):
29324         Use size_t, not int, for sizes.
29325         (readname): If the size overflows, report an error instead of
29326         looping forever.
29327
29328 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29329
29330         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
29331         libc.
29332
29333 2003-09-09  Paul Eggert  <eggert@twinsun.com>
29334
29335         * README: New section: portability guidelines.
29336
29337 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
29338
29339         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
29340         C89 spec.
29341
29342 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
29343
29344         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
29345
29346 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29347
29348         Assume C89 or better; remove K&R cruft.
29349         A few of these changes were first proposed by Derek Robert Price
29350         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
29351
29352         * lib/addext.c: Include <string.h> unconditionally.
29353         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
29354         Don't declare getenv or malloc.
29355
29356         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
29357         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
29358         (NULL): Remove.
29359         (find_stack_direction, alloca): Use prototypes.
29360
29361         * lib/atexit.c (atexit): Define using a prototype.
29362
29363         * lib/basename.c, dirname.c, stripslash.c:
29364         Include <string.h> unconditionally.
29365
29366         * lib/bcopy.c: Include <stddef.h>.
29367         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
29368
29369         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
29370
29371         * lib/error.h (error, error_at_line, error_print_progname)
29372         [! (defined (__STDC__) && __STDC__)]: Remove decls.
29373         * lib/error.c: Include error.h first, to check interface.
29374         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
29375         (VA_START): Remove; all uses changeed to va_start.
29376         (exit, strerror): Remove decls.
29377         (error_print_progname): Prototype uncondionally.
29378         Don't include <errno.h>; no longer needed.
29379         (private_strerror): Remove.
29380         (error_tail): Always define.
29381         (error, error_at_line): Assume C89 or better; always use prototypes.
29382         * lib/fatal.c: Include "fatal.h" first, to test interface.
29383         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
29384         (VA_START): Remove; all uses changed to va_start.
29385         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
29386         this case.
29387         (exit): Remove decl.
29388         (fatal): Prototype unconditionally.  Assume va_start works.
29389         Abort at end, to pacify gcc.
29390
29391         * lib/euidaccess.c (main): Define with a prototype.
29392
29393         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
29394
29395         * lib/exitfail.c: Include <stdlib.h> unconditionally.
29396
29397         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
29398         prototypes.
29399         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
29400         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
29401         (getenv): Remove decl.
29402         (fnmatch): Define using a prototype.
29403         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
29404         (FCT): Define using a prototype.
29405
29406         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
29407
29408         * lib/gethostname.c: Include <stddef.h>.
29409         (gethostname): Define with prototype.  Length is size_t, not int.
29410
29411 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29412
29413         Assume C89 or better; remove K&R cruft.
29414         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
29415         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
29416         string.h, getenv, malloc.
29417         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
29418         headers.
29419         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
29420         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
29421         do not check for strerror.
29422         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
29423         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
29424         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
29425         do not check for doprnt or vprintf.
29426         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
29427         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
29428
29429 2003-09-08  Paul Eggert  <eggert@twinsun.com>
29430
29431         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
29432         getversion.c should have been removed then, but was accidentally
29433         preserved.
29434
29435         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
29436         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
29437
29438 2003-09-08  Karl Berry  <karl@gnu.org>
29439
29440         * config/config.sub, config.guess, srclistvars.sh: update from savannah
29441                 config, forget about prep.
29442
29443         * config/depcomp, missing: update from automake.
29444
29445 2003-09-07  Paul Eggert  <eggert@twinsun.com>
29446
29447         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
29448         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
29449
29450 2003-09-07  Paul Eggert  <eggert@twinsun.com>
29451
29452         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
29453         copy_tm_result.  Bug reported by Simon Josefsson in
29454         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
29455
29456 2003-09-06  Paul Eggert  <eggert@twinsun.com>
29457
29458         * m4/time_r.m4: New file.
29459         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
29460         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
29461         is. Check for timegm declaration.
29462         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
29463         Do not check for gmtime_r.
29464         Replace mktime if __mktime_internal does not exist and if mktime
29465         hasn't been replaced already.
29466
29467 2003-09-06  Paul Eggert  <eggert@twinsun.com>
29468
29469         * lib/time_r.c, lib/time_r.h: New files.
29470
29471         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
29472         __localtime_r.
29473         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
29474         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
29475
29476         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
29477         __gmtime_r.
29478         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
29479         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
29480         Include <time_r.h>.
29481
29482         * lib/timegm.c: Switch to glibc implementation, with the following
29483         changes:
29484         [defined HAVE_CONFIG_H]: Include <config.h>.
29485         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
29486         (__mktime_internal) [!defined _LIBC]: New decl.
29487         (__gmtime_r) [!defined _LIBC]: New macro and function.
29488         (timegm): Use a prototype, since gnulib assumes C89.
29489         Do not bother declaring tmp to be const, as it's not really usefu.
29490         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
29491         (timegm): Declare only if HAVE_DECL_TIMEGM.
29492
29493 2003-09-06  Paul Eggert  <eggert@twinsun.com>
29494
29495         * MODULES.html.sh (func_all_modules): Add time_r.
29496         * modules/time_r: New file.
29497         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
29498         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
29499
29500 2003-09-03  Paul Eggert  <eggert@twinsun.com>
29501
29502         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
29503         Bug reported by Lute Kamstra in
29504         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
29505
29506         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
29507         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
29508         course with correspondingly smaller numbers for tomorrow and
29509         yesterday.  From Tadayoshi Funaba.  Originally installed into
29510         sh-utils on 1999-08-07, but the patch got lost (I guess during the
29511         coreutils merge?).
29512
29513 2003-08-31  Simon Josefsson  <jas@extundo.com>
29514
29515         * modules/timegm: New file.
29516         * MODULES.html.sh (func_all_modules): Add timegm.
29517
29518 2003-08-31  Simon Josefsson  <jas@extundo.com>
29519
29520         * m4/timegm.m4: New file.
29521
29522 2003-08-31  Simon Josefsson  <jas@extundo.com>
29523
29524         * lib/timegm.h: New file.
29525         * lib/timegm.c: New file.  Based on
29526         wget-1.8.2/src/http.c:mktime_from_utc.
29527
29528 2003-08-31  Karl Berry  <karl@gnu.org>
29529
29530         * lib/argp.h: update from libc.
29531
29532 2003-08-28  Bruno Haible  <bruno@clisp.org>
29533
29534         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
29535         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
29536         followed by '#define fnmatch fnmatch_posix' gives an error.
29537
29538 2003-08-28  Bruno Haible  <bruno@clisp.org>
29539
29540         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
29541         warning on QNX, which defines O_BINARY to 000000.
29542
29543 2003-08-27  Jim Meyering  <jim@meyering.net>
29544
29545         * m4/mkstemp.m4: Require that the system mkstemp be able to create
29546         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
29547         would fail after 32.  Reported by Danny Levinson.  Details here:
29548         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
29549
29550 2003-08-24  Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
29553         MSVC7 <stdio.h> is included later.
29554
29555 2003-08-22  Simon Josefsson  <jas@extundo.com>
29556
29557         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
29558
29559 2003-08-20  Karl Berry  <karl@gnu.org>
29560
29561         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
29562
29563 2003-08-20  Bruno Haible  <bruno@clisp.org>
29564
29565         * modules/progname: New file.
29566         * MODULES.html.sh (func_all_modules): Add progname.
29567
29568 2003-08-20  Bruno Haible  <bruno@clisp.org>
29569
29570         * lib/progname.h: New file, from GNU gettext.
29571         * lib/progname.c: New file, from GNU gettext.
29572         * lib/progreloc.c: New file, from GNU gettext.
29573
29574 2003-08-19  Jim Meyering  <jim@meyering.net>
29575
29576         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
29577         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
29578
29579 2003-08-19  Bruno Haible  <bruno@clisp.org>
29580
29581         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
29582         more.
29583
29584 2003-08-19  Bruno Haible  <bruno@clisp.org>
29585
29586         * lib/xstrdup.c: Assume <string.h> exists.
29587
29588 2003-08-18  Paul Eggert  <eggert@twinsun.com>
29589
29590         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
29591         in makefile rules.
29592
29593 2003-08-18  Jim Meyering  <jim@meyering.net>
29594
29595         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
29596         * m4/lib-ld.m4: Likewise.
29597
29598 2003-08-18  Jim Meyering  <jim@meyering.net>
29599
29600         * lib/setenv.h: Indent nested cpp directive.
29601         * lib/vasnprintf.c: Remove trailing blanks.
29602
29603 2003-08-17  Simon Josefsson  <jas@extundo.com>
29604
29605         * modules/xstrndup: New file.
29606         * MODULES.html.sh (func_all_modules): Add xstrndup.
29607
29608 2003-08-17  Simon Josefsson  <jas@extundo.com>
29609
29610         * modules/argp: Fix autoconf macro name. Add more dependencies.
29611
29612 2003-08-17  Simon Josefsson  <jas@extundo.com>
29613
29614         * m4/xstrndup.m4: New file.
29615
29616 2003-08-17  Simon Josefsson  <jas@extundo.com>
29617
29618         * m4/argp.m4: New file.
29619
29620 2003-08-17  Simon Josefsson  <jas@extundo.com>
29621             Bruno Haible  <bruno@clisp.org>
29622
29623         * lib/xstrndup.h: New file.
29624         * lib/xstrndup.c: New file.
29625
29626 2003-08-17  Bruno Haible  <bruno@clisp.org>
29627
29628         * modules/strndup (Files, Include): Add lib/strndup.h.
29629
29630 2003-08-17  Bruno Haible  <bruno@clisp.org>
29631
29632         * modules/euidaccess (Files): Add lib/euidaccess.h.
29633
29634 2003-08-17  Bruno Haible  <bruno@clisp.org>
29635
29636         * lib/strndup.h: New file.
29637
29638 2003-08-17  Bruno Haible  <bruno@clisp.org>
29639
29640         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
29641         like AC_GNU_SOURCE.
29642         * modules/extensions (configure.ac): Comment out the invocation of
29643         gl_USE_SYSTEM_EXTENSIONS.
29644
29645 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29646
29647         Merges from coreutils, etc.
29648         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
29649         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
29650         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
29651         fixing a typo.
29652         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
29653         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
29654
29655 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29656
29657         Document merge from coreutils.
29658         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
29659         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
29660         * modules/utime: Add m4/utimes-null.m4.
29661
29662 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29663
29664         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
29665         space, undoing this 2003-08-12 change:
29666         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
29667
29668 2003-08-16  Paul Eggert  <eggert@twinsun.com>
29669
29670         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
29671         strtoul.c from libc, undoing this 2003-08-12 change:
29672         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
29673
29674 2003-08-16  Jim Meyering  <jim@meyering.net>
29675
29676         Merges from coreutils.
29677         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
29678         prefix.  Adjust cache variables similarly.  Create 500 rather than
29679         just 300 files, to exercise bug on Darwin6.5, too.
29680         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
29681         $missing_dir.
29682         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
29683         AM_SYS_POSIX_TERMIOS.
29684         Reported by mkc@mathdogs.com.
29685         Also change use of $am_cv_sys_posix_termios
29686         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
29687         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
29688         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
29689         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
29690         in /proc/mounts until it finds one with matching device number.  This
29691         is unnecessary when the FILE argument *is* a mount point.  No stat call
29692         is necessary in that case.  So, disable the statvfs-testing code on
29693         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
29694         as RedHat bug# 84846.
29695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
29696         to 1MB, so as not to render systems with no stack size limit (e.g.,
29697         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
29698         Include <unistd.h>.  On some systems,
29699         it is required for the definition of _SC_PAGESIZE.
29700
29701 2003-08-16  Jim Meyering  <jim@meyering.net>
29702
29703         Merge from coreutils.
29704         * lib/xstrtoimax.c: #else #if -> #elif.
29705         * lib/xstrtoumax.c: Likewise.
29706
29707 2003-08-16  Jim Meyering  <jim@meyering.net>
29708
29709         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
29710         * m4/utimes.m4: Removed.
29711         * m4/utimes-null.m4: Renamed from utimes.m4.
29712
29713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
29714         to 1MB, so as not to render systems with no stack size limit (e.g.,
29715         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
29716         Include <unistd.h>.  On some systems,
29717         it is required for the definition of _SC_PAGESIZE.
29718
29719 2003-08-16  Jim Meyering  <jim@meyering.net>
29720         and Paul Eggert  <eggert@cs.ucla.edu>
29721
29722         Merges from coreutils, etc.
29723
29724         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
29725         using the latest version from cvs.  This avoids problems with #line
29726         directives using a vendor (Sun) compiler.
29727         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
29728         Don't set GETGROUPS_LIB here; now it's
29729         done via getgroups.m4's wrapper function.
29730         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
29731         rather than just in sh-util/configure.in, so that the
29732         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
29733         same.
29734         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
29735         AC_FUNC_GETLOADAVG where to find getloadavg.c.
29736         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
29737         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
29738         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
29739         Remove code that is now done by the newly-required macros.
29740         Append $(EXEEXT) to DF_PROG.
29741         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
29742         Do not invoke or require the following here,
29743         since prereq.m4 or some gnulib .m4 now does this for us:
29744         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
29745         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
29746         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
29747         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
29748         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
29749         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
29750         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
29751         AC_FUNC_OBSTACK.
29752         Do not replace the following functions, as this is now the job
29753         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
29754         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
29755         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
29756         atexit getpass, strdup, getpagesize.
29757         Replace 'raise'.
29758         Do not check for the following functions, as this is now the job
29759         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
29760         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
29761         setregid.
29762         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
29763         Check for sys/sysctl.h.
29764         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
29765         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
29766         of checking for ssize_t ourselves.
29767
29768         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
29769         Require every macro that gnulib/modules/* suggests for us.
29770         (jm_PREREQ_ADDEXT): New macro.
29771         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
29772         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
29773
29774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
29775         (gl_PHYSMEM): Use it.
29776         Also check for `table' function.
29777         Check for new headers and functions.
29778         Add check for sys/sysmp.h.
29779         With suggestions from Kaveh Ghazi.
29780         Ignore headers that are present but cannot be compiled.  This
29781         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
29782         C 5.4.
29783
29784 2003-08-15  Paul Eggert  <eggert@twinsun.com>
29785
29786         Document merge from coreutils.
29787         * modules/userspec: Depend on posixver.
29788         * modules/strftime: Depend on tzset.
29789
29790 2003-08-15  Paul Eggert  <eggert@twinsun.com>
29791
29792         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
29793         rather than tab, after '#' in shell-script copyright notices.
29794         Suggested by Bruno Haible.
29795
29796 2003-08-15  Paul Eggert  <eggert@twinsun.com>
29797
29798         * config/srclist-update: Use three spaces, rather than tab, after '#'
29799         in shell-script copyright notices.  Suggested by Bruno Haible.
29800         Remove unnecessary parenthesization in regular expression.
29801
29802 2003-08-15  Jim Meyering  <jim@meyering.net>
29803
29804         Merge from coreutils.
29805         * lib/xgethostname.c: Include <stdlib.h>.
29806         (xghostname): Don't exit for anything other than memory-related
29807         failure; just return NULL.
29808         * lib/userspec.c: Include "posixver.h".
29809         (parse_user_spec): Accept `.' as a separator only
29810         in pre-POSIX-200112 mode.
29811         * lib/strtoimax.c: Use #elif rather than #else #if.
29812         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
29813         Remove function, now that we can rely on a working tzset function.
29814         [!_LIBC]: Ensure that the required autoconf test has been run.
29815         [!defined _NL_CURRENT && HAVE_STRFTIME]:
29816         Use underlying_strftime for %r.
29817         * lib/sha.c: Merge in some clean-up and optimization changes from
29818         glibc.
29819         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
29820         Ensure that it is a multiple of 64.
29821         Rearrange loop exit tests so as to avoid performing an
29822         additional fread after encountering an error or EOF.
29823         * lib/realloc.c: Update copyright date.
29824
29825 2003-08-15  Jim Meyering  <jim@meyering.net>
29826         and Paul Eggert  <eggert@twinsun.com>
29827
29828         Merge from coreutils.
29829         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
29830         member but strut utmpx does not.  Needed for AIX 4.3.3.
29831         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
29832
29833 2003-08-15  Jim Meyering  <jim@meyering.net>
29834         and Paul Eggert  <eggert@cs.ucla.edu>
29835
29836         Merges from coreutils, etc.
29837         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
29838         Require gl_FUNC_TZSET_CLOBBER.
29839         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
29840         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
29841         members.
29842
29843 2003-08-14  Paul Eggert  <eggert@twinsun.com>
29844
29845         Help the merge from coreutils.
29846         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
29847         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
29848         * m4/tzset.m4: Use it too.
29849
29850 2003-08-14  Paul Eggert  <eggert@twinsun.com>
29851
29852         * modules/tzset: New file.
29853
29854 2003-08-14  Jim Meyering  <jim@meyering.net>
29855
29856         Merges from coreutils.
29857         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
29858         variable names, rather than @FNMATCH_H@.
29859         * modules/alloca: Likewise for $(ALLOCA_H).
29860
29861         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
29862         the three copies of the literal target, `fnmatch.h'.
29863         * modules/alloca (alloca.h): Likewise.
29864
29865 2003-08-14  Jim Meyering  <jim@meyering.net>
29866
29867         Merge from coreutils.
29868         * m4/tzset.m4: New file.
29869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
29870         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
29871         otherwise, AIX 5.1 systems would end up using the latter.
29872         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
29873         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
29874         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
29875         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
29876
29877 2003-08-14  Jim Meyering  <jim@meyering.net>
29878
29879         Merge from coreutils.
29880         * lib/obstack.h: Whitespace changes.
29881         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
29882         and xcalloc return values.
29883         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
29884         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
29885         hang on OSF/1 5.1 for DIR on both local and remote file systems.
29886         Reported by (and fix confirmed by) Nelson H. F. Beebe.
29887         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
29888         error from mntctl.
29889         Use mntctl's return value to drive the entry-processing loop, since
29890         we can't rely on the value of the vmt_length member in the last
29891         entry.  On some systems doing so could result in exhausting
29892         virtual memory.  Based in part on a patch from Mike Jetzer.
29893
29894 2003-08-14  Jim Meyering  <jim@meyering.net>
29895         and Paul Eggert  <eggert@twinsun.com>
29896
29897         Merges from coreutils, plus other fixes.
29898         * lib/physmem.c: Merge in portability changes from gcc/libiberty
29899         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
29900         for credits and details.  Thanks to Kaveh Ghazi for helping
29901         to keep these files in sync.
29902         (ARRAY_SIZE): Define it.
29903         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
29904         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
29905         (memcasecmp): Don't assume size_t fits in unsigned int.
29906         Remove casts and duplicate code.
29907         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
29908         (memcpy): Remove definition.
29909         Merge in some clean-up and optimization changes from glibc.
29910         [BLOCKSIZE]: Move definition to top of file.
29911         Ensure that it is a multiple of 64.
29912         Rearrange loop exit tests so as to avoid performing an
29913         additional fread after encountering an error or EOF.
29914         * lib/md5.h (md5_uintptr): Define.
29915         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
29916         return to the initial working directory.  Preserve errno
29917         for caller.
29918         * lib/idcache.c: Include "xalloc.h".
29919         (xmalloc, xrealloc): Remove decls.
29920         (getuser): Remove casts no longer required in C89.
29921         * lib/human.c: Include stdio.h, for sprintf.
29922         * lib/group-member.c: Include "xalloc.h".
29923         (xmalloc, xrealloc): Remove decls.
29924         (get_group_info): Remove casts no longer required in C89.
29925         * lib/getusershell.c (readname): Remove casts no longer required in
29926         C89.
29927         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
29928         * lib/getline.c: Whitespace fix, from coreutils.
29929
29930 2003-08-13  Paul Eggert  <eggert@twinsun.com>
29931
29932         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
29933         Check for isascii.
29934
29935         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
29936         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
29937         Undo previous (whitespace-only) change.
29938
29939 2003-08-13  Paul Eggert  <eggert@twinsun.com>
29940
29941         * lib/exclude.c: Include <ctype.h>
29942         (IN_CTYPE_DOMAIN): New macro.
29943         (is_space): New fn.
29944         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
29945         and empty lines.
29946
29947         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
29948         Undo previous (whitespace-only) change.
29949
29950 2003-08-13  Paul Eggert  <eggert@twinsun.com>
29951
29952         * config/srclist-update: Change update back to the old behavior,
29953         leaving whitespace alone.  Use one 'sed' command rather than a
29954         pipeline.
29955         (fixlicense): Now a variable, not a function.
29956         (remove_trailing_blanks): Remove.
29957         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
29958         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
29959         Undo previous (whitespace-only) change.
29960
29961 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29962
29963         Merge from coreutils.
29964         * modules/euidaccess: Add lib_SOURCES, include for new
29965         file euidaccess.h
29966
29967 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29968
29969         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
29970         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
29971         Normalize leading white space and remove trailing white space.
29972
29973         Merge from coreutils
29974         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
29975
29976         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
29977         0.12.1.  These files are now being upgraded automatically by
29978         ../config/srclist-update.
29979
29980 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29981
29982         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
29983         Normalize leading white space and remove trailing white space.
29984         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
29985         notice, as per ../config/srclist-update.
29986
29987         Merge from coreutils.
29988         * lib/euidaccess.h: New file.
29989         * lib/euidaccess.c: Include it.
29990         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
29991         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
29992         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
29993
29994 2003-08-12  Paul Eggert  <eggert@twinsun.com>
29995
29996         * config/srclist-update: Add copyright notice.
29997         (remove_id_lines, remove_trailing_blanks): New constants.
29998         (fixfile): Use them to normalize spacing a bit in copied files.
29999         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
30000         Normalize leading white space and remove trailing white space.
30001
30002         * config/texinfo.tex: Sync with texinfo.
30003
30004         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
30005         strtoul.c from libc, to merge coreutils whitespace changes.
30006
30007         * config/srclist.txt: Get the following m4 files from gettext:
30008         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
30009         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
30010         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
30011         wint_t.m4.
30012
30013 2003-08-12  Karl Berry  <karl@gnu.org>
30014
30015         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
30016         been made.
30017
30018 2003-08-11  Paul Eggert  <eggert@twinsun.com>
30019
30020         * modules/gnu-source, m4/gnu-source.m4:
30021         Remove; we're assuming Autoconf 2.54 or later now.
30022         Suggested by Bruno Haible.
30023         * MODULES.html.sh (func_all_modules): Remove gnu-source.
30024
30025 2003-08-11  Bruno Haible  <bruno@clisp.org>
30026
30027         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
30028
30029 2003-08-11  Bruno Haible  <bruno@clisp.org>
30030
30031         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
30032         (vasnprintf): Use it instead of wcslen.
30033
30034 2003-08-11  Bruno Haible  <bruno@clisp.org>
30035
30036         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
30037         value to ensure that _Bool promotes to int. Use #define for _Bool when
30038         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
30039
30040 2003-08-10  Karl Berry  <karl@gnu.org>
30041
30042         * lib/regex.h: update from libc (whitespace fix).
30043
30044 2003-08-09  Paul Eggert  <eggert@twinsun.com>
30045
30046         Merge some files from coreutils.  These changes were
30047         originally made by Jim Meyering.
30048         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
30049         many older Unixes require this.
30050         * lib/alloca.c (alloca): Remove cast to argument of free;
30051         no longer needed in C89.
30052         * lib/alloca_.h, regex.h: Fix white space to match
30053         what GNU indent does.
30054
30055 2003-08-09  Paul Eggert  <eggert@twinsun.com>
30056
30057         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
30058         apparently Emacs's Unicode mode got confused before my 2003-08-05
30059         checkin.
30060
30061 2003-08-08  Paul Eggert  <eggert@twinsun.com>
30062
30063         * m4/extensions.m4: New file.
30064         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
30065         Require gl_USE_SYSTEM_EXTENSIONS.
30066         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
30067         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
30068
30069 2003-08-08  Paul Eggert  <eggert@twinsun.com>
30070
30071         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
30072         * modules/extensions, modules/gnu-source: New files.
30073         * modules/timespec, modules/unlocked-io: Depend on extensions.
30074
30075 2003-08-07  Paul Eggert  <eggert@twinsun.com>
30076
30077         * modules/restrict: New file.
30078         * MODULES.html.sh (func_all_modules): Add restrict.
30079         * modules/regex: Depend on restrict.
30080
30081 2003-08-07  Paul Eggert  <eggert@twinsun.com>
30082
30083         * m4/restrict.m4: New file.
30084         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
30085
30086 2003-08-07  Bruno Haible  <bruno@clisp.org>
30087
30088         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
30089         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
30090
30091 2003-08-07  Bruno Haible  <bruno@clisp.org>
30092
30093         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
30094         makes the module 'getndelim2' compatible with the module 'getline'.
30095
30096 2003-08-05  Paul Eggert  <eggert@twinsun.com>
30097
30098         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
30099         byte with "\201" to avoid glitches when editing that source file
30100         with multi-gnome-terminal.
30101
30102 2003-08-05  Paul Eggert  <eggert@twinsun.com>
30103
30104         * lib/bumpalloc.h: Remove.
30105
30106 2003-08-05  Paul Eggert  <eggert@twinsun.com>
30107
30108         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
30109         * modules/bumpalloc: Remove.
30110
30111 2003-08-04  Paul Eggert  <eggert@twinsun.com>
30112
30113         * lib/getloadavg.c: Change copyright notice and spacing to conform to
30114         GNU coding style.
30115
30116         Merge from coreutils.
30117         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
30118         1. From glibc.
30119         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
30120         from Karl Berry, implemented by Jim Meyering.
30121         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
30122         from Dmitry V. Levin.
30123         Remove anachronistic cast of xrealloc.
30124         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
30125         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
30126         type. Otherwise, it wouldn't compile with at least /bin/cc on
30127         ymp-cray-unicos9.0.2.X.
30128         Combine two mostly-identical uses of alloca into one.
30129         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
30130
30131 2003-08-04  Dave Love  <d.love@dl.ac.uk>
30132
30133         [From Emacs.]
30134
30135         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
30136         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
30137         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
30138         obsolete NLIST_NAME_UNION.
30139         [__GNU__]: Undef BSD and FSCALE.
30140         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
30141
30142 2003-08-03  Paul Eggert  <eggert@twinsun.com>
30143
30144         * lib/stdbool_.h (_Bool): Make it signed char, instead of
30145         an enum type, so that it's guaranteed to promote to int.  See:
30146         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
30147
30148 2003-08-03  Karl Berry  <karl@gnu.org>
30149
30150         * config/depcomp: update from automake.
30151
30152 2003-07-31  Paul Eggert  <eggert@twinsun.com>
30153
30154         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
30155         (strerror): Don't assume that a printable int fits in 14 bytes.
30156
30157 2003-07-31  Bruno Haible  <bruno@clisp.org>
30158
30159         * modules/getpass-gnu: New file.
30160         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
30161
30162 2003-07-31  Bruno Haible  <bruno@clisp.org>
30163
30164         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
30165
30166 2003-07-24  Karl Berry  <karl@gnu.org>
30167
30168         * config/missing: update from automake.
30169
30170 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
30171             Bruno Haible  <bruno@clisp.org>
30172
30173         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
30174         * lib/getline.c (getline, getdelim): Likewise.
30175         Remove _GNU_SOURCE define; now it's defined in config.h through
30176         m4/getline.m4.
30177
30178 2003-07-23  Karl Berry  <karl@gnu.org>
30179
30180         * config/config.sub: update from prep.
30181
30182 2003-07-22  Paul Eggert  <eggert@twinsun.com>
30183
30184         * modules/xalloc (Depends-on): Add exitfail.
30185         * modules/xmemcoll: Likewise.
30186
30187 2003-07-22  Paul Eggert  <eggert@twinsun.com>
30188
30189         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
30190         over-parenthesization in macros.
30191
30192         Sync with coreutils.
30193
30194         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
30195         required by C99.
30196
30197         Use `exit_failure' for xalloc and xmemcoll instead of their own
30198         private exit-failure variables.
30199         * lib/xalloc.h (xalloc_exit_failure): Remove.
30200         * lib/xmalloc.c: Likewise.  Include exitfail.h.
30201         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
30202         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
30203         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
30204         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
30205
30206 2003-07-20  Jim Meyering  <jim@meyering.net>
30207
30208         * modules/closeout (Depends-on): Add exitfail.
30209         Suggestion from Bruno Haible.
30210
30211 2003-07-19  Karl Berry  <karl@gnu.org>
30212
30213         * config/config.sub: update from prep.
30214
30215 2003-07-18  Paul Eggert  <eggert@twinsun.com>
30216
30217         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
30218         Remove.
30219         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
30220         to test that it can stand by itself.  Include "exitfail.h".
30221         Clients should set exit_failure instead.
30222         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
30223
30224 2003-07-18  Bruno Haible  <bruno@clisp.org>
30225
30226         * modules/getndelim2: New file.
30227         * modules/getline: Share files with module getndelim2.
30228         * modules/getnline: Depend on getndelim2 instead of sharing files with
30229         it. Add getnline.c to lib_SOURCES.
30230         * MODULES.html.sh (func_all_modules): Add getndelim2.
30231
30232 2003-07-18  Bruno Haible  <bruno@clisp.org>
30233
30234         * m4/getndelim2.m4: New file.
30235         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
30236         invoke gl_PREREQ_GETNDELIM2.
30237         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
30238         gl_PREREQ_GETNDELIM2.
30239         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
30240         gl_GETNDELIM2.
30241
30242 2003-07-18  Bruno Haible  <bruno@clisp.org>
30243
30244         * lib/getndelim2.h: New file.
30245         * lib/getndelim2.c: Make into a module of its own. Include config.h,
30246         getndelim2.h.
30247         (getndelim2): Make non-static. Change return type to ssize_t.
30248         * lib/getline.h: Change argument names.
30249         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
30250         * lib/getnline.c: Include getndelim2.h.
30251
30252 2003-07-18  Andreas Schwab  <schwab@suse.de>
30253
30254         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
30255
30256 2003-07-17  Karl Berry  <karl@gnu.org>
30257
30258         * config/config.sub: update from prep.
30259
30260 2003-07-17  Bruno Haible  <bruno@clisp.org>
30261
30262         * modules/getnline: New file.
30263         * modules/getline: Add lib/getndelim2.c to source file list.
30264         * MODULES.html.sh (func_all_modules): Add getnline.
30265
30266 2003-07-17  Bruno Haible  <bruno@clisp.org>
30267
30268         * m4/getnline.m4: New file.
30269
30270 2003-07-17  Bruno Haible  <bruno@clisp.org>
30271
30272         * m4/Makefile.am.in: Remove file.
30273         * m4/Makefile.am: Remove file.
30274         * m4/Makefile.in: Remove file.
30275
30276 2003-07-17  Bruno Haible  <bruno@clisp.org>
30277
30278         * lib/getnline.h: New file.
30279         * lib/getnline.c: New file.
30280         * lib/getndelim2.c: New file, extracted from getline.c.
30281         (getndelim2): Renamed from getdelim2, with added nmax argument.
30282         * lib/getline.c: Include getndelim2.c.
30283         (getdelim2): Moved out to getndelim2.c.
30284         (getline, getdelim): Update.
30285
30286 2003-07-17  Bruno Haible  <bruno@clisp.org>
30287
30288         * lib/Makefile.am: Remove file.
30289         * lib/Makefile.in: Remove file.
30290
30291 2003-07-17  Bruno Haible  <bruno@clisp.org>
30292
30293         * configure.in: Remove file.
30294         * Makefile.in: Remove file.
30295
30296 2003-07-17  Bruno Haible  <bruno@clisp.org>
30297
30298         * MODULES.html.sh: Put the </BODY> right before </HTML>.
30299
30300 2003-07-16  Karl Berry  <karl@gnu.org>
30301
30302         * config/srclist-update: was running fixlicense twice, which caused
30303                 texinfo.tex to be nullified for some reason.  Simplify,
30304                 $gplsrc is no longer needed as far as I can see?
30305
30306 2003-07-16  Jim Meyering  <jim@meyering.net>
30307
30308         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
30309
30310 2003-07-15  Paul Eggert  <eggert@twinsun.com>
30311
30312         * config/srclist.txt: Get the following files from gettext-runtime/intl
30313         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
30314         ref-del.sin.  From Bruno Haible.
30315         * config/srclist-update (fixfile): Change grep pattern again, since the
30316         previous fix didn't work (there was another trailing $).  Use
30317         '[$]' to escape the $s.
30318
30319 2003-07-15  Karl Berry  <karl@gnu.org>
30320
30321         * lib/vasnprintf.c: update from gettext.
30322
30323 2003-07-15  Karl Berry  <karl@gnu.org>
30324
30325         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
30326         gets expanded when surrounded by '$'.
30327
30328 2003-07-15  Jim Meyering  <jim@meyering.net>
30329
30330         * modules/save-cwd: Don't depend on error.  From Derek Price.
30331
30332 2003-07-15  Jim Meyering  <jim@meyering.net>
30333
30334         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
30335
30336 2003-07-14  Simon Josefsson  <jas@extundo.com>
30337
30338         * modules/mempcpy: New file.
30339         * MODULES.html.sh (func_all_modules): Add mempcpy.
30340
30341 2003-07-14  Simon Josefsson  <jas@extundo.com>
30342
30343         * m4/mempcpy.m4: New file.
30344
30345 2003-07-14  Simon Josefsson  <jas@extundo.com>
30346
30347         * lib/mempcpy.h: New file.
30348         * lib/mempcpy.c: New file.
30349
30350 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30351
30352         * modules/getdate, modules/posixtm: Depend on mktime.
30353
30354 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30355
30356         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
30357         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
30358         unicodeio.c, unicodeio.h, unlocked-io.h:
30359         Switch from LGPL to GPL.
30360
30361 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30362
30363         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
30364         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
30365         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
30366         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
30367         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
30368         updated automatically by ../config/srclist-update.  This changes
30369         their license from LPGL to GPL.
30370
30371 2003-07-14  Paul Eggert  <eggert@twinsun.com>
30372
30373         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
30374         assumed to refer to the root of the most recent stable gettext version.
30375         * config/srclistvars.sh: Add defaults for eggert.
30376         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
30377         Match "This program" as well as "The program".  This is needed
30378         for gettext.
30379
30380 2003-07-14  Jim Meyering  <jim@meyering.net>
30381
30382         Don't emit diagnostics.  Let callers do that.
30383         * lib/save-cwd.c: Don't include "error.h".
30384         (save_cwd): Don't call error.  Ensure that errno is valid
30385         when returning nonzero.
30386
30387         * lib/save-cwd.h (restore_cwd): Update prototype.
30388         * lib/save-cwd.c (restore_cwd): Remove two parameters.
30389         Simplify.  Don't call error upon failure.  Let callers do that.
30390         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
30391         when auditing is enabled.  But don't bother updating the #if.
30392
30393 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
30394
30395         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
30396         it breaks C++ compilation.
30397         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
30398
30399 2003-07-10  Simon Josefsson  <jas@extundo.com>
30400
30401         * modules/strchrnul (Makefile.am): Add strchrnul.h.
30402
30403 2003-07-10  Jim Meyering  <jim@meyering.net>
30404
30405         * m4/clock_time.m4: Remove trailing blank.
30406         * m4/intmax_t.m4: Likewise.
30407
30408 2003-07-10  Jim Meyering  <jim@meyering.net>
30409
30410         * lib/vasnprintf.c: Remove trailing blanks.
30411         Make cpp indentation consistent.
30412
30413 2003-07-09  Paul Eggert  <eggert@twinsun.com>
30414
30415         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
30416         posixver.c, strftime.c, strnlen.c, strverscmp.c:
30417         Switch from LGPL to GPL.
30418
30419 2003-07-09  Paul Eggert  <eggert@twinsun.com>
30420
30421         * config/srclist.txt: Sort sublists.  Add
30422         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
30423         that differ from gnulib for one reason or another; we'd like this list
30424         to be smaller but for now let's document what we have.
30425
30426 2003-07-08  Paul Eggert  <eggert@twinsun.com>
30427
30428         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
30429         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
30430         and sweeter "eval x=$x".
30431         * config/srclist.txt: Get lib/argp* from glibc.
30432
30433 2003-07-07  Paul Eggert  <eggert@twinsun.com>
30434
30435         * lib/mktime.c: Fix some boundary cases and remove need for floating
30436         point.
30437
30438         Issue a compile-time diagnostic if time_t is floating point, or if
30439         two's complement arithmetic is not in effect, or if arithmetic
30440         right shift does not propagate the sign.  These assumptions were
30441         all in the original code but they weren't checked.
30442
30443         (TIME_T_MIDPOINT, verify): New macros.
30444         (__isleap): Remove; it has integer overflow problems.
30445         (leapyear): New function, without those problems.
30446         (ydhms_tm_diff): Remove; splitting into two parts.
30447         (ydhms_diff): New function, containing the arithmetic part of
30448         the old ydhms_tm_diff function.  Issue a compile-time
30449         diagnostic if we are not using C99 integer division.
30450         Avoid casts when possible.
30451         (guess_time_tm): New function, containing the checking part of
30452         the old ydhms_tm_diff function.  Return the new value, rather than
30453         the difference between it and the old.  Accept a new argument T
30454         so that *T specifies the old value.  Check for overflow in the result.
30455
30456         (__mktime_internal): Use a time_t offset, not a long int offset.
30457         This undoes the 2003-06-04 change, which is no longer needed now
30458         that we have better overflow checking.
30459         (localtime_offset): Likewise.
30460
30461         (__mktime_internal): Avoid harmful overflow on hosts where time_t
30462         and long are 64-bit but int is only 32-bit.
30463         (ydhms_diff): Use long int to store year1 and yday1.
30464         Issue a compile-time diagnostic if long int is not wide enough.
30465
30466         (__mktime_internal): Use long int to store adjusted year and yday.
30467         Use plain C rather than preprocessor commands, if that doesn't
30468         affect efficiency.
30469         Check for overflow (and try to repair) after each probe
30470         rather than checking only at the very end.  This avoids some bugs
30471         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
30472         does not equal GMT offset at maximum time).
30473         Use integer to check for overflow rather than floating point; this
30474         is more portable to non-IEEE hosts, and is a tad faster.
30475         When we detect that we are oscillating between two values,
30476         don't check whether tm_isdst has the requested value, since
30477         we already know the answer.  When tm_isdst has the wrong value,
30478         use a different heuristic to find the right one, based on the
30479         extreme values actually observed in practice in tz2003a,
30480         rather than the (overly optimistic) "previous 3 calendar quarters".
30481
30482         (not_equal_tm, print_tm, check_result): Use "const T" rather than
30483         "T const" to accommodate glibc style.
30484         (check_result): Use less-confusing report format.  "long" -> "long int.
30485         (main): Likewise.
30486         Don't loop if the iteration overflows time_t.
30487         Allow a negative step in the iteration.
30488
30489 2003-07-06  Karl Berry  <karl@gnu.org>
30490
30491         * config/depcomp: update from automake.
30492         * config/config.sub: update from prep.
30493
30494 2003-07-03  Karl Berry  <karl@gnu.org>
30495
30496         * config/config.guess: update from prep.
30497
30498 2003-07-01  Paul Eggert  <eggert@twinsun.com>
30499
30500         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
30501         xreadlink.c now includes it unconditionally.
30502
30503 2003-07-01  Paul Eggert  <eggert@twinsun.com>
30504
30505         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
30506         having it depend on HAVE_SYS_TYPES_H.
30507
30508 2003-07-01  Bruno Haible  <bruno@clisp.org>
30509
30510         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
30511         <sys/types.h> should be sufficient.
30512         Reported by Paul Eggert.
30513
30514 2003-06-26  Karl Berry  <karl@gnu.org>
30515
30516         * config/depcomp: update from automake.
30517
30518 2003-06-26  Bruno Haible  <bruno@clisp.org>
30519
30520         * modules/human: Depend on module stdbool.
30521
30522 2003-06-25  Bruno Haible  <bruno@clisp.org>
30523
30524         * modules/readlink: New file.
30525         * modules/xreadlink: Depend on it.
30526         * MODULES.html.sh (func_all_modules): Add readlink.
30527
30528 2003-06-25  Bruno Haible  <bruno@clisp.org>
30529
30530         * m4/readlink.m4: New file.
30531
30532 2003-06-25  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/readlink.c: New file.
30535
30536 2003-06-22  Karl Berry  <karl@gnu.org>
30537
30538         * config/srclist.txt: update mkinstalldirs from automake.
30539         * config/mkinstalldirs: update.
30540
30541 2003-06-22  Bruno Haible  <bruno@clisp.org>
30542
30543         Portability to mingw32.
30544         * m4/ssize_t.m4: New file, from GNU gettext.
30545         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
30546         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
30547
30548 2003-06-22  Bruno Haible  <bruno@clisp.org>
30549
30550         * modules/safe-read: Add m4/ssize_t.m4.
30551         * modules/xreadlink: Add m4/ssize_t.m4.
30552
30553 2003-06-20  Bruno Haible  <bruno@clisp.org>
30554
30555         Assume C89, so PARAMS isn't needed.
30556         * lib/unicodeio.h (PARAMS): Remove.
30557         * lib/unicodeio.c: Don't use PARAMS.
30558
30559 2003-06-18  Karl Berry  <karl@gnu.org>
30560
30561         * config/config.{guess,sub}: update from prep.
30562
30563 2003-06-18  Jim Meyering  <jim@meyering.net>
30564
30565         Merge changes from coreutils.
30566         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
30567         Remove explicit declarations of xmalloc and realloc.
30568         Include xalloc.h.
30569         (read_utmp): Remove anachronistic cast of xmalloc.
30570
30571 2003-06-17  Paul Eggert  <eggert@twinsun.com>
30572
30573         Assume C89, so PARAMS isn't needed.
30574         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
30575         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
30576         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
30577         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
30578         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
30579         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
30580         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
30581         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
30582         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
30583         lib/xstrtod.h, lib/xstrtol.h: Likewise.
30584         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
30585         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
30586         no longer needed. Anyway, config.h should always be included before any
30587         other file.
30588
30589 2003-06-11  Simon Josefsson  <jas@extundo.com>
30590
30591         * modules/sysexits: New file.
30592         * MODULES.html.sh (func_all_modules): Add sysexits.
30593
30594 2003-06-11  Simon Josefsson  <jas@extundo.com>
30595
30596         * lib/sysexit_.h: New file.
30597
30598 2003-06-11  Derek Price  <derek@ximbiot.com>
30599
30600         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
30601         necessary.
30602
30603 2003-06-11  Bruno Haible  <bruno@clisp.org>
30604
30605         * m4/sysexits.m4: New file.
30606
30607 2003-06-10  Simon Josefsson  <jas@extundo.com>
30608
30609         * lib/argp.h: New file, from glibc.
30610         * lib/argp-ba.c: New file, from glibc.
30611         * lib/argp-eexst.c: New file, from glibc.
30612         * lib/argp-fmtstream.c: New file, from glibc.
30613         * lib/argp-fmtstream.h: New file, from glibc.
30614         * lib/argp-fs-xinl.c: New file, from glibc.
30615         * lib/argp-help.c: New file, from glibc.
30616         * lib/argp-namefrob.h: New file, from glibc.
30617         * lib/argp-parse.c: New file, from glibc.
30618         * lib/argp-pv.c: New file, from glibc.
30619         * lib/argp-pvh.c: New file, from glibc.
30620         * lib/argp-xinl.c: New file, from glibc.
30621
30622 2003-06-10  Simon Josefsson  <jas@extundo.com>
30623
30624         * modules/strchrnul: New file.
30625
30626 2003-06-10  Simon Josefsson  <jas@extundo.com>
30627
30628         * modules/argp: New file.
30629
30630 2003-06-10  Simon Josefsson  <jas@extundo.com>
30631
30632         * m4/strchrnul.m4: New file.
30633
30634 2003-06-10  Simon Josefsson  <jas@extundo.com>
30635
30636         * lib/strchrnul.h: New file.
30637         * lib/strchrnul.c: New file.
30638
30639 2003-06-10  Bruno Haible  <bruno@clisp.org>
30640
30641         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
30642
30643 2003-06-07  Karl Berry  <karl@gnu.org>
30644
30645         * config/config.{guess,sub}: update from prep.
30646
30647 2003-06-07  Jim Meyering  <jim@meyering.net>
30648
30649         * modules/strtod: Use $(...) notation, not @...@ for
30650         AC_REPLACE'd variables.
30651         * modules/localcharset: Likewise.
30652
30653 2003-06-07  Jim Meyering  <jim@meyering.net>
30654
30655         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
30656         in place of my name in the copyright comment.
30657         Remove definition and uses of __P.
30658
30659         From coreutils.
30660         * lib/stat.c: Don't declare xmalloc explicitly.
30661         Instead, include "xalloc.h".
30662         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
30663         xrealloc, and xcalloc return values.
30664         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
30665         Improve comment.
30666         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
30667
30668 2003-06-07  Bruno Haible  <bruno@clisp.org>
30669
30670         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
30671         avoid AC_CONFIG_LINKS.
30672         * modules/fnmatch (Makefile.am): Use explicit creation rule for
30673         fnmatch.h, to avoid AC_CONFIG_LINKS.
30674         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
30675
30676 2003-06-07  Bruno Haible  <bruno@clisp.org>
30677
30678         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
30679         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
30680         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
30681         directory.
30682         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
30683         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
30684         directory.
30685
30686 2003-06-06  Jim Meyering  <jim@meyering.net>
30687
30688         Merge from coreutils.
30689         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
30690         Consolidate declarations and initializations of *_base* locals.
30691
30692         Merge from coreutils.
30693         This avoids a core dump on systems without GNU putenv,
30694         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
30695         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
30696         (unsetenv): New static function, from GNU libc.
30697         (rpl_putenv): Use it.
30698
30699         * lib/modechange.c: Remove trailing blanks.
30700
30701         Merge from coreutils.
30702         * lib/fsusage.c: Remove declaration of statfs.
30703         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
30704
30705         * lib/posixtm.c: Include <stdbool.h> unconditionally.
30706
30707 2003-06-06  Jim Meyering  <jim@meyering.net>
30708
30709         * lib/stdbool_.h: Renamed from stdbool.h.in.
30710
30711 2003-06-06  Jim Meyering  <jim@meyering.net>
30712             Bruno Haible  <bruno@clisp.org>
30713
30714         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
30715         Adjust Makefile.am snippet not to redirect directly to target.
30716         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
30717
30718 2003-06-05  Paul Eggert  <eggert@twinsun.com>
30719
30720         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
30721         mismatch, look in future quarters as well as past.  This fixes a
30722         bug when processing fall-backwards gaps immediately after a long
30723         period of daylight-saving time.
30724
30725         * lib/mktime.c: Assume freestanding C89 or better.
30726         (HAVE_LIMITS_H): Remove.  Assume it's 1.
30727         (__P): Remove; not used.
30728         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
30729         (mktime, not_equal_tm, print_tm, check_result,
30730         main): Use prototypes.  Use const * where appropriate.
30731         (main): Fix typo in testing code that uncovered by above changes.
30732         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
30733
30734 2003-06-04  Paul Eggert  <eggert@twinsun.com>
30735
30736         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
30737         locale.h, localeconv.  This merges changes from coreutils.
30738
30739         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
30740         It can be removed after the next Autoconf is released.
30741         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
30742         needed.
30743
30744 2003-06-04  Paul Eggert  <eggert@twinsun.com>
30745
30746         * lib/mktime.c: Fix Debian bug 177940
30747         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
30748         (localtime_offset): Now long int, not time_t, because we want it
30749         to be guaranteed to be signed.  All uses changed.
30750         (__mktime_internal): If overflow would occur when adding offset,
30751         don't add it.
30752
30753         Merge 'human' changes from coreutils.  Rewrite to support
30754         locale-specific notations like thousands separators.
30755         * lib/human.c: Simplify authorship notice.
30756         Include human.h immediately after config.h.
30757         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
30758         <limits.h>: Do not include, since human.h does.
30759         (SIZE_MAX, UINTMAX_MAX): New macros.
30760         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
30761         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
30762         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
30763         (power_letter): Renamed from suffixes.
30764         (generate_suffix_backwards): Remove.
30765         (adjust_value): Now takes int style (because of human.h changes)
30766         and long double value (for greater precision on some platforms).
30767         (group_number): New function.
30768         (human_readable): Use it.  Use integer options, not enum.
30769         Put the options before the sizes in the arg list.
30770         Support all the new options.
30771         The old human_readable function has been removed;
30772         use inttostr.h instead.
30773         (human_readable, default_block_size, humblock):
30774         Use uintmax_t, not int, for block sizes.
30775         (human_readable_inexact, block_size_types): Remove.
30776         (block_size_opts): New constant.
30777         (human_options): Renamed from human_block_size, with new signature
30778         that allows block sizes up to UINTMAX_MAX.  All callers changed.
30779         * lib/human.h: Add copyright and authorship notice.
30780         Include <limits.h> and <stdbool.h> unconditionally.
30781         (PARAMS): Remove.  All uses removed.
30782         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
30783         (enum human_inexact_style): Remove tag; now a nameless enum.
30784         (human_floor, human_ceiling, human_round_to_even): Now have
30785         values 2, 0, 1 rather than -1, 1, 0.
30786         (human_group_digits, human_suppress_point_zero, human_autoscale,
30787         human_base_1024, human_SI, human_B): New constants.
30788         (human_readable_inexact, human_block_size): Remove.
30789         (human_readable): Size args are now uintmax_t, not int.
30790         (human_options): New decl.
30791
30792         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
30793         unnecessary now that we assume C89 or better.  This change
30794         imported from coreutils.
30795
30796         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
30797         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
30798         in the 2003-05-30 sync from glibc.
30799
30800         .h files should stand alone, but we shouldn't include <sys/types.h>
30801         if we can get away with just <stddef.h>.
30802
30803         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
30804         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
30805         rather than <sys/types.h>, as we merely need size_t.
30806         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
30807         to get size_t.
30808         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
30809         Include <stdio.h>, to get FILE.
30810         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
30811         memcasecmp.h has included <stddef.h> and all we need is size_t.
30812         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
30813         our interface, instead of including <sys/types.h>
30814
30815 2003-06-04  Paul Eggert  <eggert@twinsun.com>
30816
30817         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
30818         now, as glibc mktime is buggy on non-glibc systems.
30819
30820 2003-06-03  Karl Berry  <karl@gnu.org>
30821
30822         * config/config.sub: update from prep.
30823
30824 2003-06-02  Paul Eggert  <eggert@twinsun.com>
30825
30826         [from coreutils]
30827         Fix some minor time-related bugs with POSIX time arguments.
30828         Some valid time stamps were being rejected (notably -1, and
30829         time stamps before 1900 on 64-bit hosts).  And some invalid
30830         time stamps were being accepted, e.g. September 31.
30831
30832         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
30833         that we can return (time_t) -1 successfully.
30834         * lib/posixtm.c: Likewise.
30835         [HAVE_STDBOOL_H]: Include <stdbool.h>.
30836         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
30837         (t): Remove static var.
30838         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
30839         of static var.  All uses changed.
30840         (year): Do not reject years before 1900; they can occur with
30841         64-bit time_t.
30842         (posix_time_parse): Do not check for out-of-range components;
30843         that is now the caller's responsibility, since our checks were
30844         only approximations.
30845         (posixtime): Use mktime to check for out-of-range components,
30846         since it knows them exactly.
30847         If mktime returns (time_t) -1, check whether an error actually occurred
30848         by invoking localtime on -1.
30849         (main) [TEST_POSIXTIME]: Check for input data errors, and report
30850         posixtime failures better.
30851         Improve the test data (in comments only).
30852
30853 2003-06-02  Karl Berry  <karl@gnu.org>
30854
30855         * config/mkinstalldirs (version): new variable.
30856         (--version): new option.
30857         (usage): improve message.
30858
30859 2003-05-30  Karl Berry  <karl@gnu.org>
30860
30861         * lib/mktime.c: update from libc.
30862
30863 2003-05-30  Bruno Haible  <bruno@clisp.org>
30864
30865         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
30866         * config/config.rpath: Upgrade to gettext-0.12.1.
30867
30868 2003-05-30  Bruno Haible  <bruno@clisp.org>
30869
30870         * m4/gettext.m4: Upgrade to gettext-0.12.1.
30871         * m4/nls.m4: New file, from gettext-0.12.1.
30872         * m4/po.m4: New file, from gettext-0.12.1.
30873         * m4/progtest.m4: Upgrade to gettext-0.12.1.
30874
30875 2003-05-30  Bruno Haible  <bruno@clisp.org>
30876
30877         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
30878         * lib/localcharset.h: Likewise.
30879         * lib/localcharset.c: Likewise.
30880
30881 2003-05-29  Karl Berry  <karl@gnu.org>
30882
30883         * config/config.rpath: update from gettext.
30884
30885 2003-05-28  Paul Eggert  <eggert@twinsun.com>
30886
30887         Assume the headers required for C89 freestanding compilers.
30888         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
30889         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
30890         * m4/human.m4 (gl_HUMAN): Likewise.
30891         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
30892         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
30893         * m4/userspec.m4 (gl_USERSPEC): Likewise.
30894         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
30895         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
30896         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
30897
30898 2003-05-28  Paul Eggert  <eggert@twinsun.com>
30899
30900         Assume the headers required for C89 freestanding compilers.
30901         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
30902         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
30903         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
30904         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
30905         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
30906         define, since <limits.h> is guaranteed to do that.
30907         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
30908         * lib/exclude.c: Include <stdbool.h> unconditionally.
30909         * lib/tempname.c: Include <stddef.h> unconditionally.
30910         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
30911         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
30912         <stddef.h> does that.
30913         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
30914         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
30915         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
30916         needed.
30917         * lib/xstrtol.c: Likewise.
30918         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
30919         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
30920
30921         * lib/addext.c (addext): Use assignment rather than cast, to avoid
30922         warnings on some platforms.
30923
30924         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
30925         arbitrarily.
30926
30927 2003-05-26  Jim Meyering  <jim@meyering.net>
30928
30929         Merge in a change from coreutils:
30930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
30931         that is guaranteed to be `no'.  Use `no_such_member' to indicate
30932         that condition, rather than `-1' which is slightly misleading.
30933         Change the name of the cache variable to have the gl_ prefix.
30934         Prompted by a patch from Richard Dawe for DJGPP.
30935
30936 2003-05-24  Karl Berry  <karl@gnu.org>
30937
30938         * config/config.guess: update from prep.
30939
30940 2003-05-22  Karl Berry  <karl@gnu.org>
30941
30942         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
30943
30944 2003-05-20  Karl Berry  <karl@gnu.org>
30945
30946         * config/config.guess: update from prep.
30947
30948 2003-05-18  Karl Berry  <karl@gnu.org>
30949
30950         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
30951         might actually be set by the user.
30952
30953         * config/depcomp, install-sh, mdate-sh: update from automake.
30954
30955 2003-05-17  Bruno Haible  <bruno@clisp.org>
30956
30957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
30958         invalid expansion for AC_EGREP_CPP.
30959         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
30960         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
30961         Suggested by Akim Demaille <akim@epita.fr> in
30962         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
30963
30964 2003-05-12  Jim Meyering  <jim@meyering.net>
30965
30966         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
30967         the space-padded-by-default conversion specifiers, %e, %k, %l.
30968
30969 2003-05-12  Bruno Haible  <bruno@clisp.org>
30970
30971         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
30972         the string is longer than 4 KB.
30973
30974 2003-05-11  Karl Berry  <karl@gnu.org>
30975
30976         * config/config.{guess,sub}: update from prep.
30977
30978 2003-05-09  Bruno Haible  <bruno@clisp.org>
30979
30980         * modules/error: Add m4/strerror_r.m4 to file list.
30981
30982 2003-05-03  Bruno Haible  <bruno@clisp.org>
30983
30984         Upgrade to Unicode-4.0.
30985         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
30986         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
30987         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
30988         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
30989         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
30990         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
30991         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
30992         Change width of U+E0100..U+E01EF from 1 to 0.
30993
30994 2003-04-25  Jim Meyering  <jim@meyering.net>
30995
30996         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
30997         of type size_t, not int.
30998
30999 2003-04-25  Bruno Haible  <bruno@clisp.org>
31000
31001         * lib/copy-file.c: Include <stddef.h>, for size_t.
31002
31003 2003-04-21  Paul Eggert  <eggert@twinsun.com>
31004
31005         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
31006         code which expansion is under static control.  Patch imported from
31007         Akim Demaille's patch to Bison; see
31008         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
31009
31010 2003-04-14  Bruno Haible  <bruno@clisp.org>
31011
31012         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
31013
31014 2003-04-11  Jim Meyering  <jim@meyering.net>
31015
31016         Merge changes from Coreutils.
31017
31018         2003-03-22  Jim Meyering  <jim@meyering.net>
31019
31020         * lib/strftime.c (widen): Cast alloca return value to proper type.
31021
31022         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
31023
31024         From GNU libc.
31025         * lib/strftime.c (my_strftime): Handle very large width
31026         specifications for numeric values correctly.  Improve checks for
31027         overflow.
31028
31029         2003-01-19  Jim Meyering  <jim@meyering.net>
31030
31031         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
31032         definitions.
31033         (nl_get_alt_digit) [! defined my_strftime]: Define.
31034         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
31035         _nl_get_alt_digit and _nl_get_walt_digit.
31036
31037         * lib/strftime.c (my_strftime): Merge in locale-related changes from
31038         libc. These changes have no effect outside of _LIBC.
31039
31040 2003-04-10  Bruno Haible  <bruno@clisp.org>
31041
31042         * modules/findprog: New file.
31043         * MODULES.html.sh (func_all_modules): Add it.
31044
31045 2003-04-10  Bruno Haible  <bruno@clisp.org>
31046
31047         * m4/findprog.m4: New file.
31048         * m4/eaccess.m4: New file.
31049
31050 2003-04-10  Bruno Haible  <bruno@clisp.org>
31051
31052         * lib/findprog.h: New file, from GNU gettext.
31053         * lib/findprog.c: New file, from GNU gettext.
31054
31055 2003-04-05  Jim Meyering  <jim@meyering.net>
31056
31057         Merge changes from Coreutils.
31058
31059         * lib/exclude.h (PARAMS): Remove definition and uses.
31060         * lib/exclude.c: Remove uses of `PARAMS'.
31061
31062         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
31063         Add test-cases for DOS filenames. Declare program_name.
31064         (main): Set up program_name.  Patch by Rich Dawe.
31065
31066         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
31067         error from mntctl.
31068         Use mntctl's return value to drive the entry-processing loop, since
31069         we can't rely on the value of the vmt_length member in the last
31070         entry.  On some systems doing so could result in exhausting
31071         virtual memory.  Based in part on a patch from Mike Jetzer.
31072
31073 2003-04-04  Bruno Haible  <bruno@clisp.org>
31074
31075         * modules/linebreak: New file.
31076         * MODULES.html.sh (func_all_modules): Add it.
31077
31078 2003-04-04  Bruno Haible  <bruno@clisp.org>
31079
31080         * m4/linebreak.m4: New file.
31081
31082 2003-04-04  Bruno Haible  <bruno@clisp.org>
31083
31084         * lib/linebreak.h: New file, from GNU gettext.
31085         * lib/linebreak.c: New file, from GNU gettext with slight
31086         modifications.
31087         * lib/lbrkprop.h: New file, from GNU gettext.
31088
31089 2003-04-03  Bruno Haible  <bruno@clisp.org>
31090
31091         * modules/utf8-ucs4: New file.
31092         * modules/utf16-ucs4: New file.
31093         * modules/ucs4-utf8: New file.
31094         * modules/ucs4-utf16: New file.
31095         * MODULES.html.sh (func_all_modules): Add them.
31096
31097 2003-04-03  Bruno Haible  <bruno@clisp.org>
31098
31099         * m4/utf-ucs4.m4: New file.
31100         * m4/ucs4-utf.m4: New file.
31101
31102 2003-04-03  Bruno Haible  <bruno@clisp.org>
31103
31104         * lib/utf8-ucs4.h: New file, from GNU gettext.
31105         * lib/utf16-ucs4.h: New file, from GNU gettext.
31106         * lib/ucs4-utf8.h: New file, from GNU gettext.
31107         * lib/ucs4-utf16.h: New file, from GNU gettext.
31108
31109 2003-04-02  Bruno Haible  <bruno@clisp.org>
31110
31111         * modules/binary-io: New file.
31112         * MODULES.html.sh (func_all_modules): Add it.
31113
31114 2003-04-02  Bruno Haible  <bruno@clisp.org>
31115
31116         * lib/binary-io.h: New file, from GNU gettext.
31117
31118 2003-04-01  Bruno Haible  <bruno@clisp.org>
31119
31120         * modules/pathname: New file.
31121         * MODULES.html.sh (func_all_modules): Add it.
31122
31123 2003-04-01  Bruno Haible  <bruno@clisp.org>
31124
31125         * lib/pathname.h: New file, from GNU gettext.
31126         * lib/concatpath.c: New file, from GNU gettext.
31127
31128 2003-03-30  Bruno Haible  <bruno@clisp.org>
31129
31130         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
31131
31132 2003-03-30  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
31135         function chown() doesn't exist.
31136
31137 2003-03-28  Bruno Haible  <bruno@clisp.org>
31138
31139         * modules/copy-file: New file.
31140         * MODULES.html.sh (func_all_modules): Add it.
31141
31142 2003-03-28  Bruno Haible  <bruno@clisp.org>
31143
31144         * m4/copy-file.m4: New file.
31145
31146 2003-03-28  Bruno Haible  <bruno@clisp.org>
31147
31148         * lib/copy-file.h: New file, from GNU gettext.
31149         * lib/copy-file.c: New file, from GNU gettext.
31150
31151 2003-03-18  Jim Meyering  <jim@meyering.net>
31152
31153         * lib/quote.c (quote_n): Fix typo in comment.
31154
31155 2003-03-18  Bruno Haible  <bruno@clisp.org>
31156
31157         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
31158         checking.
31159         * m4/onceonly_2_57.m4: Likewise.
31160
31161 2003-03-17  Bruno Haible  <bruno@clisp.org>
31162
31163         * m4/onceonly.m4: Require autoconf 2.54 or newer.
31164         (m4_quote): Remove macro.
31165         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
31166
31167 2003-03-14  Jim Meyering  <jim@meyering.net>
31168
31169         Merge changes from Coreutils.
31170         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
31171         to be const, in order to avoid warnings.
31172         (obstack_room): Likewise.
31173         (obstack_empty_p): Likewise.
31174
31175 2003-03-14  Bruno Haible  <bruno@clisp.org>
31176
31177         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
31178         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
31179
31180 2003-03-13  Paul Eggert  <eggert@twinsun.com>
31181
31182         Merge changes from Bison.
31183         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
31184         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
31185         when compiling Bison 1.875's `bitset bset = obstack_alloc
31186         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
31187         * lib/hash.c: Include <stdbool.h> unconditionally.
31188
31189 2003-03-13  Paul Eggert  <eggert@twinsun.com>
31190
31191         * m4/onceonly.m4 (m4_quote): New macro.
31192         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
31193         Quote AC_FOREACH variable-expansions properly.
31194
31195 2003-03-13  Paul Eggert  <eggert@twinsun.com>
31196
31197         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
31198
31199 2003-03-09  Paul Eggert  <eggert@twinsun.com>
31200
31201         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
31202         Reported by Bruce Becker; see:
31203         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
31204
31205 2003-03-03  Paul Eggert  <eggert@twinsun.com>
31206             Bruno Haible  <bruno@clisp.org>
31207
31208         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
31209         Reported by John Hughes, see
31210         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
31211
31212 2003-02-20  Bruno Haible  <bruno@clisp.org>
31213
31214         * MODULES.html.sh (func_all_modules): Add poll.
31215
31216 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
31217
31218         * modules/poll: New file.
31219
31220 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
31221
31222         * lib/poll_.h: New file.
31223         * lib/poll.c: New file.
31224
31225 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
31226
31227         * m4/poll.m4: New file.
31228
31229 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31230
31231         * modules/mathl: New file.
31232
31233 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31234
31235         * lib/mathl.h: New file.
31236         * lib/acosl.c: New file.
31237         * lib/asinl.c: New file.
31238         * lib/atanl.c: New file.
31239         * lib/ceill.c: New file.
31240         * lib/cosl.c: New file.
31241         * lib/expl.c: New file.
31242         * lib/floorl.c: New file.
31243         * lib/frexpl.c: New file.
31244         * lib/ldexpl.c: New file.
31245         * lib/logl.c: New file.
31246         * lib/sincosl.c: New file.
31247         * lib/sinl.c: New file.
31248         * lib/sqrtl.c: New file.
31249         * lib/tanl.c: New file.
31250         * lib/trigl.c: New file.
31251         * lib/trigl.h: New file.
31252
31253 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
31254
31255         * m4/mathl.m4: New file.
31256
31257 2003-02-18  Bruno Haible  <bruno@clisp.org>
31258
31259         * MODULES.html.sh (func_all_modules): Add mathl.
31260
31261 2003-02-17  Bruno Haible  <bruno@clisp.org>
31262
31263         * modules/mkdtemp: New module.
31264         * MODULES.html.sh (func_all_modules): Add it.
31265
31266 2003-02-17  Bruno Haible  <bruno@clisp.org>
31267
31268         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
31269
31270 2003-02-17  Bruno Haible  <bruno@clisp.org>
31271
31272         * lib/mkdtemp.h: New file, from GNU gettext.
31273         * lib/mkdtemp.c: New file, from GNU gettext.
31274
31275 2003-02-02  Jim Meyering  <jim@meyering.net>
31276
31277         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
31278         e.g. glibc-2.2.93.
31279
31280 2003-01-31  Bruno Haible  <bruno@clisp.org>
31281
31282         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
31283         'rpl_rename'.
31284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
31285         'rpl_strnlen'.
31286         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
31287         'rpl_strtod'.
31288         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
31289         'rpl_utime'.
31290
31291 2003-01-31  Bruno Haible  <bruno@clisp.org>
31292
31293         * lib/rename.c: #undef rename before defining rpl_rename.
31294         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
31295
31296 2003-01-30  Bruno Haible  <bruno@clisp.org>
31297
31298         * modules/vasnprintf, modules/vasprintf: New modules.
31299         * MODULES.html.sh (func_all_modules): Add them.
31300
31301 2003-01-30  Bruno Haible  <bruno@clisp.org>
31302
31303         * m4/signed.m4: New file, from GNU gettext.
31304         * m4/longdouble.m4: New file, from GNU gettext.
31305         * m4/wchar_t.m4: New file, from GNU gettext.
31306         * m4/wint_t.m4: New file, from GNU gettext.
31307         * m4/vasnprintf.m4: New file.
31308         * m4/vasprintf.m4: New file.
31309
31310 2003-01-30  Bruno Haible  <bruno@clisp.org>
31311
31312         * lib/printf-args.h: New file, from GNU gettext.
31313         * lib/printf-args.c: New file, from GNU gettext.
31314         * lib/printf-parse.h: New file, from GNU gettext.
31315         * lib/printf-parse.c: New file, from GNU gettext.
31316         * lib/vasnprintf.h: New file, from GNU gettext.
31317         * lib/vasnprintf.c: New file, from GNU gettext.
31318         * lib/asnprintf.c: New file, from GNU gettext.
31319         * lib/vasprintf.h: New file, from GNU gettext with modifications.
31320         * lib/vasprintf.c: New file, from GNU gettext.
31321         * lib/asprintf.c: New file, from GNU gettext.
31322
31323 2003-01-29  Bruno Haible  <bruno@clisp.org>
31324
31325         * modules/stpncpy: New module.
31326         * MODULES.html.sh (func_all_modules): Add it.
31327
31328 2003-01-29  Bruno Haible  <bruno@clisp.org>
31329
31330         * m4/stpncpy.m4: New file.
31331
31332 2003-01-29  Bruno Haible  <bruno@clisp.org>
31333
31334         * lib/stpncpy.h: New file, from GNU gettext with modifications.
31335         * lib/stpncpy.c: New file, from GNU gettext with modifications.
31336
31337 2003-01-28  Bruno Haible  <bruno@clisp.org>
31338
31339         * modules/c-ctype: New module.
31340         * MODULES.html.sh (func_all_modules): Add it.
31341
31342 2003-01-28  Bruno Haible  <bruno@clisp.org>
31343
31344         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
31345         Paul Eggert.
31346         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
31347         Paul Eggert.
31348
31349 2003-01-27  Bruno Haible  <bruno@clisp.org>
31350
31351         * modules/xsetenv: New module.
31352         * MODULES.html.sh (func_all_modules): Add it.
31353
31354 2003-01-27  Bruno Haible  <bruno@clisp.org>
31355
31356         * lib/xsetenv.h: New file, from GNU gettext.
31357         * lib/xsetenv.c: New file, from GNU gettext.
31358
31359 2003-01-23  Jim Meyering  <jim@meyering.net>
31360
31361         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
31362         from working on systems without dirfd (at least Irix and OSF1/Tru64).
31363
31364 2003-01-23  Bruno Haible  <bruno@clisp.org>
31365
31366         * modules/minmax: New module.
31367         * MODULES.html.sh (func_all_modules): Add it.
31368
31369 2003-01-23  Bruno Haible  <bruno@clisp.org>
31370
31371         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
31372         Eggert.
31373
31374 2003-01-22  Bruno Haible  <bruno@clisp.org>
31375
31376         * modules/exit: New module.
31377         * MODULES.html.sh (func_all_modules): Add it.
31378
31379 2003-01-22  Bruno Haible  <bruno@clisp.org>
31380
31381         * lib/exit.h: New file, from GNU gettext.
31382
31383 2003-01-19  Bruno Haible  <bruno@clisp.org>
31384
31385         * gnulib-tool: Recognize option --extract-maintainer.
31386         (func_get_maintainer): New function.
31387         * modules/*: Add Maintainer entry.
31388
31389 2003-01-16  Jim Meyering  <jim@meyering.net>
31390
31391         * m4/regex.m4: The `regex' struct is both input and output.
31392         Initialize it before each use.  Patch by Tim Waugh.
31393
31394 2003-01-16  Bruno Haible  <bruno@clisp.org>
31395
31396         * MODULES.html.sh: Add a table of contents. Add the module name as
31397         leftmost column. Add hyperlinks.
31398
31399 2003-01-15  Bruno Haible  <bruno@clisp.org>
31400
31401         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
31402
31403 2003-01-15  Bruno Haible  <bruno@clisp.org>
31404
31405         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
31406         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
31407         suffix.
31408
31409 2003-01-15  Bruno Haible  <bruno@clisp.org>
31410
31411         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
31412
31413 2003-01-15  Bruno Haible  <bruno@clisp.org>
31414
31415         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
31416         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
31417
31418 2003-01-14  Jim Meyering  <jim@meyering.net>
31419
31420         * lib/same.c (same_name): Tweak a comment.
31421
31422 2003-01-14  Bruno Haible  <bruno@clisp.org>
31423
31424         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
31425         when a string comparison is sufficient.
31426
31427 2003-01-14  Bruno Haible  <bruno@clisp.org>
31428
31429         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
31430         'unsigned int'.
31431
31432 2003-01-14  Bruno Haible  <bruno@clisp.org>
31433
31434         * lib/hash-pjw.c: Add comment about low quality of this function.
31435
31436 2003-01-13  Bruno Haible  <bruno@clisp.org>
31437
31438         * modules/stpcpy: Distribute lib/stpcpy.h.
31439         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
31440
31441 2003-01-13  Bruno Haible  <bruno@clisp.org>
31442
31443         * modules/*: Add a description.
31444         * modules/strpbrk: Fix Makefile.am snippet.
31445         * modules/strtoimax: Fix dependencies.
31446         * modules/strtoumax: Likewise.
31447
31448 2003-01-13  Bruno Haible  <bruno@clisp.org>
31449
31450         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
31451         * modules/alloca (Makefile.am): All object files depend on alloca.h.
31452         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
31453
31454 2003-01-13  Bruno Haible  <bruno@clisp.org>
31455
31456         * gnulib-tool (func_create_testdir): Store config/* files in the main
31457         directory.
31458         * config.rpath: Move to ...
31459         * config/config.rpath: ... here.
31460         * modules/gettext: Contains config/config.rpath, not config.rpath.
31461         * modules/iconv: Likewise.
31462
31463 2003-01-12  Paul Eggert  <eggert@twinsun.com>
31464
31465         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
31466         to avoid collisions with libcurses and libreadline.
31467
31468         * m4/getstr.m4: Remove.
31469         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
31470
31471 2003-01-12  Paul Eggert  <eggert@twinsun.com>
31472
31473         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
31474         to avoid collisions with libcurses and libreadline.
31475
31476         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
31477         * lib/getstr.h, getstr.c: Remove.
31478         * lib/getline.c: Include "getline.h", to check interface.
31479         Move body of old getstr.c here: this defines MIN_CHUNK and
31480         declares getdelim2, which is renamed from getstr.
31481         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
31482
31483         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
31484         All uses changed.
31485         * lib/linebuffer.h: Likewise.
31486         (readline): Remove backward-compatibility macro.
31487
31488 2003-01-12  Paul Eggert  <eggert@twinsun.com>
31489
31490         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
31491         to avoid collisions with libcurses and libreadline.
31492         * getstr: Remove.
31493         * MODULES.html.sh: Remove getstr.
31494         * modules/getline: Depend on unlocked-io, not getstr.
31495
31496 2003-01-12  Jim Meyering  <jim@meyering.net>
31497
31498         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
31499
31500 2003-01-10  Bruno Haible  <bruno@clisp.org>
31501
31502         * modules/alloca: Change Makefile.am requirements. Simplify Include
31503         requirements. Add lib/alloca_.h to file list.
31504
31505 2003-01-10  Bruno Haible  <bruno@clisp.org>
31506
31507         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
31508
31509 2003-01-10  Bruno Haible  <bruno@clisp.org>
31510
31511         * lib/alloca_.h: New file.
31512         * lib/getdate.y: Unconditionally include alloca.h.
31513         * lib/makepath.c: Likewise.
31514         * lib/setenv.c: Likewise.
31515         * lib/userspec.c: Likewise.
31516
31517 2003-01-09  Karl Berry  <karl@gnu.org>
31518
31519         * MODULES.html.sh: include `dirname $0` in PATH, to find
31520         gnulib-tool.
31521
31522 2003-01-09  Bruno Haible  <bruno@clisp.org>
31523
31524         * modules/stdbool: Change configure.ac, Makefile.am requirements.
31525         Simplify Include requirements. Add lib/stdbool.h.in to file list.
31526
31527 2003-01-09  Bruno Haible  <bruno@clisp.org>
31528
31529         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
31530
31531 2003-01-09  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/stdbool.h.in: New file.
31534
31535 2003-01-09  Bruno Haible  <bruno@clisp.org>
31536
31537         * gnulib-tool (func_all_modules): Ignore files ending in ~.
31538         * MODULES.html.sh: Likewise.
31539
31540 2003-01-08  Jim Meyering  <jim@meyering.net>
31541
31542         * lib/full-write.c: Undefine and define-away `const' after inclusion
31543         of errno.h, not before.  Suggestion from Bruno Haible.
31544
31545 2003-01-08  Bruno Haible  <bruno@clisp.org>
31546
31547         * modules/full-read: Depend on full-write.
31548
31549 2003-01-08  Bruno Haible  <bruno@clisp.org>
31550
31551         * lib/safe-read.c: Include specification header first, to ensure its
31552         selfcontainedness.
31553         * lib/full-write.c: Likewise.
31554
31555 2003-01-07  Jim Meyering  <jim@meyering.net>
31556
31557         * lib/full-write.c: Rework so that it may serve to define full_read,
31558         too.
31559         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
31560
31561 2003-01-07  Bruno Haible  <bruno@clisp.org>
31562
31563         * lib/strtoimax.c: Include <stdint.h> as an alternative to
31564         <inttypes.h>.
31565         * lib/xstrtol.h: Likewise.
31566         * lib/xstrtoimax.c: Likewise.
31567         * lib/xstrtoumax.c: Likewise.
31568         * lib/human.h: Likewise.
31569
31570         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
31571         on systems that have <inttypes.h> but not <stdint.h>.
31572
31573 2003-01-07  Bruno Haible  <bruno@clisp.org>
31574
31575         * MODULES.html.sh: Add copyright notice.
31576         (missed_files): Omit CVS directory entries.
31577         (func_module): Make it work with sed-3.02.
31578         * MODULES.txt: Remove file.
31579
31580 2003-01-06  Jim Meyering  <jim@meyering.net>
31581
31582         * lib/version-etc.c: Update year in translatable copyright string.
31583
31584 2003-01-03  Karl Berry  <karl@gnu.org>
31585
31586         * config/config.{guess,sub}: update from prep.
31587
31588 2003-01-02  Karl Berry  <karl@gnu.org>
31589
31590         * doc/COPYING.DOC: belatedly updated to 1.2.
31591
31592 2003-01-01  Karl Berry  <karl@gnu.org>
31593
31594         * gnulib-tool (func_verify_module): report module name $module in
31595         error message, not $1.
31596         * gnulib-tool (create-testdir): don't complain if destdir couldn't
31597         be created, only if it doesn't exist.
31598         * gnulib-tool (last_checkin_date): don't expand the $Date here.
31599
31600 2002-12-31  Paul Eggert  <eggert@twinsun.com>
31601
31602         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
31603
31604 2002-12-31  Paul Eggert  <eggert@twinsun.com>
31605
31606         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
31607         memcmp if strcoll doesn't work.
31608
31609 2002-12-31  Bruno Haible  <bruno@clisp.org>
31610
31611         * lib/utime.c (utime_null): No need to call ftruncate if the file was
31612         nonempty.
31613
31614 2002-12-31  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/memcoll.c (STRCOLL): New macro.
31617         (memcoll): Use it.
31618
31619 2002-12-31  Bruno Haible  <bruno@clisp.org>
31620
31621         * lib/localcharset.h: New file.
31622         * lib/localcharset.c: Include it.
31623         * lib/unicodeio.c: Likewise.
31624
31625 2002-12-31  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
31628         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
31629
31630 2002-12-31  Bruno Haible  <bruno@clisp.org>
31631
31632         * lib/getline.h: Include <stddef.h>, for size_t.
31633
31634         * lib/unicodeio.h: Include <stddef.h>, for size_t.
31635         * lib/unicodeio.c: Don't include <stddef.h>.
31636
31637 2002-12-31  Bruno Haible  <bruno@clisp.org>
31638
31639         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
31640         HAVE_TM_ZONE.
31641
31642 2002-12-24  Karl Berry  <karl@gnu.org>
31643
31644         * config/config.guess: update from prep.
31645
31646 2002-12-24  Bruno Haible  <bruno@clisp.org>
31647
31648         General infrasructure.
31649         * m4/README: Rewritten.
31650         * m4/onceonly.m4: New file.
31651         * m4/onceonly_2_57.m4: New file.
31652
31653         Module atexit.
31654         * m4/atexit.m4: New file.
31655
31656         Module strtod.
31657         * m4/strtod.m4: New file.
31658
31659         Module strtol.
31660         * m4/strtol.m4: New file.
31661
31662         Module strtoul.
31663         * m4/strtoul.m4: New file.
31664
31665         Module memchr.
31666         * m4/memchr.m4: New file.
31667
31668         Module memcmp.
31669         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
31670         (jm_FUNC_MEMCMP): Invoke it.
31671
31672         Module memcpy.
31673         * m4/memcpy.m4: New file.
31674
31675         Module memmove.
31676         * m4/memmove.m4: New file.
31677
31678         Module memset.
31679         * m4/memset.m4: New file.
31680
31681         Module strcspn.
31682         * m4/strcspn.m4: New file.
31683
31684         Module strpbrk.
31685         * m4/strpbrk.m4: New file.
31686
31687         Module strstr.
31688         * m4/strstr.m4: New file.
31689
31690         Module strerror.
31691         * m4/strerror.m4: New file.
31692
31693         Module mktime.
31694         * m4/mktime.m4: Renamed from jm-mktime.m4.
31695         (gl_PREREQ_MKTIME): New macro.
31696         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
31697
31698         Module malloc.
31699         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
31700         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
31701         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
31702
31703         Module realloc.
31704         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
31705         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
31706         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
31707
31708         Module strftime.
31709         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
31710         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
31711         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
31712         gl_TM_GMTOFF.
31713         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
31714
31715         Module xalloc.
31716         * m4/xalloc.m4: New file.
31717
31718         Module alloca.
31719         * m4/alloca.m4: New file.
31720
31721         Module putenv.
31722         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31723         (jm_FUNC_PUTENV): Invoke it.
31724
31725         Module setenv.
31726         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
31727         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
31728         when invoked twice.
31729         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
31730         gt_FUNC_SETENV.
31731
31732         Module memrchr.
31733         * m4/memrchr.m4: New file.
31734
31735         Module stpcpy.
31736         * m4/stpcpy.m4: New file.
31737
31738         Module strcase.
31739         * m4/strcase.m4: New file.
31740
31741         Module strdup.
31742         * m4/strdup.m4: New file.
31743
31744         Module strnlen.
31745         * m4/strnlen.m4: New file.
31746
31747         Module strndup.
31748         * m4/strndup.m4: New file.
31749
31750         Module xstrtod.
31751         * m4/xstrtod.m4: New file.
31752
31753         Module xstrtol.
31754         * m4/xstrtol.m4: New file.
31755
31756         Module getdate.
31757         * m4/getdate.m4: New file.
31758
31759         Module unlocked-io.
31760         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
31761         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
31762         * m4/jm-glibc-io.m4n: Remove file.
31763
31764         Module long-options.
31765         * m4/long-options.m4: New file.
31766
31767         Module md5.
31768         * m4/md5.m4: New file.
31769
31770         Module sha.
31771         * m4/sha.m4: New file.
31772
31773         Module getstr.
31774         * m4/getstr.m4: New file.
31775
31776         Module getline.
31777         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
31778         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
31779         <sys/types.h>, for size_t. Use the function name gnu_getline, not
31780         simply getline. Infoke gl_PREREQ_GETLINE.
31781
31782         Module obstack.
31783         * m4/obstack.m4: New file.
31784
31785         Module hash.
31786         * m4/hash.m4: New file.
31787
31788         Module readtokens.
31789         * m4/readtokens.m4: New file.
31790
31791         Module strverscmp.
31792         * m4/strverscmp.m4: New file.
31793
31794         Module stdbool.
31795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
31796         OSF/1.
31797
31798         Module strtoll.
31799         * m4/strtoll.m4: New file.
31800
31801         Module strtoull.
31802         * m4/strtoull.m4: New file.
31803
31804         Module strtoimax.
31805         * m4/strtoimax.m4: New file.
31806
31807         Module strtoumax.
31808         * m4/strtoumax.m4: New file.
31809
31810         Module xstrtoimax.
31811         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
31812         jm_AC_PREREQ_XSTRTOIMAX.
31813         Moved the strtol prerequisites to strtol.m4.
31814         Moved the strtoll prerequisites to strtoll.m4.
31815         Moved the strtoimax prerequisites to strtoimax.m4.
31816
31817         Module xstrtoumax.
31818         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
31819         jm_AC_PREREQ_XSTRTOUMAX.
31820         Moved the strtoul prerequisites to strtoul.m4.
31821         Moved the strtoull prerequisites to strtoull.m4.
31822         Moved the strtoumax prerequisites to strtoumax.m4.
31823
31824         Module chown.
31825         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
31826         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
31827
31828         Module dup2.
31829         * m4/dup2.m4: New file.
31830
31831         Module ftruncate.
31832         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
31833         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
31834
31835         Module getgroups.
31836         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
31837         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
31838
31839         Module gettimeofday.
31840         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
31841         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
31842         gl_PREREQ_GETTIMEOFDAY.
31843
31844         Module mkdir.
31845         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
31846         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
31847
31848         Module mkstemp.
31849         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
31850         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
31851         jm_AC_TYPE_UINTMAX_T.
31852         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
31853
31854         Module stat.
31855         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
31856         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
31857
31858         Module lstat.
31859         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
31860         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
31861
31862         Module timespec.
31863         * m4/timespec.m4 (gl_TIMESPEC): New macro.
31864         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
31865         * m4/st_mtim.m4: Indentation.
31866
31867         Module nanosleep.
31868         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
31869         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
31870         gl_PREREQ_NANOSLEEP.
31871
31872         Module regex.
31873         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
31874         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
31875         (gl_REGEX): New macro.
31876
31877         Module rename.
31878         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
31879         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
31880
31881         Module rmdir.
31882         * m4/rmdir.m4: New file.
31883
31884         Module utime.
31885         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
31886         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
31887         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
31888
31889         Module dirname.
31890         * m4/dirname.m4: New file.
31891
31892         Module getopt.
31893         * m4/getopt.m4: New file.
31894
31895         Module unistd-safer.
31896         * m4/unistd-safer.m4: New file.
31897
31898         Module fnmatch.
31899         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
31900         declaration.
31901         (gl_PREREQ_FNMATCH_EXTRA): New macro.
31902         (gl_FUNC_FNMATCH_POSIX): New macro.
31903         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
31904         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
31905         simply fnmatch.
31906
31907         Module exclude.
31908         * m4/exclude.m4: New file.
31909
31910         Module human.
31911         * m4/human.m4: New file.
31912
31913         Module acl.
31914         * m4/acl.m4: Nop.
31915
31916         Module backupfile.
31917         * m4/backupfile.m4: New file.
31918         * m4/d-ino.m4: Indentation.
31919
31920         Module fsusage.
31921         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
31922         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
31923         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
31924
31925         Module dirfd.
31926         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
31927         requirements.
31928
31929         Module euidaccess.
31930         * m4/euidaccess.m4: New file.
31931
31932         Module file-type.
31933         * m4/file-type.m4: New file.
31934
31935         Module fileblocks.
31936         * m4/fileblocks.m4: New file.
31937
31938         Module filemode.
31939         * m4/filemode.m4: New file.
31940
31941         Module isdir.
31942         * m4/isdir.m4: New file.
31943
31944         Module lchown.
31945         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
31946         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
31947
31948         Module makepath.
31949         * m4/makepath.m4: New file.
31950
31951         Module modechange.
31952         * m4/modechange.m4: New file.
31953
31954         Module mountlist.
31955         * m4/mountlist.m4: New file.
31956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
31957         Indentation.
31958
31959         Module path-concat.
31960         * m4/path-concat.m4: New file.
31961
31962         Module pathmax.
31963         * m4/pathmax.m4: New file.
31964
31965         Module same.
31966         * m4/same.m4: New file.
31967
31968         Module save-cwd.
31969         * m4/save-cwd.m4: New file.
31970
31971         Module savedir.
31972         * m4/savedir.m4: New file.
31973
31974         Module xgetcwd.
31975         * m4/xgetcwd.m4: New file.
31976         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
31977
31978         Module xreadlink.
31979         * m4/xreadlink.m4: New file.
31980
31981         Module safe-read.
31982         * m4/safe-read.m4: New file.
31983
31984         Module safe-write.
31985         * m4/safe-write.m4: New file.
31986
31987         Module closeout.
31988         * m4/closeout.m4: New file.
31989
31990         Module stdio-safer.
31991         * m4/stdio-safer.m4: New file.
31992
31993         Module getpass.
31994         * m4/getpass.m4: New file.
31995
31996         Module getugroups.
31997         * m4/getugroups.m4: New file.
31998
31999         Module group-member.
32000         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
32001         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
32002
32003         Module idcache.
32004         * m4/idcache.m4: New file.
32005
32006         Module userspec.
32007         * m4/userspec.m4: New file.
32008
32009         Module gettime.
32010         * m4/clock_time.m4: New file.
32011         * m4/gettime.m4: New file.
32012
32013         Module settime.
32014         * m4/settime.m4: New file.
32015
32016         Module posixtm.
32017         * m4/posixtm.m4: New file.
32018
32019         Module gethostname.
32020         * m4/gethostname.m4: New file.
32021
32022         Module canon-host.
32023         * m4/canon-host.m4: New file.
32024
32025         Module gettext.
32026         * m4/codeset.m4: New file, from gettext-0.11.5.
32027         * m4/gettext.m4: New file, from gettext-0.11.5.
32028         * m4/glibc21.m4: New file, from gettext-0.11.5.
32029         * m4/iconv.m4: New file, from gettext-0.11.5.
32030         * m4/intdiv0.m4: New file, from gettext-0.11.5.
32031         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
32032         * m4/inttypes.m4: New file, from gettext-0.11.5.
32033         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
32034         * m4/isc-posix.m4: New file, from gettext-0.11.5.
32035         * m4/lcmessage.m4: New file, from gettext-0.11.5.
32036         * m4/lib-ld.m4: New file, from gettext-0.11.5.
32037         * m4/lib-link.m4: New file, from gettext-0.11.5.
32038         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
32039         * m4/progtest.m4: New file, from gettext-0.11.5.
32040         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
32041         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
32042         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
32043
32044         Module localcharset.
32045         * m4/localcharset.m4: New file.
32046
32047         Module hard-locale.
32048         * m4/hard-locale.m4: New file.
32049
32050         Module mbswidth.
32051         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
32052         onceonly macros.
32053         * m4/mbrtowc.m4: Add comment.
32054
32055         Module memcasecmp.
32056         * m4/memcasecmp.m4: New file.
32057
32058         Module memcoll.
32059         * m4/memcoll.m4: New file.
32060
32061         Module unicodeio.
32062         * m4/unicodeio.m4: New file.
32063
32064         Module rpmatch.
32065         * m4/rpmatch.m4: New file.
32066
32067         Module yesno.
32068         * m4/yesno.m4: New file.
32069
32070         Module exitfail.
32071         * m4/exitfail.m4: New file.
32072
32073         Module c-stack.
32074         * m4/c-stack.m4 (gl_C_STACK): New macro.
32075         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
32076
32077         Module error.
32078         * m4/error.m4 (gl_ERROR): New macro.
32079         (jm_PREREQ_ERROR): Use onceonly macros.
32080
32081         Module fatal.
32082         * m4/fatal.m4: New file.
32083
32084         Module getloadavg.
32085         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
32086         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
32087
32088         Module getpagesize.
32089         * m4/getpagesize.m4: New file.
32090
32091         Module getusershell.
32092         * m4/getusershell.m4: New file.
32093
32094         Module physmem.
32095         * m4/physmem.m4: New file.
32096
32097         Module posixver.
32098         * m4/posixver.m4: New file.
32099
32100         Module quotearg.
32101         * m4/quotearg.m4: New file.
32102
32103         Module quote.
32104         * m4/quote.m4: New file.
32105
32106         Module readutmp.
32107         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
32108
32109         Module sig2str.
32110         * m4/sig2str.m4: New file.
32111
32112         Other.
32113         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
32114         ulonglong.m4.
32115         * m4/intmax_t.m4: New file.
32116         * m4/d-type.m4: Indentation.
32117         * m4/jm-macros.m4: Update.
32118         * m4/prereq.m4 (jm_PREREQ): Update.
32119         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
32120         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
32121         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
32122         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
32123         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
32124         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
32125         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
32126         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
32127         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
32128         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
32129         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
32130         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
32131         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
32132         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
32133         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
32134         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
32135         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
32136         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
32137         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
32138
32139 2002-12-24  Bruno Haible  <bruno@clisp.org>
32140
32141         * MODULES.txt: Update according to m4/ changes.
32142
32143         Module gettext.
32144         * config.rpath: New file, from gettext-0.11.5.
32145
32146         * modules/*: New module descriptions.
32147         * gnulib-tool: New file.
32148         * MODULES.html.sh: New file.
32149
32150 2002-12-21  Karl Berry  <karl@gnu.org>
32151
32152         * doc/fdl.texi: update to version 1.2.
32153
32154 2002-12-19  Karl Berry  <karl@gnu.org>
32155
32156         * config/config.guess: update from prep.
32157
32158 2002-12-18  Bruno Haible  <bruno@clisp.org>
32159
32160         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
32161         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
32162
32163 2002-12-17  Bruno Haible  <bruno@clisp.org>
32164
32165         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
32166         stdlib.h, string.h.
32167
32168 2002-12-17  Bruno Haible  <bruno@clisp.org>
32169
32170         * lib/canon-host.c (strdup): Remove unused declaration.
32171
32172         * lib/fsusage.c: Include full_read.h.
32173         (get_fs_usage): Use full_read instead of safe_read.
32174
32175         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
32176
32177 2002-12-12  Karl Berry  <karl@gnu.org>
32178
32179         * config/config.guess: update from prep.
32180
32181 2002-12-11  Bruno Haible  <bruno@clisp.org>
32182
32183         * m4/setenv.m4: New file, from gettext-0.11.5.
32184
32185 2002-12-11  Bruno Haible  <bruno@clisp.org>
32186
32187         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
32188         not unsetenv().
32189         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
32190         modifications:
32191
32192         2002-12-11  Bruno Haible  <bruno@clisp.org>
32193
32194                 * setenv.c (alloca): Fall back to malloc.
32195                 (freea): New macro.
32196                 (setenv): Use freea() to free memory allocated with alloca().
32197
32198         2002-11-13  Bruno Haible  <bruno@clisp.org>
32199
32200                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
32201                 function declarations.
32202                 * unsetenv.c (unsetenv): Likewise.
32203
32204         2002-03-04  Bruno Haible  <bruno@clisp.org>
32205
32206                 Portability to AIX 4.3.3.
32207                 * unsetenv.c: New file, extracted from setenv.c.
32208                 * setenv.c: Move the unsetenv() function to unsetenv.c.
32209
32210         2001-12-20  Bruno Haible  <bruno@clisp.org>
32211
32212                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
32213                 use malloc instead. For SunOS 4.
32214
32215         2001-12-11  Bruno Haible  <bruno@clisp.org>
32216
32217                 * setenv.c: Declare alloca.
32218                 (compar_fn_t): New typedef.
32219                 (KNOWN_VALUE, STORE_VALUE): Use it.
32220
32221         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
32222         setenv.h.
32223
32224 2002-12-10  Paul Eggert  <eggert@twinsun.com>
32225
32226         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
32227         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
32228         Choose values that are less likely to collide with system fnmatch
32229         options.
32230         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
32231         defined (e.g., a pure POSIX system).
32232         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
32233         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
32234
32235 2002-12-06  Paul Eggert  <eggert@twinsun.com>
32236
32237         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
32238         a pain in practice to deal with generated m4 files.  This change
32239         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
32240
32241         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
32242         and jm-glibc-io.m4, as they are no longer a special case.
32243         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
32244         kludge and the auto-generation stuff.  Check only whether the
32245         functions are declared, not whether they exist, since older hosts
32246         that don't declare the functions can't use the optimization anyway.
32247
32248 2002-12-06  Jim Meyering  <jim@meyering.net>
32249
32250         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
32251
32252         Merge in changes from libc's misc/error.c, in preparation
32253         for the merge of gnulib's changes back into libc.
32254
32255         * lib/error.c (_): Define only if not already defined.
32256         Move definition to follow all #include directives.
32257         Include unlocked-io.h only if !_LIBC.
32258         [_LIBC]: Include <libio/libioP.h>.
32259         [USE_IN_LIBIO]: Include <libio/iolibio.h>
32260         (fflush): Tweak definition to use INTUSE.
32261         (putc): Define.
32262
32263 2002-12-05  Paul Eggert  <eggert@twinsun.com>
32264
32265         * lib/alloca.c [defined emacs]: Include "lisp.h".
32266         (xalloc_die) [defined emacs]: New macro.
32267         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
32268         [! defined emacs]: Include <xalloc.h>.
32269         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
32270         (pointer): Typedef to POINTER_TYPE *.
32271         (malloc): Remove decl; we now always use xmalloc.
32272         (alloca): Use old-style definition, since Emacs needs this.
32273         Check for arithmetic overflow when computing combined size.
32274
32275 2002-12-04  Paul Eggert  <eggert@twinsun.com>
32276
32277         Do not generate unlocked-io.h automatically, since it's easier to
32278         maintain it by hand.
32279
32280         * lib/unlocked-io.h: New file, from GNU diffutils,
32281         but with proper copyright notice and attribution.
32282         * lib/gen-uio: Remove.
32283         * lib/Makefile.am: Add copyright notice.
32284         (libfetish_a_SOURCES): Add unlocked-io.h.
32285         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
32286         (DISTCLEANFILES, io_functions): Remove macros.
32287         (EXTRA_DIST): Remove gen_uio.
32288         (unlocked-io.h): Remove rule.
32289
32290 2002-12-04  Jim Meyering  <jim@meyering.net>
32291
32292         Reflect the fact that stat.c and lstat.c are no longer generated.
32293         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
32294         (DISTCLEANFILES): Likewise.
32295         (EXTRA_DIST): Likewise.
32296         (all_local): Don't depend on stat.c or lstat.c.
32297         (stat.c, lstat.c): Remove rules.
32298         (EXTRA_DIST): Remove xstat.in.
32299
32300         * lib/xstat.in: Remove file.  Contents moved into stat.c.
32301         * lib/stat.c: New file.  Contents mostly from xstat.in.
32302         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
32303         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
32304
32305         * lib/safe-read.c: Rework so that it may serve to define safe_write,
32306         too.
32307         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
32308
32309 2002-12-03  Jim Meyering  <jim@meyering.net>
32310
32311         * lib/safe-read.c, safe-write.c: Change variable names and comments,
32312         but not semantics, to minimize the differences between these two files.
32313         (safe_read): Change comment to mention SAFE_READ_ERROR.
32314
32315         * lib/safe-read.c (IS_EINTR): Define.
32316         (safe_read): Use IS_EINTR in place of in-function cpp directives.
32317
32318 2002-12-02  Jim Meyering  <jim@meyering.net>
32319
32320         * lib/safe-read.c (EINTR): Define.
32321         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
32322         (INT_MAX): Provide fallback.
32323         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
32324
32325         * lib/safe-read.h (SAFE_READ_ERROR): Define.
32326
32327 2002-12-02  Bruno Haible  <bruno@clisp.org>
32328
32329         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
32330         Define, taken from safe-read.c.
32331         (INT_MAX): Provide fallback.
32332         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
32333         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
32334
32335         * lib/safe-read.c (EINTR): Remove definition.
32336         (safe_read): Don't use EINTR if it is absent.
32337
32338 2002-12-01  Jim Meyering  <jim@meyering.net>
32339
32340         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
32341         zero.
32342         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
32343
32344 2002-11-27  Paul Eggert  <eggert@twinsun.com>
32345
32346         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
32347         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
32348         with `if (! (value < limit)) abort ();', for readability.
32349
32350 2002-11-26  Karl Berry  <karl@gnu.org>
32351
32352         * lib/strdup.c: copy from libc again, with jim's ok.
32353         * lib/.cppi-disable: re-add strdup.c
32354
32355 2002-11-25  Karl Berry  <karl@gnu.org>
32356
32357         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
32358         instead of "strtol.c".
32359
32360 2002-11-25  Karl Berry  <karl@gnu.org>
32361
32362         * config/install-sh: update from automake for variable quoting, $0 in
32363         error msgs, etc.
32364
32365         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
32366         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
32367         entry.
32368
32369 2002-11-25  Jim Meyering  <jim@meyering.net>
32370
32371         * lib/mktime.c: Sync from libc, now that it has the latest fix.
32372
32373 2002-11-24  Karl Berry  <karl@gnu.org>
32374
32375         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
32376         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
32377
32378 2002-11-24  Jim Meyering  <jim@meyering.net>
32379
32380         Update from coreutils:
32381
32382         * lib/mktime.c: Merge in changes from libc.
32383
32384         Avoid a link-time failure on some Linux systems.
32385         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
32386         (otherwise).
32387         (__mon_yday): Declare with the STATIC attribute.
32388         (__mktime_internal): Likewise.
32389         Based on a report from Greg Schafer.
32390
32391 2002-11-23  Jim Meyering  <jim@meyering.net>
32392
32393         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
32394         Use `unsigned', not `int', as type of index.
32395
32396         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
32397
32398         * lib/fsusage.c: Remove unneeded parentheses around operands of
32399         `defined'.
32400
32401 2002-11-22  Paul Eggert  <eggert@twinsun.com>
32402
32403         * lib/quotearg.h: Allow multiple inclusion by surrounding with
32404         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
32405         so that we can be included first.
32406         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
32407         * lib/quotearg.c: Include quotearg.h immediately after config.h.
32408         No need to include stddef.h or sys/types.h any more.
32409         Surround local include files with "", not "<>".
32410         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
32411         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
32412         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
32413         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
32414         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
32415         (ISPRINT): Remove; no longer needed now that we assume C89.
32416
32417         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
32418         Preserve errno.
32419
32420         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
32421         quotearg_char): Use SIZE_MAX rather than
32422         (size_t) -1 when we are talking about "infinity".
32423
32424         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
32425
32426 2002-11-22  Paul Eggert  <eggert@twinsun.com>
32427
32428         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
32429         hint that one should use `if (! x) abort ();' rather than `assert
32430         (x);', and anyway it's one less thing to worry about configuring.
32431         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
32432         hash_rehash, hash_insert): Use abort rather than assert.
32433
32434 2002-11-22  Bruno Haible  <bruno@clisp.org>
32435
32436         * lib/safe-read.h: Assume C89. Add comments.
32437         (safe_read): Change return type to size_t.
32438         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
32439         byte counts > SSIZE_MAX correctly.
32440         * lib/safe-write.h: New file.
32441         * lib/safe-write.c: New file.
32442         * lib/full-read.h: New file.
32443         * lib/full-read.c: New file.
32444         * lib/full-write.h: Assume C89. Add comments.
32445         * lib/full-write.c: Include safe-write.h.
32446         (full_write): Rewritten to use safe_write.
32447         Suggested by Jim Meyering and Paul Eggert.
32448
32449 2002-11-21  Jim Meyering  <jim@meyering.net>
32450
32451         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
32452
32453         Merge in changes from the coreutils.
32454
32455         2002-09-25  Paul Eggert  <eggert@twinsun.com>
32456         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
32457         <stdint.h>.
32458         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
32459         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
32460         int.  Work more efficiently if X is the same width as uintmax_t.
32461         Do not compare X to -1, to avoid bogus compiler warning.
32462         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
32463         Don't assume that f_frsize and f_bsize are the same type.
32464
32465         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
32466         warning on FreeBSD.
32467
32468         * lib/makepath.c (make_path): Restore umask *before* creating the final
32469         component.
32470         (make_path): Minor reformatting.
32471
32472         * lib/xmalloc.c: Adjust to work with new autoconf macros,
32473         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
32474         HAVE_MALLOC/HAVE_REALLOC.
32475
32476         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
32477         dummy ones.  At least on GNU/Linux systems, `auto' means something
32478         else.
32479         From Michael Stone.
32480
32481 2002-11-21  Bruno Haible  <bruno@clisp.org>
32482
32483         Remove case insensitive option matching.
32484         * lib/argmatch.h (argcasematch): Remove declaration.
32485         (ARGCASEMATCH): Remove macro.
32486         (__xargmatch_internal): Remove case_sensitive argument.
32487         (XARGMATCH): Update.
32488         (XARGCASEMATCH): Remove macro.
32489         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
32490         case_sensitive argument.
32491         (argcasematch): Remove function.
32492         (__xargmatch_internal): Remove case_sensitive argument.
32493         (main): Use XARGMATCH instead of XARGCASEMATCH.
32494
32495         * lib/xmalloc.c: Change compile-time error message. Add comment about
32496         required autoconf version.
32497
32498 2002-11-20  Paul Eggert  <eggert@twinsun.com>
32499
32500         Merge argmatch cleanups from Bison.  Assume C89.
32501
32502         * lib/argmatch.c: Include config.h here, not in argmatch.h.
32503         Include stdlib.h, for EXIT_FAILURE.
32504         Always include <string.h>, since we assume C89.
32505         (EXIT_FAILURE): Remove pre-C89 bug workaround.
32506         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
32507         Include <stddef.h> instead, since it's all we need for size_t.
32508         (PARAMS): Remove.  All uses removed.
32509         (ARRAY_CARDINALITY): Do not bother to #undef.
32510         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
32511         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
32512         Remove unnecessary parentheses.
32513         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
32514         Insert necessary parentheses.
32515         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
32516         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
32517
32518 2002-11-19  Bruno Haible  <bruno@clisp.org>
32519
32520         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
32521         * lib/mbswidth.h: Include <stddef.h>, for size_t.
32522
32523         * lib/mbswidth.h (PARAMS): Remove macro.
32524         (mbswidth, mbsnwidth): Use ANSI C function declarations.
32525         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
32526
32527         * lib/gcd.h (PARAMS): Remove macro.
32528         (gcd): Use ANSI C function declarations.
32529         * lib/gcd.c (gcd): Likewise.
32530
32531 2002-11-15  Bruno Haible  <bruno@clisp.org>
32532
32533         * lib/strcspn.c: Include <stddef.h>.
32534         (strcspn): Use ANSI C function declaration. Change return type to
32535         size_t. Use NULL.
32536         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
32537         (strpbrk): Use NULL.
32538         * lib/strpbrk.h (PARAMS): Remove macro.
32539         (strpbrk): Use ANSI C function declaration.
32540         * lib/strstr.c: Don't include <sys/types.h>.
32541         * lib/strstr.h (PARAMS): Remove macro.
32542         (strstr): Use ANSI C function declarations.
32543
32544 2002-11-14  Karl Berry  <karl@gnu.org>
32545
32546         * config/mkinstalldirs: `do' on separate line, instead of
32547         `for var; do'.
32548
32549 2002-11-06  Bruno Haible  <bruno@clisp.org>
32550
32551         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
32552         * lib/gcd.c (gcd): Likewise.
32553
32554 2002-11-05  Bruno Haible  <bruno@clisp.org>
32555
32556         * lib/gcd.h: New file, from gettext-0.11.5.
32557         * lib/gcd.c: New file, from gettext-0.11.5.
32558
32559 2002-11-05  Bruno Haible  <bruno@clisp.org>
32560
32561         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32562         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32563         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32564         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
32565
32566         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
32567         <libintl.h>.
32568         * lib/makepath.c: Include gettext.h instead of <locale.h> and
32569         <libintl.h>.
32570
32571         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
32572         * lib/human.c: Include gettext.h instead of <libintl.h>.
32573         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
32574         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
32575         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
32576         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
32577         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
32578         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
32579         (textdomain): Remove definition.
32580         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
32581
32582         * lib/long-options.c: Remove include of <libintl.h> and definition of
32583         _.
32584         * lib/same.c: Remove include of <libintl.h> and definition of _.
32585
32586 2002-11-04  Owen Taylor  <otaylor@redhat.com>
32587
32588         * lib/config.charset: A few additions for Solaris.
32589
32590 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
32591
32592         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
32593         * lib/localcharset.c (locale_charset): Declare as extern "C".
32594
32595 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
32596
32597         * lib/config.charset: msdos in uk_UA uses CP1125.
32598
32599 2002-11-04  Bruno Haible  <bruno@clisp.org>
32600
32601         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
32602         * lib/strcase.h: New file, from GNU gettext-0.11.5.
32603         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
32604         * lib/strstr.h: New file, from GNU gettext-0.11.5.
32605         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
32606
32607 2002-11-04  Bruno Haible  <bruno@clisp.org>
32608
32609         * lib/localcharset.c (locale_charset): Don't return an empty string.
32610
32611 2002-11-04  Bruno Haible  <bruno@clisp.org>
32612
32613         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
32614         aliases.
32615
32616 2002-11-04  Bruno Haible  <bruno@clisp.org>
32617
32618         * lib/config.charset: Update for newest glibc. Add canonical names
32619         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
32620
32621 2002-11-04  Bruno Haible  <bruno@clisp.org>
32622
32623         * lib/config.charset: Add support for NetBSD.
32624
32625 2002-11-04  Bruno Haible  <bruno@clisp.org>
32626
32627         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
32628
32629 2002-11-01  Bruno Haible  <bruno@clisp.org>
32630
32631         * configure.in: Add AC_CONFIG_AUX_DIR call.
32632         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
32633         test/Makefile.
32634         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
32635
32636 2002-09-28  Karl Berry  <karl@gnu.org>
32637
32638         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
32639         installed automake until the next release, since changes have been
32640         made.
32641
32642 2002-09-25  Karl Berry  <karl@gnu.org>
32643
32644         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
32645         * lib/getopt*: copy from libc/posix.
32646         * lib/gettext.h: copy from gettext.
32647         * lib/.cppi-disable: add strdup.c, gettext.h.
32648
32649 2002-09-25  Karl Berry  <karl@gnu.org>
32650
32651         * config/srclist.txt: enable gettext.h check.
32652         * config/config.{guess,sub}: update from prep.
32653         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
32654                 from automake 1.6.3.
32655         See srclist*.
32656
32657 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
32658
32659         * regex.c (PATFETCH): Remove the translating fetch.
32660         (PATFETCH_RAW): Rename to PATFETCH.
32661         (set_image_of_range): New fun.
32662         (SET_RANGE_TABLE_WORK_AREA): Use it.
32663         (regex_compile): Don't translate the pattern chars so eagerly.
32664         Only do it when inserting an `exactn' bytecode or when handling
32665         a char-range.
32666         (mutually_exclusive_p): Avoid empty statement.
32667
32668 2002-07-06  Jim Meyering  <meyering@lucent.com>
32669
32670         * m4/README: Don't mention Makefile.am.in.
32671         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
32672
32673 2002-07-01  Jim Meyering  <meyering@lucent.com>
32674
32675         * lib/c-stack.c: Include sys/time.h.
32676         From Volker Borchert.
32677
32678 2002-06-26  Paul Eggert  <eggert@twinsun.com>
32679
32680         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
32681
32682 2002-06-26  Paul Eggert  <eggert@twinsun.com>
32683
32684         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
32685         New macro.  Use it uniformly instead of
32686         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
32687         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
32688         reported by Vin Shelton.
32689
32690 2002-06-22  Paul Eggert  <eggert@twinsun.com>
32691
32692         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
32693         Do not assume SA_SIGINFO behavior.
32694         Bug reported by Jim Meyering on NetBSD 1.5.2.
32695
32696 2002-06-22  Jim Meyering  <meyering@lucent.com>
32697
32698         * m4/c-stack.m4: New file, from diffutils-2.8.2.
32699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
32700
32701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
32702         now that configure.ac uses AC_GNU_SOURCE.
32703         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
32704         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
32705
32706         Update to latest tools.  Suggestions from Paul Eggert.
32707         * m4/stdbool.m4: New file, from diffutils-2.8.2.
32708         * m4/gnu-source.m4: Update from diffutils-2.8.2.
32709         * m4/fnmatch.m4: Likewise.
32710         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
32711         to AC_HEADER_STDBOOL
32712
32713 2002-06-22  Jim Meyering  <meyering@lucent.com>
32714
32715         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
32716         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
32717
32718 2002-06-22  Jim Meyering  <meyering@lucent.com>
32719
32720         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
32721
32722         * lib/exitfail.c, exitfail.h: Likewise.
32723         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
32724
32725         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
32726         of fnmatch.h.
32727         (EXTRA_DIST): Add fnmatch_loop.c.
32728         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
32729
32730         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
32731         * lib/fnmatch.c: Update from diffutils-2.8.2.
32732         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
32733         * lib/fnmatch.h: Remove file.
32734
32735 2002-06-21  Jim Meyering  <meyering@lucent.com>
32736
32737         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
32738         * m4/mbrtowc.m4: Likewise.
32739
32740         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
32741         * m4/mbswidth.m4: Reflect name change:
32742         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
32743         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
32744
32745         * m4/lib-link.m4: Update from gettext-0.11.2.
32746         * m4/gettext.m4: Likewise.
32747
32748         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
32749         From Alfred M. Szmidt.
32750
32751 2002-06-18  Paul Eggert  <eggert@twinsun.com>
32752
32753         * lib/file-type.h: Report an error if neither S_ISREG nor
32754         S_IFREG is defined, instead of using a test specific to glibc
32755         2.2.  This should be safe, since POSIX requires S_ISREG and
32756         Unix Version 7 had S_IFREG.  We don't need to check for
32757         <sys/types.h> since we don't use any symbols that it defines.
32758
32759 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
32760
32761         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
32762         $@-t, so that each temporary file name is unique and valid in the first
32763         8 characters, for operation under DOS.
32764
32765 2002-06-15  Paul Eggert  <eggert@twinsun.com>
32766
32767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
32768
32769 2002-06-15  Jim Meyering  <meyering@lucent.com>
32770
32771         Work even with DJGPP 2.03, which lacks support for symlinks.
32772         From Richard Dawe.
32773         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
32774         is defined.
32775         * lib/lchown.c (S_ISLNK): Likewise.
32776
32777 2002-06-15  Jim Meyering  <meyering@lucent.com>
32778
32779         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
32780         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
32781         have been included before this file.
32782
32783 2002-06-14  Jim Meyering  <meyering@lucent.com>
32784
32785         * lib/file-type.h: Use the version from diffutils-2.8.2.
32786         * lib/file-type.c: Likewise.
32787
32788 2002-06-07  Jim Meyering  <meyering@lucent.com>
32789
32790         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
32791         They're needed at least for NetBSD 1.5.2.
32792         ($statxfs_includes): Include those same headers.
32793         ($statxfs_includes): Include sys/vfs.h if available.
32794         ($statxfs_includes): Likewise for sys/statvfs.h.
32795         Check for the following members in both structs statfs and statvfs:
32796         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
32797
32798 2002-06-01  Jim Meyering  <meyering@lucent.com>
32799
32800         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
32801         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
32802
32803 2002-05-28  Jim Meyering  <meyering@lucent.com>
32804
32805         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
32806         Reported by Volker Borchert.
32807
32808 2002-05-27  Jim Meyering  <meyering@lucent.com>
32809
32810         Fix a problem seen only on nonconforming systems whereby ls.c's
32811         use of localtime, and then of gettimeofday would cause trouble:
32812         the localtime call used to initialize rpl_gettimeofday's save
32813         mechanism would clobber ls's current local time information so
32814         that in any long listing the first file would always be listed
32815         with date 1970-01-01.  Analysis by Volker Borchert.
32816
32817         * lib/gettimeofday.c (localtime): Undefine.
32818         (rpl_localtime): New function.
32819
32820 2002-05-27  Jim Meyering  <meyering@lucent.com>
32821
32822         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
32823         localtime.
32824
32825         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
32826         use the replacement function; it wouldn't resolve at link time.
32827         Reported by Volker Borchert.
32828
32829 2002-05-22  Jim Meyering  <meyering@lucent.com>
32830
32831         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
32832         file-type.h.
32833         * lib/file-type.h: New file.
32834         * lib/file-type.c (file_type): New file/function.  Extracted from
32835         diffutils.
32836
32837 2002-04-30  Jim Meyering  <meyering@lucent.com>
32838
32839         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
32840
32841 2002-04-29  Paul Eggert  <eggert@twinsun.com>
32842
32843         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
32844
32845 2002-04-29  Paul Eggert  <eggert@twinsun.com>
32846
32847         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
32848         Do not check for alloca.h (no longer used) or stdbool.h (was never
32849         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
32850
32851 2002-04-29  Paul Eggert  <eggert@twinsun.com>
32852
32853         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
32854
32855 2002-04-29  Jim Meyering  <meyering@lucent.com>
32856
32857         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
32858         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
32859         Use AC_FUNC_STRNLEN here instead.
32860
32861         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
32862         With autoconf-2.53a, it's part of AC_PROG_CC.
32863
32864 2002-04-28  Paul Eggert  <eggert@twinsun.com>
32865
32866         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
32867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
32868
32869 2002-04-28  Paul Eggert  <eggert@twinsun.com>
32870
32871         * lib/sig2str.h, lib/sig2str.c: New files.
32872         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
32873
32874 2002-04-28  Paul Eggert  <eggert@twinsun.com>
32875
32876         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
32877         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
32878         of 127, since 64 is the largest conceivable number for ancient
32879         nonstandard hosts.
32880         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
32881
32882 2002-04-28  Jim Meyering  <meyering@lucent.com>
32883
32884         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
32885
32886 2002-04-24  Jim Meyering  <meyering@lucent.com>
32887
32888         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
32889         (jm_PREREQ): Use it.
32890
32891         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
32892         mach/mach.h fcntl.h.
32893         Check for this function: setlocale.
32894
32895 2002-04-24  Jim Meyering  <meyering@lucent.com>
32896
32897         * lib/gettext.h: New file, from Gettext.
32898         * lib/Makefile.am (INCLUDES): Remove -I../intl.
32899         (libfetish_a_SOURCES): Add gettext.h.
32900
32901 2002-04-16  Jim Meyering  <meyering@lucent.com>
32902
32903         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
32904         ut_pid, ut_id, ut_exit.
32905
32906 2002-04-16  Jim Meyering  <meyering@lucent.com>
32907
32908         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
32909         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
32910         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
32911
32912 2002-04-12  Jim Meyering  <meyering@lucent.com>
32913
32914         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
32915         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
32916         existence of the getmntinfo function.  Needed for Darwin 5.3.
32917
32918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
32919         This is necessary at least on Darwin 5.3.
32920
32921         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
32922         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
32923         strnlen.o in the library, and that makes some versions of ranlib
32924         object.
32925
32926 2002-04-12  Jim Meyering  <meyering@lucent.com>
32927
32928         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
32929
32930 2002-04-09  Jim Meyering  <meyering@lucent.com>
32931
32932         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
32933         to be more precise.  Rather than saying we're checking whether the
32934         function `works', say what we're testing.
32935         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
32936         Reported by Bruno Haible.
32937
32938 2002-03-10  Jim Meyering  <meyering@lucent.com>
32939
32940         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
32941         Suggestion from Santiago Vila.
32942
32943 2002-03-08  Jim Meyering  <meyering@lucent.com>
32944
32945         * lib/rename.c: Mention that this wrapper is needed also on
32946         mips-dec-ultrix4.4 systems.
32947
32948 2002-03-02  Jim Meyering  <meyering@lucent.com>
32949
32950         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
32951         not HAVE_CLOCK_SETTIME.
32952
32953 2002-02-27  Paul Eggert  <eggert@twinsun.com>
32954
32955         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
32956         Check for clock_settime.
32957
32958 2002-02-27  Paul Eggert  <eggert@twinsun.com>
32959
32960         * lib/nanosleep.h: Rename to....
32961         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
32962
32963         * lib/gettime.c: New file.
32964         * lib/settime.c: New file.
32965         * lib/stime.c: Remove.
32966
32967         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
32968         timespec.h.  Remove nanosleep.h.
32969
32970 2002-02-25  Paul Eggert  <eggert@twinsun.com>
32971
32972         * m4/acl.m4: New file.
32973         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
32974         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
32975
32976 2002-02-25  Paul Eggert  <eggert@twinsun.com>
32977
32978         * lib/acl.c, lib/acl.h: New files.
32979         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
32980
32981 2002-02-24  Jim Meyering  <meyering@lucent.com>
32982
32983         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
32984         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
32985         cause trouble.  Reported by Nelson Beebe.
32986
32987 2002-02-23  Paul Eggert  <eggert@twinsun.com>
32988
32989         * lib/path-concat.c (xpath_concat): Reorder code to pacify
32990         compilers that don't know that xalloc_die never returns.
32991
32992 2002-02-20  Jim Meyering  <meyering@lucent.com>
32993
32994         * lib/getdate.c: Regenerate using bison-1.33.
32995
32996 2002-02-17  Jim Meyering  <meyering@lucent.com>
32997
32998         * config/config.guess (main): Don't use `head -1'; it's no longer
32999         portable. Use `sed 1q' instead.
33000
33001 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
33002
33003         * m4/codeset.m4: Upgrade to gettext-0.11.
33004         * m4/gettext.m4: Upgrade to gettext-0.11.
33005         * m4/glibc21.m4: Upgrade to gettext-0.11.
33006         * m4/iconv.m4: Upgrade to gettext-0.11.
33007         * m4/isc-posix.m4: Upgrade to gettext-0.11.
33008         * m4/lcmessage.m4: Upgrade to gettext-0.11.
33009         * m4/lib-ld.m4: New file, from gettext-0.11.
33010         * m4/lib-link.m4: New file, from gettext-0.11.
33011         * m4/lib-prefix.m4: New file, from gettext-0.11.
33012         * m4/progtest.m4: Upgrade to gettext-0.11.
33013
33014 2002-02-15  Paul Eggert  <eggert@twinsun.com>
33015
33016         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
33017         (jm_PREREQ): Use it.
33018
33019 2002-02-15  Paul Eggert  <eggert@twinsun.com>
33020
33021         * lib/posixver.c, lib/posixver.h: New files.
33022         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
33023
33024 2002-02-02  Paul Eggert  <eggert@twinsun.com>
33025             Bruno Haible  <bruno@clisp.org>
33026
33027         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
33028         (fwrite_success_callback): New declaration.
33029         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
33030         print_unicode_char. Call failure callback instead of error.
33031         (fwrite_success_callback): New function.
33032         (exit_failure_callback): New function.
33033         (fallback_failure_callback): New function.
33034         (print_unicode_char): Call unicode_to_mb.
33035
33036 2002-01-26  Jim Meyering  <meyering@lucent.com>
33037
33038         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
33039         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
33040
33041 2002-01-26  Jim Meyering  <meyering@lucent.com>
33042
33043         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
33044
33045 2002-01-22  Paul Eggert  <eggert@twinsun.com>
33046
33047         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
33048
33049 2002-01-22  Jim Meyering  <meyering@lucent.com>
33050
33051         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
33052         Otherwise, some versions of automake would omit the rule that makes
33053         Makefile from Makefile.in.
33054
33055 2002-01-21  Paul Eggert  <eggert@twinsun.com>
33056
33057         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
33058         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
33059         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
33060         (memcoll): Set errno to zero if there is no error.
33061
33062         * lib/quotearg.c (quotearg_buffer_restyled):
33063         Fix bug with quoting buffers containing NUL when backslashing escapes.
33064         This bug was exposed by the other changes in this patch.
33065         (quotearg_n_options): New arg ARGSIZE.
33066         All callers changed.
33067         (quoting_options_from_style): New function.
33068         (quotearg_n_style): Use it.
33069         (quotearg_n_style_mem): New function.
33070
33071         * lib/quotearg.h (quotearg_n_style_mem): New function.
33072
33073 2002-01-19  Jim Meyering  <meyering@lucent.com>
33074
33075         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
33076         Remove useless quotes: DF_PROG="df".
33077         * m4/strnlen.m4: New file.
33078
33079 2002-01-16  Paul Eggert  <eggert@twinsun.com>
33080
33081         * lib/backupfile.c (ISDIGIT): Comment fix.
33082         * lib/getdate.y (ISDIGIT): Likewise.
33083         * lib/posixtm.c (ISDIGIT, year): Likewise.
33084         * lib/strverscmp.c (ISDIGIT): Likewise.
33085         * lib/userspec.c (ISDIGIT): Likewise.
33086
33087 2002-01-16  Jim Meyering  <meyering@lucent.com>
33088
33089         * lib/getdate.y: Add three semicolons, each just before a closing
33090         brace. Bison (as of version 1.31) no longer papers over that mistake.
33091
33092 2002-01-05  Jim Meyering  <meyering@lucent.com>
33093
33094         * lib/version-etc.c (version_etc_copyright): Update copyright year.
33095
33096 2001-12-19  Paul Eggert  <eggert@twinsun.com>
33097
33098         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
33099         not silently exit merely because the output buffer happens to
33100         have nothing pending.
33101
33102 2001-12-18  Paul Eggert  <eggert@twinsun.com>
33103
33104         See the big note in ../ChangeLog.
33105         * lib/human.c (suffixes): Prefer K to k for 1024.
33106         (generate_suffix_backwards): New function.
33107         (human_readable_inexact): Use it.
33108         * lib/xstrtol.c (__xstrtol): If there is no number but there
33109         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
33110         Accept 'K' as well as 'k'.
33111
33112 2001-12-15  Jim Meyering  <meyering@lucent.com>
33113
33114         * lib/regex.h (__restrict_arr): Update from libc.
33115
33116         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
33117         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
33118         (STREQ): Define.
33119
33120 2001-12-14  Jim Meyering  <meyering@lucent.com>
33121
33122         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
33123         Suggestion from Bruno Haible.
33124
33125 2001-12-10  Jim Meyering  <meyering@lucent.com>
33126
33127         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
33128         xrealloc, Instead, include "xalloc.h".
33129         (initbuffer): Don't cast xmalloc return value to char*.
33130         (readline): Reword comment.
33131         Don't cast xrealloc return value to char*
33132         Return NULL, not 0.
33133
33134 2001-12-09  Jim Meyering  <meyering@lucent.com>
33135
33136         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
33137         about `signed and unsigned type in conditional expression'.
33138         * lib/posixtm.c (posix_time_parse): Likewise.
33139
33140         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
33141
33142         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
33143         to avoid a pedantic warning.
33144
33145         * lib/getstr.c: Don't include assert.h.
33146         (getstr): Remove warning-evoking assertions.
33147         Return -1 if offset parameter is out of bounds.
33148         Change the type of a local from int to size_t.
33149
33150         * lib/strftime.c (my_strftime_localtime_r): Include this function
33151         definition in the `#if ! HAVE_TM_GMTOFF' block.
33152
33153         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
33154         Include xalloc.h instead.
33155
33156 2001-12-02  Jim Meyering  <meyering@lucent.com>
33157
33158         * lib/tempname.c: Don't declare getenv, thus reverting the change of
33159         2001-11-18.  It's no longer necessary, now that stdlib.h is always
33160         included.
33161
33162         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
33163         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
33164
33165 2001-11-30  Akim Demaille  <akim@epita.fr>
33166
33167         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
33168         before being defined.
33169
33170 2001-11-27  Paul Eggert  <eggert@twinsun.com>
33171
33172         * lib/quotearg.h (quotearg_n, quotearg_n_style):
33173         First arg is int, not unsigned.
33174         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
33175         (SIZE_MAX, UINT_MAX): New macros.
33176         (quotearg_n_options): Abort if N is negative.
33177         Avoid overflow check on hosts where size_t is 64 bits and int
33178         is 32 bits, as overflow is impossible there.
33179         Fix off-by-one typo that caused unnecessary reallocation.
33180
33181 2001-11-27  Jim Meyering  <meyering@lucent.com>
33182
33183         * lib/tempname.c: Merge with version from libc.
33184         * lib/regex.c: Likewise.
33185
33186         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
33187         systems for which STDC_HEADERS is 0, it was not included, resulting in
33188         a warning about an integer-to-pointer conversion problem with getenv.
33189         Reported by Volker Borchert.
33190
33191 2001-11-26  Jim Meyering  <meyering@lucent.com>
33192
33193         * lib/gtod.h: Remove file.
33194         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
33195         * lib/gettimeofday.c: Don't include gtod.h.
33196         (GTOD_init): Remove function.
33197         (rpl_gettimeofday): Do its job here instead, rather than aborting.
33198         Suggestion from Volker Borchert.
33199
33200 2001-11-23  Jim Meyering  <meyering@lucent.com>
33201
33202         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
33203         it.
33204         * lib/hash.c (struct hash_table): Define it here instead.
33205
33206 2001-11-22  Jim Meyering  <meyering@lucent.com>
33207
33208         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
33209
33210 2001-11-20  Jim Meyering  <meyering@lucent.com>
33211
33212         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
33213         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
33214
33215 2001-11-19  Jim Meyering  <meyering@lucent.com>
33216
33217         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
33218         directory.  Use "conftestXXXXXX" as the template.
33219         Suggestion from Paul Eggert.
33220
33221         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
33222         immediately, so the test doesn't mistakenly hit the max-open-files
33223         limit.
33224
33225 2001-11-18  Paul Eggert  <eggert@twinsun.com>
33226
33227         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
33228         (TEMPORARIES): New macro.
33229         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
33230         removes an artificial limitation (e.g. HP-UX 10.20, where
33231         TMP_MAX is 17576).
33232
33233 2001-11-18  Jim Meyering  <meyering@lucent.com>
33234
33235         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
33236
33237 2001-11-18  Jim Meyering  <meyering@lucent.com>
33238
33239         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
33240         on SunOS 4.
33241
33242         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
33243         files will be created before anything else.
33244
33245 2001-11-17  Paul Eggert  <eggert@twinsun.com>
33246
33247         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
33248         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
33249
33250 2001-11-17  Jim Meyering  <meyering@lucent.com>
33251
33252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
33253         Prompted by a report from Bob Proulx.
33254
33255         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
33256         Instead, require UTILS_FUNC_MKSTEMP.
33257
33258 2001-11-17  Jim Meyering  <meyering@lucent.com>
33259
33260         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
33261         Now, that's done as part of AC_FUNC_STRTOD.
33262
33263 2001-11-17  Jim Meyering  <meyering@lucent.com>
33264
33265         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
33266         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
33267         rather than group writable.  Patch by Juan F. Codagnone.
33268
33269         * lib/readtokens.c: Remove explicit declarations of xmalloc and
33270         xrealloc, Instead, include "xalloc.h".
33271
33272         * lib/mountlist.c: Include unlocked-io.h after all system headers.
33273         Remove explicit declarations of xmalloc, xrealloc,
33274         and xstrdup.  Instead, include "xalloc.h".
33275
33276         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
33277         unlocked-io.h.
33278         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
33279         Likewise.
33280         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
33281
33282         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
33283         Reported by Padraig Brady.
33284
33285         * lib/mkstemp.c: #undef mkstemp.
33286         Include config.h.
33287         (rpl_mkstemp): Rename from mkstemp.
33288         Protoize.
33289
33290 2001-11-16  Jim Meyering  <meyering@lucent.com>
33291
33292         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
33293         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
33294         determine the amount of total physical memory, use pstat_getstatic.
33295         HPUX-11 doesn't define _SC_PHYS_PAGES.
33296         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
33297         If sysconf couldn't be used to determine the amount of available
33298         physical memory, use both pstat_getstatic and pstat_getdynamic.
33299         Based on a patch from Bob Proulx.
33300
33301 2001-11-10  Jim Meyering  <meyering@lucent.com>
33302
33303         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
33304         (jm_PREREQ): Use it.
33305
33306 2001-11-09  Jim Meyering  <meyering@lucent.com>
33307
33308         * m4/jm-macros.m4: Require autoconf-2.52f.
33309         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
33310         Use these AC_-prefixed names, not the AM_-prefixed ones.
33311
33312         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
33313
33314 2001-11-05  Jim Meyering  <meyering@lucent.com>
33315
33316         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
33317
33318 2001-11-04  Jim Meyering  <meyering@lucent.com>
33319
33320         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
33321         $DEFS.
33322
33323 2001-11-03  Jim Meyering  <meyering@lucent.com>
33324
33325         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
33326         of AC_DEFUN.
33327
33328         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
33329         know the name of the variable in the macro definition.
33330
33331 2001-11-03  Jim Meyering  <meyering@lucent.com>
33332
33333         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
33334         in argmatch_to_argument call.
33335
33336         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
33337         argument.
33338
33339         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
33340         e.g., a fault due to an attempt to free a NULL pointer.
33341
33342 2001-11-01  Jim Meyering  <meyering@lucent.com>
33343
33344         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
33345         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
33346
33347 2001-11-01  Jim Meyering  <meyering@lucent.com>
33348
33349         * lib/dirfd.c, lib/dirfd.h: New files.
33350         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
33351
33352         * lib/hash.c (hash_print) [TESTING]: Clean up.
33353
33354 2001-10-22  Paul Eggert  <eggert@twinsun.com>
33355
33356         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
33357         to avoid a warning if -Wall.
33358
33359 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
33360
33361         * README: New file
33362         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
33363         (per RMS's instructions, this is now the canonical source)
33364         * lgpl/, gpl/: New directories.
33365
33366 2001-10-21  Paul Eggert  <eggert@twinsun.com>
33367
33368         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
33369
33370 2001-10-21  Jim Meyering  <meyering@lucent.com>
33371
33372         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
33373         this code would end up calling gettext even in packages built
33374         with --disable-nls.
33375         * lib/getopt.c (_): Likewise.
33376         * lib/regex.c (_): Likewise.
33377
33378 2001-10-20  Paul Eggert  <eggert@twinsun.com>
33379
33380         * m4/error.m4 (jm_PREREQ_ERROR):
33381         Do not invoke AC_CHECK_FUNCS with strerror_r, as
33382         AC_FUNC_STRERROR_R does that.
33383         Check for strerror declaration.
33384
33385         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
33386         are supposed to have them these days.
33387         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
33388         Merge changes from latest Autoconf CVS.
33389         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
33390         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
33391         POSIX decided to standardize on the int flavor of strerror_r.
33392
33393 2001-10-20  Paul Eggert  <eggert@twinsun.com>
33394
33395         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
33396         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
33397         Use strerror_r that is only a macro, even if it is not a function.
33398         (strerror): Check for HAVE_DECL_STRERROR before declaring.
33399         (private_strerror): Use prototypes, not old-style function definition.
33400         (print_errno_message): New function.
33401         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
33402         char*-flavored one.
33403         (error_tail, error, error_at_line): Use it.
33404
33405 2001-10-11  Jim Meyering  <meyering@lucent.com>
33406
33407         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
33408         and quote_n (1, ... to avoid clobbering a buffer.
33409
33410 2001-10-05  Jim Meyering  <meyering@lucent.com>
33411
33412         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
33413         hash-pjw.h.
33414         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
33415         * lib/hash-pjw.h: New file.
33416
33417 2001-09-30  Jim Meyering  <meyering@lucent.com>
33418
33419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
33420         `struct fsstat' has the `f_fstypename' member.
33421         Use that to define FS_TYPE, which is now used to make
33422         the getfsstat link test tighter.
33423
33424 2001-09-30  Jim Meyering  <meyering@lucent.com>
33425
33426         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
33427         Include <sys/ucred.h>, for Apple Darwin.
33428         Include sys/mount.h and sys/fs_types.h only if available.
33429         (FS_TYPE): Define.
33430         (read_filesystem_list): Use FS_TYPE.
33431
33432 2001-09-29  Paul Eggert  <eggert@twinsun.com>
33433
33434         * lib/exclude.c (excluded_filename): 0 -> false, since it's
33435         a boolean context.
33436
33437 2001-09-29  Jim Meyering  <meyering@lucent.com>
33438
33439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
33440         [one-argument getmntent function]): Include stdio.h before mntent.h.
33441         SunOS 4.1.x needs it for the declaration of `FILE'.
33442         Patch by Volker Borchert.
33443
33444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
33445         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
33446         sys/fs_types.h, and make the link-test for getfsstat guard #include
33447         directives with appropriate #if HAVE_*_H tests so that we can
33448         detect getfsstat on Apple Darwin1.3.7 systems.
33449         Reported by Nelson Beebe.
33450         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
33451
33452 2001-09-28  Paul Eggert  <eggert@twinsun.com>
33453
33454         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
33455         #defines strtoimax.  Also treat the other strto* functions
33456         like strtoimax.
33457
33458         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
33459         Check for strtoul and strtoumax,
33460         as those declarations are made even in the signed case.
33461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
33462         Likewise, for strtol and strtoimax.
33463
33464 2001-09-28  Paul Eggert  <eggert@twinsun.com>
33465
33466         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
33467         #defines strtoimax.  Also treat the other strto* functions
33468         like strtoimax.
33469
33470         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
33471         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
33472         (strtoimax, strtoumax): Do not declare if already defined as a macro.
33473
33474 2001-09-26  Jim Meyering  <meyering@lucent.com>
33475
33476         Most macros in unlocked-io.h had the wrong number of arguments.
33477         * lib/gen-uio: New script.
33478         (USE_UNLOCKED_IO): Define to 1 if not already defined.
33479         * lib/unlocked-io.hin: Remove file.
33480         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
33481         rather than trying to embed it here.
33482         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
33483         Reported by Padraig Brady.
33484
33485 2001-09-25  Volker Borchert  <bt@teknon.de>
33486
33487         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
33488         `result'.
33489
33490 2001-09-24  Jim Meyering  <meyering@lucent.com>
33491
33492         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
33493
33494 2001-09-23  Jim Meyering  <meyering@lucent.com>
33495
33496         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
33497         instead of the mere test for existence of mntent.h.  The latter
33498         would get a false-positive on AIX 3.4 systems.
33499         In the outer getmntent if-block, don't die if neither of the getmntent
33500         tests succeeds.  Instead, just fall through and continue with the
33501         remaining tests.
33502
33503 2001-09-23  Jim Meyering  <meyering@lucent.com>
33504
33505         * lib/mountlist.c: Remove useless parentheses in #if directives.
33506         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
33507         the deprecated MOUNTED symbol is no longer defined in mntent.h.
33508
33509 2001-09-22  Jim Meyering  <meyering@lucent.com>
33510
33511         * m4/gettext.m4: New file.  From gettext.
33512         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
33513         * m4/progtest.m4: Likewise
33514         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
33515         * m4/glibc21.m4: Likewise.
33516
33517         * m4/libintl.m4: Remove.  No longer used.
33518
33519 2001-09-22  Jim Meyering  <meyering@lucent.com>
33520
33521         * lib/localcharset.c: Update from latest gettext.
33522         * lib/config.charset: Likewise.
33523
33524 2001-09-20  Jim Meyering  <meyering@lucent.com>
33525
33526         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
33527         strtoimax.
33528         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
33529         strtoumax.
33530
33531 2001-09-20  Jim Meyering  <meyering@lucent.com>
33532
33533         * lib/xstrtol.c (strtoimax): Guard declaration with
33534         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
33535         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
33536         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
33537         (strtoumax): Likewise, for completeness (it wasn't necessary).
33538
33539 2001-09-17  Paul Eggert  <eggert@twinsun.com>
33540
33541         * lib/strtoimax.c (HAVE_LONG_LONG):
33542         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
33543         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
33544         to work around bug in IBM C compiler.
33545
33546 2001-09-17  Jim Meyering  <meyering@lucent.com>
33547
33548         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
33549         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
33550         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
33551         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
33552         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
33553         whenever the right hand side need not be expanded by the shell.
33554
33555 2001-09-16  Paul Eggert  <eggert@twinsun.com>
33556
33557         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
33558         library.  It's not correct, as some older glibcs are buggy.
33559         fnmatch wasn't fixed until glibc 2.2.
33560
33561         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
33562         special shell magic here.
33563
33564 2001-09-16  Jim Meyering  <meyering@lucent.com>
33565
33566         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
33567         * m4/jm-macros.m4: Require it.
33568
33569 2001-09-16  Jim Meyering  <meyering@lucent.com>
33570
33571         * lib/mkdir.c: New file.
33572
33573 2001-09-15  Jim Meyering  <meyering@lucent.com>
33574
33575         * m4/jm-macros.m4: Check for help2man.
33576
33577 2001-09-11  Jim Meyering  <meyering@lucent.com>
33578
33579         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
33580         The body, by Paul Eggert, was moved here from configure.in.
33581         * m4/jm-macros.m4: Require UTILS_HOST_OS.
33582
33583 2001-09-04  Paul Eggert  <eggert@twinsun.com>
33584
33585         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
33586         (jm_PREREQ): Use it.
33587
33588 2001-09-04  Paul Eggert  <eggert@twinsun.com>
33589
33590         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
33591         Use ssize_t, not int, to store result of readlink.
33592         Check for ssize_t overflow as well as size_t overflow,
33593         as POSIX says the result of readlink is implementation-defined
33594         when ssize_t overflows.
33595         Remove unnecessary cast to char*.
33596         Use free+malloc instead of realloc, as the storage doesn't need
33597         to be preserved and it's clearer and can be more efficient that way.
33598         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
33599         * lib/xreadlink.h (xreadlink): Update prototype.
33600
33601 2001-09-04  Paul Eggert  <eggert@twinsun.com>
33602
33603         * lib/xgetcwd.c: Revert some of the previous change; intead,
33604         fix the HAVE_GETCWD_NULL code to behave more like the
33605         !HAVE_GETCWD_NULL code used to.
33606
33607         Include "xalloc.h".
33608         (xgetcwd): Do not return NULL when memory is exhausted; instead,
33609         invoke xalloc_die.
33610
33611 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33612
33613         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
33614         sys/param.h, as pathmax.h includes them.
33615
33616 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33617
33618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
33619         (jm_PREREQ_XGETCWD): New macro.
33620
33621         * m4/getcwd.m4: New file.
33622
33623 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33624
33625         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
33626         like the HAVE_GETCWD_NULL code.
33627         Include pathmax.h if not HAVE_GETCWD.
33628         Do not include xalloc.h.
33629         (INITIAL_BUFFER_SIZE): New symbol.
33630         Do not use xmalloc / xrealloc, since the caller is responsible for
33631         handling errors.  Preserve errno around `free' during failure.
33632         Do not overrun buffer when using getwd.
33633
33634 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33635
33636         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
33637         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
33638         getcwd (NULL, 0).
33639
33640 2001-09-03  Paul Eggert  <eggert@twinsun.com>
33641
33642         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
33643         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
33644         spotted by Jim Meyering.
33645
33646 2001-09-03  Jim Meyering  <meyering@lucent.com>
33647
33648         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
33649         failure.
33650
33651 2001-09-02  Jim Meyering  <meyering@lucent.com>
33652
33653         * lib/error.c: Update from GNU libc.
33654
33655 2001-09-01  Jim Meyering  <meyering@lucent.com>
33656
33657         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
33658         Used by df.
33659
33660 2001-09-01  Jim Meyering  <meyering@lucent.com>
33661
33662         * lib/xreadlink.c: New file.
33663         * lib/xreadlink.h: New file.
33664         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
33665         xreadlink.h.
33666
33667         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
33668         doesn't conflict with sparc Solaris 7's definition in
33669         /usr/include/sys/int_types.h.
33670
33671         * lib/exclude.c: Use `""', not `<>' to #include non-system header
33672         files.
33673         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
33674         and strncasecmp as r-values.  Unixware didn't have declarations.
33675
33676 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33677
33678         * lib/xstrtol.h: Add copyright notice.
33679         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
33680         LONGINT_INVALID_SUFFIX_CHAR.
33681
33682 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33683
33684         * lib/xstrtol.c (strtoimax): New decl.
33685
33686 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33687
33688         * lib/xgetcwd.c: Don't include pathmax.h.
33689         Include stdlib.h and unistd.h if available.
33690         Include xalloc.h.
33691         (xmalloc, xstrdup, free): Remove decls.
33692         (xgetcwd): Don't assume sizes fit in unsigned.
33693         Check for overflow when computing sizes.
33694         Simplify reallocation code.
33695
33696 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33697
33698         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
33699         a directory's st_size can have an arbitrary value, so the old
33700         usage could waste an arbitrary amount of memory.  All uses
33701         changed.
33702         * lib/savedir.h: Update prototype.
33703
33704 2001-08-31  Paul Eggert  <eggert@twinsun.com>
33705
33706         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
33707
33708         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
33709         old strtoimax.c.
33710
33711         Also, make the following further changes to make this file's
33712         configuration more similar to that of strtol.c:
33713         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
33714         (strtoumax, uintmax_t, strtoull, strtol): Remove.
33715         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
33716         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
33717         changed to signed values.
33718
33719         And make the following changes as well:
33720         Fix copyright notice, as 1999 was missing.
33721         (verify): New macro.
33722         (strtoimax): Check sizes at compile-time, not run-time.
33723         Prefer strtol to strtoll if both work.
33724         (main): Remove; it was not that useful and was a pain to maintain.
33725
33726         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
33727
33728 2001-08-31  Jim Meyering  <meyering@lucent.com>
33729
33730         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
33731         Use an initial, malloc'd, buffer of length 128 rather than
33732         a statically allocated one of length 1024.
33733
33734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33735
33736         Simplify code, partly by assuming autoconf 2.52 semantics.
33737
33738         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
33739
33740         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
33741         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
33742         All uses removed.
33743         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
33744         Move AC_REQUIRE to next-to-top level, to avoid confusion.
33745         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
33746         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
33747         jm_AC_HEADER_INTTYPES_H.
33748         * m4/jm-macros.m4 (jm_MACROS): Likewise.
33749
33750         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
33751
33752         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
33753         Quote first arg of AC_DEFUN.
33754         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
33755         since they are needed to parse the include file even if we need
33756         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
33757         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
33758         but with opposite signedness.
33759
33760 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33761
33762         Merge 'exclude' changes from tar 1.13.22.
33763         This fixes one or two unlikely storage allocation overflow bugs,
33764         but doesn't change user-visible behavior otherwise.
33765
33766 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33767
33768         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
33769         (jm_PREREQ_EXCLUDE): New macro.
33770
33771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33772
33773         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
33774         tm to be declared.
33775
33776 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33777
33778         * lib/hash.c: Remove '2001' from copyright notice.
33779
33780 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33781
33782         * lib/full-write.h: New file.
33783         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
33784         * lib/full-write.c: Correct credits, as cccp.c no longer
33785         exists and anyway it was so heavily changed from the old cccp
33786         code as to be unrecognizable.  Include full-write.h.
33787         (full_write) Return size_t, with short writes meaning failure.
33788         All callers changed.  This fixes a bug with large buffers
33789         on 64-bit hosts.
33790         * lib/utime.c: Include full-write.h.
33791
33792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33793
33794         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
33795         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
33796         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
33797         Include if available.
33798         (<xalloc.h>): Include
33799         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
33800         (verify): New macro.  Use it to verify that EXCLUDE macros do not
33801         collide with FNM macros.
33802         (struct patopts): New struct.
33803         (struct exclude): Use it, as exclude patterns now come with options.
33804         (new_exclude): Support above changes.
33805         (new_exclude, add_exclude_file):
33806         Initial size must now be a power of two to simplify overflow checking.
33807         (free_exclude, fnmatch_no_wildcards): New function.
33808         (excluded_filename): No longer requires options arg, as the options
33809         are determined by add_exclude.  Now returns bool, not int.
33810         (excluded_filename, add_exclude):
33811         Add support for the fancy new exclusion options.
33812         (add_exclude, add_exclude_file): Now takes int options arg.
33813         Check for arithmetic overflow when computing sizes.
33814         (add_exclude_file): xrealloc might modify errno, so don't
33815         realloc until after errno might be used.
33816
33817         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
33818         New macros.
33819         (free_exclude): New decl.
33820         (add_exclude, add_exclude_file): Now takes int options arg.
33821         (excluded_filename): No longer requires options arg, as the options
33822         are determined by add_exclude.  Now returns bool, not int.
33823
33824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
33825
33826         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
33827
33828 2001-08-27  Jim Meyering  <meyering@lucent.com>
33829
33830         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
33831
33832         * lib/version-etc.c (N_): Remove definition.
33833         Revert most of last change.
33834         Instead, simply don't mark the `Copyright...' string for translation.
33835         Based on advice from Paul Eggert.
33836
33837         * lib/strtoxmax.c: Tweak comment.
33838
33839 2001-08-26  Jim Meyering  <meyering@lucent.com>
33840
33841         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
33842
33843         * m4/xstrtoimax.m4: New file.
33844         * m4/xstrtoumax.m4: Add comments explaining why we
33845         AC_REPLACE_FUNCS(strtol).
33846
33847 2001-08-26  Jim Meyering  <meyering@lucent.com>
33848
33849         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
33850         of copyright with `%s' so translators don't get an untranslated
33851         message in 2002.
33852         (COPYRIGHT_YEAR): Define.
33853         (version_etc): Use fprintf rather than fputs.
33854         Suggestion from Ulrich Drepper.
33855
33856         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
33857
33858         * lib/strtoll.c: New file, from GNU libc.
33859         * lib/xstrtoimax.c: New file.
33860
33861         * lib/xstrtol.h: Add xstrtoimax.
33862         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
33863         * lib/strtoimax.c: New file.  Likewise, but first define
33864         STRTOUXMAX_SIGNED.
33865
33866         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
33867         ...
33868         * lib/strtoxmax.c: ... then renamed to this.
33869
33870 2001-08-18  Paul Eggert  <eggert@twinsun.com>
33871
33872         * m4/inttypes.m4: Add AC_PREREQ(2.13).
33873         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
33874         (jm_AC_TYPE_INTMAX_T): New macro.
33875         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
33876
33877         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
33878
33879         * m4/longlong.m4: Renamed from ulonglong.m4.
33880         * m4/inttypes.m4: Renamed from inttypes_h.m4.
33881         * m4/uintmax_t.m4: Removed.
33882
33883 2001-08-13  Paul Eggert  <eggert@twinsun.com>
33884
33885         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
33886         Port to Solaris 8, where 'sed' requires a space after the 'r'
33887         command, and where sh dislikes "$/".  Clean up the spacing a bit.
33888         Redirect output to $tmp just once.
33889
33890 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
33891
33892         * lib/addext.c (<errno.h>): Include.
33893         (errno): Declare if not defined.
33894         (addext): Work correctly when pathconf returns -1 and leaves
33895         errno alone because there is no limit.  Also, work even if
33896         pathconf returns a value greater than SIZE_MAX.
33897
33898 2001-08-12  Jim Meyering  <meyering@lucent.com>
33899
33900         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
33901         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
33902         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
33903         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
33904         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
33905         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
33906         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
33907         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
33908         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
33909         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
33910         utime.m4, utimes.m4, xstrtoumax.m4:
33911         Quote the first argument in each use of AC_DEFUN.
33912
33913 2001-08-12  Jim Meyering  <meyering@lucent.com>
33914
33915         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
33916         Simply `return getcwd (NULL, 0);'.
33917         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
33918         Use 1300 as initial value for length, not PATH_MAX.
33919
33920         * lib/pathmax.h: Clean up cpp syntax.
33921
33922 2001-08-12  Jim Meyering  <meyering@lucent.com>
33923
33924         * lib/gettimeofday.c: New file.
33925         * lib/gtod.h: New file.
33926         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
33927
33928 2001-08-05  Jim Meyering  <meyering@lucent.com>
33929
33930         * m4/jm-macros.m4: Require autoconf-2.52.
33931
33932 2001-08-04  Jim Meyering  <meyering@lucent.com>
33933
33934         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
33935         stmt, to get in sync with glibc.
33936
33937 2001-08-03  Paul Eggert  <eggert@twinsun.com>
33938
33939         The following changes are from gettext 0.10.39 as maintained by
33940         Bruno Haible.
33941
33942         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
33943         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
33944         with inverted sense.  All uses changed.
33945
33946         * lib/mbswidth.c: Don't include <limits.h>.
33947         Include <stdlib.h> and <string.h> unconditionally.
33948         (iswcntrl, mbsinit, ISCNTRL): New macros.
33949         (mbsnwidth): Use K&R style function declarations.
33950         Don't bother checking for MB_LEN_MAX == 1, since the compiler
33951         can optimize it when MB_CUR_MAX == 1.
33952         The width of control characters is zero, not 1.
33953
33954 2001-08-03  Paul Eggert  <eggert@twinsun.com>
33955
33956         The following changes are from gettext 0.10.39 as maintained by
33957         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
33958
33959         * m4/codeset.m4: Upgrade to serial AM1.
33960         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
33961         all uses changed.  Quote first arg of AC_DEFUN.
33962         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
33963
33964         * m4/iconv.m4: Upgrade to serial AM2.
33965         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
33966         Add --with-libconv-prefix.
33967         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
33968         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
33969         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
33970         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
33971         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
33972
33973         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
33974         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
33975         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
33976         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
33977         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
33978         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
33979         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33980         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
33981         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
33982
33983         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
33984         string.h any more.
33985
33986         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
33987         not the default value.
33988
33989         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
33990         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
33991         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
33992         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
33993         Also check for iswcntrl, used for wcwidth fallback.
33994         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
33995         to Autoconf 2.13.
33996
33997 2001-08-03  Jim Meyering  <meyering@lucent.com>
33998
33999         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
34000         as it was in the original.  Reported by Paul Eggert.
34001
34002 2001-07-16  Jim Meyering  <meyering@lucent.com>
34003
34004         * m4/gettimeofday.m4: New file.
34005         Prompted by a report from Bernhard Baehr.
34006
34007 2001-07-15  Jim Meyering  <meyering@lucent.com>
34008
34009         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
34010         stuff. Now it's in ../Makefile.cfg.
34011
34012 2001-07-15  Jim Meyering  <meyering@lucent.com>
34013
34014         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
34015         (BUILT_SOURCES): Add unlocked-io.h.
34016         (io_functions): Define.
34017         (unlocked-io.h): New rule.
34018         (DISTCLEANFILES): Add unlocked-io.h.
34019         (all-local): Depend on unlocked-io.h, to ensure it is created.
34020
34021         * lib/unlocked-io.hin: New file
34022
34023         * lib/regex.c: Update from glibc.
34024
34025 2001-07-05  Jim Meyering  <meyering@lucent.com>
34026
34027         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
34028         recommendation.
34029         (libfetish_a_SOURCES): Put all .h files here instead.
34030         Remove a thus-exposed (better checks in automake) duplicate and
34031         two unnecessary .h files.
34032
34033 2001-07-04  Jim Meyering  <meyering@lucent.com>
34034
34035         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
34036         that generates jm-glibc-io.m4 so that it doesn't trigger any make
34037         distcheck failure.
34038
34039 2001-07-02  Jim Meyering  <meyering@lucent.com>
34040
34041         The following changes were prompted by suggestions from Bruno Haible.
34042
34043         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
34044         is now generated.
34045         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
34046         definition of EXTRA_DIST.
34047         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
34048         ensure that the generated file is created/updated whenever the list
34049         of $(unlocked_functions) is changed.
34050         (jm-glibc-io.m4): New rule.
34051         (unlocked-io.h): New rule -- currently unused.
34052
34053 2001-06-24  Jim Meyering  <meyering@lucent.com>
34054
34055         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
34056         unmatched right bracket, rather than kludging it with an extra,
34057         falsely-matching quote in a comment.  Patch by Akim Demaille.
34058
34059 2001-06-11  Jim Meyering  <meyering@lucent.com>
34060
34061         * lib/regex.c: Update from GNU libc.
34062
34063 2001-05-27  Jim Meyering  <meyering@lucent.com>
34064
34065         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
34066         Check for ut_type in struct utmp.
34067
34068 2001-05-27  Jim Meyering  <meyering@lucent.com>
34069
34070         * lib/readutmp.h (UT_TYPE): Define.
34071
34072 2001-05-24  Jim Meyering  <meyering@lucent.com>
34073
34074         * lib/argmatch.c: Include "quote.h".
34075         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
34076         quote function.  Reported by Göran Uddeborg.
34077
34078 2001-05-22  Jim Meyering  <meyering@lucent.com>
34079
34080         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
34081         now that we use the package-supplied version unconditionally.
34082         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
34083
34084 2001-05-21  Jim Meyering  <meyering@lucent.com>
34085
34086         * m4/regex.m4: Change a couple backticks to single quotes to avoid
34087         shell syntax errors.
34088
34089 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
34090
34091         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
34092
34093 2001-05-20  Paul Eggert  <eggert@twinsun.com>
34094
34095         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
34096         Don't bother to check library strftime, since
34097         we'll be using our own my_strftime function anyway.
34098         Define my_strftime instead of strftime.
34099
34100 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
34101
34102         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
34103         which is not yet declared.
34104
34105 2001-05-15  Jim Meyering  <meyering@lucent.com>
34106
34107         * m4/regex.m4: Use proper quoting so brackets appear in the test
34108         program.
34109         Reported by, and with help from, Bruno Haible.
34110
34111 2001-05-13  Jim Meyering  <meyering@lucent.com>
34112
34113         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
34114         undefined.
34115
34116 2001-05-11  Paul Eggert  <eggert@twinsun.com>
34117
34118         dirname code cleanup.  base_name now behaves more compatibly
34119         with POSIX basename when given file names that have trailing
34120         slashes, and similarly for dir_name.  Add new primitives
34121         base_len and dir_len.  Put the directory-name-related decls
34122         into dirname.h.
34123
34124         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
34125         * lib/backupfile.c (base_name): Likewise.
34126         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
34127         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
34128         * lib/makepath.c (strip_trailing_slashes): Likewise.
34129         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
34130         ISSLASH): Likewise.
34131         * lib/rename.c (strip_trailing_slashes): Likewise.
34132         * lib/same.c (base_name): Likewise.
34133         * lib/stripslash.c (ISSLASH): Likewise.
34134
34135         * lib/addext.c: Include <dirname.h> after size_t is defined.
34136         * lib/backupfile.c: Likewise.
34137
34138         * lib/addext.c (addext): Use base_len to trim redundant
34139         trailing slashes instead of doing it ourselves.
34140         But do not trim the last slash if it is not redundant.
34141
34142         * lib/backupfile.c (find_backup_file_name,
34143         max_backup_version): Use base_len instead of rolling it ourselves.
34144         Handle the case of "" and (on DOS) "C:" correctly.
34145
34146         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
34147         needed. Include <string.h>, <dirname.h>.
34148         (base_name): Allow file names ending in slashes, other than names
34149         that are all slashes.  In this case, return the basename followed
34150         by the slashes.  This is more general, and can be used in places
34151         where the original base_name purposely had an assertion failure.
34152         (base_len): New function.
34153
34154         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
34155         Do not include <assert.h>; no longer needed.
34156         Include xalloc.h.
34157         (memrchr): Remove decl.
34158         (dir_name_r): Remove.
34159         (dir_len): Renamed from dirlen.  All callers changed.
34160         Rewrite in terms of base_name, for simplicity and consistency.
34161         (dir_name): Never return NULL.  All callers changed.
34162         Do not include <stdlib.h> in test program; no longer needed.
34163         return 0; is fine for test program.
34164
34165         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
34166         New macros.
34167         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
34168
34169         * lib/path-concat.c (path_concat): Use base_len to compute
34170         base length, not strlen; this means we cannot rely on memcpy
34171         to null-terminate.
34172
34173         * lib/same.c (STREQ): Remove.
34174         (same_name): Handle the case where the basename ends in trailing '/'.
34175
34176         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
34177         a slash was stripped.  Do not strip the last slash after a
34178         file system prefix.
34179
34180 2001-05-11  Paul Eggert  <eggert@twinsun.com>
34181
34182         * lib/Makefile.am (libfetish_a_SOURCES):
34183         Add strftime.c, since we now compile it on all hosts.
34184
34185         * lib/strftime.c (my_strftime):
34186         Define to nstrftime if emacs, but only if my_strftime is not defined.
34187         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
34188         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
34189         Add one more extra argument: a nanoseconds value.
34190         All uses changed.
34191         (ns): New macro.
34192         (my_strftime function): Add %N format.
34193         (emacs_strftimeu): Renamed from emacs_strftime,
34194         with extra ut argument.
34195
34196 2001-05-09  Paul Eggert  <eggert@twinsun.com>
34197
34198         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
34199
34200 2001-04-21  Jim Meyering  <meyering@lucent.com>
34201
34202         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
34203         doesn't interfere.
34204
34205 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
34206
34207         * m4/ftruncate.m4: Check for chsize.
34208         Link with ftruncate.o unconditionally if ftruncate is missing.
34209         This was required when cross-compiling to i586-mingw32msvc.
34210
34211 2001-04-08  Jim Meyering  <meyering@lucent.com>
34212
34213         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
34214         recomputed; that's necessary when the offset spans a DST transition.
34215         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
34216
34217 2001-04-02  Jim Meyering  <meyering@lucent.com>
34218
34219         * lib/regex.h, regex.c: Update from GNU libc.
34220
34221 2001-03-24  Jim Meyering  <meyering@lucent.com>
34222
34223         * m4/jm-macros.m4: Require autoconf-2.49d.
34224
34225 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
34226
34227         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
34228
34229 2001-03-19  Paul Eggert  <eggert@twinsun.com>
34230
34231         * lib/version-etc.c (version_etc_copyright): Update to 2001.
34232
34233 2001-03-17  Jim Meyering  <meyering@lucent.com>
34234
34235         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
34236         now that the version in autoconf is equivalent.
34237         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
34238
34239         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
34240         Suggestion from Akim Demaille.
34241
34242         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
34243         (jm_PREREQ_TEMPNAME): New function.
34244
34245 2001-03-16  Paul Eggert  <eggert@twinsun.com>
34246
34247         * lib/tempname.c (uint64_t): Define to uintmax_t if
34248         not defined, and if UINT64_MAX is not defined.
34249         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
34250         Reported by John David Anglin.
34251
34252 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
34253
34254         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
34255         resolve alias if codeset is empty.
34256         * lib/config.charset (BeOS): Use wildcard syntax.
34257
34258 2001-03-13  Jim Meyering  <meyering@lucent.com>
34259
34260         * lib/path-concat.c (path_concat)
34261         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
34262         concatenating e.g., `C:' and `foo'.
34263         From Bruno Haible.
34264
34265 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
34266
34267         * lib/localcharset.c (locale_charset): Don't use
34268         setlocale(LC_CTYPE,NULL). Don't return NULL.
34269         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
34270
34271 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
34272
34273         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
34274         support for DOS/DJGPP.
34275
34276 2001-03-01  Paul Eggert  <eggert@twinsun.com>
34277
34278         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
34279         lacks mkstemp.  Compile our own tempname.c if we compile our own
34280         mkstemp.c, as mkstemp relies on tempname.
34281
34282 2001-03-01  Jim Meyering  <meyering@lucent.com>
34283
34284         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
34285         AH_VERBATIM really does output its argument verbatim.
34286
34287 2001-02-28  Paul Eggert  <eggert@twinsun.com>
34288
34289         * lib/Makefile.am (libfetish_a_SOURCES):
34290         Add dup-safer.c, fopen-safer.c.
34291         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
34292
34293         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
34294         * lib/unistd-safer.h: New files.
34295
34296 2001-02-25  Paul Eggert  <eggert@twinsun.com>
34297
34298         The mkstemp replacement is taken from glibc 2.2.2, with some
34299         portability fixes for use outside glibc, as follows:
34300
34301         * lib/tempname.c (struct_stat64): New macro.
34302         (direxists, __gen_tempname): Use it.
34303         This avoids a portability problem with Solaris 8.
34304
34305         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
34306         (<stddef.h>, <stdint.h>, <string.h>):
34307         Include only if STDC_HEADERS || _LIBC.
34308         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
34309         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
34310         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
34311         (__set_errno): Define this macro if <errno.h> doesn't.
34312         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
34313         Define these macros if <stdio.h> doesn't.
34314         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
34315         Define these macros if <sys/stat.h>
34316         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
34317         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
34318         __xstat64): Define if not _LIBC.
34319         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
34320         (__gen_tempname): Invoke gettimeofday only if
34321         HAVE_GETTIMEOFDAY || _LIBC;
34322         otherwise, fall back on plain "time".
34323         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
34324
34325         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
34326
34327         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
34328
34329 2001-02-18  Paul Eggert  <eggert@twinsun.com>
34330
34331         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
34332
34333 2001-02-17  Paul Eggert  <eggert@twinsun.com>
34334
34335         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
34336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
34337         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
34338         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
34339
34340 2001-02-17  Paul Eggert  <eggert@twinsun.com>
34341
34342         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
34343         Remove workaround macros for hosts that have mbrtowc but not
34344         mbstate_t, as we now insist on proper declarations for both
34345         before using mbrtowc.
34346
34347 2001-02-17  Jim Meyering  <meyering@lucent.com>
34348
34349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
34350         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
34351         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
34352         UnixWare 7.1.1.
34353
34354         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
34355         rather than AC_CACHE_VAL.
34356
34357 2001-02-17  Jim Meyering  <meyering@lucent.com>
34358
34359         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
34360         around included file name.
34361
34362         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
34363
34364         * lib/strftime.c: Update from GNU libc (the only changes were to
34365         comments).
34366
34367 2001-02-17  Jim Meyering  <meyering@lucent.com>
34368
34369         * lib/regex.c: Update from libc.
34370
34371 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
34372
34373         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
34374         clash.
34375
34376 2001-02-16  Paul Eggert  <eggert@twinsun.com>
34377
34378         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
34379         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
34380         Reported by Mark Hounschell via Paul Eggert.
34381
34382 2001-02-07  Jim Meyering  <meyering@lucent.com>
34383
34384         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
34385
34386 2001-02-05  Jim Meyering  <meyering@lucent.com>
34387
34388         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
34389         it includes the patch required for `large file' support with at least
34390         HP-UX's 10.20 /bin/cc.
34391
34392 2001-02-03  Jim Meyering  <meyering@lucent.com>
34393
34394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
34395         AS_IF, now that it works once again (mysteriously).
34396         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
34397
34398 2001-01-30  Jim Meyering  <meyering@lucent.com>
34399
34400         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
34401         * m4/chown.m4: Rename conftestchown to conftest.chown.
34402         * m4/rename.m4: s/conftestdir/conftest.d1/ and
34403         s/conftestdir2/conftest.d2/.
34404         * m4/utimes.m4: s/conftestdata/conftest.data/
34405         Inspired by Pavel Roskin's change in autoconf.
34406
34407 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
34408
34409         * lib/config.charset: Update for FreeBSD 4.2.
34410
34411 2001-01-27  Jim Meyering  <meyering@lucent.com>
34412
34413         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
34414         a use of AS_IF.
34415         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
34416
34417 2001-01-26  Jim Meyering  <meyering@lucent.com>
34418
34419         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
34420         quotearg.c includes it.
34421
34422 2001-01-26  Jim Meyering  <meyering@lucent.com>
34423
34424         * lib/quotearg.c: Include stddef.h.
34425         * lib/quote.c: Include stddef.h.
34426         Reported by Axel Kittenberger.
34427
34428         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
34429         line in double quotes so that it evokes a better diagnostic.
34430         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
34431         Reported by Axel Kittenberger.
34432
34433 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
34434
34435         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
34436         as if it was a `charset'.
34437
34438 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
34439
34440         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
34441         has const.
34442
34443 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
34444
34445         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
34446         to avoid a warning.  Add back 'const' to inptr.
34447
34448 2001-01-20  Jim Meyering  <meyering@lucent.com>
34449
34450         Be sure that headers are checked before used in code compiled
34451         for the type checks.
34452         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
34453         In place of that, invoke jm_CHECK_ALL_TYPES.
34454         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
34455         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
34456         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
34457         The check for ssize_t was mistakenly run before the test for unistd.h.
34458
34459         The configure-time check for stdbool.h was missing.
34460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
34461         (jm_PREREQ_HASH): New function.
34462
34463 2001-01-17  Jim Meyering  <meyering@lucent.com>
34464
34465         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
34466         for autoconf-2.49c.
34467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
34468
34469 2001-01-16  Jim Meyering  <meyering@lucent.com>
34470
34471         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
34472         From Bruno Haible.
34473
34474 2001-01-14  Jim Meyering  <meyering@lucent.com>
34475
34476         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
34477         foo and bar.  Create conftestdir/ in the script, not in the C code.
34478         Remove directories in the script, not in the C code.
34479         Remove conftestdir{,2} before trying to create the directory.
34480         Make the entire configure script fail if the mkdir fails.
34481
34482 2001-01-14  Jim Meyering  <meyering@lucent.com>
34483
34484         * lib/rename.c: New file.  From Volker Borchert.
34485         Include stdlib.h, string.h or strings.h, and xalloc.h.
34486         Use strip_trailing_slashes rather than open-coding it.
34487
34488 2001-01-03  Paul Eggert  <eggert@twinsun.com>
34489
34490         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
34491
34492 2001-01-03  Jim Meyering  <meyering@lucent.com>
34493
34494         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
34495         of local `inptr' to avoid warning with some system declarations of
34496         iconv.
34497
34498 2001-01-02  Volker Borchert  <bt@teknon.de>
34499
34500         * m4/rename.m4: New file.
34501         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
34502
34503 2001-01-01  Jim Meyering  <meyering@lucent.com>
34504
34505         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
34506         even on systems with utmpx.h.  It's necessary for the declaration of
34507         utmp's ut_user member.  Reported by Andreas Jaeger.
34508
34509         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
34510         available. They are required for the declarations of getgrgid and
34511         getpwuid resp.
34512         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
34513         Reported by Andreas Jaeger.
34514
34515 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
34516
34517         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
34518         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
34519         so `make install' also works in VPATH builds.
34520
34521 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
34522
34523         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
34524         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
34525         can be used in subdirectories.
34526
34527 2000-12-29  Paul Eggert  <eggert@twinsun.com>
34528
34529         * lib/modechange.c: Do not assume that mode_t uses the
34530         traditional octal encoding.  E.g. "chmod 1 FOO" should set
34531         the other-execute bit of FOO even if S_IXOTH != 1.
34532
34533         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
34534         WOTH, XOTH, ALLM): New macros.
34535         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
34536          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
34537         Use them.
34538         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
34539         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
34540         (mode_compile):
34541         No need to use uintmax_t; unsigned long is long enough.
34542         Don't bother to get suffix since we don't use it.
34543
34544 2000-12-26  Jim Meyering  <meyering@lucent.com>
34545
34546         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
34547         better with autoheader.
34548
34549 2000-12-24  Jim Meyering  <meyering@lucent.com>
34550
34551         * lib/hash.c (is_prime): Return explicit boolean values.
34552         (hash_get_first): Return NULL to appease Irix5.6's 89.
34553         Reported by Nelson Beebe.
34554
34555 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
34556
34557         * lib/localcharset.c (locale_charset): Add support for Win32.
34558
34559 2000-12-18  Paul Eggert  <eggert@twinsun.com>
34560
34561         * lib/physmem.h, lib/physmem.c: New files.
34562
34563         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
34564         (noinst_HEADERS): Add physmem.h.
34565
34566         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
34567         't' for compatibility with Solaris 8 sort.
34568
34569 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
34570
34571         * lib/config.charset: Add support for BeOS.
34572
34573 2000-12-17  Jim Meyering  <meyering@lucent.com>
34574
34575         * m4/dos.m4 (jm_AC_DOS): New file and macro.
34576         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
34577
34578 2000-12-16  Jim Meyering  <meyering@lucent.com>
34579
34580         This bug had a serious impact on chown: `chown N:M FILE' (for integer
34581         N and M) would have treated it like `chown N:N FILE'.
34582
34583         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
34584
34585 2000-12-16  Jim Meyering  <meyering@lucent.com>
34586
34587         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
34588         SHELLS_FILE to a file name that's useful on djgpp systems.
34589         Include stdlib.h.
34590         (ADDITIONAL_DEFAULT_SHELLS): Define.
34591         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
34592         Based mostly on a patch from Prashant TR.
34593
34594 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
34595
34596         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
34597         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
34598         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
34599
34600 2000-12-08  Andreas Schwab  <schwab@suse.de>
34601
34602         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
34603         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
34604
34605 2000-12-07  Jim Meyering  <meyering@lucent.com>
34606
34607         * lib/stripslash.c (ISSLASH): Define.
34608         (strip_trailing_slashes): Use ISSLASH rather than comparing against
34609         `/'.
34610         From Prashant TR.
34611
34612         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
34613         (dir_name_r): Declare this function as static.
34614         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
34615         manifest itself on a name containing a mix of slashes and
34616         backslashes.
34617         Make this function work with names starting with a DOS-style
34618         drive letter and colon prefix.
34619         (dir_name): Append `.' if necessary.
34620         Based mostly on patches from Prashant TR and Eli Zaretskii.
34621
34622         * lib/dirname.h (dir_name_r): Remove prototype.
34623
34624 2000-12-06  Paul Eggert  <eggert@twinsun.com>
34625
34626         * m4/off_t-format.m4: Remove this file.
34627         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
34628
34629 2000-12-06  Jim Meyering  <meyering@lucent.com>
34630
34631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
34632         replacement strtoull, we may well need the replacement strtoul, too.
34633         Check for declarations of strtoul and strtoull.
34634         Check for strtol.  Mainly as a cue to cause automake to include
34635         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
34636         Check for limits.h -- strtol.c needs it.
34637
34638 2000-12-05  Jim Meyering  <meyering@lucent.com>
34639
34640         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
34641
34642 2000-12-04  Jim Meyering  <meyering@lucent.com>
34643
34644         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
34645         Also include memory.h, stdlib.h, unistd.h if appropriate.
34646         Reported by Andreas Jaeger (conflicting declaration of malloc).
34647
34648 2000-12-02  Jim Meyering  <meyering@lucent.com>
34649
34650         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
34651         * m4/jm-macros.m4 (jm_MACROS): require it.
34652
34653 2000-12-02  Jim Meyering  <meyering@lucent.com>
34654
34655         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
34656
34657 2000-12-01  Paul Eggert  <eggert@twinsun.com>
34658
34659         * lib/memrchr.c: Include <config.h> before any system include file.
34660
34661 2000-11-30  Jim Meyering  <meyering@lucent.com>
34662
34663         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
34664
34665 2000-11-30  Jim Meyering  <meyering@lucent.com>
34666
34667         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
34668
34669 2000-11-29  Paul Eggert  <eggert@twinsun.com>
34670
34671         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
34672
34673 2000-11-26  Jim Meyering  <meyering@lucent.com>
34674
34675         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
34676
34677 2000-11-22  Paul Eggert  <eggert@twinsun.com>
34678
34679         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
34680         size of (size_t) -1; it's not portable.
34681
34682 2000-11-17  Jim Meyering  <meyering@lucent.com>
34683
34684         * lib/strstr.c: Update from GNU libc.
34685
34686 2000-11-17  Akim Demaille  <akim@epita.fr>
34687
34688         * lib/obstack.h: Formatting changes.
34689         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
34690         prevent type checking.
34691         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
34692         cast the value to (void *): assigning a `foo *' to a `void *'
34693         variable is valid.
34694         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
34695
34696 2000-11-16  Jim Meyering  <meyering@lucent.com>
34697
34698         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
34699
34700 2000-11-11  Jim Meyering  <meyering@lucent.com>
34701
34702         * lib/error.c: Add a couple #includes, merging from GNU libc version.
34703
34704 2000-11-10  Jim Meyering  <meyering@lucent.com>
34705
34706         * lib/obstack.h: Update from GNU libc.
34707         * lib/obstack.c: Likewise.
34708
34709 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
34710
34711         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
34712
34713 2000-11-06  Paul Eggert  <eggert@twinsun.com>
34714
34715         * lib/getusershell.c (setusershell): Use rewind rather than
34716         fseek/fseeko, to avoid configuration hassles with fseeko.
34717         Don't bother opening SHELLS_FILE if shellstream is NULL;
34718         it's not necessary.
34719
34720 2000-11-05  Jim Meyering  <meyering@lucent.com>
34721
34722         * lib/makepath.h (make_dir): Declare.
34723         * lib/makepath.c (make_dir): Remove `static' attribute.
34724         Tweak a comment.
34725
34726 2000-11-04  Jim Meyering  <meyering@lucent.com>
34727
34728         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
34729
34730 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
34731
34732         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
34733         last one in a bucket, advance to the next bucket.
34734
34735 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
34736
34737         * lib/fnmatch.c: Do not comment out all the code if we are using
34738         the GNU C library, because in some cases we are replacing buggy
34739         code in the GNU C library itself.
34740
34741 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
34742
34743         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
34744         (regex_compile): Catch bogus \(\1\).
34745
34746 2000-10-30  Paul Eggert  <eggert@twinsun.com>
34747
34748         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
34749         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
34750         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
34751
34752 2000-10-30  Paul Eggert  <eggert@twinsun.com>
34753
34754         * lib/error.h, getline.h, modechange.h:
34755         Remove "2000" from Copyright line, as the file hasn't been
34756         changed this year other than in the copyright notice.
34757
34758         * lib/xalloc.h: Add "2000" to Copyright line, as this file
34759         was changed this year.
34760
34761 2000-10-29  Jim Meyering  <meyering@lucent.com>
34762
34763         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
34764         renaming.
34765         * m4/ls-mntd-fs.m4: Likewise
34766
34767 2000-10-29  Jim Meyering  <meyering@lucent.com>
34768
34769         * lib/xstat.in: Fix grammar in comment.
34770
34771 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
34772
34773         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
34774         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
34775         doesn't define __restrict_arr.
34776
34777 2000-10-28  Jim Meyering  <meyering@lucent.com>
34778
34779         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
34780         (jm_PREREQ_MEMCHR): New function.
34781
34782 2000-10-28  Jim Meyering  <meyering@lucent.com>
34783
34784         * lib/memchr.c: Update from libc.
34785         Adjust for portability:
34786         [HAVE_STDLIB_H]: Include stdlib.h.
34787         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
34788         Undef __memchr, too.
34789         [!weak_alias]: Define __memchr to memchr.
34790
34791         * lib/regex.c: Update from libc.
34792         * lib/regex.h: Likewise.
34793         * lib/getopt1.c: Likewise.
34794         * lib/memcmp.c: Likewise.
34795
34796         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
34797         Avoid using fseek, when possible -- it's broken by design.
34798         Patch by Ulrich Drepper.
34799
34800 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
34801
34802         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
34803         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
34804         Giving in to popular pressure to shut up the compiler with casts.
34805
34806 2000-10-26  Jim Meyering  <meyering@lucent.com>
34807
34808         * lib/strftime.c: Update from libc.
34809
34810 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
34811
34812         * regex.c: More `unsigned char' -> `re_char' changes.
34813         Also change several `int' into `re_wchar_t'.
34814         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
34815         (PUSH_FAILURE_POINTER): Don't cast any more.
34816         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
34817         We want GCC to complain, since this piece of code makes
34818         re_match non-reentrant, which *should* be fixed.
34819         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
34820         (EXTEND_BUFFER): Use RETALLOC.
34821         (SET_LIST_BIT): Don't cast.
34822         (re_wchar_t): New type.
34823         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
34824         that those two functions will always properly return.
34825         (IMMEDIATE_QUIT_CHECK): Cast to void.
34826         (analyse_first): Use recursion rather than an explicit stack.
34827         (re_compile_fastmap): Can't fail anymore.
34828         (re_search_2): Don't check re_compile_fastmap for failure.
34829         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
34830         Now also sets the new value (passed in a new argument).
34831         (re_match_2_internal): Use it.
34832         Also, use a new var `reg' of type size_t when looping through regs
34833         rather than reuse the inappropriate `mcnt'.
34834
34835 2000-10-25  Jim Meyering  <meyering@lucent.com>
34836
34837         * lib/obstack.c: Update from libc.
34838
34839 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
34840
34841         * regex.c (regex_compile): Change the way of handling a range from
34842         a char less than 256 to a char not less than 256.
34843
34844 2000-10-24  Andrew Innes  <andrewi@gnu.org>
34845
34846         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
34847         NT-Emacs only.
34848         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
34849         so that re_search functions only quit when callers expect them to.
34850
34851 2000-10-23  Jim Meyering  <meyering@lucent.com>
34852
34853         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
34854         wrong.  That set_locale call must not have any side effects.
34855         From Paul Eggert.
34856
34857 2000-10-22  Jim Meyering  <meyering@lucent.com>
34858
34859         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
34860         [CYCLIC]: Remove now-unused definition.
34861
34862         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
34863         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
34864         Suggestion from Ulrich Drepper.
34865
34866 2000-10-21  Jim Meyering  <meyering@lucent.com>
34867
34868         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
34869         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
34870         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
34871
34872 2000-10-21  Jim Meyering  <meyering@lucent.com>
34873
34874         * lib/dirname.c (memrchr): Declare if necessary.
34875         (dir_name): Remove the restriction that there be no
34876         trailing slashes.  Now, this code skips past them, effectively
34877         ignoring them.
34878         [TEST_DIRNAME] (main): New unit tests.
34879
34880         * lib/memrchr.c: New file from GNU libc.
34881         Undef __memrchr, too.
34882         [!weak_alias]: Define __memrchr to memrchr.
34883         Guard weak_alias use with `#ifdef weak_alias'.
34884
34885 2000-10-21  Jim Meyering  <meyering@lucent.com>
34886
34887         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
34888         (dir_name): Use dir_name_r.
34889         * lib/dirname.h (dir_name_r): Declare it.
34890
34891 2000-10-17  Jim Meyering  <meyering@lucent.com>
34892
34893         * lib/quote.h (PARAMS): Define and use.
34894         Reported by Akim Demaille.
34895
34896         * lib/getopt.c: Update from libc.
34897
34898 2000-10-16  Jim Meyering  <meyering@lucent.com>
34899
34900         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
34901         setlocale.
34902         From Jan Fedak.
34903
34904 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
34905
34906         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
34907
34908 2000-09-25  Jim Meyering  <meyering@lucent.com>
34909
34910         * lib/md5.h (rol): Define (from GnuPG).
34911
34912         * lib/sha.c: Give credit (GnuPG) where due.
34913         (M): Use rol rather than open-coding it.
34914         Add a FIXME comment.
34915
34916 2000-09-21  Jim Meyering  <meyering@lucent.com>
34917
34918         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
34919         Reported by Michael Stone.
34920
34921 2000-09-20  Jim Meyering  <meyering@lucent.com>
34922
34923         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
34924         (noinst_HEADERS): Add sha.h.
34925         Based on code from Scott G. Miller and from GnuPG.
34926
34927 2000-09-18  Jim Meyering  <meyering@lucent.com>
34928
34929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
34930         LIBS. Otherwise, everyone ends up linking with -lelf for some
34931         configurations.
34932         Reported by Mike Stone.
34933
34934 2000-09-15  Jim Meyering  <meyering@lucent.com>
34935
34936         * lib/regex.c: Update from libc.
34937
34938 2000-09-10  Jim Meyering  <meyering@lucent.com>
34939
34940         * lib/getopt.c (_getopt_internal): Update from glibc.
34941
34942 2000-09-09  Jim Meyering  <meyering@lucent.com>
34943
34944         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
34945         think it should be used as a general replacement for isascii.
34946         * lib/fnmatch.c: Likewise.
34947         * lib/mbswidth.c: Likewise
34948         * lib/regex.c: Likewise.
34949
34950         Don't use atoi.
34951         * lib/userspec.c: Include sys/param.h and limits.h.
34952         Include xstrtol.h.
34953         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34954         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
34955         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
34956         UID, GID.  Check range.
34957
34958 2000-09-06  Jim Meyering  <meyering@lucent.com>
34959
34960         * lib/getopt.c (_getopt_internal): Update from glibc.
34961
34962 2000-08-30  Jim Meyering  <meyering@lucent.com>
34963
34964         * lib/strftime.c: Merge in changes from GNU libc.
34965
34966 2000-08-26  Jim Meyering  <meyering@lucent.com>
34967
34968         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
34969         * m4/fpending.m4: New file.
34970
34971 2000-08-26  Jim Meyering  <meyering@lucent.com>
34972
34973         * lib/closeout.c: Include "__fpending.h".
34974         (close_stdout_status): Return right away if there's nothing to flush.
34975
34976         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
34977         * lib/__fpending.c: New file.
34978         * lib/__fpending.h: New file.
34979
34980 2000-08-20  Jim Meyering  <meyering@lucent.com>
34981
34982         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
34983         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
34984         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
34985
34986 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
34987
34988         Improve fileutils installation on systems where running
34989         programs (like install) can't be unlinked.
34990         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
34991         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
34992
34993 2000-08-07  Paul Eggert  <eggert@twinsun.com>
34994
34995         Standardize on "memory exhausted" instead of "Memory exhausted"
34996         or "virtual memory exhausted".
34997         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
34998         "virtual memory exhausted".
34999         * lib/same.c (same_name): Invoke xalloc_die instead of printing
35000         our own message.
35001         * lib/userspec.c (parse_user_spec): Likewise.
35002         * lib/bumpalloc.h: comment fix
35003         * lib/same.c, userspec.c: Include xalloc.h.
35004
35005         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
35006         not char *const and pointing to a constant array.
35007         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
35008         (xrealloc): Comment fix.
35009
35010         * lib/userspec.c (parse_user_spec):
35011         Don't translate a message until just before returning,
35012         to avoid unnecessary translation.
35013
35014 2000-08-07  Jim Meyering  <meyering@lucent.com>
35015
35016         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
35017         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
35018         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
35019         getgroups.c, gethostname.c, getopt.h, group-member.c,
35020         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
35021         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
35022         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
35023         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
35024         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
35025         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
35026         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
35027         yesno.c: Back out Copyright date changes for each file with no change
35028         this year.  This eases coordination with other programs using the same
35029         source code modules.  From Paul Eggert.
35030
35031 2000-08-06  Paul Eggert  <eggert@twinsun.com>
35032
35033         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
35034         not char, for compatibility with glibc 2.1.3 strftime.c.
35035
35036 2000-08-03  Greg McGary  <greg@mcgary.org>
35037
35038         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
35039         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
35040         (EXTEND_BUFFER): Use them.
35041
35042 2000-08-01  Jim Meyering  <meyering@lucent.com>
35043
35044         * lib/dirname.c (ISSLASH): Define.
35045         (BACKSLASH_IS_PATH_SEPARATOR): Define.
35046         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
35047         both `\' and `/' may be use as path separators.
35048         Based on a patch from Prashant TR.
35049
35050 2000-07-31  Paul Eggert  <eggert@twinsun.com>
35051
35052         * lib/quotearg.c (quotearg_n_options): Don't make the initial
35053         slot vector a constant, since it might get modified.
35054
35055 2000-07-31  Jim Meyering  <meyering@lucent.com>
35056
35057         * lib/xmalloc.c: Use `virtual memory exhausted', not
35058         `Memory exhausted'.
35059         * lib/obstack.c (print_and_abort): Likewise.
35060
35061 2000-07-30  Paul Eggert  <eggert@twinsun.com>
35062
35063         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
35064         buffer, so that the caller can always quote one small
35065         component of a "memory exhausted" message in slot 0.
35066         From a suggestion by Jim Meyering.
35067
35068 2000-07-30  Jim Meyering  <meyering@lucent.com>
35069
35070         * lib/makepath.c (make_path): Quote the other instance, too.
35071
35072         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
35073         (STATIC_BUF_SIZE): Define.
35074         (quotearg_n_options): Use only statically allocated storage when
35075         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
35076         than STATIC_BUF_SIZE.
35077
35078 2000-07-29  Jim Meyering  <meyering@lucent.com>
35079
35080         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
35081         * lib/dirname.c (dir_name): Likewise.
35082
35083         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
35084         `/'.
35085
35086         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
35087         (dir_name): Assert that there are no trailing slashes.
35088
35089 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
35090
35091         * lib/mbswidth.h (mbswidth): Add a flags argument.
35092         (mbswidth): New declaration.
35093         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
35094         * lib/mbswidth.c (mbswidth): Add a flags argument.
35095         (mbsnwidth): New function.
35096
35097 2000-07-24  Jim Meyering  <meyering@lucent.com>
35098
35099         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
35100
35101 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35102
35103         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
35104
35105 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35106
35107         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
35108         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
35109         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
35110         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
35111         invoke multibyte primitives.
35112
35113 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35114
35115         * lib/quotearg.c:
35116         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
35117         so that mbstate_t is always defined.
35118
35119         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
35120         be 1 in at least one GCC installation, and this configuration
35121         error is likely to be common.  Ignoring MB_LEN_MAX hurts
35122         performance on hosts that have mbrtowc but have only unibyte
35123         locales, but I assume these hosts are rare.
35124
35125 2000-07-23  Paul Eggert  <eggert@twinsun.com>
35126
35127         * lib/mbswidth.c (_XOPEN_SOURCE):
35128         Don't define; this causes problems on Solaris 7.
35129         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
35130
35131 2000-07-23  Jim Meyering  <meyering@lucent.com>
35132
35133         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
35134         too: getgrgid, getpwuid, getuid.
35135
35136 2000-07-23  Jim Meyering  <meyering@lucent.com>
35137
35138         * lib/basename.c (base_name): Add an assertion.
35139
35140 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
35141
35142         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
35143         shadow its mbsinit function.
35144
35145 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
35146
35147         * lib/mbswidth.h: New file.
35148         * lib/mbswidth.c: New file.
35149         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
35150         (noinst_HEADERS): Add mbswidth.h.
35151
35152 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
35153
35154         * lib/config.charset: Add support for FreeBSD. Improve support for
35155         HP-UX and IRIX 6.
35156
35157 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
35158
35159         * m4/mbswidth.m4: New file.
35160         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
35161
35162 2000-07-15  Jim Meyering  <meyering@lucent.com>
35163
35164         * lib/makepath.c: Include quote.h.
35165         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
35166         corresponding argument in a `quote (...)' call.
35167         Give better diagnostics.
35168
35169         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
35170         (noinst_HEADERS): Add quote.h.
35171
35172         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
35173         from tar's src/misc.c.
35174         * lib/quote.h: New file.  Prototypes for same.
35175
35176 2000-07-14  Paul Eggert  <eggert@twinsun.com>
35177
35178         From a suggestion by Bruno Haible.
35179         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
35180         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
35181         to decide whether to define the BeOS workaround macro;
35182         this adjusts to the change to AC_MBSTATE_T.
35183
35184 2000-07-14  Jim Meyering  <meyering@lucent.com>
35185
35186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
35187         jm_AC_TYPE_UINTMAX_T.
35188
35189 2000-07-13  Paul Eggert  <eggert@twinsun.com>
35190
35191         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
35192
35193         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
35194         quotearg_buffer_restyled): Add support for
35195         clocale_quoting_style.  Undo previous change to
35196         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
35197         and "{RIGHT QUOTATION MARK}" msgids.
35198
35199 2000-07-10  Paul Eggert  <eggert@twinsun.com>
35200
35201         From a suggestion by Bruno Haible.
35202         * m4/mbstate_t.m4 (AC_MBSTATE_T):
35203         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
35204         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
35205         and mbstate_t, to a single-part test that simply defines mbstate_t.
35206         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
35207         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
35208
35209 2000-07-10  Jim Meyering  <meyering@lucent.com>
35210
35211         * m4/strerror_r.m4: Mirror the correction made in autoconf.
35212
35213         * m4/gnu-source.m4: Output to confdefs.h directly.
35214         Suggestion from Akim Demaille.
35215
35216 2000-07-09  Paul Eggert  <eggert@twinsun.com>
35217
35218         The old behavior of quoting `like this' doesn't look good with
35219         newer, ISO-style fonts.  See:
35220         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
35221
35222         Instead, quote "like this" by default.  Let the translator
35223         tailor the locale-specific quoting behavior by providing
35224         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
35225
35226         * lib/quotearg.c (N_): New macro.
35227         (gettext_default): New function.
35228         (quotearg_buffer_restyled): Use
35229         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
35230         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
35231
35232 2000-07-09  Jim Meyering  <meyering@lucent.com>
35233
35234         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
35235         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
35236
35237         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
35238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
35239
35240 2000-07-09  Jim Meyering  <meyering@lucent.com>
35241
35242         * lib/Most files: Update copyright dates to include 2000.
35243
35244 2000-07-08  Jim Meyering  <meyering@lucent.com>
35245
35246         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
35247         if not defined.
35248         (xgethostname): Remove now-unnecessary #ifdef.
35249         Move declaration of `err' into loop where it's used.
35250
35251 2000-07-05  Paul Eggert  <eggert@twinsun.com>
35252         and Bruno Haible  <haible@clisp.cons.org>
35253
35254         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
35255         only if the test for an object-type mbstate_t fails.  This
35256         prevents us from mistakenly reporting that mbstate_t is a
35257         system object type after we "#define mbstate_t int" to work
35258         around its lack.
35259
35260 2000-07-05  Paul Eggert  <eggert@twinsun.com>
35261         and Bruno Haible  <haible@clisp.cons.org>
35262
35263         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
35264
35265 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35266
35267         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
35268         to strerror_r.
35269         Include <ctype.h> for use of isalpha.
35270
35271 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35272
35273         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
35274         by allocating a larger buffer. Test the gethostname return value for
35275         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
35276         returns an error and ENAMETOOLONG isn't defined.
35277
35278 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
35279
35280         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
35281         dimension.
35282
35283 2000-07-04  Jim Meyering  <meyering@lucent.com>
35284
35285         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
35286         of the deprecated AC_CHECKING.
35287
35288 2000-07-04  Jim Meyering  <meyering@lucent.com>
35289
35290         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
35291         Reported by Bruno Haible.
35292
35293 2000-07-04  Jim Meyering  <meyering@lucent.com>
35294
35295         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
35296         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
35297         lacks mbrtowc.
35298
35299 2000-07-03  Paul Eggert  <eggert@twinsun.com>
35300
35301         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
35302         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
35303
35304 2000-07-03  Paul Eggert  <eggert@twinsun.com>
35305         and Bruno Haible  <haible@clisp.cons.org>
35306
35307         * lib/quotearg.c (mbrtowc):
35308         Assign to *pwc, and return 1 only if result is nonzero.
35309         (iswprint): Use ISPRINT when substituting our own mbrtowc.
35310
35311 2000-07-03  Jim Meyering  <meyering@lucent.com>
35312
35313         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
35314
35315 2000-07-03  Jim Meyering  <meyering@lucent.com>
35316
35317         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
35318         This is necessary to get a definition of e.g., UTMP_FILE on
35319         HP-UX 10.20.
35320         From Bob Proulx.
35321
35322 2000-07-02  Jim Meyering  <meyering@lucent.com>
35323
35324         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
35325
35326         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
35327         AC_LIBOBJ(function_name).
35328         * m4/chown.m4: Likewise.
35329         * m4/fnmatch.m4: Likewise.
35330         * m4/ftruncate.m4: Likewise.
35331         * m4/getgroups.m4: Likewise.
35332         * m4/getline.m4: Likewise.
35333         * m4/group-member.m4: Likewise.
35334         * m4/jm-macros.m4: Likewise.
35335         * m4/lstat.m4: Likewise.
35336         * m4/malloc.m4: Likewise.
35337         * m4/memcmp.m4: Likewise.
35338         * m4/nanosleep.m4: Likewise.
35339         * m4/putenv.m4: Likewise.
35340         * m4/realloc.m4: Likewise.
35341         * m4/regex.m4: Likewise.
35342         * m4/stat.m4: Likewise.
35343         * m4/strftime.m4: Likewise.
35344
35345 2000-07-02  Jim Meyering  <meyering@lucent.com>
35346
35347         * lib/quotearg.c (mbstate_t): Don't define here.
35348
35349 2000-07-02  Jim Meyering  <meyering@lucent.com>
35350
35351         * lib/nanosleep.c (SIGCONT): Define if not already defined.
35352
35353 2000-07-01  Jim Meyering  <meyering@lucent.com>
35354
35355         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
35356
35357 2000-07-01  Jim Meyering  <meyering@lucent.com>
35358
35359         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
35360         problem.
35361
35362 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
35363
35364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
35365         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
35366
35367 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
35368
35369         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
35370         per change in ../m4/ls-mntd-fs.m4.
35371         (read_filesystem_list): Ignore symbolic links.
35372
35373 2000-06-29  Jim Meyering  <meyering@lucent.com>
35374
35375         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
35376         for declaration of strcmp.
35377
35378         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
35379
35380         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
35381         Avoid warning by casting result to `char *' to remove `const'.
35382
35383 2000-06-28  Jim Meyering  <meyering@lucent.com>
35384
35385         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
35386         included by quotearg.c, for which we perform this test.  From
35387         Bruno Haible.
35388
35389 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
35390
35391         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
35392         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
35393         <utmpx.h> exists, put readutmp.o into LIBOBJS.
35394
35395 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
35396
35397         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
35398
35399 2000-06-26  Paul Eggert  <eggert@twinsun.com>
35400
35401         savedir now sets errno on failure and invokes xmalloc to get memory.
35402         Fix a couple of other minor bugs while we're at it.
35403
35404         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
35405         (NAMLEN): Remove macro.
35406         (malloc, realloc): Remove decls.
35407         (stpcpy): Likewise.
35408         ("xalloc.h"): Include.
35409         (NAME_SIZE_DEFAULT): New macro.
35410         (savedir): Use xmalloc / xrealloc to allocate memory.
35411         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
35412         Skip "" directory entries.
35413         Use strlen to calculate directory entry length, since the old method
35414         is rarely used these days and isn't worth supporting.
35415         Don't use a pointer after freeing it.
35416         Check for integer overflow when calculating allocation size.
35417         Use memcpy to copy entries, instead of stpcpy.
35418         Set errno properly when returning NULL.
35419         Check for readdir error.
35420
35421 2000-06-26  Jim Meyering  <meyering@lucent.com>
35422
35423         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
35424
35425 2000-06-25  Jim Meyering  <meyering@lucent.com>
35426
35427         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
35428         Linux header bug when _XOPEN_SOURCE is defined to 500.
35429
35430 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
35431
35432         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
35433         deficiency.
35434
35435 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
35436
35437         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
35438         Include xalloc.h.
35439         Don't include <stdlib.h>.  Don't declare malloc, realloc.
35440
35441 2000-06-24  Jim Meyering  <meyering@lucent.com>
35442
35443         * m4/strerror_r.m4: Revive this file -- to try out an experimental
35444         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
35445         for which strerror does return char*, but which lacks a conveniently
35446         accessible declaration of the function.  If the compile-test says
35447         strerror_r doesn't work, then resort to a `run'-test that works on
35448         BeOS and segfaults on DEC Unix.
35449
35450 2000-06-24  Jim Meyering  <meyering@lucent.com>
35451
35452         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
35453
35454 2000-06-23  Paul Eggert  <eggert@twinsun.com>
35455
35456         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
35457         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
35458
35459 2000-06-23  Paul Eggert  <eggert@twinsun.com>
35460
35461         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
35462         (mbrtowc, mbstate_t): Define substitutes if
35463         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
35464         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
35465         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
35466
35467 2000-06-23  Jim Meyering  <meyering@lucent.com>
35468
35469         * m4/afs.m4: Add missing AC_MSG_RESULT.
35470         Reported by Bruno Haible.
35471
35472         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
35473         Suggestion from Bruno Haible.
35474
35475 2000-06-23  Jim Meyering  <meyering@lucent.com>
35476
35477         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
35478
35479 2000-06-21  Jim Meyering  <meyering@lucent.com>
35480
35481         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
35482
35483 2000-06-21  Jim Meyering  <meyering@lucent.com>
35484
35485         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
35486         (noinst_HEADERS): Add getstr.h.
35487
35488         * lib/getline.c (getstr): Move into a separate file.
35489         * lib/getstr.c (getstr): New file, extracted from getline.c, with
35490         the following changes: new parameter, delim2; both delim[12]
35491         parameters have type `int', not `char'.  The latter would lose
35492         with 8-bit delimiters.
35493         * lib/getstr.h: New file.
35494
35495 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
35496
35497         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
35498         than 1024, return a memory chunk of least possible size, instead
35499         of size PATH_MAX + 2. In the loop, increment the size proportionally.
35500         Use free/xmalloc instead of xrealloc to avoid copying for very long
35501         paths.
35502
35503 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
35504
35505         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
35506         the empty string.
35507
35508 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
35509
35510         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
35511         address, not strdup.  Include <stdlib.h> and don't declare free().
35512
35513 2000-06-19  Jim Meyering  <meyering@lucent.com>
35514
35515         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
35516
35517 2000-06-18  Jim Meyering  <meyering@lucent.com>
35518
35519         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
35520
35521         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
35522         `checking whether...' message to be consistent with that of the
35523         lstat test.
35524
35525 2000-06-18  Jim Meyering  <meyering@lucent.com>
35526
35527         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
35528         Besides, these days every porting target provides a mkdir function.
35529
35530         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
35531         needed. (this snippet comes from src/system.h).
35532
35533 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
35534
35535         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
35536
35537 2000-06-15  Paul Eggert  <eggert@twinsun.com>
35538
35539         * lib/human.c (adjust_value): New function.
35540         (human_readable_inexact): Apply rounding style even when
35541         printing approximate values.
35542
35543 2000-06-14  Paul Eggert  <eggert@twinsun.com>
35544
35545         * lib/human.c (human_readable_inexact): Allow an input block
35546         size that is not a multiple of the output block size, and vice versa.
35547         Reported by Piergiorgio Sartor.
35548
35549 2000-06-14  Paul Eggert  <eggert@twinsun.com>
35550
35551         * lib/getdate.y (get_date): Apply relative times after time
35552         zone indicator, not before.  Reported by Todd A. Jacobs.
35553
35554 2000-06-13  Jim Meyering  <meyering@lucent.com>
35555
35556         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
35557
35558         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
35559
35560 2000-06-12  Paul Eggert  <eggert@twinsun.com>
35561
35562         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
35563
35564 2000-06-12  Jim Meyering  <meyering@lucent.com>
35565
35566         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
35567         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
35568         optional argument.
35569         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
35570         the optional argument, `lib'.
35571
35572 2000-06-08  Jim Meyering  <meyering@lucent.com>
35573
35574         * m4/largefile.m4: Remove file (now that it's part of autoconf).
35575
35576 2000-06-04  Paul Eggert  <eggert@twinsun.com>
35577
35578         Rewrite largefile configuration so that we don't need to run
35579         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
35580         AC_CANONICAL_HOST in configure.in -- jmm]
35581
35582         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
35583         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
35584         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
35585         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
35586         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
35587         All uses changed.
35588         Instead of inspecting the output of getconf, try to compile the
35589         test program without and with the macro definition.
35590         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
35591         for getconf.  Instead, check for the needed flags by compiling
35592         test programs.
35593
35594 2000-06-04  Paul Eggert  <eggert@twinsun.com>
35595
35596         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
35597
35598 2000-06-04  Jim Meyering  <meyering@lucent.com>
35599
35600         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
35601         SunOS 4.1.4 for which gid_t is an unsigned type.
35602
35603 2000-06-03  Jim Meyering  <meyering@lucent.com>
35604
35605         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
35606         now that autoconf requires that.
35607
35608         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
35609         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
35610         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
35611
35612 2000-06-03  Jim Meyering  <meyering@lucent.com>
35613
35614         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
35615
35616 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
35617
35618         * m4/glibc21.m4: New file.
35619         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
35620
35621 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
35622
35623         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
35624         newer, don't install charset.alias.
35625         * lib/config.charset: Change the Linux/glibc rules so they become empty
35626         on glibc-2.1 or newer.
35627
35628 2000-06-02  Jim Meyering  <meyering@lucent.com>
35629
35630         * lib/mountlist.c: Back out last change.  Instead, do this...
35631         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
35632         me_dummy member using the same `ignore'-testing code.
35633         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
35634         fs_type strings.
35635         From Mark D. Roth.
35636
35637 2000-05-29  Jim Meyering  <meyering@lucent.com>
35638
35639         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
35640         mounts with the `ignore' attribute.  Based on a patch from
35641         Mark D. Roth.
35642
35643 2000-05-28  Jim Meyering  <meyering@lucent.com>
35644
35645         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
35646         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35647         * m4/stat.m4: Likewise.
35648         * m4/lstat.m4: Likewise.
35649         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
35650
35651         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
35652         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
35653
35654 2000-05-26  Jim Meyering  <meyering@lucent.com>
35655
35656         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
35657
35658 2000-05-24  Jim Meyering  <meyering@lucent.com>
35659
35660         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
35661         autoconf requires that.
35662         * m4/lib-check.m4: Likewise.
35663         * m4/jm-macros.m4: Likewise.
35664         * m4/strftime.m4: Likewise.
35665
35666         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
35667         AC_CHECK_DECLS, now that autoconf requires that.
35668
35669 2000-05-22  Jim Meyering  <meyering@lucent.com>
35670
35671         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35672         * m4/lstat.m4: Likewise.
35673
35674 2000-05-22  Jim Meyering  <meyering@lucent.com>
35675
35676         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
35677
35678 2000-05-20  Jim Meyering  <meyering@lucent.com>
35679
35680         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
35681         (jm_PREREQ): Use it.
35682
35683 2000-05-18  Jim Meyering  <meyering@lucent.com>
35684
35685         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
35686         back, too, since it may have been modified by allocate_entry.
35687         (hash_delete): Rewrite to use neither the assignment operator
35688         nor the comma operator in an if-expression.
35689
35690 2000-05-15  Paul Eggert  <eggert@twinsun.com>
35691
35692         * lib/closeout.c:
35693         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
35694         Remove; no longer needed.
35695         "quotearg.h": Add include.
35696         (file_name): Do not bother to explicitly initialize to NULL; it's less
35697         efficient on some hosts.
35698         (close_stdout_status): Remove test as to whether stdout was already
35699         closed; it breaks for the case "echo x | sort >&-".
35700         Quote file name colons.
35701         Do not assume that _("write error") lacks format strings.
35702
35703 2000-05-15  Jim Meyering  <meyering@lucent.com>
35704
35705         * lib/version-etc.c (version_etc_copyright): Update the copyright
35706         string used in all --version output.
35707
35708 2000-05-14  Jim Meyering  <meyering@lucent.com>
35709
35710         * lib/closeout.c (close_stdout_set_file_name): New function.
35711         (close_stdout_status): Use new file-scoped global.
35712         Return right away if fstat says the stdout file descriptor is invalid.
35713         * lib/closeout.h (close_stdout_set_file_name): Declare.
35714
35715 2000-05-10  Jim Meyering  <meyering@lucent.com>
35716
35717         * lib/closeout.c [default_exit_status]: New file-scoped variable.
35718         (close_stdout_set_status): New function.
35719         * lib/closeout.h (close_stdout_set_status): Declare.
35720
35721 2000-05-09  Jim Meyering  <meyering@lucent.com>
35722
35723         * m4/gettext.m4: Rename this...
35724         * m4/libintl.m4: ...to this.
35725
35726 2000-05-08  Jim Meyering  <meyering@lucent.com>
35727
35728         * lib/long-options.c: Don't include closeout.h.
35729         (parse_long_options): Don't call close_stdout for --version.
35730
35731 2000-05-06  Paul Eggert  <eggert@twinsun.com>
35732
35733         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
35734         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
35735         2.1.3 bug.  This avoids a clash when files like regex.c define
35736         _GNU_SOURCE.
35737
35738 2000-05-06  Jim Meyering  <meyering@lucent.com>
35739
35740         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
35741         (AC_REPLACE_FUNCS): Add strnlen.
35742
35743         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
35744         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
35745
35746         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
35747         AC_SEARCH_LIBS call for nanosleep.
35748         (LIB_NANOSLEEP): Set and AC_SUBST.
35749
35750 2000-05-06  Jim Meyering  <meyering@lucent.com>
35751
35752         * lib/strnlen.c: Undefine __strnlen and strnlen.
35753         [!weak_alias]: Define __strnlen to strnlen.
35754
35755         * lib/atexit.c: New file, from libiberty.
35756
35757 2000-05-06  Jim Meyering  <meyering@lucent.com>
35758
35759         * lib/closeout.c (close_stdout_status): Also check for errors on the
35760         stderr stream.
35761
35762 2000-05-05  Jim Meyering  <meyering@lucent.com>
35763
35764         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
35765         AC_SEARCH_LIBS call for clock_gettime.
35766         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
35767
35768         * m4/search-libs.m4: Update from autoconf.
35769
35770         su doesn't work on Solaris 2.6.
35771         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
35772         <shadow.h>.  Reported by Dragos Harabor.
35773
35774 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
35775
35776         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
35777         memcpy instead of xmalloc, xrealloc, path_concat.
35778         (locale_charset): Treat empty environment variables as absent.
35779         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
35780
35781 2000-05-04  Jim Meyering  <meyering@lucent.com>
35782
35783         * lib/getopt.c: Update from glibc.
35784         * lib/obstack.c: Likewise.
35785         * lib/obstack.h: Likewise.
35786         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
35787         file
35788
35789         * lib/regex.h: Likewise.
35790         * lib/strndup.c: Likewise.
35791         * lib/strnlen.c: New file, from glibc.
35792
35793 2000-05-03  Jim Meyering  <meyering@lucent.com>
35794
35795         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
35796
35797 2000-05-02  Paul Eggert  <eggert@twinsun.com>
35798
35799         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
35800         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
35801         compile-time test, rather than inspecting host and OS, to
35802         decide whether to define _LARGEFILE_SOURCE.
35803
35804 2000-05-01  Jim Meyering  <meyering@lucent.com>
35805
35806         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
35807
35808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
35809         Based on a patch from Bruno Haible.
35810
35811 2000-05-01  Jim Meyering  <meyering@lucent.com>
35812
35813         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
35814
35815 2000-04-29  Jim Meyering  <meyering@lucent.com>
35816
35817         * lib/path-concat.c: Declare strdup only if it's not defined.
35818         * lib/canon-host.c: Likewise.
35819
35820 2000-04-28  Jim Meyering  <meyering@lucent.com>
35821
35822         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
35823         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
35824         is included first, then limits.h is included by locale.h by libintl.h.
35825         From John David Anglin.
35826
35827 2000-04-25  Jim Meyering  <meyering@lucent.com>
35828
35829         * lib/makepath.c (S_IRWXUGO): Define.
35830         (make_path): Always perform explicit chmod if MODE specifies any
35831         of the `special' permission bits.  Prompted by a bug report against
35832         install from Mate Wierdl and Joost van Baal.
35833
35834 2000-04-18  Jim Meyering  <meyering@lucent.com>
35835
35836         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
35837         (jm_PREREQ): Use it.
35838
35839 2000-04-18  Jim Meyering  <meyering@lucent.com>
35840
35841         * lib/README: New file.
35842
35843         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
35844         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
35845
35846 2000-04-17  Jim Meyering  <meyering@lucent.com>
35847
35848         Get it right :-)
35849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
35850         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
35851         Suggestion from Akim Demaille.
35852
35853 2000-04-17  Jim Meyering  <meyering@lucent.com>
35854
35855         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
35856         the definition of it to rpl_strftime also defined-away the system's
35857         declaration.
35858
35859 2000-04-15  Jim Meyering  <meyering@lucent.com>
35860
35861         Use `C' to denote so-called `contiguous' files, the same way
35862         that tar does.
35863         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
35864         (ftypelet): Use S_ISCTG.
35865         From Michael Deutschmann.
35866
35867 2000-04-14  Jim Meyering  <meyering@lucent.com>
35868
35869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
35870         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
35871         clobbered.
35872
35873 2000-04-14  Jim Meyering  <meyering@lucent.com>
35874
35875         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
35876
35877 2000-04-13  Jim Meyering  <meyering@lucent.com>
35878
35879         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
35880         AH_VERBATIM to insert required #ifndef into config.h.in.
35881         Suggestion from Akim Demaille.
35882
35883 2000-04-12  Jim Meyering  <meyering@lucent.com>
35884
35885         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
35886         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
35887         Christian Krackowizer.
35888
35889         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
35890         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
35891         (AC_SYS_LARGEFILE): Require.
35892         (AM_C_PROTOTYPES): Require.
35893
35894 2000-04-08  Jim Meyering  <meyering@lucent.com>
35895
35896         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
35897         names don't conflict.  Reported by Eli Zaretskii.
35898
35899 2000-04-07  Jim Meyering  <meyering@lucent.com>
35900
35901         * lib/putenv.c: Move inclusion of errno.h so it follows that of
35902         sys/types.h, to work around system header problems on AIX 3.2.5.
35903         From Bruno Haible.
35904
35905 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
35906
35907         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
35908         bug.  Deal with the different error behavior of Irix iconv.
35909
35910 2000-04-05  Paul Eggert  <eggert@twinsun.com>
35911
35912         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
35913         IRIX if the installer said otherwise.
35914
35915 2000-04-05  Jim Meyering  <meyering@lucent.com>
35916
35917         Portability tweaks required for ultrix4.3.
35918         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
35919         (jm_CHECK_DECLS): Add getutent to the list of functions.
35920         (_jm_DECL_HEADERS): Add utmpx.h.
35921         From John David Anglin.
35922
35923         * m4/strftime.m4: Back out the 2000-04-02 change.
35924         Instead of that change, simply undefine putenv in the test program.
35925
35926 2000-04-05  Jim Meyering  <meyering@lucent.com>
35927
35928         Portability tweaks required for ultrix4.3.
35929         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
35930         getutent.
35931         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
35932         * lib/canon-host.c: Declare strdup.
35933         * lib/path-concat.c: Likewise.
35934         From John David Anglin.
35935
35936 2000-04-04  Jim Meyering  <meyering@lucent.com>
35937
35938         Be more DOS 8.3-friendly.
35939         * lib/ref-add.sin: Renamed from ref-add.sed.in.
35940         * lib/ref-del.sin: Renamed from ref-del.sed.in.
35941         * lib/Makefile.am: Reflect renaming.
35942         Reported by Eli Zaretskii.
35943
35944         Use a temporary file name that won't clash with `charset.alias'
35945         in the DOS 8.3 name space.
35946         * lib/Makefile.am (charset_tmp): Define.
35947         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
35948         (uninstall-local): Likewise.
35949         Reported by Eli Zaretskii.
35950
35951 2000-04-03  Jim Meyering  <meyering@lucent.com>
35952
35953         * m4/gettext.m4: Fix typo in comment.
35954
35955         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
35956         textutils/configure.in).  Suggestion from Paul Eggert.
35957         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
35958
35959 2000-04-02  Paul Eggert  <eggert@twinsun.com>
35960
35961         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
35962         variable in the shell rather than using putenv, which isn't
35963         portable.  This avoids the configure-time inter-test dependency
35964         on the potentially-renamed putenv function.
35965
35966 2000-03-30  Paul Eggert  <eggert@twinsun.com>
35967
35968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
35969         before checking struct stat.st_blksize, so that
35970         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
35971
35972 2000-03-29  Paul Eggert  <eggert@twinsun.com>
35973
35974         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
35975         since strftime.c uses HAVE_STRFTIME to decide whether to use
35976         the underlying strftime.
35977
35978 2000-03-29  Paul Eggert  <eggert@twinsun.com>
35979
35980         * lib/time/strftime.c (my_strftime): Make sure we call the system
35981         strftime, not ourselves, when invoking the underlying strftime.
35982
35983 2000-03-24  Jim Meyering  <meyering@lucent.com>
35984
35985         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
35986         (charset_alias): Define.
35987         (install-exec-local): Factor out common code.
35988         (uninstall-local): Split lines longer than 80.
35989         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
35990         (SUFFIXES): Define.
35991         (.sed.in.sed): New rule.  Don't redirect directly to $@.
35992         (CLEANFILES): Add ref-add.sed and ref-del.sed.
35993
35994 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
35995
35996         * lib/config.charset: Output a line containing "Packages using this
35997         file".
35998         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
35999         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
36000         ref-del.sed): New rules.
36001
36002 2000-03-17  Jim Meyering  <meyering@lucent.com>
36003
36004         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
36005         Otherwise, include <strings.h>
36006
36007 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
36008
36009         * lib/unicodeio.c (utf8_wctomb): New function.
36010         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
36011         format instead of in UCS-4 with platform dependent endianness.
36012
36013 2000-03-10  Jim Meyering  <meyering@lucent.com>
36014
36015         * m4/lib-check.m4: Look for getspnam in -lgen, too.
36016         From Marco Franzen.
36017
36018 2000-03-07  Paul Eggert  <eggert@twinsun.com>
36019
36020         * lib/savedir.c (savedir): Work even if directory size is
36021         negative; this can happen with some screwy NFS configurations.
36022
36023 2000-03-06  Jim Meyering  <meyering@lucent.com>
36024
36025         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
36026         if it's NULL (because we ran out of memory).  From Bruno Haible.
36027
36028 2000-03-05  Jim Meyering  <meyering@lucent.com>
36029
36030         * lib/localcharset.c ("path-concat.h"): Include.
36031         (get_charset_aliases): Use path_concat instead of ANSI string
36032         concatenation.
36033
36034         * lib/unicodeio.h (PARAMS): Define.
36035         Use it to guard prototype.
36036
36037 2000-03-04  Jim Meyering  <meyering@lucent.com>
36038
36039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
36040         for lib/localcharset.c.
36041
36042 2000-03-04  Jim Meyering  <meyering@lucent.com>
36043
36044         * lib/Makefile.am (install-exec-local): Create $(libdir) before
36045         installing into it.
36046         (uninstall-local): Uncomment this rule so `make distcheck' works
36047         once again.
36048
36049         * lib/unicodeio.c (<errno.h>): Include it.
36050         (errno): Declare if not defined.
36051
36052         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
36053
36054         * lib/config.charset: New version, incorporating remarks from a linux
36055         i18n mailing list.  From Bruno Haible.
36056
36057 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
36058
36059         * m4/codeset.m4: New file.
36060         * m4/iconv.m4: New file.
36061         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
36062
36063 2000-03-03  Jim Meyering  <meyering@lucent.com>
36064
36065         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
36066
36067 2000-03-02  Jim Meyering  <meyering@lucent.com>
36068
36069         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
36070         the messages come out on separate lines.
36071
36072         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
36073         rather than jm_CHECK_DECLARATIONS.
36074         * m4/decl.m4: Remove now-unused file.
36075
36076         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
36077         geteuid.
36078
36079 2000-03-02  Jim Meyering  <meyering@lucent.com>
36080
36081         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
36082
36083 2000-03-01  Jim Meyering  <meyering@lucent.com>
36084
36085         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
36086         * lib/unicodeio.c: Likewise.
36087
36088 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
36089
36090         * lib/config.charset: New file.
36091         * lib/localcharset.c: New file.
36092         * lib/unicodeio.h, lib/unicodeio.c: New files.
36093         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
36094         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
36095         (noinst_HEADERS): Add unicodeio.h.
36096         (all-local, install-exec-local, charset.alias): New targets.
36097
36098 2000-02-28  Paul Eggert  <eggert@twinsun.com>
36099
36100         * lib/quotearg.c (ALERT_CHAR): New macro.
36101         (quotearg_buffer_restyled): Use it.
36102
36103 2000-02-27  Jim Meyering  <meyering@lucent.com>
36104
36105         * m4/check-decl.m4: Add getenv to the list.
36106
36107 2000-02-27  Jim Meyering  <meyering@lucent.com>
36108
36109         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
36110         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
36111
36112         * lib/backupfile.c: Guard inclusion of stdlib.h with
36113         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
36114         Declare malloc if needed.
36115
36116         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
36117         `#ifndef HAVE_DECL..'
36118         now that autoconf always defines the HAVE_DECL_ symbols.
36119         * lib/human.c: Likewise.
36120         * lib/same.c: Likewise.
36121         * lib/strtoumax.c: Likewise.
36122
36123         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
36124         declaration check was not run.
36125         * lib/hash.c: Likewise.
36126         * lib/human.c: Likewise.
36127         * lib/same.c: Likewise.
36128         * lib/strtoumax.c: Likewise.
36129
36130         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
36131         `.', then first look up the entire `.'-containing string as a login
36132         name.
36133
36134 2000-02-23  Jim Meyering  <meyering@lucent.com>
36135
36136         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
36137         in place of my hack.
36138
36139 2000-02-18  Paul Eggert  <eggert@twinsun.com>
36140
36141         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
36142         (textint): New typedef.
36143         (parser_control): Member year changed from int to textint.
36144         All uses changed.
36145         (YYSTYPE): Removed; replaced by %union with int and textint members.
36146         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
36147         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
36148         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
36149         (tSNUMBER, tUNUMBER): Now of type <textintval>.
36150         (date, number, to_year): Use width of number in digits, not its value,
36151         to determine whether it's a 2-digit year, or a 2-digit time.
36152         (yylex): Store number of digits of numeric tokens.
36153         Reported by John Kendall.
36154
36155         (parser_control): Changed from struct parser_control to typedef (for
36156         consistency).  All uses changed.
36157
36158         (tID): Removed; not used.
36159         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
36160
36161 2000-02-14  Paul Eggert  <eggert@twinsun.com>
36162
36163         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
36164         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
36165
36166 2000-02-12  Jim Meyering  <meyering@lucent.com>
36167
36168         * lib/userspec.c (ISDIGIT): Define it.
36169         (isdigit): Remove definition.
36170         (is_number): Use ISDIGIT, not isdigit.
36171         <libintl.h>: Include.
36172         (_ and N_): Define.
36173         (parse_user_spec): Mark translatable strings.
36174
36175 2000-02-10  Jim Meyering  <meyering@lucent.com>
36176
36177         With these changes, nanosleep.[ch] are finally enough like the other
36178         lib/* replacement files to compile on a few more losing systems.
36179
36180         * lib/nanosleep.h: Don't include config.h.
36181         Remove prototype from declaration of nanosleep.
36182         (PARAMS): Remove now-unneeded definition.
36183         * lib/nanosleep.c: #undef nanosleep.
36184         (rpl_nanosleep): Rename from nanosleep.
36185
36186 2000-02-10  Jim Meyering  <meyering@lucent.com>
36187
36188         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
36189         gnu_nanosleep to rpl_nanosleep.
36190
36191 2000-02-09  Jim Meyering  <meyering@lucent.com>
36192
36193         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
36194         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
36195
36196 2000-02-08  Akim Demaille  <akim@epita.fr>
36197
36198         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
36199         `[' and `]' and remove uses of `changequote'.
36200         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
36201         (AC_SYS_LARGEFILE): Likewise.
36202         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36203         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
36204         of changequote.
36205         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
36206         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
36207         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
36208         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
36209
36210 2000-02-05  Jim Meyering  <meyering@lucent.com>
36211
36212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
36213         Remove explicit use of AC_HEADER_TIME.  It is required by
36214         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
36215         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
36216         in autoconf whereby the expansion of the latter ended up preceding
36217         the expansion of its prerequisite, AC_HEADER_TIME.
36218         Reported by Volker Borchert.
36219
36220 2000-02-03  Jim Meyering  <meyering@lucent.com>
36221
36222         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
36223
36224 2000-02-03  Jim Meyering  <meyering@lucent.com>
36225
36226         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
36227         rather than with `#if HAVE_UTMPNAME'.
36228
36229 2000-02-02  Jim Meyering  <meyering@lucent.com>
36230
36231         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
36232         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
36233         Reported by Eli Zaretskii.
36234
36235 2000-02-01  Jim Meyering  <meyering@lucent.com>
36236
36237         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
36238
36239 2000-01-31  Jim Meyering  <meyering@lucent.com>
36240
36241         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
36242         functions.  Add the time.h and sys/time.h headers along with the
36243         AC_REQUIRE'ment of AC_HEADER_TIME.
36244
36245 2000-01-31  Jim Meyering  <meyering@lucent.com>
36246
36247         * lib/nanosleep.h (nanosleep): Guard declaration with
36248         `#if ! HAVE_DECL_NANOSLEEP'.
36249         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
36250         the declaration in that vendor's sys/timers.h.
36251         Reported by Christian Krackowizer.
36252
36253         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
36254         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
36255         (ISPRINT): Likewise.
36256         Reported by Tom Tromey.
36257
36258 2000-01-30  Jim Meyering  <meyering@lucent.com>
36259
36260         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
36261
36262         * m4/prereq.m4 (utmp_includes): Define.
36263         Check for ut_user and ut_name members in both struct utmpx
36264         and struct utmp.
36265
36266 2000-01-30  Jim Meyering  <meyering@lucent.com>
36267
36268         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
36269         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
36270         header files where only utmpx.ut_user is declared.
36271
36272         * lib/readutmp.h (UT_USER): Define.
36273
36274 2000-01-29  Jim Meyering  <meyering@lucent.com>
36275
36276         * m4/lib-check.m4: New file containing library-related checks from
36277         fileutils and sh-utils (textutils had none).
36278
36279 2000-01-28  Jim Meyering  <meyering@lucent.com>
36280
36281         * m4/perl.m4: Change format of warning message to look more like that
36282         from the missing script.  Suggestion from François Pinard.
36283
36284 2000-01-25  Jim Meyering  <meyering@lucent.com>
36285
36286         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
36287         well as time.h in the compile check.
36288         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
36289         Fix typo in cross-compiling case: s/yes/no/.
36290
36291 2000-01-23  Jim Meyering  <meyering@lucent.com>
36292
36293         * m4/jm-macros.m4: Move df-related tests here from
36294         fileutils/configure.in
36295
36296         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
36297         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
36298
36299         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
36300         s/space/ac_fsusage_space/.
36301         (jm_FILE_SYSTEM_USAGE): Take two parameters.
36302
36303         * m4/ftruncate.m4: New file (derived from part of
36304         fileutils/configure.in).
36305         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
36306         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
36307
36308         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
36309         AC_SUBST these here, rather than just in sh-util/configure.in, so
36310         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
36311         all the same.
36312         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
36313         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
36314         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
36315         (AC_SUBST(POW_LIBM)): Likewise.
36316         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
36317
36318 2000-01-23  Jim Meyering  <meyering@lucent.com>
36319
36320         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
36321         obstack.c.
36322
36323 2000-01-22  Jim Meyering  <meyering@lucent.com>
36324
36325         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
36326
36327         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
36328
36329         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
36330         configure.in
36331         (AC_CHECK_HEADERS): Likewise for sh-utils.
36332         (AC_CHECK_HEADERS): Likewise for textutils.
36333         Merge the three lists of headers.
36334
36335         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
36336         from fileutils' configure.in.
36337
36338         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
36339         code. Moved tests into their own function (_jm_DECL_HEADERS) in
36340         check-decl.m4.
36341
36342         * m4/check-decl.m4: Use #if rather than #ifdef.
36343         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
36344         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
36345         (_jm_DECL_HEADERS): Define new function.
36346         (jm_CHECK_DECLARATIONS): Require it.
36347
36348 2000-01-22  Jim Meyering  <meyering@lucent.com>
36349
36350         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
36351         [! HAVE_DECL_STRTOULL]: Declare strtoull.
36352         Required for some AIX systems.  Reported by Christian Krackowizer.
36353         [TESTING] (main): New function.
36354
36355         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
36356         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
36357         letters.
36358
36359         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
36360         iswprint.
36361
36362         * lib/strverscmp.c (ISDIGIT): Define.
36363         (strverscmp): Use ISDIGIT, not isdigit.
36364
36365 2000-01-19  Jim Meyering  <meyering@lucent.com>
36366
36367         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
36368         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
36369         defines `struct timespec' in <sys/time.h>
36370
36371         * m4/c-bs-a.m4: Remove uses of changequote altogether.
36372         Thanks to Akim for explaining.
36373
36374 2000-01-17  Paul Eggert  <eggert@twinsun.com>
36375
36376         * lib/nanosleep.c (nanosleep):
36377         Don't use SA_INTERRUPT to decide whether to call sigaction, as
36378         POSIX.1 doesn't require SA_INTERRUPT and some systems
36379         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
36380         it's been part of POSIX.1 since day 1 (in 1988).
36381
36382 2000-01-17  Jim Meyering  <meyering@lucent.com>
36383
36384         * lib/interlock: Remove unused file.  Reported by François Pinard.
36385
36386 2000-01-16  Paul Eggert  <eggert@twinsun.com>
36387
36388         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
36389         alert, backslash, formfeed, and vertical tab unnecessarily in
36390         shell quoting style.
36391
36392 2000-01-16  Jim Meyering  <meyering@lucent.com>
36393
36394         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
36395         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
36396         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
36397         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
36398
36399 2000-01-16  Jim Meyering  <meyering@lucent.com>
36400
36401         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
36402         because the latter didn't work.
36403
36404 2000-01-15  Jim Meyering  <meyering@lucent.com>
36405
36406         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
36407         (AC_REPLACE_FUNCS): Add memcpy and memset.
36408         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
36409         Add strpbrk.
36410         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
36411
36412 2000-01-12  Jim Meyering  <meyering@lucent.com>
36413
36414         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
36415         (jm_PREREQ): Use it.
36416         (jm_PREREQ_READUTMP): New macro.
36417         (jm_PREREQ): Use it.
36418
36419 2000-01-11  Paul Eggert  <eggert@twinsun.com>
36420
36421         Quote multibyte characters correctly.
36422         * m4/c-bs-a.m4: New file.
36423         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
36424         (jm_PREREQ): Use it.
36425
36426 2000-01-11  Paul Eggert  <eggert@twinsun.com>
36427
36428         * m4/uintmax_t.m4: Port to autoconf 2.13.
36429
36430 2000-01-08  Jim Meyering  <meyering@ascend.com>
36431
36432         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
36433         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
36434
36435 2000-01-04  Jim Meyering  <meyering@ascend.com>
36436
36437         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
36438         jm_STRUCT_DIRENT_D_TYPE.
36439         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
36440         jm_STRUCT_DIRENT_D_INO.
36441         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
36442         jm_STRUCT_UTIMBUF.
36443         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
36444         renamings.
36445         * m4/utime.m4: Likewise.
36446
36447         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
36448         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
36449
36450 2000-01-03  Paul Eggert  <eggert@twinsun.com>
36451
36452         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
36453         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
36454
36455 2000-01-02  Jim Meyering  <meyering@ascend.com>
36456
36457         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
36458         remember if this is necessary.
36459
36460 1999-12-26  Jim Meyering  <meyering@ascend.com>
36461
36462         * m4/jm-macros.m4: Use it here.
36463         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
36464
36465 1999-12-23  Jim Meyering  <meyering@ascend.com>
36466
36467         * m4/jm-macros.m4: Check for clock_gettime (moved from
36468         fileutils/configure.in)
36469         Check for gettimeofday.
36470
36471 1999-12-20  Jim Meyering  <meyering@ascend.com>
36472
36473         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
36474         autoconf-2.14a-1999-12-20.
36475
36476 1999-12-19  Jim Meyering  <meyering@ascend.com>
36477
36478         * m4/lstat-slash.m4: New file.
36479         * m4/jm-macros.m4: Use the new macro:
36480         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36481
36482 1999-12-07  Jim Meyering  <meyering@ascend.com>
36483
36484         * m4/perl.m4: Require that File::Compare be available, too.
36485         Too many systems seem to lack it.
36486
36487         * m4/strftime.m4: Add checks for most of the cpp macros tested in
36488         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
36489
36490 1999-11-18  Paul Eggert  <eggert@twinsun.com>
36491
36492         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
36493         problem with the QNX 4.25 shell, which doesn't propagate exit
36494         status of failed commands inside shell assignments.
36495
36496 1999-11-17  Jim Meyering  <meyering@ascend.com>
36497
36498         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
36499
36500 1999-11-07  Jim Meyering  <meyering@ascend.com>
36501
36502         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
36503
36504 1999-11-06  Jim Meyering  <meyering@ascend.com>
36505
36506         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
36507         * m4/jm-macros.m4 (jm_MACROS): Use it here.
36508
36509 1999-11-05  Jim Meyering  <meyering@ascend.com>
36510
36511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
36512         configure.in of textutils, fileutils, and sh-utils into this one
36513         (shared between those packages) file.
36514         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
36515         AC_STRUCT_ST_BLKSIZE.
36516
36517 1999-11-03  Jim Meyering  <meyering@ascend.com>
36518
36519         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
36520         of AC_CHECK_TYPE checks includes unistd.h.
36521         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
36522         Suggestion from Akim Demaille.
36523
36524 1999-10-30  Jim Meyering  <meyering@ascend.com>
36525
36526         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
36527         m4-quoted string.
36528         * m4/ls-mntd-fs.m4: Likewise.
36529         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
36530         * m4/jm-winsz1.m4: Likewise.
36531
36532         * m4/const.m4: Remove file, since the fix made it into the experimental
36533         version of autoconf.
36534         * m4/mktime.m4: Likewise.
36535
36536         * m4/check-type.m4: Remove file, now that the latest version of
36537         AC_CHECK_TYPE takes a third arg to specify additional #includes.
36538
36539         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
36540         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
36541         AC_CHECK_TYPE.
36542
36543 1999-10-04  Jim Meyering  <meyering@ascend.com>
36544
36545         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
36546
36547 1999-09-22  Paul Eggert  <eggert@twinsun.com>
36548
36549         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
36550         2.95.1 bug with HP-UX 10.20.
36551
36552 1999-09-17  Jim Meyering  <meyering@ascend.com>
36553
36554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
36555         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
36556         due to missing strdup (against sh-utils-2.0).
36557
36558 1999-08-29  Jim Meyering  <meyering@ascend.com>
36559
36560         * m4/jm-macros.m4: Require jm_BISON.
36561         * m4/bison.m4: New file.
36562
36563 1999-08-17  Paul Eggert  <eggert@twinsun.com>
36564
36565         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
36566         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
36567
36568 1999-08-05  Jim Meyering  <meyering@ascend.com>
36569
36570         * m4/getline.m4: Rename test file from conftestdata to conftest.data
36571         to avoid conflicts with `conftest' on 8+3 filesystems.
36572         Suggestion from Eli Zaretskii.
36573
36574 1999-08-04  Jim Meyering  <meyering@ascend.com>
36575
36576         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
36577         fileutils and sh-utils (textutils's getline test was inadequate).
36578         (AM_FUNC_GETLINE): Run this test.
36579         (AC_CHECK_FUNCS): Check for getdelim.
36580         Reported by Bob Proulx.
36581
36582 1999-08-02  Jim Meyering  <meyering@ascend.com>
36583
36584         * m4/jm-macros.m4: Add a comment.
36585
36586 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36587
36588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
36589         <inttypes.h> defines strtoumax as a macro (and not as a
36590         function).
36591
36592 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36593
36594         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
36595         that we can shift, multiply and divide unsigned long long
36596         values; Ultrix cc can't do it.
36597
36598 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36599
36600         * m4/mktime.m4: New file, which is a preview of what should appear
36601         in the next public autoconf release.
36602
36603 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36604
36605         * m4/lfs.m4: Remove this file.
36606         * m4/largefile.m4: New file.  It contains the old contents of
36607         lfs.m4, except that all names with prefix AC_LFS have been
36608         changed to use the prefix AC_SYS_LARGEFILE instead, to be
36609         compatible with future autoconf versions.  Also, some minor m4
36610         quoting problems have been fixed.
36611
36612 1999-08-01  Paul Eggert  <eggert@twinsun.com>
36613
36614         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
36615         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
36616         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
36617         and simplify the shell code.
36618
36619 1999-08-01  Jim Meyering  <meyering@ascend.com>
36620
36621         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
36622         m4.
36623
36624 1999-07-20  Jim Meyering  <meyering@ascend.com>
36625
36626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
36627
36628 1999-07-15  Jim Meyering  <meyering@ascend.com>
36629
36630         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
36631
36632 1999-05-22  Jim Meyering  <meyering@ascend.com>
36633
36634         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
36635
36636 1999-05-20  Jim Meyering  <meyering@ascend.com>
36637
36638         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
36639         Add a colon after each `then' in case $4 is empty.
36640
36641 1999-05-16  Jim Meyering  <meyering@ascend.com>
36642
36643         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
36644
36645 1999-05-10  Jim Meyering  <meyering@ascend.com>
36646
36647         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
36648
36649         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
36650         AC_FUNC_MKTIME.
36651
36652 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
36653
36654         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
36655
36656 1999-05-04  Paul Eggert  <eggert@twinsun.com>
36657
36658         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
36659         not CPPFLAGS, so that linking works correctly in IRIX.
36660
36661 1999-04-30  Paul Eggert  <eggert@twinsun.com>
36662
36663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
36664
36665 1999-04-20  Paul Eggert  <eggert@twinsun.com>
36666
36667         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
36668         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
36669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
36670         jm_AC_TYPE_UNSIGNED_LONG_LONG.
36671         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
36672
36673         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
36674
36675 1999-04-20  Jim Meyering  <meyering@ascend.com>
36676
36677         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
36678         AC_REPLACE xstroull if necessary.  From Paul Eggert.
36679         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
36680
36681 1999-04-18  Jim Meyering  <meyering@ascend.com>
36682
36683         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
36684         * m4/jm-macros.m4: Use it.
36685
36686 1999-04-06  Jim Meyering  <meyering@ascend.com>
36687
36688         * m4/strftime.m4: Remove test for %f.
36689
36690 1999-03-29  Jim Meyering  <meyering@ascend.com>
36691
36692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
36693         superset of the AC_TYPE_* checks in the textutils, fileutils,
36694         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
36695         AC_TYPE_PID_T.
36696
36697 1999-03-28  Jim Meyering  <meyering@ascend.com>
36698
36699         * m4/jm-macros.m4: Define GNU_PACKAGE here.
36700         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
36701         replaced e.g., in the *.sh files of the sh-utils.
36702
36703 1999-03-20  Jim Meyering  <meyering@ascend.com>
36704
36705         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
36706         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
36707         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
36708
36709 1999-03-19  Jim Meyering  <meyering@ascend.com>
36710
36711         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
36712
36713 1999-03-12  Jim Meyering  <meyering@ascend.com>
36714
36715         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
36716
36717 1999-03-07  Jim Meyering  <meyering@ascend.com>
36718
36719         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
36720         declared.
36721
36722 1999-02-17  Jim Meyering  <meyering@ascend.com>
36723
36724         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
36725         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
36726
36727 1999-02-07  Jim Meyering  <meyering@ascend.com>
36728
36729         * m4/group-member.m4: New file -- extracted from sh-utils'
36730         configure.in.
36731
36732         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
36733         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
36734
36735 1999-02-06  Jim Meyering  <meyering@ascend.com>
36736
36737         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
36738         * m4/fnmatch.m4: Likewise.
36739         * m4/getgroups.m4: Likewise.
36740         * m4/lstat.m4: Likewise.
36741         * m4/malloc.m4: Likewise.
36742         * m4/putenv.m4: Likewise.
36743         * m4/realloc.m4: Likewise.
36744         * m4/regex.m4: Likewise.
36745         * m4/stat.m4: Likewise.
36746         * m4/strftime.m4: Likewise.
36747         Suggestion from Alain Magloire.
36748
36749         * m4/chown.m4: Use `.$ac_objext', not `.o'.
36750         * m4/fnmatch.m4: Likewise.
36751         * m4/getgroups.m4: Likewise.
36752         * m4/getline.m4: Likewise.
36753         * m4/lstat.m4: Likewise.
36754         * m4/malloc.m4: Likewise.
36755         * m4/memcmp.m4: Likewise.
36756         * m4/putenv.m4: Likewise.
36757         * m4/realloc.m4: Likewise.
36758         * m4/regex.m4: Likewise.
36759         * m4/stat.m4: Likewise.
36760         * m4/strftime.m4: Likewise.
36761         Suggestion from Alain Magloire.
36762
36763         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
36764         an argument.
36765
36766         * m4/regex.m4: Add a run-time Test for proper operation of
36767         re_compile_pattern.
36768
36769 1999-01-31  Jim Meyering  <meyering@ascend.com>
36770
36771         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
36772
36773 1999-01-30  Jim Meyering  <meyering@ascend.com>
36774
36775         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
36776
36777         * m4/jm-mktime.m4: Make this a wrapper around the official
36778         AM_FUNC_MKTIME rather than my private copy, now that the official one
36779         is up to date.
36780         * m4/mktime.m4: Remove file.
36781
36782         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
36783         * m4/uptime.m4: Likewise.
36784         * m4/uintmax_t.m4: Likewise.
36785
36786 1999-01-28  Jim Meyering  <meyering@ascend.com>
36787
36788         * m4/jm-macros.m4: Use jm_AFS.
36789         * m4/afs.m4: New file (from fileutils' configure.in).
36790
36791         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
36792         * m4/chown.m4: Likewise.
36793         * m4/d-ino.m4: Likewise.
36794         * m4/d-type.m4: Likewise.
36795         * m4/fnmatch.m4: Likewise.
36796         * m4/getgroups.m4: Likewise.
36797         * m4/gettext.m4: Likewise.
36798         * m4/jm-mktime.m4: Likewise.
36799         * m4/jm-winsz2.m4: Likewise.
36800         * m4/lcmessage.m4: Likewise.
36801         * m4/ls-mntd-fs.m4: Likewise.
36802         * m4/malloc.m4: Likewise.
36803         * m4/memcmp.m4: Likewise.
36804         * m4/putenv.m4: Likewise.
36805         * m4/realloc.m4: Likewise.
36806         * m4/st_mtim.m4: Likewise.
36807         * m4/strftime.m4: Likewise.
36808
36809 1999-01-16  Jim Meyering  <meyering@ascend.com>
36810
36811         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
36812         (ARGMATCH_DIE_DECL): Define.
36813
36814 1999-01-12  Jim Meyering  <meyering@ascend.com>
36815
36816         * m4/Makefile.am.in: Rewrite to avoid using fmt.
36817         Reported by Lars Hecking.
36818
36819 1999-01-10  Jim Meyering  <meyering@ascend.com>
36820
36821         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
36822         gross kludge.
36823         * m4/inttypes_h.m4: Likewise.
36824         * m4/lstat.m4: Likewise.
36825         * m4/malloc.m4: Likewise.
36826         * m4/readdir.m4: Likewise.
36827         * m4/realloc.m4: Likewise.
36828         * m4/st_dm_mode.m4: Likewise.
36829         * m4/stat.m4: Likewise.
36830         * m4/utimbuf.m4: Likewise.
36831         * m4/utimes.m4: Likewise.
36832
36833         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
36834         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
36835         comments in config.h.in are meaningful.
36836
36837         * m4/jm-macros.m4: Require autoconf-2.13 here.
36838
36839         * m4/regex.m4: By default, don't use the included regex.c on systems
36840         with glibc 2.  Suggestion from Uli Drepper.
36841
36842 1999-01-02  Jim Meyering  <meyering@ascend.com>
36843
36844         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
36845
36846 1998-12-18  Jim Meyering  <meyering@ascend.com>
36847
36848         * m4/Makefile.am.in (Makefile.am): Simplify rule.
36849         Based on a suggestion from Lars Hecking.
36850
36851 1998-11-16  Paul Eggert  <eggert@twinsun.com>
36852
36853         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
36854
36855 1998-11-16  Jim Meyering  <meyering@ascend.com>
36856
36857         * m4/lfs.m4: Double-quote the `uname...` expression.
36858
36859 1998-11-14  Jim Meyering  <meyering@ascend.com>
36860
36861         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
36862         * m4/stat.m4: Likewise.
36863
36864 1998-11-03  Jim Meyering  <meyering@ascend.com>
36865
36866         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
36867         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
36868
36869 1998-10-18  Jim Meyering  <meyering@ascend.com>
36870
36871         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
36872
36873 1998-10-17  Jim Meyering  <meyering@ascend.com>
36874
36875         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
36876         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
36877         calls for those previously hard-coded headers.  Instead, take a new
36878         parameter.
36879         (jm_CHECK_DECLARATIONS): Reflect interface change.
36880         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
36881         (jm_CHECK_DECL_LOCALTIME_R): New macro.
36882
36883         * m4/mktime.m4: Test for spring-forward gap before long-running test.
36884
36885 1998-10-14  Jim Meyering  <meyering@ascend.com>
36886
36887         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
36888         instead of "TZ=America/Vancouver".  From Paul Eggert.
36889
36890 1998-10-11  Jim Meyering  <meyering@ascend.com>
36891
36892         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
36893         This adds a test for a recently added compatibility fix for mktime.c.
36894         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
36895
36896 1998-09-27  Jim Meyering  <meyering@ascend.com>
36897
36898         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
36899
36900         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
36901         ../configure.in, including a change from Gordon Matzigkeit to allow
36902         cross-compiling for the Hurd.
36903
36904         * m4/glibc.m4: New file/macro to test for the GNU C Library
36905         versions 1 and 2.  From Gordon Matzigkeit.
36906         Indent.
36907
36908 1998-09-21  Jim Meyering  <meyering@ascend.com>
36909
36910         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
36911
36912 1998-08-18  Paul Eggert  <eggert@twinsun.com>
36913
36914         Port nanosecond-resolution times to UnixWare 2.1.2 and
36915         pedantic Solaris 2.6.
36916
36917         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
36918         AC_STRUCT_ST_MTIM.
36919         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
36920         Generate name of ns member, instead of just 1 or undef.
36921         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
36922
36923 1998-08-15  Jim Meyering  <meyering@ascend.com>
36924
36925         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
36926         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
36927         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
36928         instead of jm_TYPE_SSIZE_T.
36929
36930 1998-08-12  Jim Meyering  <meyering@ascend.com>
36931
36932         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
36933
36934 1998-08-02  Jim Meyering  <meyering@ascend.com>
36935
36936         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
36937         in acconfig.h manually.
36938
36939 1998-07-31  Paul Eggert  <eggert@twinsun.com>
36940
36941         * m4/st_mtim.m4: New file.
36942
36943 1998-07-28  Jim Meyering  <meyering@ascend.com>
36944
36945         * m4/utimes.m4: Undef stat.
36946
36947 1998-07-25  Jim Meyering  <meyering@ascend.com>
36948
36949         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
36950         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
36951
36952 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
36953
36954         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
36955         uid and gid actually remain unchanged.
36956
36957 1998-07-07  Jim Meyering  <meyering@ascend.com>
36958
36959         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
36960
36961 1998-07-04  Jim Meyering  <meyering@ascend.com>
36962
36963         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
36964         to prove that this macro can be used in packages without regex.c.
36965
36966 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
36967
36968         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
36969         is to be used.
36970
36971 1998-07-03  Jim Meyering  <meyering@ascend.com>
36972
36973         * m4/gettext.m4: Add -lintl if it's found to be necessary.
36974
36975         * m4/gettext.m4: New file -- from gettext-0.10.35.
36976         * m4/lcmessage.m4: Likewise.
36977         * m4/progtest.m4: Likewise.
36978
36979         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
36980         * m4/jm-macros.m4: Require the new macro.
36981
36982 1998-06-29  Jim Meyering  <meyering@ascend.com>
36983
36984         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
36985         for the definition of NGROUPS (used in a system header included
36986         by sys/mount.h).
36987
36988 1998-06-28  Jim Meyering  <meyering@ascend.com>
36989
36990         * m4/ls-mntd-fs.m4: New file.
36991         * m4/fstypename.m4: New file.
36992
36993         * m4/jm-macros.m4: Require the new macro.
36994         * m4/jm-glibc-io.m4: New file.
36995
36996 1998-05-19  Jim Meyering  <meyering@ascend.com>
36997
36998         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
36999         * m4/lchown.m4: New file.
37000
37001         * m4/Makefile.am.in: New file.
37002         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
37003
37004 1998-05-14  Jim Meyering  <meyering@ascend.com>
37005
37006         * m4/Makefile.am (EXTRA_DIST): Add them.
37007         * m4/jm-macros.m4: New file.
37008         * m4/utimbuf.m4: New file.
37009
37010 1998-05-12  Jim Meyering  <meyering@ascend.com>
37011
37012         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
37013
37014 1998-05-11  Jim Meyering  <meyering@ascend.com>
37015
37016         * m4/isc-posix.m4: New file.
37017
37018 1998-05-10  Jim Meyering  <meyering@ascend.com>
37019
37020         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
37021
37022 1998-05-09  Jim Meyering  <meyering@ascend.com>
37023
37024         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
37025         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
37026         with automake.
37027
37028         * m4/ssize_t.m4: New file.
37029         * m4/mktime.m4: Remove file -- the new automake has this now.
37030
37031 1998-04-26  Jim Meyering  <meyering@ascend.com>
37032
37033         * m4/assert.m4: New file.
37034         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
37035
37036 1998-04-05  Jim Meyering  <meyering@ascend.com>
37037
37038         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
37039         (jm_PREREQ): Use it here.
37040
37041 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
37042
37043         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
37044         in acconfig.h.
37045
37046 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
37047
37048         * m4/prereq.m4: New file.
37049         * m4/error.m4: New file.
37050         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
37051
37052 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
37053
37054         * m4/getline.m4: Don't set am_cv_func_working_getline before the
37055         cache-check for the same variable -- that defeated the purpose of
37056         the test; the test program was never run.  This was a problem only
37057         on systems with losing getline functions -- HP-UX 10.20 is one.
37058         Reported by Bjorn Helgaas.
37059
37060 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
37061
37062         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
37063
37064 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
37065
37066         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
37067
37068         * m4/const.m4: New file.  Use an initializer in this declaration
37069         typedef int charset[2]; const charset x;
37070         Reported by Bob Glickstein.
37071
37072 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
37073
37074         * m4/chown.m4: Fix reversed types on -1 args to chown.
37075         From Kaveh Ghazi.
37076
37077 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
37078
37079         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
37080         Add lseek and memchr.
37081
37082         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
37083         T.E.Dickey <dickey@clark.net> said that some older preprocessors
37084         have a 20-character limit on names.
37085
37086 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
37087
37088         * m4/inttypes_h.m4: New file.
37089         * m4/uintmax_t.m4: New file.
37090         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
37091
37092 Copyright (C) 1997-2007 Free Software Foundation, Inc.
37093 Copying and distribution of this file, with or without modification,
37094 are permitted provided the copyright notice and this notice are preserved.